{"$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":"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":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D23","name":"Boundary Type-Coupling","shortDescription":{"text":"Boundary Type-Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D23"},{"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":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02: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":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02: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":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"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":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"C2","name":"Access Controls","shortDescription":{"text":"Access Controls"},"helpUri":"https://codehealth.canine.dev/dimensions/C2"},{"id":"DM1","name":"Aggregate boundaries","shortDescription":{"text":"Aggregate boundaries"},"helpUri":"https://codehealth.canine.dev/dimensions/DM1"},{"id":"DM2","name":"Strongly-typed ids","shortDescription":{"text":"Strongly-typed ids"},"helpUri":"https://codehealth.canine.dev/dimensions/DM2"},{"id":"DM4","name":"Rich vs anemic domain model","shortDescription":{"text":"Rich vs anemic domain model"},"helpUri":"https://codehealth.canine.dev/dimensions/DM4"},{"id":"DM5","name":"Encapsulated state","shortDescription":{"text":"Encapsulated state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM5"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"ES1","name":"Fold determinism","shortDescription":{"text":"Fold determinism"},"helpUri":"https://codehealth.canine.dev/dimensions/ES1"},{"id":"ES2","name":"Immutable events","shortDescription":{"text":"Immutable events"},"helpUri":"https://codehealth.canine.dev/dimensions/ES2"},{"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":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R5","name":"Dependency Freshness","shortDescription":{"text":"Dependency Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/R5"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"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":"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":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"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":"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":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"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":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"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":"Engine::run (cyclomatic 147): Engine::run has cyclomatic complexity 147 (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":"mistralrs-core/src/engine/mod.rs"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"b966af80d64bea3d772071df0edef4da303c2afea97b4c24f71054dba4cd80c5"}},{"ruleId":"D1","level":"warning","message":{"text":"Engine::add_request (cyclomatic 125): Engine::add_request has cyclomatic complexity 125 (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":"mistralrs-core/src/engine/add_request.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"69b55c55d35f2aff4adc8e97e5446a4eb52631856303d753ccaf83c6d1e894f9"}},{"ruleId":"D1","level":"warning","message":{"text":"Pipeline::submit_step (cyclomatic 110): Pipeline::submit_step has cyclomatic complexity 110 (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":"mistralrs-core/src/pipeline/mod.rs"},"region":{"startLine":2255}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cdb9da057a20cf17b2d5f46f7b349e644b884c08ee10cc72a4b8c7d96f03716"}},{"ruleId":"D1","level":"warning","message":{"text":"MultimodalLoader::load_model_from_path (cyclomatic 100): MultimodalLoader::load_model_from_path has cyclomatic complexity 100 (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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"d614a681bd91676990233e87323fe14a469fb948b6bab7a67c66abda80de5402"}},{"ruleId":"D1","level":"warning","message":{"text":"Gemma4ImageProcessor::process_inputs (cyclomatic 81): Gemma4ImageProcessor::process_inputs has cyclomatic complexity 81 (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":"mistralrs-core/src/vision_models/gemma4/inputs_processor.rs"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"290d263b6c427a6d349da9f297142a18484a1326f99a856af3fd645827d8eeb1"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::pipeline::sampling::finish_or_add_toks_to_seq (cyclomatic 77): mistralrs_core::pipeline::sampling::finish_or_add_toks_to_seq has cyclomatic complexity 77 (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":"mistralrs-core/src/pipeline/sampling.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f7cbb39c3614da85d4500a0ea882999c384b1851d5d1d03bab7b16894e600a6"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::gguf::normal_bindings::bind_block_tensor (cyclomatic 72): mistralrs_core::gguf::normal_bindings::bind_block_tensor has cyclomatic complexity 72 (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":"mistralrs-core/src/gguf/normal_bindings.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3cb017c2e0b0a6bdb1d596dbb6bd26fcbbe616a49f7c66eec379d1abc9532a"}},{"ruleId":"D1","level":"warning","message":{"text":"NormalLoader::load_model_from_path (cyclomatic 68): NormalLoader::load_model_from_path 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":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"d78dcd92e2955ba4f7c3f54244c32066daa79e3eb6fe68ff2b5e7ce225c05c52"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::cuda::gdn::speculative_recurrence_checkpoints_cuda::cuda_fwd (cyclomatic 66): mistralrs_core::cuda::gdn::speculative_recurrence_checkpoints_cuda::cuda_fwd has cyclomatic complexity 66 (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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":3821}}}],"partialFingerprints":{"codehealthFindingId/v1":"2535c3e89f41d5663748b2db342754f168518418259547abf17ebbd1d48143e2"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::pipeline::isq::gguf_imatrix_names (cyclomatic 60): mistralrs_core::pipeline::isq::gguf_imatrix_names has cyclomatic complexity 60 (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":"mistralrs-core/src/pipeline/isq.rs"},"region":{"startLine":1405}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f4af9e5b0f02a44e0f0ad92dbf76c883fd126f1a2ad2f9a00a42b1655fd285"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_server_core::chat_completion::parse_request (cyclomatic 60): mistralrs_server_core::chat_completion::parse_request has cyclomatic complexity 60 (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":"mistralrs-server-core/src/chat_completion.rs"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a16e6b8f5a658c1d359a2bcb4eb872980c4a30f965afcec7685b8623c17e2b8"}},{"ruleId":"D1","level":"warning","message":{"text":"GridImageProcessor::process_inputs (cyclomatic 58): GridImageProcessor::process_inputs has cyclomatic complexity 58 (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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"a90170a67b246eb456ab4300ee2cf0538161c873f3dbd372ec189c9f551faa10"}},{"ruleId":"D1","level":"warning","message":{"text":"FlashAttnVarLen::cuda_fwd_t (cyclomatic 57): FlashAttnVarLen::cuda_fwd_t has cyclomatic complexity 57 (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":"mistralrs-flash-attn/src/flash.rs"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"11fe9b5051dbcca53f6ec834c586f72089028d4e0bc79de9eff492a15ddbe80b"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::vision_models::qwen3_vl::get_rope_index (cyclomatic 55): mistralrs_core::vision_models::qwen3_vl::get_rope_index has cyclomatic complexity 55 (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":"mistralrs-core/src/vision_models/qwen3_vl/mod.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c885d50c15fa5c5b6457a5e7542ce44a07096e04ac4d586024f7823ad18479d"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::afq::ops::cuda_backend::afq_mm_op (cyclomatic 55): mistralrs_quant::afq::ops::cuda_backend::afq_mm_op has cyclomatic complexity 55 (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":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":2588}}}],"partialFingerprints":{"codehealthFindingId/v1":"a58b2c202f1ac4f9e27481e1ae83a4035e8020fac73f3ebabef2810eabe3c2c9"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageEmbedding::forward (cyclomatic 54): ImageEmbedding::forward has cyclomatic complexity 54 (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":"mistralrs-core/src/vision_models/phi3/mod.rs"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"34250fd75c955cdfec51e6b54df62d99feeecbaeeb7b27c2a433cde37052f0bd"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::pipeline::inputs_processor::text_models_inputs_processor::make_prompt_chunk (cyclomatic 54): mistralrs_core::pipeline::inputs_processor::text_models_inputs_processor::make_prompt_chunk has cyclomatic complexity 54 (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":"mistralrs-core/src/pipeline/inputs_processor.rs"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"38af177102daeccf0894aea91dd8c1f7e05b57b888496a0e2841b857cd15d5fa"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_paged_attn::cuda::backend::flashinfer::flashinfer_decode (cyclomatic 54): mistralrs_paged_attn::cuda::backend::flashinfer::flashinfer_decode has cyclomatic complexity 54 (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":"mistralrs-paged-attn/src/cuda/backend/flashinfer.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf966bbf2b4c9275597c93038d62e1eb83f4472510ee598f90568947eb98df7"}},{"ruleId":"D1","level":"warning","message":{"text":"Qwen2_5VLImageProcessor::process_inputs (cyclomatic 52): Qwen2_5VLImageProcessor::process_inputs has cyclomatic complexity 52 (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":"mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"186632ad5f975206f232c141e97d848f6dbebae5e87952aa1237f297c23f4217"}},{"ruleId":"D1","level":"warning","message":{"text":"Qwen2VLImageProcessor::process_inputs (cyclomatic 52): Qwen2VLImageProcessor::process_inputs has cyclomatic complexity 52 (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":"mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ec034b4335ff39e03afbe3a9b5dccae2be754f8a19ac5d9aab70f5120111ba"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::gguf::cuda::indexed_moe_fused_decode (cyclomatic 52): mistralrs_quant::gguf::cuda::indexed_moe_fused_decode has cyclomatic complexity 52 (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":"mistralrs-quant/src/gguf/cuda.rs"},"region":{"startLine":1468}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef7012c92f2ebc559451c6ef3212dd0ffdcc88c9aeb278b1e9f6bb42e8ebb8a"}},{"ruleId":"D1","level":"warning","message":{"text":"PagedAttention::try_prefix_gather_prefill (cyclomatic 51): PagedAttention::try_prefix_gather_prefill has cyclomatic complexity 51 (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":"mistralrs-core/src/paged_attention/layers/paged_attention.rs"},"region":{"startLine":1412}}}],"partialFingerprints":{"codehealthFindingId/v1":"c23681cc9f62fc3af2760a57e16abaddcb712bbe21d64fc9951d7c31e7a71298"}},{"ruleId":"D1","level":"warning","message":{"text":"PagedAttentionScheduler::schedule (cyclomatic 50): PagedAttentionScheduler::schedule has cyclomatic complexity 50 (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":"mistralrs-core/src/paged_attention/scheduler.rs"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"547be0859fadb91a44c1587297008b45a731d3995dfe78b8a1b679392e0c7b41"}},{"ruleId":"D1","level":"warning","message":{"text":"Gemma4Model::forward_inner (cyclomatic 47): Gemma4Model::forward_inner has cyclomatic complexity 47 (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":"mistralrs-core/src/vision_models/gemma4/mod.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"4284c2f243033caa0b9544fbd4a926e61818bcbf1573c57563dc8865063a6bdb"}},{"ruleId":"D1","level":"warning","message":{"text":"Qwen3_5TextModel::forward_embeds (cyclomatic 44): Qwen3_5TextModel::forward_embeds has cyclomatic complexity 44 (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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d800e5fed46d449035dc491ad5a1beb920bd857b09e1b7153f14b332526a50b"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::ops::try_cuda_qk_rms_norm_rope (cyclomatic 43): mistralrs_core::ops::try_cuda_qk_rms_norm_rope has cyclomatic complexity 43 (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":"mistralrs-core/src/ops.rs"},"region":{"startLine":5585}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35b287a77f5c941d3ade65a47c960d2392191b7fe17768a0b4400beef9ccd2d"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::ops::try_cuda_qk_rms_norm_rope_positions (cyclomatic 43): mistralrs_core::ops::try_cuda_qk_rms_norm_rope_positions has cyclomatic complexity 43 (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":"mistralrs-core/src/ops.rs"},"region":{"startLine":6014}}}],"partialFingerprints":{"codehealthFindingId/v1":"442abceb3a9c809813d7e0001c4c6e22dde22a84f3bbddc5927e0e437cf74708"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_paged_attn::metal::backend::paged_prefill::metal_paged_prefill (cyclomatic 42): mistralrs_paged_attn::metal::backend::paged_prefill::metal_paged_prefill has cyclomatic complexity 42 (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":"mistralrs-paged-attn/src/metal/backend/paged_prefill.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"df49d0544f5781fd100c82ab1629913ae920f0579c129ed7705eab770c85e8dc"}},{"ruleId":"D1","level":"warning","message":{"text":"streaming.streamChatCompletion (cyclomatic 42): streaming.streamChatCompletion has cyclomatic complexity 42 (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":"mistralrs-cli/webui/src/lib/services/streaming.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c771a51c5f073fc026e253a5feb19e9f9a5e95e37877942f2e18ca075fb23bd"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::diagnostics::run_doctor (cyclomatic 41): mistralrs_core::diagnostics::run_doctor 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":"mistralrs-core/src/diagnostics.rs"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1050a05e9eb743d8934c88ae85be30d46c7f98b49e77c59277c9e03273eb54d"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_paged_attn::cuda::backend::cache::copy_blocks (cyclomatic 41): mistralrs_paged_attn::cuda::backend::cache::copy_blocks 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":"mistralrs-paged-attn/src/cuda/backend/cache.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a200710b80bdd9399022e7646e05432c11ec8a76fcad7222bf234e27ecff128"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::metal_kernels::afq_qmm_dispatch (cyclomatic 41): mistralrs_quant::metal_kernels::afq_qmm_dispatch has cyclomatic complexity 41 (threshold 15). 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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4169b75bdef86e7286728ea25b402e5f306c41b0af67a64df6354729e8f2e33"}},{"ruleId":"D1","level":"warning","message":{"text":"bench_decode_serving.validate_args (cyclomatic 41): bench_decode_serving.validate_args has cyclomatic complexity 41 (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":"releases/v0.9.3/scripts/bench_decode_serving.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"6604edebb929086276848a2e84ec2ec7d749ad58785859bd2e6971a175f945e1"}},{"ruleId":"D1","level":"warning","message":{"text":"PagedAttention::try_metal_prefill (cyclomatic 40): PagedAttention::try_metal_prefill 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":"mistralrs-core/src/paged_attention/layers/paged_attention.rs"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"34f68b9763e65c04fdc2882255ea7efbf8cd4ea2fd6802015e1ae11e397cc672"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::pipeline::paths::get_adapter_paths (cyclomatic 40): mistralrs_core::pipeline::paths::get_adapter_paths has cyclomatic complexity 40 (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":"mistralrs-core/src/pipeline/paths.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a9aaf442b06958281418e05c1f1088d4027c3d2fe66e259e256ab27d0bec02"}},{"ruleId":"D1","level":"warning","message":{"text":"TextModel::forward_embeds_scaled (cyclomatic 39): TextModel::forward_embeds_scaled has cyclomatic complexity 39 (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":"mistralrs-core/src/vision_models/gemma4/text.rs"},"region":{"startLine":2107}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4252964284f75db360ad23ce42139f4f473e584af064d5b652af17ecbaa764c"}},{"ruleId":"D1","level":"warning","message":{"text":"Qwen3VLModel::forward (cyclomatic 39): Qwen3VLModel::forward has cyclomatic complexity 39 (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":"mistralrs-core/src/vision_models/qwen3_vl/mod.rs"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"7505ec7d4e86d9f8b64019c6c03394f27f382d73641351fc0fbb21ba1ffb2ed5"}},{"ruleId":"D1","level":"warning","message":{"text":"Qwen3VLMoEModel::forward (cyclomatic 39): Qwen3VLMoEModel::forward has cyclomatic complexity 39 (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":"mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"75dd8bf764558561517079553e8b64bf87e3cff125e09679d0c5fb524b433c42"}},{"ruleId":"D1","level":"warning","message":{"text":"Qwen4ExpTextModel::forward_embeds (cyclomatic 39): Qwen4ExpTextModel::forward_embeds has cyclomatic complexity 39 (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":"mistralrs-core/src/vision_models/qwen4_exp/text.rs"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e79c72940b017b0ed85df7e022b2c30d1632222182ee82b8527e0297368a677"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::engine::agentic_loop::agentic_loop (cyclomatic 39): mistralrs_core::engine::agentic_loop::agentic_loop has cyclomatic complexity 39 (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":"mistralrs-core/src/engine/agentic_loop.rs"},"region":{"startLine":1256}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c2e878e066f42b7d555323d015968c4dbbbbdcc7aed98ec51c6adef62cf7e3"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::ops::cuda_dflash_sample_select (cyclomatic 39): mistralrs_core::ops::cuda_dflash_sample_select has cyclomatic complexity 39 (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":"mistralrs-core/src/ops.rs"},"region":{"startLine":1710}}}],"partialFingerprints":{"codehealthFindingId/v1":"785cf7ffb7859504f65ebf8bad51a333b62bee9dc2ccd9ec2412ce5c80cab197"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_cli::commands::run::interactive::print_agentic_progress (cyclomatic 38): mistralrs_cli::commands::run::interactive::print_agentic_progress has cyclomatic complexity 38 (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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f967b2e1319ee238b06c580d222bca1bedc58da9b109522d9394834a27b555"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::pipeline::isq_flow::plan::resolve_and_install_isq_plan (cyclomatic 38): mistralrs_core::pipeline::isq_flow::plan::resolve_and_install_isq_plan has cyclomatic complexity 38 (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":"mistralrs-core/src/pipeline/isq_flow/plan.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"5358b87f8e83531077f748a2808debf2df020b986553f4c106f46896f6c5b907"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::pipeline::loaders::auto_device_map::get_device_layers_attempt (cyclomatic 38): mistralrs_core::pipeline::loaders::auto_device_map::get_device_layers_attempt 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":"mistralrs-core/src/pipeline/loaders/auto_device_map.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc9b1295a4e32ec6de9646f48d258ea7c754329c320e9f98ba8f85908a373adc"}},{"ruleId":"D1","level":"warning","message":{"text":"PagedAttention::cuda_fwd_t (cyclomatic 38): PagedAttention::cuda_fwd_t has cyclomatic complexity 38 (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":"mistralrs-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ffb3ab629d8a9c98a822683ddb08a55050a9e15a54ab795f15e9ae58c7a05b3"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_paged_attn::cuda::backend::gather_kv::gather_kv_cache (cyclomatic 38): mistralrs_paged_attn::cuda::backend::gather_kv::gather_kv_cache has cyclomatic complexity 38 (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":"mistralrs-paged-attn/src/cuda/backend/gather_kv.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"460bd898e11d588b824a8027b3d021ab8e52bfe27de7378cd4e0ce6feae67d5a"}},{"ruleId":"D1","level":"warning","message":{"text":"EmbeddingLoader::load_model_from_path (cyclomatic 37): EmbeddingLoader::load_model_from_path has cyclomatic complexity 37 (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":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"e052eb652a75d25217c52412a0c726bc987303d39c2258348714732e8ddef418"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::ops::try_cuda_qkv_rms_norm_rope_positions (cyclomatic 37): mistralrs_core::ops::try_cuda_qkv_rms_norm_rope_positions has cyclomatic complexity 37 (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":"mistralrs-core/src/ops.rs"},"region":{"startLine":6347}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f71a27df15f504fa87c0d79c618a1a0267f90a8c22060d44196a2c9bc4a3d8"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenResponsesStreamer::poll_next (cyclomatic 37): OpenResponsesStreamer::poll_next 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":"mistralrs-server-core/src/responses.rs"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"92bf267ed93903109b22f47414a12b31dfd1c2aac6e3b0d4c0cd20104786ec56"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_cli::commands::bench::run_bench (cyclomatic 36): mistralrs_cli::commands::bench::run_bench has cyclomatic complexity 36 (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":"mistralrs-cli/src/commands/bench.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"641d9fede15d3e71716f712575b30d7e7bdb830136949d2b8b41e561d7e78c89"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::afq::ops::cuda_backend::afq_quantize_op (cyclomatic 36): mistralrs_quant::afq::ops::cuda_backend::afq_quantize_op has cyclomatic complexity 36 (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: mistralrs_quant::afq::ops::cuda_backend::afq_dequantize_op (cyclomatic 52) 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 function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":1706}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc4a77a7422fa469d350edd45cccd7c3fa0c081acc678a5be9394e69d481bb8"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_server_core::responses::create_response (cyclomatic 36): mistralrs_server_core::responses::create_response has cyclomatic complexity 36 (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":"mistralrs-server-core/src/responses.rs"},"region":{"startLine":2046}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1335b1f38670a457498477257db1937f97def7d21c495b298398d516eabba2d"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::ops::cuda_topk_logits_packed_batched_with_workspace (cyclomatic 35): mistralrs_core::ops::cuda_topk_logits_packed_batched_with_workspace has cyclomatic complexity 35 (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":"mistralrs-core/src/ops.rs"},"region":{"startLine":1040}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb24054e41cd144b391d935e945377d0d4c2f5878ecae8d33b2779ab2906645"}},{"ruleId":"D1","level":"warning","message":{"text":"PagedAttention::metal_fwd (cyclomatic 35): PagedAttention::metal_fwd has cyclomatic complexity 35 (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":"mistralrs-paged-attn/src/metal/backend/paged_attention.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"098b923905769055c6223affdae6ecca650d0ad095d087f226ab354835b266c3"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_paged_attn::cuda::backend::mla::flashinfer_mla_decode (cyclomatic 35): mistralrs_paged_attn::cuda::backend::mla::flashinfer_mla_decode has cyclomatic complexity 35 (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":"mistralrs-paged-attn/src/cuda/backend/mla.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"bddecd759abede3d304291b772bec2fa82c978f98b1d4e0e25a667f73e28a7f8"}},{"ruleId":"D1","level":"warning","message":{"text":"Runner::new (cyclomatic 35): Runner::new has cyclomatic complexity 35 (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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":1264}}}],"partialFingerprints":{"codehealthFindingId/v1":"33b146a25e9bbd95db0d5969c37f192051ca4f663f643a5159bbc2d460647cd2"}},{"ruleId":"D1","level":"warning","message":{"text":"Qwen3_5Model::dflash_propose (cyclomatic 34): Qwen3_5Model::dflash_propose 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":"mistralrs-core/src/vision_models/qwen3_5/speculative.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"c54c3e06f67539697258c9e925b9a5b8abdbcd1604ddbae7b6229e850b0def91"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::cuda::gdn::speculative_conv_checkpoints_cuda::cuda_fwd (cyclomatic 34): mistralrs_core::cuda::gdn::speculative_conv_checkpoints_cuda::cuda_fwd has cyclomatic complexity 34 (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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":3517}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd816b6c0e47efecc76f4ad4af03439ffdccc28cd438058a496c9c90c6940120"}},{"ruleId":"D1","level":"warning","message":{"text":"Nvfp4Layer::from_normalized_parts (cyclomatic 34): Nvfp4Layer::from_normalized_parts has cyclomatic complexity 34 (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":"mistralrs-quant/src/nvfp4/mod.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"febfa98aa9036a90c2b4913370332fa43663590e06817f90265959100d9b3fa5"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::gguf::weight_source::infer_binding_shape (cyclomatic 34): mistralrs_quant::gguf::weight_source::infer_binding_shape 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":"mistralrs-quant/src/gguf/weight_source.rs"},"region":{"startLine":1193}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a9868c085e8a7e94a16fe034d217ce7a12fb0aeaebd58156924f50994068226"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_cli::commands::run::interactive::multimodal_interactive_mode (cyclomatic 33): mistralrs_cli::commands::run::interactive::multimodal_interactive_mode 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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1529}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca5ebb6c4013addb7f71fbcf10bbc3d0668c42d8006cadd9213c00be8b4fb58"}},{"ruleId":"D1","level":"warning","message":{"text":"LoraConfig::validate_dynamic (cyclomatic 33): LoraConfig::validate_dynamic has cyclomatic complexity 33 (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":"mistralrs-quant/src/lora/mod.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b3ce277c2118028e70f0073ec1e17bb81c7806cc5ede246be76b7cb7b89f48"}},{"ruleId":"D1","level":"warning","message":{"text":"Sdpa::run_attention_noflash (cyclomatic 32): Sdpa::run_attention_noflash has cyclomatic complexity 32 (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":"mistralrs-core/src/attention/mod.rs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f0915288d8c027177cb22e3f9cc3e6517a23d9a5d14779a8e032404022e08f7"}},{"ruleId":"D1","level":"warning","message":{"text":"Model::prepare_inputs_labels_for_multimodal (cyclomatic 32): Model::prepare_inputs_labels_for_multimodal has cyclomatic complexity 32 (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":"mistralrs-core/src/vision_models/llava/llava_next.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"052c7bb9abb0420cb0cdd5987c9b21b3b3be75b26c8d13a6d21257b02594106b"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::model_loader::loader_from_model_selected (cyclomatic 32): mistralrs_core::model_loader::loader_from_model_selected has cyclomatic complexity 32 (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":"mistralrs-core/src/model_loader.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8d4a7b889f67842aa1792f0298b51a26b67077d67c6762885bfc15e355d2861"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::ops::cuda_dflash_greedy_select (cyclomatic 32): mistralrs_core::ops::cuda_dflash_greedy_select has cyclomatic complexity 32 (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":"mistralrs-core/src/ops.rs"},"region":{"startLine":1493}}}],"partialFingerprints":{"codehealthFindingId/v1":"122a4836318b8aa9c342df8d55a79441292ad313be0102adb70cc74173fc0627"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatStore.generateAssistant (cyclomatic 32): ChatStore.generateAssistant has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 10 of the 32 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 445, a function literal at line 447, accountTokens, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/stores/chat.svelte.ts"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"4411a7c7e8d56c3c3260f5e45a45b0ebde80fab2d6ad6a625b4de40ce6b8d94c"}},{"ruleId":"D1","level":"warning","message":{"text":"Qwen3_5Model::forward (cyclomatic 31): Qwen3_5Model::forward 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":"mistralrs-core/src/vision_models/qwen3_5/mod.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"f328b761cf4d17d60389a9942ce590222433492bc81fb0f24642b67dfa5c22eb"}},{"ruleId":"D1","level":"warning","message":{"text":"Qwen3_5MoeModel::forward (cyclomatic 31): Qwen3_5MoeModel::forward 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":"mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"6461edb3b90175d2d87ef4d18638ef23645ed0101e96cd58cf575f6c48bd3f3f"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::attention::backends::cpu::mask::mask_offset (cyclomatic 31): mistralrs_core::attention::backends::cpu::mask::mask_offset 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":"mistralrs-core/src/attention/backends/cpu/mask.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d9942ac44d3895a6de1ca752cfab42ad10423c4ffcc17a69d34fd6a3d98e7f0"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::cuda::speculative_rejection::sparse_rejection_cuda_submit (cyclomatic 31): mistralrs_core::cuda::speculative_rejection::sparse_rejection_cuda_submit 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":"mistralrs-core/src/cuda/speculative_rejection.rs"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"36026b5b00292c7173bad37e4b299a341be868ec356abd249ca63098138164c3"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::pipeline::sampling::sample_sequence (cyclomatic 31): mistralrs_core::pipeline::sampling::sample_sequence 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":"mistralrs-core/src/pipeline/sampling.rs"},"region":{"startLine":1450}}}],"partialFingerprints":{"codehealthFindingId/v1":"9610197cb0220ece89871f8b4268f67937f23b88b101e10d4fbf60e8b4a7b327"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_cli::commands::doctor::run_doctor (cyclomatic 30): mistralrs_cli::commands::doctor::run_doctor 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":"mistralrs-cli/src/commands/doctor.rs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b04c29299c1f6704a50956491e34519b179706d1423c381d26d92b44988a43b"}},{"ruleId":"D1","level":"warning","message":{"text":"PrefixCacheManagerV2::search_for_matching_cache (cyclomatic 30): PrefixCacheManagerV2::search_for_matching_cache 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":"mistralrs-core/src/prefix_cacher.rs"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcfdae59b05def21a77ffc462c5360243b08d5df022d3538e8bf9d026b023872"}},{"ruleId":"D1","level":"warning","message":{"text":"Gemma3ImageProcessor::process_inputs (cyclomatic 30): Gemma3ImageProcessor::process_inputs 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":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2811ad3268fa619e0e43355eb100be1f792aadec050c8ffe37423ddf009994"}},{"ruleId":"D1","level":"warning","message":{"text":"GridImageProcessor::prepare_for_paged_prompt_planning (cyclomatic 30): GridImageProcessor::prepare_for_paged_prompt_planning 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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a58217965963337e2f1f36f8a91ab63c0ebfbca74f7f0067f7dfc73387c2827"}},{"ruleId":"D1","level":"warning","message":{"text":"MLlamaImageProcessor::process_inputs (cyclomatic 30): MLlamaImageProcessor::process_inputs 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":"mistralrs-core/src/vision_models/mllama/inputs_processor.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef7bfdb3356ae1ea4908f96bae22a8e917b5f9986a5154dd49ca33c0e382404"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::attention::backends::cpu::full::compute_tiled_qblock (cyclomatic 30): mistralrs_core::attention::backends::cpu::full::compute_tiled_qblock 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":"mistralrs-core/src/attention/backends/cpu/full.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7567d89f484c4ff649d60b39bd0da8e93953434a1076139b6cef47fb15bd77c"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::ops::cuda_rms_norm_residual_then_rms_norm (cyclomatic 30): mistralrs_core::ops::cuda_rms_norm_residual_then_rms_norm has cyclomatic complexity 30 (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":"mistralrs-core/src/ops.rs"},"region":{"startLine":5337}}}],"partialFingerprints":{"codehealthFindingId/v1":"1689954744f975dc5291537b911e93dec7030b5ba7a8622e90e7c3ddb85af967"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::pipeline::paths::get_chat_template (cyclomatic 30): mistralrs_core::pipeline::paths::get_chat_template 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":"mistralrs-core/src/pipeline/paths.rs"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a41c56df0698ed1f4150ec8696cfdf5c6f70d83725a57831e253121785e460"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::afq::ops::afq_mm_op (cyclomatic 30): mistralrs_quant::afq::ops::afq_mm_op 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. This is NOT this file\u0027s highest cyclomatic complexity: mistralrs_quant::afq::ops::cuda_backend::afq_dequantize_op (cyclomatic 52) 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 function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"32b8259edf362d74c534c69eeb1511d7b5c873cf7456fe193fbbca31c0100aad"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_cli::commands::run::interactive::stream_assistant_response (cyclomatic 29): mistralrs_cli::commands::run::interactive::stream_assistant_response 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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1415}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa128250c34eccca6ee672d005bc75e56373dd9c98fa1b5bccf9e301379fa74d"}},{"ruleId":"D1","level":"warning","message":{"text":"MultimodalPipeline::try_cuda_decode_graph_forward (cyclomatic 29): MultimodalPipeline::try_cuda_decode_graph_forward has cyclomatic complexity 29 (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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2129}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a8a8c53426c8f87e699faa8a91cafcbd627ad61e269249cfd8e56637a0f4261"}},{"ruleId":"D1","level":"warning","message":{"text":"Gemma4ImageProcessor::prepare_for_paged_prompt_planning (cyclomatic 29): Gemma4ImageProcessor::prepare_for_paged_prompt_planning 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":"mistralrs-core/src/vision_models/gemma4/inputs_processor.rs"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"784e2cd1ff01499e4976cc138e2a52403e6cba5539fac61433e37aceb17b533d"}},{"ruleId":"D1","level":"warning","message":{"text":"MiniCpmOImageProcessor::process_inputs (cyclomatic 29): MiniCpmOImageProcessor::process_inputs 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":"mistralrs-core/src/vision_models/minicpmo/inputs_processor.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbabe549f954f3a2f165bad005be446ae243b3299e9ae1d796e3b19f0f630f98"}},{"ruleId":"D1","level":"warning","message":{"text":"Qwen2_5VLImageProcessor::prepare_for_paged_prompt_planning (cyclomatic 29): Qwen2_5VLImageProcessor::prepare_for_paged_prompt_planning 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":"mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"03157c8a01a8d95d4c60b97f24f133ee7de5ad8d64bac8fff1178acfc65059b1"}},{"ruleId":"D1","level":"warning","message":{"text":"Qwen2VLImageProcessor::prepare_for_paged_prompt_planning (cyclomatic 29): Qwen2VLImageProcessor::prepare_for_paged_prompt_planning 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":"mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a7530628bc5d8cfa28313a9f55be1a8d4998c45560dbe866d57fc54255f373"}},{"ruleId":"D1","level":"warning","message":{"text":"XLoraClassifier::new (cyclomatic 29): XLoraClassifier::new 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":"mistralrs-core/src/xlora_models/classifier.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e56929f57c40b09dde8f40de05afd8fd5fc892e511e86b69c2b559398ad0dd"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::cuda::gdn::speculative_transition_commit_batched_cuda::cuda_commit (cyclomatic 29): mistralrs_core::cuda::gdn::speculative_transition_commit_batched_cuda::cuda_commit 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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":4980}}}],"partialFingerprints":{"codehealthFindingId/v1":"000d8b6381ca48396b7037e7114d1231f8e6ce35c3fbf74981542c2cbb62a3d1"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::distributed::prepare_distributed_mapper (cyclomatic 29): mistralrs_core::distributed::prepare_distributed_mapper 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":"mistralrs-core/src/distributed.rs"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d41be43a15e38e87a5976b894eb79464e6d8e7bca182502236b4b78ba1e014c"}},{"ruleId":"D1","level":"warning","message":{"text":"UnquantLinear::apply_isq (cyclomatic 29): UnquantLinear::apply_isq 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":"mistralrs-quant/src/unquantized/mod.rs"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d7bd50a4927f75ba524dec296ad46c34a59531f054bd35cd0ce8fa9050fdb3"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::cuda::speculative_rejection::sparse_rejection_cuda_device_with_outcomes (cyclomatic 28): mistralrs_core::cuda::speculative_rejection::sparse_rejection_cuda_device_with_outcomes has cyclomatic complexity 28 (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":"mistralrs-core/src/cuda/speculative_rejection.rs"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"399cb9ca5cf3269c8f5fcfd497fb0b73051a63423516c78c4ae23e03bb9b24fe"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::mla::forward::mla_cache_forward (cyclomatic 28): mistralrs_core::mla::forward::mla_cache_forward has cyclomatic complexity 28 (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":"mistralrs-core/src/mla/forward.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fe075abee6cf5037984ee2ad4398c26687e994c53f347b23ba317704fd5bd99"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::ops::cuda_topk_ranked_packed_batched_with_workspace (cyclomatic 28): mistralrs_core::ops::cuda_topk_ranked_packed_batched_with_workspace 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":"mistralrs-core/src/ops.rs"},"region":{"startLine":1283}}}],"partialFingerprints":{"codehealthFindingId/v1":"536c647f66cd25775bf8bade8d6dd795a8b55ea57a790b7993c35d6e1a89cab5"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::paged_attention::plan::prompt_prefill_workspace (cyclomatic 28): mistralrs_core::paged_attention::plan::prompt_prefill_workspace has cyclomatic complexity 28 (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":"mistralrs-core/src/paged_attention/plan.rs"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"024d1a8cf53dc38424d9990776daf55514074ab7232edab27c5783d1b8a06a20"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::speculative::driver::verify_staged_batch (cyclomatic 28): mistralrs_core::speculative::driver::verify_staged_batch has cyclomatic complexity 28 (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":"mistralrs-core/src/speculative/driver.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b7e70e784b8c276f4fc7fc35bece2ddf954f2ccfaed5c27a0f088d7d490e95e"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_paged_attn::cuda::backend::flashinfer::reshape_and_cache_flashinfer (cyclomatic 28): mistralrs_paged_attn::cuda::backend::flashinfer::reshape_and_cache_flashinfer has cyclomatic complexity 28 (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":"mistralrs-paged-attn/src/cuda/backend/flashinfer.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb1da53ca6a553f7e3f9bb8fc28a9ca6ccbebaac894c73acd929887e7210a969"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_paged_attn::cuda::backend::flashinfer::gather_kv_cache_flashinfer (cyclomatic 28): mistralrs_paged_attn::cuda::backend::flashinfer::gather_kv_cache_flashinfer has cyclomatic complexity 28 (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":"mistralrs-paged-attn/src/cuda/backend/flashinfer.rs"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2ab3af1f9f573a576c030f8cc10c143b1a6fb02512883955e1f2150efa896a"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::mxfp4::ops::mxfp4_indexed_moe_gemm (cyclomatic 28): mistralrs_quant::mxfp4::ops::mxfp4_indexed_moe_gemm 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":"mistralrs-quant/src/mxfp4/ops.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbddba5ba33edfd181dc77fd6cae2423103dac76e737b09ed4f00b724d4b1f4e"}},{"ruleId":"D1","level":"warning","message":{"text":"MistralRs::init_external_tool_callbacks (cyclomatic 27): MistralRs::init_external_tool_callbacks 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":"mistralrs-core/src/lib.rs"},"region":{"startLine":1378}}}],"partialFingerprints":{"codehealthFindingId/v1":"60b7317ab261489d5260454e949f986959e8e845fbbe7969a4c75799ca3fee53"}},{"ruleId":"D1","level":"warning","message":{"text":"Idefics2::forward_inner (cyclomatic 27): Idefics2::forward_inner 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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca2984bb79f4a4629f904e2696adc8d088114c489da6dff4f2c12495bfa462b"}},{"ruleId":"D1","level":"warning","message":{"text":"LLaVAInputProcessor::process_inputs (cyclomatic 27): LLaVAInputProcessor::process_inputs 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":"mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd40cb7b7a800fd2cc5a406622276239648cf53aa51d177f587b64c25a0c2402"}},{"ruleId":"D1","level":"warning","message":{"text":"LLaVANextInputProcessor::process_inputs (cyclomatic 27): LLaVANextInputProcessor::process_inputs 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":"mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef5aa44e4073dbd94f3143b30389ec2402d05dac0b216f103207450ed63dff39"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::cuda::gdn::deferred_recurrence_rmsnorm_gate_cuda (cyclomatic 27): mistralrs_core::cuda::gdn::deferred_recurrence_rmsnorm_gate_cuda has cyclomatic complexity 27 (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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":4368}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdf2c1095ee46eedfa076b59fde83b0c6d8e95d0a638e681b5126cb839f082df"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::ops::cuda_rms_norm_residual (cyclomatic 27): mistralrs_core::ops::cuda_rms_norm_residual has cyclomatic complexity 27 (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":"mistralrs-core/src/ops.rs"},"region":{"startLine":4395}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee98b6e9b85a554320d5acd38c27bbae395d391d158fd5c85e5bbbaa5349478a"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::speculative::hybrid_state::replay_gdn_prefixes (cyclomatic 27): mistralrs_core::speculative::hybrid_state::replay_gdn_prefixes 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":"mistralrs-core/src/speculative/hybrid_state.rs"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"c52f7be0206fd61d5258d7f808cd2a1507573f18cde7bd3e0f05b5ca631226ed"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_cli::commands::serve::apply_quant_resolution (cyclomatic 26): mistralrs_cli::commands::serve::apply_quant_resolution 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":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"5397bf3c947f727bcffd455e840e55eb927757ce9176cf439635c9ec69f297d1"}},{"ruleId":"D1","level":"warning","message":{"text":"Sdpa::run_attention (cyclomatic 26): Sdpa::run_attention 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":"mistralrs-core/src/attention/mod.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e6530fb8ee262e56582ca0098220fd0c55e249cbdc18c99cbf6219598cb2f2"}},{"ruleId":"D1","level":"warning","message":{"text":"Qwen2_5VLModel::forward (cyclomatic 26): Qwen2_5VLModel::forward 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":"mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c625a79fb3b14a6a5bbee5420e5412bb10897464b939655285a441905f5b64"}},{"ruleId":"D1","level":"warning","message":{"text":"Qwen2VLModel::forward (cyclomatic 26): Qwen2VLModel::forward 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":"mistralrs-core/src/vision_models/qwen2vl/mod.rs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"da786e893469c4c251b3c9ab2561b60687473213442cbb7437f2d92b6ff6a77a"}},{"ruleId":"D1","level":"warning","message":{"text":"TextConfig::validate (cyclomatic 26): TextConfig::validate has cyclomatic complexity 26 (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":"mistralrs-core/src/vision_models/qwen3_5_moe/config.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"83ffcdd142da6a19ff7eaaf678bdeec4bdb98d5243a8cf4b9c8b35a1ff866e3a"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::pipeline::isq_flow::online::requantize_from_source (cyclomatic 26): mistralrs_core::pipeline::isq_flow::online::requantize_from_source has cyclomatic complexity 26 (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":"mistralrs-core/src/pipeline/isq_flow/online.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a03a7330b0f1cde70d0f1bb1b282a10a318c2807b09eb7a81889bcdea36331"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::tuning::auto_tune (cyclomatic 26): mistralrs_core::tuning::auto_tune 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":"mistralrs-core/src/tuning.rs"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"538fbb2ee615117d6a917b429b048385f1008c32dac7963094238d7721709918"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::vision_models::lfm3_d1::prompt::render_question (cyclomatic 26): mistralrs_core::vision_models::lfm3_d1::prompt::render_question 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":"mistralrs-core/src/vision_models/lfm3_d1/prompt.rs"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"f30ae0840f1d65b7c93185496749badc31624b8f518868a4ea565dd1e77f3ed1"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_paged_attn::cuda::backend::paged_attention::update_cache (cyclomatic 26): mistralrs_paged_attn::cuda::backend::paged_attention::update_cache has cyclomatic complexity 26 (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":"mistralrs-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f826f540dcc70a652e3b379e8f86c0fd7e94fdc7c92acc72137ff970cc1768c"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_paged_attn::metal::backend::paged_attention::reshape_and_cache (cyclomatic 26): mistralrs_paged_attn::metal::backend::paged_attention::reshape_and_cache has cyclomatic complexity 26 (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":"mistralrs-paged-attn/src/metal/backend/paged_attention.rs"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"213c569e8f77ed4513a35526bbcb7dc5251bcb7a494f3fcc1ad8e6c0ed6b35ac"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::gptq::gptq_cuda::gptq_linear (cyclomatic 26): mistralrs_quant::gptq::gptq_cuda::gptq_linear has cyclomatic complexity 26 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 4 belong to 2 function items inside it that branch. 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":"mistralrs-quant/src/gptq/gptq_cuda.rs"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ec7b1f5ce17cc8526ed2e77e679ff7c72ff75f0fec3e28caf09c4b71774ad8"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::lora::dynamic::expert_cuda::launch_projection (cyclomatic 26): mistralrs_quant::lora::dynamic::expert_cuda::launch_projection 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":"mistralrs-quant/src/lora/dynamic/expert_cuda.rs"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d42eb3b97ee7cf966d237dff90d09334a865b105b50d9e294bbb71e925f4a0"}},{"ruleId":"D1","level":"warning","message":{"text":"MistralRsForServerBuilder::build_multi_model (cyclomatic 26): MistralRsForServerBuilder::build_multi_model has cyclomatic complexity 26 (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":"mistralrs-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ab4304eaf4df6ba5e7276cbcca9b873ebf2d918b9ef94e3025d02fee2bedce"}},{"ruleId":"D1","level":"warning","message":{"text":"GGUFLoader::load_model_from_path (cyclomatic 25): GGUFLoader::load_model_from_path has cyclomatic complexity 25 (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":"mistralrs-core/src/pipeline/gguf.rs"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"641149cee6b88ee6d836205e33486ae940447075904c0a94c94a7b5fe6d4edb3"}},{"ruleId":"D1","level":"warning","message":{"text":"Idefics3ImageProcessor::process_inputs (cyclomatic 25): Idefics3ImageProcessor::process_inputs 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":"mistralrs-core/src/vision_models/idefics3/inputs_processor.rs"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"95051df0ce25ea72237b68442191404056bc8e2bc6cff9af2d802414ee45fb54"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::ops::cuda_top1_logits_submit_inner (cyclomatic 25): mistralrs_core::ops::cuda_top1_logits_submit_inner has cyclomatic complexity 25 (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":"mistralrs-core/src/ops.rs"},"region":{"startLine":2895}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47eac495e6bb72cc59372dd787542a727ca7f4d7d3a7122691a794fd41b8794"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::pipeline::chat_template::apply_chat_template_to (cyclomatic 25): mistralrs_core::pipeline::chat_template::apply_chat_template_to 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":"mistralrs-core/src/pipeline/chat_template.rs"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce2ba5092c2994aa3246e180a18c4d2b4f24ce5c69d0274496d41782926152c"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::pipeline::inputs_processor::text_models_inputs_processor::make_completion_chunk (cyclomatic 25): mistralrs_core::pipeline::inputs_processor::text_models_inputs_processor::make_completion_chunk 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":"mistralrs-core/src/pipeline/inputs_processor.rs"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"08e4ee24c0aced49f999a5cca40e9ef2275e5f06a1f72f9965018e17ae2d79e2"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_pyo3::normalize_chat_messages (cyclomatic 25): mistralrs_pyo3::normalize_chat_messages has cyclomatic complexity 25 (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. This is NOT this file\u0027s highest cyclomatic complexity: mistralrs_pyo3::lora_adapter_error_code (cyclomatic 28) 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 function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb0735f7e87bdabdc520489aa0456763921d162d5388d68ef76af215219ce6f0"}},{"ruleId":"D1","level":"warning","message":{"text":"CublasLTBatchMatmulF8Scalar::fwd_f8e4m3_scalar (cyclomatic 25): CublasLTBatchMatmulF8Scalar::fwd_f8e4m3_scalar 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":"mistralrs-quant/src/cublaslt/api.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"947315e9e87af1056a3ed4129906b7cdab07ec3eb34128deb0c5e0640f924e3f"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::gguf::quantize::quantize_cpu (cyclomatic 25): mistralrs_quant::gguf::quantize::quantize_cpu has cyclomatic complexity 25 (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":"mistralrs-quant/src/gguf/quantize.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"747af493316723a9a484b68671a79c15a7d37670774670e0aa635339e97747c3"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::mxfp4::metal_ops::mxfp4_indexed_moe_gemm (cyclomatic 25): mistralrs_quant::mxfp4::metal_ops::mxfp4_indexed_moe_gemm has cyclomatic complexity 25 (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":"mistralrs-quant/src/mxfp4/metal_ops.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"7343726764ef451ff18a2ee997b79257a3cf24be3e962997ecabb68403059ca5"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_cli::commands::tune::run_tune (cyclomatic 24): mistralrs_cli::commands::tune::run_tune has cyclomatic complexity 24 (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":"mistralrs-cli/src/commands/tune.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9e9bba735414ef146d0106a8b93f41b55c580e829cd0289a4a9d12e0fdd913"}},{"ruleId":"D1","level":"warning","message":{"text":"Gemma3nAudioAttention::forward (cyclomatic 24): Gemma3nAudioAttention::forward 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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2644e0f1989dbdaecbd9eb39405a29a12d7fccb39983a68709ba4f660948dad"}},{"ruleId":"D1","level":"warning","message":{"text":"TextConfig::validate (cyclomatic 24): TextConfig::validate has cyclomatic complexity 24 (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":"mistralrs-core/src/vision_models/qwen3_5/config.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ceee7cdfa052201648ddee3c70abf9ab34a91671ee62c6f62dcfb0a7e05f36"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::cuda::dflash_context::pack_taps (cyclomatic 24): mistralrs_core::cuda::dflash_context::pack_taps 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":"mistralrs-core/src/cuda/dflash_context.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"968f1060f9411e26ee9ff0ba275623d82c36b226785c1ee2f1a842f53dc69842"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::vision_models::lfm3_d1::parsing::parse_digits (cyclomatic 24): mistralrs_core::vision_models::lfm3_d1::parsing::parse_digits has cyclomatic complexity 24 (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":"mistralrs-core/src/vision_models/lfm3_d1/parsing.rs"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"b62bb9d7c5f0cc000c68bdb212d1b6bd32733ba732cef64dab63b911fb47ecc7"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatCompletionStreamer::poll_next (cyclomatic 24): ChatCompletionStreamer::poll_next has cyclomatic complexity 24 (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":"mistralrs-server-core/src/chat_completion.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"5752ebcd4b97337acf100998cae6a78b5077c69f0d2e8526527440bbb9e45d9a"}},{"ruleId":"D1","level":"warning","message":{"text":"BlockwiseFP8Linear::forward_raw (cyclomatic 24): BlockwiseFP8Linear::forward_raw 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":"mistralrs-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e835c661390549abdf4d5d0f2e87da52ce73f9550d5dd42b977e5a981dcd986"}},{"ruleId":"D1","level":"warning","message":{"text":"BlockwiseFP8Linear::apply_isq (cyclomatic 24): BlockwiseFP8Linear::apply_isq 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":"mistralrs-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"df1f13d2f3440c5b81ad15298d1714a850facd8f45856ddaeb135c804dea4f23"}},{"ruleId":"D1","level":"warning","message":{"text":"Nvfp4Layer::load_shape (cyclomatic 24): Nvfp4Layer::load_shape has cyclomatic complexity 24 (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":"mistralrs-quant/src/nvfp4/mod.rs"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"951eccb42c04a3f3faa07341dbdb08aea6a2905011dcfacd64357abed217e95c"}},{"ruleId":"D1","level":"warning","message":{"text":"PerTensorFP8Linear::apply_isq (cyclomatic 24): PerTensorFP8Linear::apply_isq 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":"mistralrs-quant/src/pertensor_fp8/mod.rs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8dd4351e590979b80773ebe5bc803fd0921059ac2f59f3242fb58a7f93362dd"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::fp8_config::compressed_tensors_spec (cyclomatic 24): mistralrs_quant::fp8_config::compressed_tensors_spec 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":"mistralrs-quant/src/fp8_config.rs"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"a19f1aae235ab5bb9295a750097243a58475d335ac27cfe61a18bb24d4adeb7a"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::gguf::fast_mmvq::fused_qkv_optional (cyclomatic 24): mistralrs_quant::gguf::fast_mmvq::fused_qkv_optional has cyclomatic complexity 24 (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 is NOT this file\u0027s highest cyclomatic complexity: mistralrs_quant::gguf::fast_mmvq::fused_glu_launcher (cyclomatic 31) 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 function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae79ea3ea6455a320d932562b54d4a6d4e565ac7a33a656650e4635307a61a1"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_server_core::chat_completion::serialize_agentic_data (cyclomatic 24): mistralrs_server_core::chat_completion::serialize_agentic_data has cyclomatic complexity 24 (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":"mistralrs-server-core/src/chat_completion.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"be295648857754191c34df5ade31624b0d5e1c5ce00471870bc7fef73652de15"}},{"ruleId":"D1","level":"warning","message":{"text":"PagedAttentionScheduler::select_prompt_batch (cyclomatic 23): PagedAttentionScheduler::select_prompt_batch 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":"mistralrs-core/src/paged_attention/scheduler.rs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7749f3d1b6c09c22a0517afde5f113e060c1201ab70e30569b0d1d8bdfa6047"}},{"ruleId":"D1","level":"warning","message":{"text":"Idefics2ImageProcessor::process_inputs (cyclomatic 23): Idefics2ImageProcessor::process_inputs 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":"mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba041de26b015b9893da4a481b26ff1cc9b7bb8002ad1db325e9d6baeadb3321"}},{"ruleId":"D1","level":"warning","message":{"text":"Phi3InputsProcessor::process_inputs (cyclomatic 23): Phi3InputsProcessor::process_inputs 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":"mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"50421f13c12efe49ede3ab09c5b9a4fa89aaea6612e2219afa216d7159555650"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::kv_cache::try_kv_append_rotating_metal (cyclomatic 23): mistralrs_core::kv_cache::try_kv_append_rotating_metal 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":"mistralrs-core/src/kv_cache/mod.rs"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"eefeb022e0d2ebec48ca8d3c982e3d0cec5a6c5a942ee5ff3fae1e84c910a082"}},{"ruleId":"D1","level":"warning","message":{"text":"BitWise::cuda_fwd (cyclomatic 23): BitWise::cuda_fwd 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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"819825b63cb3ce175377b7a5d7fb8a617664f43c8925becc6a785e9f0e5f9b19"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::blockwise_fp8::ops::fused_add_rms_norm_quantized_impl (cyclomatic 23): mistralrs_quant::blockwise_fp8::ops::fused_add_rms_norm_quantized_impl 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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1733}}}],"partialFingerprints":{"codehealthFindingId/v1":"21197b99b468fb5fb8617fd13fd0116039c14a4c0445e445e6ef7025c5029ff1"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::lora::dynamic::expert::add_expert_delta_reference (cyclomatic 23): mistralrs_quant::lora::dynamic::expert::add_expert_delta_reference 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":"mistralrs-quant/src/lora/dynamic/expert.rs"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f41e2303affb941bec609edf1d3f6ac930c3a07e2ba03ec94069ec06e466507"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentStream::next (cyclomatic 22): AgentStream::next 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":"mistralrs/src/agent.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"379da775a15e575c6a9d4aaf8b29aa08a5fcf64bed9f30bf0b8ebdabb4755435"}},{"ruleId":"D1","level":"warning","message":{"text":"NormalPipeline::try_cuda_decode_graph_forward (cyclomatic 22): NormalPipeline::try_cuda_decode_graph_forward 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. This is NOT this file\u0027s highest cyclomatic complexity: NormalLoaderBuilder::build_inner (cyclomatic 29) 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 function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":1886}}}],"partialFingerprints":{"codehealthFindingId/v1":"e52c47426932946f316e45d41b0e11aeae4b8ddc3806e15243c4463120533c93"}},{"ruleId":"D1","level":"warning","message":{"text":"TextModel::forward_embeds (cyclomatic 22): TextModel::forward_embeds has cyclomatic complexity 22 (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":"mistralrs-core/src/vision_models/gemma3/text.rs"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c5b46c9a9bc633aa51c3d0d41b5a75a76cdc5b8918206e01363f2b4019a0040"}},{"ruleId":"D1","level":"warning","message":{"text":"Attention::forward (cyclomatic 22): Attention::forward 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":"mistralrs-core/src/vision_models/gemma4/text.rs"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"932d57153ce6f4fda2e834fe03e2bf8668be6dcec900e2064164cc2ff731744f"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::cuda::gdn::speculative_transition_stage_batched_cuda::cuda_stage (cyclomatic 22): mistralrs_core::cuda::gdn::speculative_transition_stage_batched_cuda::cuda_stage 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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":5232}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f41ea47aef0f2b0e2967fa78ce267eb0d73d3b980cbb5a3fc56659fbf790f5c"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::cuda::gdn::pending_transition_apply_batched_cuda::cuda_apply (cyclomatic 22): mistralrs_core::cuda::gdn::pending_transition_apply_batched_cuda::cuda_apply 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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":5664}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4647d9c6c197b68a0610e717afcb22c0f3baca84e754fc7446865b062f92e62"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::cuda::speculative_rejection::validate_input (cyclomatic 22): mistralrs_core::cuda::speculative_rejection::validate_input 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":"mistralrs-core/src/cuda/speculative_rejection.rs"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca8df3ed16ac652cdbc02285c566e6a52b96922f63eae1133988f81c9b9a33d0"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::engine::cuda_memory::maintain_device (cyclomatic 22): mistralrs_core::engine::cuda_memory::maintain_device 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":"mistralrs-core/src/engine/cuda_memory.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d963dbd2cb3620ecf884bb1f3c879ad00624716f068c17077c25f3dd47698a"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::ops::cuda_moe_router_topk (cyclomatic 22): mistralrs_core::ops::cuda_moe_router_topk 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. This is NOT this file\u0027s highest cyclomatic complexity: ArgSort::cuda_fwd (cyclomatic 23) 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 function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/ops.rs"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"5636abe3ff82d0aa9b006bfef8d49ce5cf9167e695508875ff8ff4fa9ecad760"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::pipeline::loaders::activation_memory::model_activation_memory (cyclomatic 22): mistralrs_core::pipeline::loaders::activation_memory::model_activation_memory 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":"mistralrs-core/src/pipeline/loaders/activation_memory.rs"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7964be4dc26b8a5ffeb900c031d528fd8ce8fa8a6d24afd4baf423c284341b7"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::toml_selector::infer_legacy_model_kind (cyclomatic 22): mistralrs_core::toml_selector::infer_legacy_model_kind has cyclomatic complexity 22 (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":"mistralrs-core/src/toml_selector.rs"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c71d4e918ca6d8e7815f531cbc7340cf11d04f5593276b55d5ed4e12b138f1"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::vision_models::diffusion_gemma::generation::generate_canvas (cyclomatic 22): mistralrs_core::vision_models::diffusion_gemma::generation::generate_canvas 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":"mistralrs-core/src/vision_models/diffusion_gemma/generation.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c633e9e0c7f029e45b078d5552f4f3db41a97dad48772be189a56193e570b5"}},{"ruleId":"D1","level":"warning","message":{"text":"FlashAttn::cuda_fwd_t (cyclomatic 22): FlashAttn::cuda_fwd_t 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":"mistralrs-flash-attn/src/flash.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"14e08f5cc6df3f5ebcf7e38995d0ed0aa30f47bda8a1859f59bd9f3cb9bb7f59"}},{"ruleId":"D1","level":"warning","message":{"text":"ShardedSafeTensors::get (cyclomatic 22): ShardedSafeTensors::get 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":"mistralrs-quant/src/safetensors.rs"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f53a4227e88a22e8a354bb7ad350bf47112c0abaef6ddd9d9bd91f6cd8208e8"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::gguf::fast_mmq::shared_lhs (cyclomatic 22): mistralrs_quant::gguf::fast_mmq::shared_lhs 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":"mistralrs-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"3596f91c678783b528f9fc88b2dc93e4f01cfc46a0e123ae896e305741c503e8"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_server_core::metrics::observe_http (cyclomatic 22): mistralrs_server_core::metrics::observe_http 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":"mistralrs-server-core/src/metrics.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"459ec554abd4a0e7202b0316a97411fef4f798421d7c6cc9d1577c79fd3bd21c"}},{"ruleId":"D1","level":"warning","message":{"text":"Engine::new (cyclomatic 21): Engine::new 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":"mistralrs-core/src/engine/mod.rs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"12297395efcc1efa4bd2abebb0cbce1b5fbf87bec172e615cbcc8fcd7240fa15"}},{"ruleId":"D1","level":"warning","message":{"text":"GGUFLoader::infer_multimodal_asset_paths (cyclomatic 21): GGUFLoader::infer_multimodal_asset_paths has cyclomatic complexity 21 (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":"mistralrs-core/src/pipeline/gguf.rs"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"88464c860e42e5c3b7cb18204960348c956cbf58e1b5cea2f232a8f68996afb0"}},{"ruleId":"D1","level":"warning","message":{"text":"MultimodalPipeline::precapture_cuda_decode_graphs_impl (cyclomatic 21): MultimodalPipeline::precapture_cuda_decode_graphs_impl 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 is NOT this file\u0027s highest cyclomatic complexity: MultimodalLoaderBuilder::build_inner (cyclomatic 29) 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 function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2360}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a792cfaee6d616f3fc7f418ed625c016479b1f1fc57a6c7ca8f2c622b480474"}},{"ruleId":"D1","level":"warning","message":{"text":"Gemma4AudioAttention::forward (cyclomatic 21): Gemma4AudioAttention::forward 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":"mistralrs-core/src/vision_models/gemma4/audio.rs"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e92ddcea50172103c1d04bcfde4e03c1adf64cc0fb3996f3fa9c40b3145c585"}},{"ruleId":"D1","level":"warning","message":{"text":"TextConfig::validate (cyclomatic 21): TextConfig::validate 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":"mistralrs-core/src/vision_models/qwen4_exp/config.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6b972f3e119abf8fcc3c3f5c1c2d3bfb0643517970632684ac6ff14f431cd2"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::attention::backends::metal_flash_attn::try_flash_attn_ext_vec_bf16_dk512 (cyclomatic 21): mistralrs_core::attention::backends::metal_flash_attn::try_flash_attn_ext_vec_bf16_dk512 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":"mistralrs-core/src/attention/backends/metal_flash_attn.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d3a533788addd415fc373c2d7f2ebc998ecdac8b15edf85d8c647caa4a89b4"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::cuda::gdn::speculative_state_commit_cuda::cuda_fwd (cyclomatic 21): mistralrs_core::cuda::gdn::speculative_state_commit_cuda::cuda_fwd 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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":3313}}}],"partialFingerprints":{"codehealthFindingId/v1":"494a1731f1f5cda438f861564dbd4ec3036f7750fd4b8e8dca4c38bdc7da14c5"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::gguf::generation_config::generation_config_from_metadata (cyclomatic 21): mistralrs_core::gguf::generation_config::generation_config_from_metadata 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":"mistralrs-core/src/gguf/generation_config.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"3762dfa317a29f37b2433c804364075f5cc981150c2a91057a2a9bacbccc988e"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::ops::cuda_add_rms_norm (cyclomatic 21): mistralrs_core::ops::cuda_add_rms_norm has cyclomatic complexity 21 (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. This is NOT this file\u0027s highest cyclomatic complexity: ArgSort::cuda_fwd (cyclomatic 23) 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 function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/ops.rs"},"region":{"startLine":4581}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e25c6bca6ee7af2b10d81b5da66b0398f82d05f40e81f9418e762d93d5afed2"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::vision_models::lfm3_d1::parsing::parse_date_inner (cyclomatic 21): mistralrs_core::vision_models::lfm3_d1::parsing::parse_date_inner 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":"mistralrs-core/src/vision_models/lfm3_d1/parsing.rs"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc828fd47ea830f2bfc7cf4d0ab659322c29685a4be73304688264a5bc44d34"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_paged_attn::cuda::backend::mla::concat_and_cache_mla (cyclomatic 21): mistralrs_paged_attn::cuda::backend::mla::concat_and_cache_mla has cyclomatic complexity 21 (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":"mistralrs-paged-attn/src/cuda/backend/mla.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f54277fb7d589c33889dcf940f38f0f783c85003cdb613068bc207a7760fb24"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_paged_attn::metal::backend::gather_kv::gather_kv_cache (cyclomatic 21): mistralrs_paged_attn::metal::backend::gather_kv::gather_kv_cache has cyclomatic complexity 21 (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":"mistralrs-paged-attn/src/metal/backend/gather_kv.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"1680396f17c6d88100a067d610584a71456d68cd5ac018afe72521a7c09fa27d"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_pyo3::parse_which (cyclomatic 21): mistralrs_pyo3::parse_which 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 is NOT this file\u0027s highest cyclomatic complexity: mistralrs_pyo3::lora_adapter_error_code (cyclomatic 28) 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 function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"38cd0527d828967ac1bfd21fffc501aa2f197991bafffaab0361fd6850dfe2de"}},{"ruleId":"D1","level":"warning","message":{"text":"ReplicatedLayer::new_layers_matformer_indices (cyclomatic 21): ReplicatedLayer::new_layers_matformer_indices 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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":1560}}}],"partialFingerprints":{"codehealthFindingId/v1":"efad79f450e682fd81cf4a91280593532567fefeec733a707610a462b8ceddc3"}},{"ruleId":"D1","level":"warning","message":{"text":"Nvfp4Layer::gather_forward_raw (cyclomatic 21): Nvfp4Layer::gather_forward_raw 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":"mistralrs-quant/src/nvfp4/mod.rs"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc221bd479a1c1fd95d69c7ec71a060cadd8c51a6de0e3d38fd83c443dfe61f0"}},{"ruleId":"D1","level":"warning","message":{"text":"RoutedExperts::forward_grouped (cyclomatic 21): RoutedExperts::forward_grouped 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":"mistralrs-quant/src/routed_moe/cuda.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"9799824c1df0022e1f1acf4b6e94859546411c56a6c8e40a25987bd81c3f8b36"}},{"ruleId":"D1","level":"warning","message":{"text":"BitWise::cpu_fwd (cyclomatic 21): BitWise::cpu_fwd has cyclomatic complexity 21 (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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"f00fdb1ad60ebcced24c9fcdfd25a3d7a89fafc45eba67345b15a583083fd49a"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::afq::group::gate_up (cyclomatic 21): mistralrs_quant::afq::group::gate_up 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":"mistralrs-quant/src/afq/group.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"be4c090a5b27eb32e6bca8efaf37d48da17767ba90d7ea8331297ac4ac55d925"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::cutile::fp8_w8a8::launch (cyclomatic 21): mistralrs_quant::cutile::fp8_w8a8::launch 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":"mistralrs-quant/src/cutile/fp8_w8a8.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"8416b0575346ec9fa2d26b3d49f32b80e5ba40b953787679858034b75edf312e"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::cutile::nvfp4::validate_input (cyclomatic 21): mistralrs_quant::cutile::nvfp4::validate_input 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":"mistralrs-quant/src/cutile/nvfp4.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"0716636be29aeaee2988697f073b3f4180b09a9aa35773bc78833eb7400040ca"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::cutile::routed_lora::routed_lora_kernel::routed_lora_one_shot (cyclomatic 21): mistralrs_quant::cutile::routed_lora::routed_lora_kernel::routed_lora_one_shot 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":"mistralrs-quant/src/cutile/routed_lora.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b7c251f9bfe160f07e3242cd682b0ae89a8f0673151bbc33d850cae5cba88d"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::metal_kernels::call_scan (cyclomatic 21): mistralrs_quant::metal_kernels::call_scan has cyclomatic complexity 21 (threshold 15). 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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":2089}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4c764674164ac2693f45ac573c5ad82dd6dec33e8f21ca58c497576bdd258af"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::rotary::cuda::launch_rotary (cyclomatic 21): mistralrs_quant::rotary::cuda::launch_rotary 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":"mistralrs-quant/src/rotary/mod.rs"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"f264d4a9e8c062df7716164cc0a7ba79cc5ad70f4c4b7d420345f48c6ebe3c09"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::routed_gemv::cuda::launch (cyclomatic 21): mistralrs_quant::routed_gemv::cuda::launch has cyclomatic complexity 21 (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":"mistralrs-quant/src/routed_gemv/cuda.rs"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"db989acfab2293cedba9f728fbc979bd282ce44e6e1a351d992711d6f7cbaf56"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_server_core::speech_generation::match_response_with_options (cyclomatic 21): mistralrs_server_core::speech_generation::match_response_with_options has cyclomatic complexity 21 (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":"mistralrs-server-core/src/speech_generation.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"532d45ef3303eef66cf73d83763814281128e3cb8e4f6b6a3a94e5c977b1bda7"}},{"ruleId":"D1","level":"warning","message":{"text":"Model::forward_hidden (cyclomatic 20): Model::forward_hidden 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":"mistralrs-core/src/models/lfm3.rs"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee4fc5ebec6538af619f82aee930d5ad0eb1d45fc302497ddb7c1c88eb3230a"}},{"ruleId":"D1","level":"warning","message":{"text":"TagReasoningContext::process_text (cyclomatic 20): TagReasoningContext::process_text 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":"mistralrs-core/src/reasoning_parsers/tag_based.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b1438dc98abf5766620d91a31f664131a8106bdd8824472ed5a1a41bbb02bd"}},{"ruleId":"D1","level":"warning","message":{"text":"BuiltinMtpProposer::propose (cyclomatic 20): BuiltinMtpProposer::propose 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":"mistralrs-core/src/speculative/builtin_mtp.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"1011a99c724e854c4fc332f170974cf306a5e6d34970628d9f59bcb0a5b7a63a"}},{"ruleId":"D1","level":"warning","message":{"text":"Gemma3nImageProcessor::prepare_prompt_plans (cyclomatic 20): Gemma3nImageProcessor::prepare_prompt_plans 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":"mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"7558b7a013e63d0e2687d090645bc0dacd6005ae450bc094e39cede870dc9984"}},{"ruleId":"D1","level":"warning","message":{"text":"Llama4ImageProcessor::process_inputs (cyclomatic 20): Llama4ImageProcessor::process_inputs 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":"mistralrs-core/src/vision_models/llama4/inputs_processor.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff00176c99f760e5207a5a98253ff0d9535246f3dbd04b00a55ea6aafbe3ab4"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageEmbedding::forward (cyclomatic 20): ImageEmbedding::forward 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":"mistralrs-core/src/vision_models/phi4/image_embedding.rs"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"313d119e78eff4aa720e85ea69cdc8c306532c928859f1b41a7536cdb4bfc14e"}},{"ruleId":"D1","level":"warning","message":{"text":"Phi4MMInputsProcessor::process_image_batch (cyclomatic 20): Phi4MMInputsProcessor::process_image_batch 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":"mistralrs-core/src/vision_models/phi4/inputs_processor.rs"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15c0202f698083f7b4886a49c43c2397b2d69635ebcc95ff1d604ce69fabd46"}},{"ruleId":"D1","level":"warning","message":{"text":"Qwen2VLModel::compute_rope_index (cyclomatic 20): Qwen2VLModel::compute_rope_index 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":"mistralrs-core/src/vision_models/qwen2vl/mod.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dfe81f8ce778fbcd1abc680ec9497ecb727460dd2847e04b13880ed0fceae35"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::cuda::dflash_context::context_keys (cyclomatic 20): mistralrs_core::cuda::dflash_context::context_keys has cyclomatic complexity 20 (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":"mistralrs-core/src/cuda/dflash_context.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebf510e509e31c350463073a1528bc798e1a9960fbb59a324fc86f3ed864b4ec"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::ops::cuda_categorical_logits_f32_packed_batched (cyclomatic 20): mistralrs_core::ops::cuda_categorical_logits_f32_packed_batched has cyclomatic complexity 20 (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 is NOT this file\u0027s highest cyclomatic complexity: ArgSort::cuda_fwd (cyclomatic 23) 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 function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/ops.rs"},"region":{"startLine":2121}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffa91cddd08adf9778fe4b5cfb7c34337759eca723031dad1f90f9b36081cbb8"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::vision_models::minicpmo::inputs_processor::parse_prompt_items (cyclomatic 20): mistralrs_core::vision_models::minicpmo::inputs_processor::parse_prompt_items 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":"mistralrs-core/src/vision_models/minicpmo/inputs_processor.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"231dc6a879c67be3e42ec06c066b6671eaf7226f94b651bb09adffa9ce614a43"}},{"ruleId":"D1","level":"warning","message":{"text":"HqqBits::bitpack_type (cyclomatic 20): HqqBits::bitpack_type 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":"mistralrs-quant/src/hqq/mod.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb3eda15228797cd842df9ec6f3b6ba551529338d342b39aa83416a05db423c4"}},{"ruleId":"D1","level":"warning","message":{"text":"CumSum::cpu_fwd (cyclomatic 20): CumSum::cpu_fwd 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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d17d0f4a4701d86da7993e433bbb45be36144564046e380176b69e5239552f"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::cutile::qsa_decode::decode_shape (cyclomatic 20): mistralrs_quant::cutile::qsa_decode::decode_shape has cyclomatic complexity 20 (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":"mistralrs-quant/src/cutile/qsa_decode.rs"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62396649ae75847a60c0ae58f3acd4cb3f01ec934b9106806474c063f7193aa"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::cutile::tune::tune (cyclomatic 20): mistralrs_quant::cutile::tune::tune 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":"mistralrs-quant/src/cutile/tune.rs"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e4a2b8378bdbd7052d408c9d815afcfdbeb5020428340579f658d49f569ef0e"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::mxfp4::ops::mxfp4_matmul (cyclomatic 20): mistralrs_quant::mxfp4::ops::mxfp4_matmul has cyclomatic complexity 20 (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":"mistralrs-quant/src/mxfp4/ops.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b167fd72a026d208c67517165df7721ee3b2954e92ef38e9c9ea86013e4be8"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_server_core::responses::convert_input_items_to_messages (cyclomatic 20): mistralrs_server_core::responses::convert_input_items_to_messages 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":"mistralrs-server-core/src/responses.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"e50e6fed4b5e8078946469259e2ceef8d4d8589a9692dcf483b64ce16763c006"}},{"ruleId":"D1","level":"warning","message":{"text":"render_pyi._render_class (cyclomatic 20): render_pyi._render_class 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":"docs/scripts/render_pyi.py"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3a86aba9840328a33bf1e0aea1cc7ccc8588143825ad297c1863a67d7491c8b"}},{"ruleId":"D1","level":"warning","message":{"text":"Engine::handle_request (cyclomatic 19): Engine::handle_request has cyclomatic complexity 19 (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":"mistralrs-core/src/engine/add_request.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7280246d4f9a693be17d657ad87719de65c4d700b9c4479b4c95aa47666256"}},{"ruleId":"D1","level":"warning","message":{"text":"GraniteMoeHybrid::forward (cyclomatic 19): GraniteMoeHybrid::forward 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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":2180}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff3e4f85bdff26d0fb6403ec5638001c7c029efa0698d689885267fc38c772ee"}},{"ruleId":"D1","level":"warning","message":{"text":"CudaGraphCaptureMemory::shape (cyclomatic 19): CudaGraphCaptureMemory::shape 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":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"716d1e4ac15e48cd511f42ed54b4c201bd76a8836f82af9a8d0ac69eb826bf40"}},{"ruleId":"D1","level":"warning","message":{"text":"Llama4Model::forward (cyclomatic 19): Llama4Model::forward 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":"mistralrs-core/src/vision_models/llama4/mod.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"3144adb70eab669cd819e1b4ceb867f996dc2b3dc12e6760f3978323003b3a70"}},{"ruleId":"D1","level":"warning","message":{"text":"Mistral3ImageProcessor::process_inputs (cyclomatic 19): Mistral3ImageProcessor::process_inputs 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":"mistralrs-core/src/vision_models/mistral3/inputs_processor.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a6a7f5728807c8a08d4d9c04f665328798286ddc8908f0bb2fe7006e98742bd"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::kv_cache::try_kv_append_dual_metal (cyclomatic 19): mistralrs_core::kv_cache::try_kv_append_dual_metal has cyclomatic complexity 19 (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":"mistralrs-core/src/kv_cache/mod.rs"},"region":{"startLine":1388}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd993d6c58f3453eae53c0e6581c0eb0de38ba007dd5668af660a0a52e7e1f6"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::pipeline::chat_template::calculate_eos_tokens (cyclomatic 19): mistralrs_core::pipeline::chat_template::calculate_eos_tokens 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":"mistralrs-core/src/pipeline/chat_template.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7392b14b7af6508fc7e9c40b2e2e2449df391fb2efa9a118d25e8ebfc48a3ac"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::pipeline::chat_template::preprocess_gemma4_tool_messages (cyclomatic 19): mistralrs_core::pipeline::chat_template::preprocess_gemma4_tool_messages has cyclomatic complexity 19 (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":"mistralrs-core/src/pipeline/chat_template.rs"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"a52aebd1c9e530dd3919ca7cb20b1321667eddcb8ab68d0d83aa83392365b319"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::pipeline::sampling::try_sample_batch_cuda (cyclomatic 19): mistralrs_core::pipeline::sampling::try_sample_batch_cuda 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":"mistralrs-core/src/pipeline/sampling.rs"},"region":{"startLine":1298}}}],"partialFingerprints":{"codehealthFindingId/v1":"32058458962681f8ef022157e91da52ca3b7eb11da52b55a4c28d3f41f4b68bf"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::vision_models::lfm3_d1::parsing::parse_number (cyclomatic 19): mistralrs_core::vision_models::lfm3_d1::parsing::parse_number 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":"mistralrs-core/src/vision_models/lfm3_d1/parsing.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d30eb4737731e18b7186a2e105ffe0969aae47885cda0273c3351ad7c97f712"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_paged_attn::cuda::backend::fa3::fa3_prepare_paged_metadata (cyclomatic 19): mistralrs_paged_attn::cuda::backend::fa3::fa3_prepare_paged_metadata has cyclomatic complexity 19 (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":"mistralrs-paged-attn/src/cuda/backend/fa3.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c410153b5b05da2acd8e8e24842d92a21aae9688124a2bc445421ecbc990d88"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_paged_attn::cuda::backend::mla::gather_mla_cache (cyclomatic 19): mistralrs_paged_attn::cuda::backend::mla::gather_mla_cache has cyclomatic complexity 19 (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":"mistralrs-paged-attn/src/cuda/backend/mla.rs"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"b35e0f36f04f92c2569b6daa6ecd1cabaea0c3ab788ab6f7adeb60243a88dde6"}},{"ruleId":"D1","level":"warning","message":{"text":"SliceReader::read_value (cyclomatic 19): SliceReader::read_value has cyclomatic complexity 19 (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: GgufDType::name (cyclomatic 35) 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 function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/gguf/archive.rs"},"region":{"startLine":1080}}}],"partialFingerprints":{"codehealthFindingId/v1":"4435758f5904fba97f0a5bbaaeae17fd91fc0a4fc405b570dcf974714decf389"}},{"ruleId":"D1","level":"warning","message":{"text":"IndexedMoeLoraDecode::new (cyclomatic 19): IndexedMoeLoraDecode::new has cyclomatic complexity 19 (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":"mistralrs-quant/src/gguf/cuda.rs"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab2967766dd4740f8e5cd935c71f7edb2f55a0f6e8f8f7a84877ea20cebdb9fb"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::cutile::fp8_w8a16::launch (cyclomatic 19): mistralrs_quant::cutile::fp8_w8a16::launch has cyclomatic complexity 19 (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":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c96547c109fb10d813ae56c29c3801572701f9d45223da820af4e73c65f255f"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::gguf::fast_mmq::down_from_glu (cyclomatic 19): mistralrs_quant::gguf::fast_mmq::down_from_glu has cyclomatic complexity 19 (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":"mistralrs-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fdcddbda8e2f35a9eb16509cd3de70704f139a3a032447b7a2e95b65a5d0c96"}},{"ruleId":"D1","level":"warning","message":{"text":"Model::forward (cyclomatic 18): Model::forward 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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"9267ae038863b435c2fdfa9fe633df71ab4e3cad5fb2f311b9132c53b053979f"}},{"ruleId":"D1","level":"warning","message":{"text":"CacheEngine::allocate_gpu_cache (cyclomatic 18): CacheEngine::allocate_gpu_cache 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":"mistralrs-core/src/paged_attention/cache_engine.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"15319f5caf85032dd8da174cca3a1e86a5782480f9e2cc0a1b3cf5e60282a301"}},{"ruleId":"D1","level":"warning","message":{"text":"GdnTransitionLayers::stage_prefixes (cyclomatic 18): GdnTransitionLayers::stage_prefixes 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":"mistralrs-core/src/speculative/gdn_transitions.rs"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad21d64545c0ab2236d24f46c5741e3063a3a3c172c387aceea89465e699fd4a"}},{"ruleId":"D1","level":"warning","message":{"text":"Gemma3nModel::forward (cyclomatic 18): Gemma3nModel::forward 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":"mistralrs-core/src/vision_models/gemma3n/mod.rs"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1d0bfb22e92ee0e946176cccb956a965c95c9cd35c872f136619f6732d18a4f"}},{"ruleId":"D1","level":"warning","message":{"text":"Attention::forward (cyclomatic 18): Attention::forward 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":"mistralrs-core/src/vision_models/gemma3n/text.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f2d8a42494b287d2316cb2df5835d82abeecd8f3bcf80d829a12d69b8a2c6a"}},{"ruleId":"D1","level":"warning","message":{"text":"Qwen4ExpModel::forward (cyclomatic 18): Qwen4ExpModel::forward 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":"mistralrs-core/src/vision_models/qwen4_exp/mod.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69a504fc109511aef78bdc6ffaae9dc663c61025aee82d7a1b61c5d51ad9558"}},{"ruleId":"D1","level":"warning","message":{"text":"VoxtralInputsProcessor::process_inputs (cyclomatic 18): VoxtralInputsProcessor::process_inputs 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":"mistralrs-core/src/vision_models/voxtral/inputs_processor.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"2360c448bbf9510207c9425dc2afce279e4b51db9b68db2d1678cd64f823edba"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::cuda::gdn::try_fused_vmajor_prefill_recurrence_cuda (cyclomatic 18): mistralrs_core::cuda::gdn::try_fused_vmajor_prefill_recurrence_cuda 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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":2533}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e6ed1bba2a67f86432d38614ca9398988726b9e0ac00ce5341944c53b76a58"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::gguf::normal_bindings::dense_mlp_target (cyclomatic 18): mistralrs_core::gguf::normal_bindings::dense_mlp_target 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":"mistralrs-core/src/gguf/normal_bindings.rs"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ce7e6abbf0c5eae03bcfa2868b0a665c9e88f5e3c7cb750428af3566aeaaf6"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::gguf::normal_config::build_lfm3 (cyclomatic 18): mistralrs_core::gguf::normal_config::build_lfm3 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":"mistralrs-core/src/gguf/normal_config.rs"},"region":{"startLine":2077}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2d1837deea572e6f7638b7b4a1769a7bd8e0a5f6486b5868ccc07ad01c9af59"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::ops::try_cuda_rms_norm_strided_4d (cyclomatic 18): mistralrs_core::ops::try_cuda_rms_norm_strided_4d 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. This is NOT this file\u0027s highest cyclomatic complexity: ArgSort::cuda_fwd (cyclomatic 23) 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 function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/ops.rs"},"region":{"startLine":4268}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d194dc5704be49f790b37be8c97874ee917c2595d84ecfb4a2205c35c9bfc3e"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::toml_selector::loader_from_selected (cyclomatic 18): mistralrs_core::toml_selector::loader_from_selected 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":"mistralrs-core/src/toml_selector.rs"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"493fb7190402f597f4fb094609e0cf0f8eff1afa644002e5e724bfb0396a8f0f"}},{"ruleId":"D1","level":"warning","message":{"text":"GptqLayer::gptq_gemm (cyclomatic 18): GptqLayer::gptq_gemm has cyclomatic complexity 18 (threshold 15). 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":"mistralrs-quant/src/gptq/gptq_cuda.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa7860eefebcad6843ea450f5b3b02bb402faf415bcfd685f6797c084b1950fa"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::cutile::nvfp4_gemv::launch (cyclomatic 18): mistralrs_quant::cutile::nvfp4_gemv::launch 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":"mistralrs-quant/src/cutile/nvfp4_gemv.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f5d4830a0796bcc62ed9428f823577afee6057e5b5866074c87e5045d67ea2"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::cutile::nvfp4_matmul::prepare_gather_with (cyclomatic 18): mistralrs_quant::cutile::nvfp4_matmul::prepare_gather_with 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":"mistralrs-quant/src/cutile/nvfp4_matmul.rs"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"546974b3dd9a60f694a9efbd3c9a6c2bf8688653eccccc1daf688718474474b9"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::embedding::cuda::gather (cyclomatic 18): mistralrs_quant::embedding::cuda::gather 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":"mistralrs-quant/src/embedding/cuda.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe9cd1a1df513a41930205bd73db349f10df679c59c433f3f76a3f42a9b978b1"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::gguf::fast_mmq::grouped_pair_packed (cyclomatic 18): mistralrs_quant::gguf::fast_mmq::grouped_pair_packed 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":"mistralrs-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":1303}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a7aaf03e4682b597e07b2e38eb4e64211895dacae92f0496e0df52d0967d33c"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::metal_kernels::call_copy_gpu_inplace (cyclomatic 18): mistralrs_quant::metal_kernels::call_copy_gpu_inplace has cyclomatic complexity 18 (threshold 15). 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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":2457}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8069b277c64b0681ee2e3ce91fa929731220e087e00b71b9debbdab814dfc5"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::mxfp4::metal_ops::mxfp4_matmul (cyclomatic 18): mistralrs_quant::mxfp4::metal_ops::mxfp4_matmul 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":"mistralrs-quant/src/mxfp4/metal_ops.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"493a491c57d428e18f4ede35f45ae8f3e7d72744dd5b9edc238c6e5bd3052508"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::utils::ops::fused_glu_quantized_bf16 (cyclomatic 18): mistralrs_quant::utils::ops::fused_glu_quantized_bf16 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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":2981}}}],"partialFingerprints":{"codehealthFindingId/v1":"64138e2a576fce15ff4c847fa0f5b7dc5d661b7f3d249b01ec4fb38d4725b875"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_cli::commands::run::interactive::text_interactive_mode (cyclomatic 17): mistralrs_cli::commands::run::interactive::text_interactive_mode 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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb10182a2cc9087bbe84c57dd15ab0180286ca017f6c13510169a2a16bd96d57"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_cli::commands::serve::convert_to_model_selected (cyclomatic 17): mistralrs_cli::commands::serve::convert_to_model_selected has cyclomatic complexity 17 (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":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f7d6903cb7ea44ac33543b4385e7f4354a6155a8e7642e3dcd120099c65b7ee"}},{"ruleId":"D1","level":"warning","message":{"text":"KvCache::append (cyclomatic 17): KvCache::append has cyclomatic complexity 17 (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":"mistralrs-core/src/kv_cache/mod.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"42abb6679beb1619e18564c6e0dd566f4491a6f3c255b0db5499ed3f5ccb07e1"}},{"ruleId":"D1","level":"warning","message":{"text":"MultimodalPipeline::capture_cuda_decode_graph_step (cyclomatic 17): MultimodalPipeline::capture_cuda_decode_graph_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. This is NOT this file\u0027s highest cyclomatic complexity: MultimodalLoaderBuilder::build_inner (cyclomatic 29) 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 function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2549}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f027546440cd909c1fff0c596665a590cc7f5d7cc651371d5d94303e746726c"}},{"ruleId":"D1","level":"warning","message":{"text":"DFlashDraftModel::precapture_cuda_graphs (cyclomatic 17): DFlashDraftModel::precapture_cuda_graphs 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":"mistralrs-core/src/speculative/dflash.rs"},"region":{"startLine":2459}}}],"partialFingerprints":{"codehealthFindingId/v1":"362acfa17fc7fe0ce93d9052c6b432bc751a2910d0e1dbd28184846b297d27a8"}},{"ruleId":"D1","level":"warning","message":{"text":"TextModel::new (cyclomatic 17): TextModel::new 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":"mistralrs-core/src/vision_models/gemma4/text.rs"},"region":{"startLine":1618}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa338c5b707b62bb1c7620fcfac4dffc88b40728066f854198ad8a1f6421f3d3"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::attention::backends::cpu::single_q::run_barrier (cyclomatic 17): mistralrs_core::attention::backends::cpu::single_q::run_barrier has cyclomatic complexity 17 (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":"mistralrs-core/src/attention/backends/cpu/single_q.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2924b8a7542165fe82f53511a06de2376b94aa2439a24c5732c94d4224f3e77"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::attention::backends::metal_flash_attn::try_flash_attn_ext_bf16_dk512 (cyclomatic 17): mistralrs_core::attention::backends::metal_flash_attn::try_flash_attn_ext_bf16_dk512 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":"mistralrs-core/src/attention/backends/metal_flash_attn.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"6086e61d2372c48979bd4b8aa4f787e837aa3f019ba18b9d685e27d9c0800284"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::cuda::gdn::launch_recurrence (cyclomatic 17): mistralrs_core::cuda::gdn::launch_recurrence has cyclomatic complexity 17 (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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":1371}}}],"partialFingerprints":{"codehealthFindingId/v1":"22314f13508ae36436732dd2d1490083f8695dc58b7c1fc6d64810858a4be6da"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::gguf::gguf_tokenizer::convert_gguf_metadata_to_hf_tokenizer (cyclomatic 17): mistralrs_core::gguf::gguf_tokenizer::convert_gguf_metadata_to_hf_tokenizer 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":"mistralrs-core/src/gguf/gguf_tokenizer.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"85bab3702a99f622bd256e48c100434dd2ec23366ce7c435157b2d7694ee09c7"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::paged_attention::plan::metal_decode_workspace (cyclomatic 17): mistralrs_core::paged_attention::plan::metal_decode_workspace 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":"mistralrs-core/src/paged_attention/plan.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8e0eaeec2bc87d472f020cb750aa97e6d65e9c8d07df85bdc5ba450a1748ab9"}},{"ruleId":"D1","level":"warning","message":{"text":"MetalPagedPrefillShape::dispatch (cyclomatic 17): MetalPagedPrefillShape::dispatch 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":"mistralrs-paged-attn/src/metal/backend/paged_prefill.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"b44b80dab412b4e1ec030e3fbcb9f9044b42c36d1c29d45c5ce2a3814bf820fa"}},{"ruleId":"D1","level":"warning","message":{"text":"BlockwiseFP8Linear::prepare_provider (cyclomatic 17): BlockwiseFP8Linear::prepare_provider 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":"mistralrs-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b6ff072812791c30704c9e75d8c7d707001383834dc573a5a4ab1ed6d089cc"}},{"ruleId":"D1","level":"warning","message":{"text":"ManagedEmbedding::prepare_mapped (cyclomatic 17): ManagedEmbedding::prepare_mapped 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":"mistralrs-quant/src/embedding/storage.rs"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd6f221d276ad59b2e4e652c80cd0b08eb251c73410df4c79534c71468af38f7"}},{"ruleId":"D1","level":"warning","message":{"text":"ParsedShard::finish (cyclomatic 17): ParsedShard::finish 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. This is NOT this file\u0027s highest cyclomatic complexity: GgufDType::name (cyclomatic 35) 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 function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/gguf/archive.rs"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"f737f10d1b3d9e083fc977d3dad73c47d575a412944d0437295f5f87856065cc"}},{"ruleId":"D1","level":"warning","message":{"text":"UnquantLinear::forward_raw (cyclomatic 17): UnquantLinear::forward_raw 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":"mistralrs-quant/src/unquantized/mod.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ee128e8d1aa47f8880704569029a30dc1d86380ef15dcfd65eec37aacf6aff"}},{"ruleId":"D1","level":"warning","message":{"text":"SoftmaxWithSinks::cpu_fwd (cyclomatic 17): SoftmaxWithSinks::cpu_fwd has cyclomatic complexity 17 (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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":1870}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba51eedb09938f69a75079becf37e35a77e336e59a1b0333754f9aef2127385"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::afq::group::qkv (cyclomatic 17): mistralrs_quant::afq::group::qkv 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":"mistralrs-quant/src/afq/group.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be0a1212990c4728d96472111c461b6d2cb16a473a4eb30568ff113bb8cc2ac"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::blockwise_fp8::ops::fp8_indexed_moe_gemm (cyclomatic 17): mistralrs_quant::blockwise_fp8::ops::fp8_indexed_moe_gemm has cyclomatic complexity 17 (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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1172}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c714341727589a10ffba7d1087ddf7b5fc58b4887a38fec51be6c56a3b4ffc5"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::gguf::fast_mmvq::plain (cyclomatic 17): mistralrs_quant::gguf::fast_mmvq::plain 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. This is NOT this file\u0027s highest cyclomatic complexity: mistralrs_quant::gguf::fast_mmvq::fused_glu_launcher (cyclomatic 31) 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 function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1d2290be3c6d6dc19668ea5f38cfb581af234a8c660139309601c431dd945aa"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::gguf::fast_mmvq::fused_glu (cyclomatic 17): mistralrs_quant::gguf::fast_mmvq::fused_glu 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. This is NOT this file\u0027s highest cyclomatic complexity: mistralrs_quant::gguf::fast_mmvq::fused_glu_launcher (cyclomatic 31) 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 function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b9adaba4c9d89b3890332c20d199ffa1042b03e907d035a75ff9a28be435de4"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::gguf::gated_mix::try_fused_quantized_gated_mix (cyclomatic 17): mistralrs_quant::gguf::gated_mix::try_fused_quantized_gated_mix 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":"mistralrs-quant/src/gguf/gated_mix.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"926f386744e2ea42e8928f942e827f626229f2e39621dce4cad6f246239c8025"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::metal_kernels::prepare::prepare_afq (cyclomatic 17): mistralrs_quant::metal_kernels::prepare::prepare_afq 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. This is NOT this file\u0027s highest cyclomatic complexity: mistralrs_quant::metal_kernels::prepare::prepare_gguf (cyclomatic 22) 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 function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/metal_kernels/prepare.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"361b03096a1a2feedcbb94c7fecb6f7ba71317a8ce3fab248c4fe2e83e844530"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_server_core::audio_history::decorate_responses (cyclomatic 17): mistralrs_server_core::audio_history::decorate_responses 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":"mistralrs-server-core/src/audio_history.rs"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d0fac5f718d02690a9e07f0db3512d8f89ef7e3d8ffc32e3662bc37b98d3e2c"}},{"ruleId":"D1","level":"warning","message":{"text":"MultiModelBuilder::build (cyclomatic 16): MultiModelBuilder::build 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":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"317396316ed46d4f58f1a72fef4af3c95f0d76a518af9f7f7dcc4df55479cad9"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_cli::commands::quantize::resolve_gguf_source (cyclomatic 16): mistralrs_cli::commands::quantize::resolve_gguf_source 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":"mistralrs-cli/src/commands/quantize.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc40022a6107af721e1f637ee46286b362d929ceb812c96b6955b56ae1127656"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_cli::commands::quantize::run_quantize (cyclomatic 16): mistralrs_cli::commands::quantize::run_quantize 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":"mistralrs-cli/src/commands/quantize.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc62d8ffe911077a7864c775df91033250f4c7dc8d1ebe4decc4587c9e132e15"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_cli::commands::run::interactive::oneshot_multimodal (cyclomatic 16): mistralrs_cli::commands::run::interactive::oneshot_multimodal has cyclomatic complexity 16 (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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e34cd7d6c665b3e13fda611d8d737aa7363a932b57d3e502d522abab79a6035"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_cli::commands::run::interactive::agent_approval_callback (cyclomatic 16): mistralrs_cli::commands::run::interactive::agent_approval_callback 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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1321}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6af4cea45b38b28b0f0fd103688798ecd6abaaee8a7f8ccc29224d1537ce47"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_cli::ui::handlers::api::validate_text_upload (cyclomatic 16): mistralrs_cli::ui::handlers::api::validate_text_upload 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":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d02e1c238a5f60d0aa221f772451fe7c76f416a25248d0adbee44c12dd7acc"}},{"ruleId":"D1","level":"warning","message":{"text":"NormalCacheManager::clone_in_cache (cyclomatic 16): NormalCacheManager::clone_in_cache 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":"mistralrs-core/src/kv_cache/mod.rs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"88eea3992c8ed654c24e731d5a53325e86f562d84ff351db5f75e1fbf45168bb"}},{"ruleId":"D1","level":"warning","message":{"text":"Config::validate (cyclomatic 16): Config::validate 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":"mistralrs-core/src/models/hunyuan_v1_moe.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"c980865a699f1bf055c9362415f59d837f976caa9eed67c809d8f957ef4b8f10"}},{"ruleId":"D1","level":"warning","message":{"text":"Model::forward_embeds (cyclomatic 16): Model::forward_embeds 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":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":1172}}}],"partialFingerprints":{"codehealthFindingId/v1":"74f5a9c56d9a50df15bddfabc98754a372bf03a58662719efdecdc70003ab0f3"}},{"ruleId":"D1","level":"warning","message":{"text":"MoEExpertsBackend::resolve (cyclomatic 16): MoEExpertsBackend::resolve 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":"mistralrs-core/src/moe/experts/config.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"8513422c45fd34a0d55633bb5a1bf2a82b9f3f17ad34712b99be82ec394fec70"}},{"ruleId":"D1","level":"warning","message":{"text":"AnyMoePipeline::amoe_pre_train (cyclomatic 16): AnyMoePipeline::amoe_pre_train has cyclomatic complexity 16 (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":"mistralrs-core/src/pipeline/amoe.rs"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf8b14608e4620d54ad5156d9fd4f62198ce83499e185d5eef02121a307199d"}},{"ruleId":"D1","level":"warning","message":{"text":"CudaGraphDecodeStep::one_token_continuation (cyclomatic 16): CudaGraphDecodeStep::one_token_continuation 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":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d85aa3df5638aee438e68408270be730eae44352d2c0afd4a4362b641708f9c"}},{"ruleId":"D1","level":"warning","message":{"text":"CudaGraphPinnedBuffer::copy_from (cyclomatic 16): CudaGraphPinnedBuffer::copy_from 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":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":3522}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dbd3079c2d56e6783f319951ef04c381e44d67803529cc939b39fe898af883f"}},{"ruleId":"D1","level":"warning","message":{"text":"CudaDecodeGraphState::replay (cyclomatic 16): CudaDecodeGraphState::replay has cyclomatic complexity 16 (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":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":2347}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2504a01a1c014dff7e45bbcf2a0f6aa5aded176981c107d7d51a027f54f3f3b"}},{"ruleId":"D1","level":"warning","message":{"text":"MultimodalPipeline::forward_step (cyclomatic 16): MultimodalPipeline::forward_step 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: MultimodalLoaderBuilder::build_inner (cyclomatic 29) 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 function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2933}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d51d0f523112beff5fe91ef41dc20f752b5d2ec57db034b5a594adf4b8ca7f"}},{"ruleId":"D1","level":"warning","message":{"text":"Sampler::sample_topk_on_device (cyclomatic 16): Sampler::sample_topk_on_device 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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":1470}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca9a52d95c79bb3c39cd337eabd7fab935ad1e75e2701e12b828a44f9bf045a4"}},{"ruleId":"D1","level":"warning","message":{"text":"Sampler::sample_topk_on_device_metal (cyclomatic 16): Sampler::sample_topk_on_device_metal 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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":1649}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb5025cab0fd3d68ec4ea68fbc6d321428f265fe3860dc23275659d6ed15e0d8"}},{"ruleId":"D1","level":"warning","message":{"text":"SequenceGroup::maybe_send_streaming_response (cyclomatic 16): SequenceGroup::maybe_send_streaming_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":"mistralrs-core/src/sequence.rs"},"region":{"startLine":2584}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2d4818b32b1184b088578dc348e15234302ebf535bd68e652f2e07e46ddb7b8"}},{"ruleId":"D1","level":"warning","message":{"text":"Topology::from_str (cyclomatic 16): Topology::from_str 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":"mistralrs-core/src/topology/mod.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c9684366f35eec190218301de6d7970e1701f66a19ac425f1b48b8f6eb5237"}},{"ruleId":"D1","level":"warning","message":{"text":"GgufDeviceMapLoaderInner::layer_sizes_in_bytes (cyclomatic 16): GgufDeviceMapLoaderInner::layer_sizes_in_bytes 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":"mistralrs-core/src/utils/gguf_metadata.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a230ab9df064168fa15de092ebc6c567f66ccd42fed0ae518c9c18567e9543"}},{"ruleId":"D1","level":"warning","message":{"text":"Idefics2ImageProcessor::preprocess (cyclomatic 16): Idefics2ImageProcessor::preprocess 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":"mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"875a39a9770bc358e108989675097f702419a2d5d032227bb1d5222c0648351a"}},{"ruleId":"D1","level":"warning","message":{"text":"Idefics3Model::forward_inner (cyclomatic 16): Idefics3Model::forward_inner 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":"mistralrs-core/src/vision_models/idefics3/mod.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"218a74513bb2ee034c7552404a56ff7d3598fdc60cd74bb637595422e555cb87"}},{"ruleId":"D1","level":"warning","message":{"text":"RopeParameters::validate_scaling (cyclomatic 16): RopeParameters::validate_scaling 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":"mistralrs-core/src/vision_models/qwen3_5/config.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ab821bf6186516363b2d9ca0cfc4a532e03fb7003b33784f99be507e93e732"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::attention::backends::cpu::full::compute_full_qblock (cyclomatic 16): mistralrs_core::attention::backends::cpu::full::compute_full_qblock 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":"mistralrs-core/src/attention/backends/cpu/full.rs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"90c5422e9d5d2099f55f94e74a65f5d72eae3f7dcbb19d30bb0b9b09686f3f50"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::distributed::handle_daemon_request (cyclomatic 16): mistralrs_core::distributed::handle_daemon_request 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":"mistralrs-core/src/distributed.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"d93844feb6e5927ea3f296fe359ebae57ca9953618b5aa091a4b0da044cdd8d6"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::gguf::normal_bindings::bind_gpt_oss (cyclomatic 16): mistralrs_core::gguf::normal_bindings::bind_gpt_oss 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":"mistralrs-core/src/gguf/normal_bindings.rs"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a6e13410fb5631a80a77cfd2d5542cc00f5d824a86695bcd295634028d4171"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::ops::cuda_topk_sampling_submit_inner (cyclomatic 16): mistralrs_core::ops::cuda_topk_sampling_submit_inner 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. This is NOT this file\u0027s highest cyclomatic complexity: ArgSort::cuda_fwd (cyclomatic 23) 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 function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/ops.rs"},"region":{"startLine":3437}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b840833a9c4a569bfed18bf39a8790c0d0f8e9b2ca68bb450f1817059ea9fcc"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::ops::cuda_apply_sparse_penalties_f32 (cyclomatic 16): mistralrs_core::ops::cuda_apply_sparse_penalties_f32 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. This shape REPEATS in the file: one other method here (mistralrs_core::ops::cuda_apply_sparse_logits_bias_f32) 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. This is NOT this file\u0027s highest cyclomatic complexity: ArgSort::cuda_fwd (cyclomatic 23) 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 function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/ops.rs"},"region":{"startLine":3863}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b16b2c5ee48cdcc2a173a56ce2b4cd9a546dfccfe54ab6e3170a617b84037c7"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::ops::cuda_apply_sparse_logits_bias_f32 (cyclomatic 16): mistralrs_core::ops::cuda_apply_sparse_logits_bias_f32 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. This shape REPEATS in the file: one other method here (mistralrs_core::ops::cuda_apply_sparse_penalties_f32) 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. This is NOT this file\u0027s highest cyclomatic complexity: ArgSort::cuda_fwd (cyclomatic 23) 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 function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/ops.rs"},"region":{"startLine":3993}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ecb8f8f16f48a0adb9685ce4f2820e4eb79bb4d4363a373bea5075d895a62a"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::paged_attention::calculate_cache_config (cyclomatic 16): mistralrs_core::paged_attention::calculate_cache_config 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":"mistralrs-core/src/paged_attention/mod.rs"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc0c19ed9c973ab0747d8d86b946086a50ebfef6f80bbbde255b2ecfaaad9bad"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::pipeline::metal_warmup::prepare_model (cyclomatic 16): mistralrs_core::pipeline::metal_warmup::prepare_model 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":"mistralrs-core/src/pipeline/metal_warmup.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2f10ad7d56ce8b2bff80eb4228ace223bac9970fcdb4457ace08d0e4c49cee"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::speculative::verifier::greedy_device_verify_batch (cyclomatic 16): mistralrs_core::speculative::verifier::greedy_device_verify_batch has cyclomatic complexity 16 (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":"mistralrs-core/src/speculative/verifier.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"35043e16e5836c1a84e2eb6b77bd5903485a87198c6e70c6b798ca5346bcd5ad"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_paged_attn::metal::backend::cache::swap_blocks (cyclomatic 16): mistralrs_paged_attn::metal::backend::cache::swap_blocks has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs 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":"mistralrs-paged-attn/src/metal/backend/cache.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d96983fad7bf6e8a884a87c563ba9b4df8e1704cba777f4556df61273732db5"}},{"ruleId":"D1","level":"warning","message":{"text":"BlockwiseFP8Linear::forward_packed_glu (cyclomatic 16): BlockwiseFP8Linear::forward_packed_glu 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":"mistralrs-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"9729b2ae7b4b1dedc8acf753f1bb9ac19b2d7d0c396014bfbe3f6e6ab39593b6"}},{"ruleId":"D1","level":"warning","message":{"text":"RowParallelLayer::new_with_lora_spec (cyclomatic 16): RowParallelLayer::new_with_lora_spec 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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"37237555d79d7964edb9c78f2704195298343eceac930a86474f639f44395a95"}},{"ruleId":"D1","level":"warning","message":{"text":"PreQuantizedExperts::new (cyclomatic 16): PreQuantizedExperts::new 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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":1939}}}],"partialFingerprints":{"codehealthFindingId/v1":"c943091e6704ec2c0533b308b573dbb7c0f3d9d43dd2158ae529306cde7ceea8"}},{"ruleId":"D1","level":"warning","message":{"text":"State::forward (cyclomatic 16): State::forward 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":"mistralrs-quant/src/nvfp4/cutlass.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"6035b61c9b1ba18e06158fb25bc58228a82e4a7cf8bb0519910a798fb37288ca"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::bitsandbytes::op::d_dequantize_nf4 (cyclomatic 16): mistralrs_quant::bitsandbytes::op::d_dequantize_nf4 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":"mistralrs-quant/src/bitsandbytes/op.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"622825e31b090a3bc35ef430345f0ad813712990eb6add85be2142a18c6b4de9"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::cutile::nvfp4_matmul::launch_dense (cyclomatic 16): mistralrs_quant::cutile::nvfp4_matmul::launch_dense 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":"mistralrs-quant/src/cutile/nvfp4_matmul.rs"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"e520feab110ff34f2d9221afd6cdf60c571408b333ef33ecccf586ce444a5c29"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::gguf::fast_mmvq::shared_lhs (cyclomatic 16): mistralrs_quant::gguf::fast_mmvq::shared_lhs 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. This is NOT this file\u0027s highest cyclomatic complexity: mistralrs_quant::gguf::fast_mmvq::fused_glu_launcher (cyclomatic 31) 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 function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"724e29f65a2c38876992ff31317eb035f57dd2feea71335ef96e0a496f828eed"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::gguf::group::cuda::dense (cyclomatic 16): mistralrs_quant::gguf::group::cuda::dense 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":"mistralrs-quant/src/gguf/group.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e8dee0d46d552f194beaea9ab6bde7b3b79fedc4359aa20ccb16a9dcb9c748"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::routed_gemv::cuda::operand (cyclomatic 16): mistralrs_quant::routed_gemv::cuda::operand 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":"mistralrs-quant/src/routed_gemv/cuda.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"7636ba0c2c36702a7d0d708673b7633fbe8f1ccddcf015b544139201e18d9f70"}},{"ruleId":"D1","level":"warning","message":{"text":"AnthropicStreamer::poll_next (cyclomatic 16): AnthropicStreamer::poll_next has cyclomatic complexity 16 (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":"mistralrs-server-core/src/anthropic.rs"},"region":{"startLine":1542}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaf1c90f48127710975bb71192c0ced4b0099acbbc26f56f0686a60b206e0840"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_server_core::chat_completion::chatcompletions (cyclomatic 16): mistralrs_server_core::chat_completion::chatcompletions 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":"mistralrs-server-core/src/chat_completion.rs"},"region":{"startLine":1188}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bde2b1df43f8dc7ac2c26c0dc164b0e362646dc40b9d5b9c5aa70b7d518c7c5"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_server_core::openai::normalize_openai_tools (cyclomatic 16): mistralrs_server_core::openai::normalize_openai_tools 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":"mistralrs-server-core/src/openai.rs"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f99d21093374d388c2f961b994854e219e47723ab93ec2cd3be7856c2121cb3"}},{"ruleId":"D2","level":"warning","message":{"text":"Engine::run (cognitive 511): Engine::run has cognitive complexity 511 (threshold 15). Drivers by points: if/else 112 (370 pts), loops 19 (71 pts), match/switch 10 (42 pts), boolean chains 28 (nesting depth added 342). 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":"mistralrs-core/src/engine/mod.rs"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"c634693a78e250c69e3086fb25d170eb2f6d91b87bda3c8881f0ced9fb771025"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::pipeline::sampling::finish_or_add_toks_to_seq (cognitive 263): mistralrs_core::pipeline::sampling::finish_or_add_toks_to_seq has cognitive complexity 263 (threshold 15). Drivers by points: if/else 79 (215 pts), loops 5 (29 pts), boolean chains 12, match/switch 3 (7 pts) (nesting depth added 164). 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":"mistralrs-core/src/pipeline/sampling.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade30db2a98dc17b6d9704bd625d195737e967faa604e52be4a8614244d52015"}},{"ruleId":"D2","level":"warning","message":{"text":"Pipeline::submit_step (cognitive 255): Pipeline::submit_step has cognitive complexity 255 (threshold 15). Drivers by points: if/else 57 (153 pts), loops 17 (55 pts), boolean chains 25, match/switch 8 (22 pts) (nesting depth added 148). 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":"mistralrs-core/src/pipeline/mod.rs"},"region":{"startLine":2255}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4521369fb3acf906a0d4183891d70a692dbb540c6238a1f4151ed7ce44f6c2b"}},{"ruleId":"D2","level":"warning","message":{"text":"Engine::add_request (cognitive 253): Engine::add_request has cognitive complexity 253 (threshold 15). Drivers by points: if/else 90 (180 pts), match/switch 22 (46 pts), boolean chains 19, loops 4 (8 pts) (nesting depth added 118). 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":"mistralrs-core/src/engine/add_request.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"3585eec935268b59a3d1e279cba8107b719cc2e7b94953367748cd1c9c6d0163"}},{"ruleId":"D2","level":"warning","message":{"text":"Gemma4ImageProcessor::process_inputs (cognitive 242): Gemma4ImageProcessor::process_inputs has cognitive complexity 242 (threshold 15). Drivers by points: if/else 88 (188 pts), loops 14 (49 pts), boolean chains 5 (nesting depth added 135). 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":"mistralrs-core/src/vision_models/gemma4/inputs_processor.rs"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"d724e8f9076972bbf376af2393942b38b5e48ad7e25869685dd3c3a18d84cc98"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::vision_models::qwen3_vl::get_rope_index (cognitive 177): mistralrs_core::vision_models::qwen3_vl::get_rope_index has cognitive complexity 177 (threshold 15). Drivers by points: if/else 28 (92 pts), loops 18 (62 pts), match/switch 6 (17 pts), boolean chains 6 (nesting depth added 119). 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":"mistralrs-core/src/vision_models/qwen3_vl/mod.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"c42598723592d279d9abcff48e90b1104ff02900040093a1260f8e2df254c759"}},{"ruleId":"D2","level":"warning","message":{"text":"MultimodalLoader::load_model_from_path (cognitive 167): MultimodalLoader::load_model_from_path has cognitive complexity 167 (threshold 15). Drivers by points: if/else 90 (126 pts), match/switch 17 (25 pts), boolean chains 8, loops 6 (8 pts) (nesting depth added 46). 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"c635a33d7c3760dc0151cba34fe333dc0e2dd3a9dd208cc02b6281eab29e43df"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_server_core::chat_completion::parse_request (cognitive 143): mistralrs_server_core::chat_completion::parse_request has cognitive complexity 143 (threshold 15). Drivers by points: if/else 24 (64 pts), match/switch 14 (42 pts), loops 10 (33 pts), boolean chains 4 (nesting depth added 91). 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":"mistralrs-server-core/src/chat_completion.rs"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"bec8be73533a2432ea618bbba350133d72353be5cf1cdbdb57a3c91b28a1736f"}},{"ruleId":"D2","level":"warning","message":{"text":"Gemma4Model::forward_inner (cognitive 139): Gemma4Model::forward_inner has cognitive complexity 139 (threshold 15). Drivers by points: if/else 50 (105 pts), loops 9 (30 pts), boolean chains 4 (nesting depth added 76). 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":"mistralrs-core/src/vision_models/gemma4/mod.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"55223ee423e7105e04ed56db9c75f12e3220e1909d810d98c6fe4b1a96e85dc2"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::pipeline::inputs_processor::text_models_inputs_processor::make_prompt_chunk (cognitive 137): mistralrs_core::pipeline::inputs_processor::text_models_inputs_processor::make_prompt_chunk has cognitive complexity 137 (threshold 15). Drivers by points: if/else 65 (114 pts), loops 7 (18 pts), boolean chains 5 (nesting depth added 60). 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":"mistralrs-core/src/pipeline/inputs_processor.rs"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e65b79989fcca99c82a9f986d57632cd1003a4125d5a2a1213010349a434fd6"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageEmbedding::forward (cognitive 136): ImageEmbedding::forward has cognitive complexity 136 (threshold 15). Drivers by points: if/else 37 (96 pts), loops 8 (26 pts), match/switch 4 (8 pts), boolean chains 6 (nesting depth added 81). 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":"mistralrs-core/src/vision_models/phi3/mod.rs"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"af305e92610ad6aee71f1469923d7a13eee154c356d5c4ee39470cbed5bf3f4c"}},{"ruleId":"D2","level":"warning","message":{"text":"GridImageProcessor::process_inputs (cognitive 129): GridImageProcessor::process_inputs has cognitive complexity 129 (threshold 15). Drivers by points: if/else 53 (102 pts), loops 8 (17 pts), boolean chains 9, match/switch 1 (nesting depth added 58). 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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e777cf08490104128a60d6e8fc9e9947a124efa00552bc055c63f9affc7a382"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::pipeline::paths::get_adapter_paths (cognitive 119): mistralrs_core::pipeline::paths::get_adapter_paths has cognitive complexity 119 (threshold 15). Drivers by points: if/else 32 (83 pts), loops 9 (30 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 74). 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":"mistralrs-core/src/pipeline/paths.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ecdab7f88db4ca71ff5ddd9d9be1b01d50b22b8896cb9f77123bdb7a20539d8"}},{"ruleId":"D2","level":"warning","message":{"text":"NormalLoader::load_model_from_path (cognitive 118): NormalLoader::load_model_from_path has cognitive complexity 118 (threshold 15). Drivers by points: if/else 66 (92 pts), match/switch 12 (18 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 33). 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":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"e721da34af5eccd9f7c76fa9fb8362e9028162ac545953da0dbd1b69083090f1"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen2_5VLImageProcessor::process_inputs (cognitive 115): Qwen2_5VLImageProcessor::process_inputs has cognitive complexity 115 (threshold 15). Drivers by points: if/else 48 (93 pts), loops 7 (14 pts), boolean chains 7, match/switch 1 (nesting depth added 52). 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":"mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc19edb1848465098501df2ea466e63a359dc197577f4513cde31ca06d9625d7"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen2VLImageProcessor::process_inputs (cognitive 115): Qwen2VLImageProcessor::process_inputs has cognitive complexity 115 (threshold 15). Drivers by points: if/else 48 (93 pts), loops 7 (14 pts), boolean chains 7, match/switch 1 (nesting depth added 52). 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":"mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd1b500240156b8e1856759aa281c0dedaaf8bf528c61f814568fbf00e02ef2"}},{"ruleId":"D2","level":"warning","message":{"text":"PagedAttentionScheduler::schedule (cognitive 113): PagedAttentionScheduler::schedule has cognitive complexity 113 (threshold 15). Drivers by points: if/else 41 (88 pts), loops 7 (12 pts), boolean chains 8, match/switch 2 (5 pts) (nesting depth added 55). 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":"mistralrs-core/src/paged_attention/scheduler.rs"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b526a1a115b0d715cfd8c48804eb61702a922678e68ec888dee5e485d209f9"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentStream::next (cognitive 106): AgentStream::next has cognitive complexity 106 (threshold 15). Drivers by points: if/else 18 (85 pts), match/switch 4 (16 pts), loops 2 (5 pts) (nesting depth added 82). 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":"mistralrs/src/agent.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c2d41820af4275aa51412680aa58d12171b620bbbe5652ace370db803b565f"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_cli::commands::run::interactive::print_agentic_progress (cognitive 93): mistralrs_cli::commands::run::interactive::print_agentic_progress has cognitive complexity 93 (threshold 15). Drivers by points: loops 11 (41 pts), if/else 14 (35 pts), match/switch 7 (17 pts) (nesting depth added 61). 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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd653a872d477d90eb5f07909312d89dea42b782877ca2d9a98415f33084fc6e"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenResponsesStreamer::poll_next (cognitive 90): OpenResponsesStreamer::poll_next has cognitive complexity 90 (threshold 15). Drivers by points: if/else 23 (73 pts), loops 3 (12 pts), match/switch 3 (4 pts), boolean chains 1 (nesting depth added 60). 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":"mistralrs-server-core/src/responses.rs"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22c39871264e6802a21c59376d6c55f8af7f8983e63e3af00e7eeada46da268"}},{"ruleId":"D2","level":"warning","message":{"text":"streaming.streamChatCompletion (cognitive 90): streaming.streamChatCompletion has cognitive complexity 90 (threshold 15). Drivers by points: if/else 33 (76 pts), error handling 4 (8 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 48). 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":"mistralrs-cli/webui/src/lib/services/streaming.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"67f77bdbbcca03e89e487b880493e3d199b5be39303ccaaf40b09b29e1adc28a"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_cli::commands::run::interactive::multimodal_interactive_mode (cognitive 88): mistralrs_cli::commands::run::interactive::multimodal_interactive_mode has cognitive complexity 88 (threshold 15). Drivers by points: if/else 15 (38 pts), loops 7 (25 pts), match/switch 7 (23 pts), boolean chains 2 (nesting depth added 57). 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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1529}}}],"partialFingerprints":{"codehealthFindingId/v1":"e16fb63cfde1c7303d7a51218538ac449c3d60cab87e157ffa8e33cdea0020af"}},{"ruleId":"D2","level":"warning","message":{"text":"XLoraClassifier::new (cognitive 85): XLoraClassifier::new has cognitive complexity 85 (threshold 15). Drivers by points: if/else 49 (83 pts), loops 1 (2 pts) (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":"mistralrs-core/src/xlora_models/classifier.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f13b35667139f3ce9a85288d8ae9f2ff28ff5bb91ddbf407b198daa21afac7"}},{"ruleId":"D2","level":"warning","message":{"text":"Gemma3ImageProcessor::process_inputs (cognitive 83): Gemma3ImageProcessor::process_inputs has cognitive complexity 83 (threshold 15). Drivers by points: if/else 36 (75 pts), loops 2 (6 pts), boolean chains 2 (nesting depth added 43). 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":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"1233229805dbb3d56bfa67383e94aba0385f190beb3dc5c23ff60434a3af7383"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::pipeline::paths::get_chat_template (cognitive 83): mistralrs_core::pipeline::paths::get_chat_template has cognitive complexity 83 (threshold 15). Drivers by points: if/else 31 (71 pts), loops 1 (7 pts), match/switch 3 (5 pts) (nesting depth added 48). 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":"mistralrs-core/src/pipeline/paths.rs"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"3093d147790b979ce0013d366b2ee30afdf4212aa16357f679a06ddf9a9ef9c9"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::attention::backends::cpu::full::compute_tiled_qblock (cognitive 82): mistralrs_core::attention::backends::cpu::full::compute_tiled_qblock has cognitive complexity 82 (threshold 15). Drivers by points: if/else 16 (43 pts), loops 13 (35 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 51). 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":"mistralrs-core/src/attention/backends/cpu/full.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2c979503917b9af065dda87cfe7171f244e04a13fa297c8b323a7e91dc9ff3"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::mla::forward::mla_cache_forward (cognitive 82): mistralrs_core::mla::forward::mla_cache_forward has cognitive complexity 82 (threshold 15). Drivers by points: if/else 33 (66 pts), loops 5 (13 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 42). 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":"mistralrs-core/src/mla/forward.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7116bb9fdcec8b120680ad797932783a4fc97d2cefd08bbb3111ed0808ad6d7"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3VLModel::forward (cognitive 81): Qwen3VLModel::forward has cognitive complexity 81 (threshold 15). Drivers by points: if/else 30 (51 pts), loops 8 (23 pts), match/switch 3 (5 pts), boolean chains 2 (nesting depth added 38). 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":"mistralrs-core/src/vision_models/qwen3_vl/mod.rs"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"af125aa647e4348be91fa40fa04d6355f290b21ea764ff33592190e83cacaf66"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3VLMoEModel::forward (cognitive 81): Qwen3VLMoEModel::forward has cognitive complexity 81 (threshold 15). Drivers by points: if/else 30 (51 pts), loops 8 (23 pts), match/switch 3 (5 pts), boolean chains 2 (nesting depth added 38). 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":"mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"94639de1d0a5c9182d8f63be6b9df3d0967ed6421383b59d256a35cfd38a1327"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::engine::agentic_loop::agentic_loop (cognitive 81): mistralrs_core::engine::agentic_loop::agentic_loop has cognitive complexity 81 (threshold 15). Drivers by points: if/else 27 (57 pts), match/switch 4 (12 pts), loops 5 (9 pts), boolean chains 3 (nesting depth added 42). 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":"mistralrs-core/src/engine/agentic_loop.rs"},"region":{"startLine":1256}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a674aeab020af7e46fca02339ba7a1ba73a6ffaacbbd27134c84e70b6a5d548"}},{"ruleId":"D2","level":"warning","message":{"text":"FlashAttnVarLen::cuda_fwd_t (cognitive 81): FlashAttnVarLen::cuda_fwd_t has cognitive complexity 81 (threshold 15). Drivers by points: if/else 46 (57 pts), match/switch 9 (14 pts), boolean chains 10 (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":"mistralrs-flash-attn/src/flash.rs"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc998cb96d67c8658b2a1b1595d248b2b2d257018532554618b256c62233831"}},{"ruleId":"D2","level":"warning","message":{"text":"PagedAttention::try_prefix_gather_prefill (cognitive 77): PagedAttention::try_prefix_gather_prefill has cognitive complexity 77 (threshold 15). Drivers by points: if/else 40 (58 pts), boolean chains 14, match/switch 4 (5 pts) (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":"mistralrs-core/src/paged_attention/layers/paged_attention.rs"},"region":{"startLine":1412}}}],"partialFingerprints":{"codehealthFindingId/v1":"cedffb7a4870eb49463adca6770f99f15990a767ef03c1f1881edbeea9a06714"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen4ExpTextModel::forward_embeds (cognitive 77): Qwen4ExpTextModel::forward_embeds has cognitive complexity 77 (threshold 15). Drivers by points: if/else 23 (46 pts), match/switch 7 (16 pts), boolean chains 9, loops 3 (6 pts) (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":"mistralrs-core/src/vision_models/qwen4_exp/text.rs"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5bda805b8957bbafd212089fcd39494b9198c168d5af7b49acb8632163faa35"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::pipeline::loaders::auto_device_map::get_device_layers_attempt (cognitive 77): mistralrs_core::pipeline::loaders::auto_device_map::get_device_layers_attempt has cognitive complexity 77 (threshold 15). Drivers by points: if/else 38 (62 pts), boolean chains 7, loops 3 (5 pts), match/switch 3 (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":"mistralrs-core/src/pipeline/loaders/auto_device_map.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7c2f74cc06aa53d90d26a68dd6727a18edc29e21c9815e56a5c2d037414330"}},{"ruleId":"D2","level":"warning","message":{"text":"Idefics2::forward_inner (cognitive 76): Idefics2::forward_inner has cognitive complexity 76 (threshold 15). Drivers by points: if/else 26 (58 pts), loops 5 (14 pts), boolean chains 4 (nesting depth added 41). 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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9739d876e49b9fa43a95628f3ebe876d8dd324ab6f90bc9a3e2ab8d70da38f1"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3_5TextModel::forward_embeds (cognitive 75): Qwen3_5TextModel::forward_embeds has cognitive complexity 75 (threshold 15). Drivers by points: if/else 29 (47 pts), match/switch 7 (15 pts), boolean chains 12, loops 1 (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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1539db6a7db7ad6f5ec6fdf1c2656b8719725845a8008a2a4d4581aae13545"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageEmbedding::forward (cognitive 74): ImageEmbedding::forward has cognitive complexity 74 (threshold 15). Drivers by points: if/else 16 (44 pts), loops 3 (15 pts), match/switch 3 (13 pts), boolean chains 2 (nesting depth added 50). 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":"mistralrs-core/src/vision_models/phi4/image_embedding.rs"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a474514e482f52cd2b68b1873b1f8777e52271c27313fb29b36e2a78979e6f5"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::diagnostics::run_doctor (cognitive 72): mistralrs_core::diagnostics::run_doctor has cognitive complexity 72 (threshold 15). Drivers by points: if/else 41 (61 pts), boolean chains 6, loops 3, match/switch 1 (2 pts) (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":"mistralrs-core/src/diagnostics.rs"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"59dfb763219db623ae311db3d0e9dedf087c06a72a2495783241af6728fd2063"}},{"ruleId":"D2","level":"warning","message":{"text":"TagReasoningContext::process_text (cognitive 71): TagReasoningContext::process_text has cognitive complexity 71 (threshold 15). Drivers by points: if/else 23 (69 pts), boolean chains 1, loops 1 (nesting depth added 46). 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":"mistralrs-core/src/reasoning_parsers/tag_based.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad42f80fb253801723a584565d88945d1312e81f5cbbd480f13018746da29de5"}},{"ruleId":"D2","level":"warning","message":{"text":"MiniCpmOImageProcessor::process_inputs (cognitive 71): MiniCpmOImageProcessor::process_inputs has cognitive complexity 71 (threshold 15). Drivers by points: if/else 23 (45 pts), loops 7 (23 pts), boolean chains 3 (nesting depth added 38). 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":"mistralrs-core/src/vision_models/minicpmo/inputs_processor.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f3679c732d8efa0dff8215d6c1bb17e1cdf27ad0a955e954c0c8831d7198216"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::cuda::gdn::speculative_recurrence_checkpoints_cuda::cuda_fwd (cognitive 71): mistralrs_core::cuda::gdn::speculative_recurrence_checkpoints_cuda::cuda_fwd has cognitive complexity 71 (threshold 15). Drivers by points: if/else 35 (38 pts), boolean chains 25, match/switch 5 (6 pts), loops 2 (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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":3821}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f799b748ea73c58702a73c1fa8affc690220d4a915a209916adacbf0c934fb"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_cli::commands::bench::run_bench (cognitive 70): mistralrs_cli::commands::bench::run_bench has cognitive complexity 70 (threshold 15). Drivers by points: if/else 28 (48 pts), loops 9 (20 pts), boolean chains 2 (nesting depth added 31). 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":"mistralrs-cli/src/commands/bench.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"eea55fdbcfe5b98172bce307778871fe6b77012080fa7ce83e28273cc1b768b7"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3_5Model::dflash_propose (cognitive 70): Qwen3_5Model::dflash_propose has cognitive complexity 70 (threshold 15). Drivers by points: if/else 22 (41 pts), loops 7 (20 pts), boolean chains 6, match/switch 1 (3 pts) (nesting depth added 34). 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":"mistralrs-core/src/vision_models/qwen3_5/speculative.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f49edac10a2e6e7d8bd9c3085611ecf97ba3017d3d251a35cdc72d57fbe4cf"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen2_5VLModel::forward (cognitive 69): Qwen2_5VLModel::forward has cognitive complexity 69 (threshold 15). Drivers by points: if/else 26 (41 pts), loops 5 (20 pts), match/switch 2 (6 pts), boolean chains 2 (nesting depth added 34). 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":"mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9155653aafdfdecd9fceb953f2e19035ad8a702122c7a4b53fbcd0f338e7c97"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen2VLModel::forward (cognitive 69): Qwen2VLModel::forward has cognitive complexity 69 (threshold 15). Drivers by points: if/else 26 (41 pts), loops 5 (20 pts), match/switch 2 (6 pts), boolean chains 2 (nesting depth added 34). 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":"mistralrs-core/src/vision_models/qwen2vl/mod.rs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c2de0e24b50c7759a6f86a5d26ed2d3298266aa19a307e90adcd088242ec3c"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::pipeline::isq::gguf_imatrix_names (cognitive 68): mistralrs_core::pipeline::isq::gguf_imatrix_names has cognitive complexity 68 (threshold 15). Drivers by points: if/else 57 (61 pts), boolean chains 7 (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":"mistralrs-core/src/pipeline/isq.rs"},"region":{"startLine":1405}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1be7ff7da0590f9f1e49ebd6799f3b684c1fd215251cf17ce3bb5f6caf0e952"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::metal_kernels::afq_qmm_dispatch (cognitive 68): mistralrs_quant::metal_kernels::afq_qmm_dispatch has cognitive complexity 68 (threshold 15). Drivers by points: if/else 35 (50 pts), boolean chains 16, match/switch 1 (2 pts) (nesting depth added 16). 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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"4143cebaae13a59395927b51ae4eac72d2f887abf0b588d08a7a3c8ec3f8d5a4"}},{"ruleId":"D2","level":"warning","message":{"text":"TextModel::forward_embeds_scaled (cognitive 66): TextModel::forward_embeds_scaled has cognitive complexity 66 (threshold 15). Drivers by points: if/else 33 (46 pts), boolean chains 10, match/switch 6 (9 pts), loops 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":"mistralrs-core/src/vision_models/gemma4/text.rs"},"region":{"startLine":2107}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce18da4e786450e14c99f59a27e53354f9b66e87ad92d830c536d8b9ac41b1f"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_pyo3::normalize_chat_messages (cognitive 65): mistralrs_pyo3::normalize_chat_messages has cognitive complexity 65 (threshold 15). Drivers by points: loops 8 (27 pts), match/switch 7 (25 pts), if/else 4 (11 pts), boolean chains 2 (nesting depth added 44). 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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"837c7cc131cdc5577abb31c39b2968c7b75566cbba42e612e2670a515bdb7a48"}},{"ruleId":"D2","level":"warning","message":{"text":"MistralRs::init_external_tool_callbacks (cognitive 64): MistralRs::init_external_tool_callbacks has cognitive complexity 64 (threshold 15). Drivers by points: if/else 18 (39 pts), match/switch 6 (15 pts), loops 3 (9 pts), boolean chains 1 (nesting depth added 36). 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":"mistralrs-core/src/lib.rs"},"region":{"startLine":1378}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf532bb245cf31576583429528491444bd30660b2a665880ec0caa65b004187e"}},{"ruleId":"D2","level":"warning","message":{"text":"Idefics3ImageProcessor::process_inputs (cognitive 64): Idefics3ImageProcessor::process_inputs has cognitive complexity 64 (threshold 15). Drivers by points: if/else 31 (57 pts), loops 2 (6 pts), boolean chains 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":"mistralrs-core/src/vision_models/idefics3/inputs_processor.rs"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"534f1de5f4b1345a8ea3f6d8aa0883169bb7d01e32425b65122442d12bae2bb9"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_server_core::responses::create_response (cognitive 64): mistralrs_server_core::responses::create_response has cognitive complexity 64 (threshold 15). Drivers by points: if/else 16 (39 pts), loops 4 (14 pts), match/switch 6 (10 pts), boolean chains 1 (nesting depth added 37). 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":"mistralrs-server-core/src/responses.rs"},"region":{"startLine":2046}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d568dccd4568079d83670d7241bf790e41d3a4ea0c497e89ac1b4e410a35d4"}},{"ruleId":"D2","level":"warning","message":{"text":"EmbeddingLoader::load_model_from_path (cognitive 63): EmbeddingLoader::load_model_from_path has cognitive complexity 63 (threshold 15). Drivers by points: if/else 42 (53 pts), loops 4 (5 pts), match/switch 3 (5 pts) (nesting depth added 14). 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":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"81bfb0829adb57c3fed21743ee6fcb89f85b682c61c7be7f0f7e1799e1f4c0a8"}},{"ruleId":"D2","level":"warning","message":{"text":"GridImageProcessor::prepare_for_paged_prompt_planning (cognitive 61): GridImageProcessor::prepare_for_paged_prompt_planning has cognitive complexity 61 (threshold 15). Drivers by points: if/else 26 (51 pts), loops 6 (8 pts), boolean chains 2 (nesting depth added 27). 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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"968971e008e3e0ba2002c4f90090b3d3a4086bc6c860985bea57edf3b56f86ae"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::pipeline::sampling::sample_sequence (cognitive 61): mistralrs_core::pipeline::sampling::sample_sequence has cognitive complexity 61 (threshold 15). Drivers by points: if/else 20 (43 pts), boolean chains 10, loops 1 (5 pts), match/switch 3 (nesting depth added 27). 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":"mistralrs-core/src/pipeline/sampling.rs"},"region":{"startLine":1450}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd4e61bb1be72171cc64386eea64b8addac739a62ad8d1c9ae78d30918249d5"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_paged_attn::metal::backend::paged_prefill::metal_paged_prefill (cognitive 61): mistralrs_paged_attn::metal::backend::paged_prefill::metal_paged_prefill has cognitive complexity 61 (threshold 15). Drivers by points: if/else 23 (35 pts), boolean chains 13, loops 8 (11 pts), match/switch 2 (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":"mistralrs-paged-attn/src/metal/backend/paged_prefill.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"7386581b1a84813f3d7c129e434ceaf131d8f693c055a336d370a81158ccfa87"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::afq::ops::afq_mm_op (cognitive 60): mistralrs_quant::afq::ops::afq_mm_op has cognitive complexity 60 (threshold 15). Drivers by points: if/else 24 (43 pts), boolean chains 6, match/switch 2 (6 pts), loops 1 (5 pts) (nesting depth added 27). 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":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e88a51cd3cd0009878591c071b12df2a41f4eda57c6dffd48602102a94a0cb"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen2_5VLImageProcessor::prepare_for_paged_prompt_planning (cognitive 58): Qwen2_5VLImageProcessor::prepare_for_paged_prompt_planning has cognitive complexity 58 (threshold 15). Drivers by points: if/else 24 (48 pts), loops 6 (8 pts), boolean chains 2 (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":"mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"b466b89ea011f329300f5ddc22f47894c16ba9bef70c19e9afb42a9312848208"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen2VLImageProcessor::prepare_for_paged_prompt_planning (cognitive 58): Qwen2VLImageProcessor::prepare_for_paged_prompt_planning has cognitive complexity 58 (threshold 15). Drivers by points: if/else 24 (48 pts), loops 6 (8 pts), boolean chains 2 (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":"mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd8f7b660168e6f07234e39725dceecd10933f5d370ee637b75257ebc44adb23"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3_5Model::forward (cognitive 58): Qwen3_5Model::forward has cognitive complexity 58 (threshold 15). Drivers by points: if/else 21 (35 pts), loops 7 (17 pts), match/switch 3 (4 pts), boolean chains 2 (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":"mistralrs-core/src/vision_models/qwen3_5/mod.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"3495c14f071023cd6e3a83580c7a4557a5f4d0cfef96ee68ea46c727241ae39b"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3_5MoeModel::forward (cognitive 58): Qwen3_5MoeModel::forward has cognitive complexity 58 (threshold 15). Drivers by points: if/else 21 (35 pts), loops 7 (17 pts), match/switch 3 (4 pts), boolean chains 2 (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":"mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b2f2d32d78849125db8dff20253005491f70c8e14acbf1cbb2760a9310e1550"}},{"ruleId":"D2","level":"warning","message":{"text":"Runner::new (cognitive 58): Runner::new has cognitive complexity 58 (threshold 15). Drivers by points: if/else 25 (34 pts), loops 3 (9 pts), boolean chains 8, match/switch 6 (7 pts) (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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":1264}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2692c7f921bf3693b90d2d7334f1cc930e6483fa38a82b37f2d80e5865b71eb"}},{"ruleId":"D2","level":"warning","message":{"text":"Gemma4ImageProcessor::prepare_for_paged_prompt_planning (cognitive 57): Gemma4ImageProcessor::prepare_for_paged_prompt_planning has cognitive complexity 57 (threshold 15). Drivers by points: if/else 22 (47 pts), boolean chains 6, loops 2 (4 pts) (nesting depth added 27). 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":"mistralrs-core/src/vision_models/gemma4/inputs_processor.rs"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"1284e16072509e25562c6ff0f2679381cb7663d9f7f404051feffa11be663460"}},{"ruleId":"D2","level":"warning","message":{"text":"PagedAttention::try_metal_prefill (cognitive 56): PagedAttention::try_metal_prefill has cognitive complexity 56 (threshold 15). Drivers by points: if/else 34 (40 pts), boolean chains 9, loops 2 (5 pts), match/switch 2 (nesting depth added 9). 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":"mistralrs-core/src/paged_attention/layers/paged_attention.rs"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"0846a05462374115280d57b7902aa86fa6c394cebe386f855d03622883715a74"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::ops::try_cuda_qk_rms_norm_rope_positions (cognitive 56): mistralrs_core::ops::try_cuda_qk_rms_norm_rope_positions has cognitive complexity 56 (threshold 15). Drivers by points: if/else 34 (40 pts), match/switch 8 (10 pts), boolean chains 5, loops 1 (nesting depth added 8). 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":"mistralrs-core/src/ops.rs"},"region":{"startLine":6014}}}],"partialFingerprints":{"codehealthFindingId/v1":"1460f566c4956f9c85a1d460aa2fccf25e803e215d7f9118e394b4f5725cc80d"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::cutile::routed_lora::routed_lora_kernel::routed_lora_one_shot (cognitive 56): mistralrs_quant::cutile::routed_lora::routed_lora_kernel::routed_lora_one_shot has cognitive complexity 56 (threshold 15). Drivers by points: if/else 20 (43 pts), loops 2 (8 pts), boolean chains 5 (nesting depth added 29). 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":"mistralrs-quant/src/cutile/routed_lora.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d4f4a4617ce9b1ac77236bf4fe2219b2fc9311e03e894b6553f09190c278df"}},{"ruleId":"D2","level":"warning","message":{"text":"Model::prepare_inputs_labels_for_multimodal (cognitive 55): Model::prepare_inputs_labels_for_multimodal has cognitive complexity 55 (threshold 15). Drivers by points: if/else 20 (32 pts), loops 9 (19 pts), boolean chains 4 (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":"mistralrs-core/src/vision_models/llava/llava_next.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb456b615a8bc6e613c724b40057ba3d63270cbf59ae567280a235903d1a7992"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::ops::try_cuda_qk_rms_norm_rope (cognitive 55): mistralrs_core::ops::try_cuda_qk_rms_norm_rope has cognitive complexity 55 (threshold 15). Drivers by points: if/else 32 (38 pts), match/switch 9 (11 pts), boolean chains 5, loops 1 (nesting depth added 8). 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":"mistralrs-core/src/ops.rs"},"region":{"startLine":5585}}}],"partialFingerprints":{"codehealthFindingId/v1":"6211f5d41b658253b4d3cacc02ade3d84f61b61338d442e31d09179303e7a424"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::pipeline::isq_flow::plan::resolve_and_install_isq_plan (cognitive 54): mistralrs_core::pipeline::isq_flow::plan::resolve_and_install_isq_plan has cognitive complexity 54 (threshold 15). Drivers by points: if/else 29 (38 pts), boolean chains 14, loops 1 (2 pts) (nesting depth added 10). 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":"mistralrs-core/src/pipeline/isq_flow/plan.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"a382cf285240f2bc3ff7b38b9378cec759d47712b665d44354e72c8cbad0f366"}},{"ruleId":"D2","level":"warning","message":{"text":"Attention::forward (cognitive 53): Attention::forward has cognitive complexity 53 (threshold 15). Drivers by points: if/else 33 (46 pts), match/switch 3 (6 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":"mistralrs-core/src/vision_models/gemma4/text.rs"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"2975c7ab3b182542fd35e115d3c268d8a4d3093a90a3411984ff1cdcbc3a3474"}},{"ruleId":"D2","level":"warning","message":{"text":"LLaVAInputProcessor::process_inputs (cognitive 53): LLaVAInputProcessor::process_inputs has cognitive complexity 53 (threshold 15). Drivers by points: if/else 25 (39 pts), loops 6 (12 pts), boolean chains 2 (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":"mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"8760260418d1819873c4042cae9ce8ce0e6e757d6511a279c0f055cb92c94d3e"}},{"ruleId":"D2","level":"warning","message":{"text":"ShardedSafeTensors::get (cognitive 53): ShardedSafeTensors::get has cognitive complexity 53 (threshold 15). Drivers by points: if/else 19 (46 pts), match/switch 4 (7 pts) (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":"mistralrs-quant/src/safetensors.rs"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f2e71fc380189ca21a80ab57559690908c0db458e6b1a17c0453cbe75f22e6b"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_paged_attn::cuda::backend::flashinfer::flashinfer_decode (cognitive 52): mistralrs_paged_attn::cuda::backend::flashinfer::flashinfer_decode has cognitive complexity 52 (threshold 15). Drivers by points: if/else 21 (24 pts), match/switch 19 (21 pts), boolean chains 6, 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":"mistralrs-paged-attn/src/cuda/backend/flashinfer.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da224e6075c2be0a5b87af1c2ab43cee6dfacfa7d9d2de03bcacb6f43204719"}},{"ruleId":"D2","level":"warning","message":{"text":"GraniteMoeHybrid::forward (cognitive 51): GraniteMoeHybrid::forward has cognitive complexity 51 (threshold 15). Drivers by points: if/else 21 (48 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 28). 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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":2180}}}],"partialFingerprints":{"codehealthFindingId/v1":"1668cd22e2a70b82a11f2dbb1192904217a5e3a41e1ed39b3b303d832b2915aa"}},{"ruleId":"D2","level":"warning","message":{"text":"PrefixCacheManagerV2::search_for_matching_cache (cognitive 51): PrefixCacheManagerV2::search_for_matching_cache has cognitive complexity 51 (threshold 15). Drivers by points: if/else 21 (33 pts), match/switch 4 (10 pts), loops 3 (5 pts), boolean chains 3 (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":"mistralrs-core/src/prefix_cacher.rs"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1678849edbe54293ec00c2d15e216e24646e98b376d42868371c0a6d839b39c"}},{"ruleId":"D2","level":"warning","message":{"text":"Llama4Model::forward (cognitive 51): Llama4Model::forward has cognitive complexity 51 (threshold 15). Drivers by points: if/else 16 (39 pts), loops 3 (9 pts), boolean chains 3 (nesting depth added 29). 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":"mistralrs-core/src/vision_models/llama4/mod.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"b23262c96ccfd174aa4eaf6e71bb38c60762120236e0c9744f88dcc1d57be508"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::attention::backends::cpu::mask::mask_offset (cognitive 51): mistralrs_core::attention::backends::cpu::mask::mask_offset has cognitive complexity 51 (threshold 15). Drivers by points: if/else 27 (42 pts), boolean chains 6, loops 1 (2 pts), 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":"mistralrs-core/src/attention/backends/cpu/mask.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0758c7dd707b74fce38f53dabc3da1cc5066022abab8d42a358c7e5640656b"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_server_core::responses::convert_input_items_to_messages (cognitive 51): mistralrs_server_core::responses::convert_input_items_to_messages has cognitive complexity 51 (threshold 15). Drivers by points: match/switch 6 (25 pts), if/else 8 (21 pts), loops 2 (5 pts) (nesting depth added 35). 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":"mistralrs-server-core/src/responses.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"0697ba7b30621e4242e6cc8b278187766f24b085ff6d62ec1a80e0ab51d0beca"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::gptq::gptq_cuda::gptq_linear (cognitive 50): mistralrs_quant::gptq::gptq_cuda::gptq_linear has cognitive complexity 50 (threshold 15). Drivers by points: if/else 32 (41 pts), boolean chains 5, loops 2 (4 pts) (nesting depth added 11). Of this number, 42 points are the body\u0027s own statements and 8 belong to 2 function items inside it that branch. 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":"mistralrs-quant/src/gptq/gptq_cuda.rs"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb55c7d508f133cddc6ab6a4c3af5138e59589c858f97cb67815819e3cb38a7"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_cli::commands::doctor::run_doctor (cognitive 49): mistralrs_cli::commands::doctor::run_doctor has cognitive complexity 49 (threshold 15). Drivers by points: if/else 30 (41 pts), match/switch 2 (5 pts), loops 2 (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":"mistralrs-cli/src/commands/doctor.rs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"a44525c8a5c832f8e44fe677d4cce3c03a774395a3f00357daab9921e7c53d4d"}},{"ruleId":"D2","level":"warning","message":{"text":"Idefics2ImageProcessor::process_inputs (cognitive 48): Idefics2ImageProcessor::process_inputs has cognitive complexity 48 (threshold 15). Drivers by points: if/else 24 (41 pts), loops 2 (4 pts), boolean chains 3 (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":"mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"e41c252d073833d7feacbb9b0ed9517ba962b1a7907c7654bd8dcd831369bfdf"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::pipeline::inputs_processor::text_models_inputs_processor::make_completion_chunk (cognitive 48): mistralrs_core::pipeline::inputs_processor::text_models_inputs_processor::make_completion_chunk has cognitive complexity 48 (threshold 15). Drivers by points: if/else 21 (31 pts), loops 3 (7 pts), match/switch 3 (6 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":"mistralrs-core/src/pipeline/inputs_processor.rs"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e709a8b2a05407a9cb86b590b358418aaeed23765ef496fdd00ce4e41e8eb74"}},{"ruleId":"D2","level":"warning","message":{"text":"bench_decode_serving.validate_args (cognitive 48): bench_decode_serving.validate_args has cognitive complexity 48 (threshold 15). Drivers by points: if/else 27 (35 pts), boolean chains 12, loops 1 (nesting depth added 8). 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":"releases/v0.9.3/scripts/bench_decode_serving.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"91fc8dbf66a49c20fb3506125363b44d87e5895d1154fa6b954c4262042f33d0"}},{"ruleId":"D2","level":"warning","message":{"text":"HybridCacheManager::clone_in_cache (cognitive 47): HybridCacheManager::clone_in_cache has cognitive complexity 47 (threshold 15). Drivers by points: if/else 12 (38 pts), match/switch 1 (5 pts), loops 2 (4 pts) (nesting depth added 32). 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":"mistralrs-core/src/kv_cache/mod.rs"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0b803c0e0a6b2c31b7ed07c667955250d0fd8dbd862883eaa8c1543362e7d5"}},{"ruleId":"D2","level":"warning","message":{"text":"Idefics3Model::forward_inner (cognitive 47): Idefics3Model::forward_inner has cognitive complexity 47 (threshold 15). Drivers by points: if/else 15 (32 pts), loops 5 (14 pts), boolean chains 1 (nesting depth added 26). 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":"mistralrs-core/src/vision_models/idefics3/mod.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"970929cf84a2fed13f532aceacf3709ad670b75cfdf74e33466abf02f95cf356"}},{"ruleId":"D2","level":"warning","message":{"text":"Phi4MMInputsProcessor::process_image_batch (cognitive 47): Phi4MMInputsProcessor::process_image_batch has cognitive complexity 47 (threshold 15). Drivers by points: if/else 17 (40 pts), loops 2 (3 pts), boolean chains 2, match/switch 1 (2 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":"mistralrs-core/src/vision_models/phi4/inputs_processor.rs"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"717c541cfb51d458d64b51ede04d38b415a40feadd0b7f3bd43ba8d8bb46d617"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen2VLModel::compute_rope_index (cognitive 47): Qwen2VLModel::compute_rope_index has cognitive complexity 47 (threshold 15). Drivers by points: loops 9 (27 pts), if/else 7 (16 pts), boolean chains 3, match/switch 1 (nesting depth added 27). 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":"mistralrs-core/src/vision_models/qwen2vl/mod.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"6777b122f52302b7e6e6036f7802e212f4b05cff7d140f0ce82291e4da17fa89"}},{"ruleId":"D2","level":"warning","message":{"text":"MLlamaImageProcessor::process_inputs (cognitive 46): MLlamaImageProcessor::process_inputs has cognitive complexity 46 (threshold 15). Drivers by points: if/else 21 (29 pts), boolean chains 9, match/switch 3 (6 pts), loops 1 (2 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":"mistralrs-core/src/vision_models/mllama/inputs_processor.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"067ee3db98d4f2cb1965dfff487d1d0b86276a9896fc727322013902d2e5876a"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::distributed::prepare_distributed_mapper (cognitive 46): mistralrs_core::distributed::prepare_distributed_mapper has cognitive complexity 46 (threshold 15). Drivers by points: if/else 26 (35 pts), loops 3 (6 pts), boolean chains 4, 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":"mistralrs-core/src/distributed.rs"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"acddfed6429efb1f0c0577bbdea493d36d53dcc64f621fe0eea0ba5ce21e0c39"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_paged_attn::cuda::backend::cache::copy_blocks (cognitive 46): mistralrs_paged_attn::cuda::backend::cache::copy_blocks has cognitive complexity 46 (threshold 15). Drivers by points: if/else 18 (27 pts), boolean chains 9, loops 5 (7 pts), match/switch 2 (3 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":"mistralrs-paged-attn/src/cuda/backend/cache.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0111b6a6bce94c07c8f4c283796cdc119462ed428b7220cb126c0922a53d20"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_server_core::audio_history::decorate_responses (cognitive 46): mistralrs_server_core::audio_history::decorate_responses has cognitive complexity 46 (threshold 15). Drivers by points: if/else 7 (27 pts), loops 4 (11 pts), match/switch 3 (7 pts), boolean chains 1 (nesting depth added 31). 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":"mistralrs-server-core/src/audio_history.rs"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"48791e3eaab6fd4422034c020085a4381c08e8ec67af37503e9a01c0dade7289"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::vision_models::lfm3_d1::prompt::render_question (cognitive 45): mistralrs_core::vision_models::lfm3_d1::prompt::render_question has cognitive complexity 45 (threshold 15). Drivers by points: if/else 16 (29 pts), loops 4 (9 pts), match/switch 4 (6 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":"mistralrs-core/src/vision_models/lfm3_d1/prompt.rs"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"f401152ba4064780c22233b198292cc14e78679837e3532b721ae371b96462da"}},{"ruleId":"D2","level":"warning","message":{"text":"CudaGraphCaptureMemory::shape (cognitive 44): CudaGraphCaptureMemory::shape has cognitive complexity 44 (threshold 15). Drivers by points: if/else 13 (35 pts), boolean chains 5, loops 3 (4 pts) (nesting depth added 23). 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":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"7571868d19dce9c7129ac95e027fc950868d5c33c405a0114d6be5b499071194"}},{"ruleId":"D2","level":"warning","message":{"text":"LLaVANextInputProcessor::process_inputs (cognitive 44): LLaVANextInputProcessor::process_inputs has cognitive complexity 44 (threshold 15). Drivers by points: if/else 25 (37 pts), loops 3 (4 pts), boolean chains 3 (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":"mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"033beea9dea25aaf8399b3c5b9f18734971ebbbcb25c3577d91f4de6506e61ee"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::speculative::driver::verify_staged_batch (cognitive 44): mistralrs_core::speculative::driver::verify_staged_batch has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17 (31 pts), loops 10 (11 pts), boolean chains 2 (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":"mistralrs-core/src/speculative/driver.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ddb9d193e49c77f8361e498a9453d2ef2bd376aea5f6bef291cd84210e68c3f"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::mxfp4::ops::mxfp4_indexed_moe_gemm (cognitive 44): mistralrs_quant::mxfp4::ops::mxfp4_indexed_moe_gemm has cognitive complexity 44 (threshold 15). Drivers by points: if/else 25 (30 pts), match/switch 9 (12 pts), boolean chains 2 (nesting depth added 8). 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":"mistralrs-quant/src/mxfp4/ops.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7ce53b24c579a4a82c202791d823626757314bf5b7b271c8d98a790b28aee5"}},{"ruleId":"D2","level":"warning","message":{"text":"Gemma3nAudioAttention::forward (cognitive 43): Gemma3nAudioAttention::forward has cognitive complexity 43 (threshold 15). Drivers by points: if/else 21 (32 pts), boolean chains 5, match/switch 3 (4 pts), loops 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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fa61857d15e74da4da3632b3a7832e67d43df44661ecf35e5d568346dbfe5b5"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::speculative::hybrid_state::replay_gdn_prefixes (cognitive 43): mistralrs_core::speculative::hybrid_state::replay_gdn_prefixes has cognitive complexity 43 (threshold 15). Drivers by points: if/else 17 (31 pts), loops 4 (7 pts), boolean chains 4, match/switch 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":"mistralrs-core/src/speculative/hybrid_state.rs"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"f76ed6e8cfa48d00c313346086465e0e0851f4d79526546dde0ccb0630e90c9b"}},{"ruleId":"D2","level":"warning","message":{"text":"Model::forward_hidden (cognitive 42): Model::forward_hidden has cognitive complexity 42 (threshold 15). Drivers by points: if/else 18 (36 pts), boolean chains 3, match/switch 1 (2 pts), loops 1 (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":"mistralrs-core/src/models/lfm3.rs"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"27321979414569d4ae3052b6a618c2de19e55871808099ae162d65f664c1abdc"}},{"ruleId":"D2","level":"warning","message":{"text":"Model::forward (cognitive 42): Model::forward has cognitive complexity 42 (threshold 15). Drivers by points: if/else 19 (38 pts), match/switch 1 (2 pts), boolean chains 1, 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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"579c8a9ff6011bb06edf6457c26175e71c3fda59cb47619892261c1a948a0d1b"}},{"ruleId":"D2","level":"warning","message":{"text":"PagedAttention::cuda_fwd_t (cognitive 42): PagedAttention::cuda_fwd_t has cognitive complexity 42 (threshold 15). Drivers by points: if/else 22 (23 pts), match/switch 11 (16 pts), boolean chains 3 (nesting depth added 6). 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":"mistralrs-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"549d8e6d3bc67498a737b7eb3edfe558aa28bc46e8d21959fcd9341e6bb1d836"}},{"ruleId":"D2","level":"warning","message":{"text":"CublasLTBatchMatmulF8Scalar::fwd_f8e4m3_scalar (cognitive 42): CublasLTBatchMatmulF8Scalar::fwd_f8e4m3_scalar has cognitive complexity 42 (threshold 15). Drivers by points: if/else 18 (31 pts), match/switch 5 (7 pts), boolean chains 3, loops 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":"mistralrs-quant/src/cublaslt/api.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3ebe7603c054bd13f747c5b93a014d58d6b0ebfeed952dbc607c9032c5a79b"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::gguf::normal_bindings::bind_block_tensor (cognitive 41): mistralrs_core::gguf::normal_bindings::bind_block_tensor has cognitive complexity 41 (threshold 15). Drivers by points: if/else 11 (21 pts), match/switch 6 (11 pts), boolean chains 9 (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":"mistralrs-core/src/gguf/normal_bindings.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"34606e02fd52c64df80c361c7fb172b140eb3bdbcb3cd9896c56fc834651cb6c"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::paged_attention::plan::prompt_prefill_workspace (cognitive 41): mistralrs_core::paged_attention::plan::prompt_prefill_workspace has cognitive complexity 41 (threshold 15). Drivers by points: if/else 17 (28 pts), boolean chains 11, loops 1, match/switch 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":"mistralrs-core/src/paged_attention/plan.rs"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e9556e735ba009a45c970cb6652995139c4eb3a04fa07f34a50eed1c5c401e4"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::pipeline::chat_template::calculate_eos_tokens (cognitive 41): mistralrs_core::pipeline::chat_template::calculate_eos_tokens has cognitive complexity 41 (threshold 15). Drivers by points: if/else 9 (23 pts), loops 5 (10 pts), match/switch 2 (6 pts), boolean chains 2 (nesting depth added 23). 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":"mistralrs-core/src/pipeline/chat_template.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a42604fa8c15d3d3e93c6fa57e780cb86b5b1a5c457453ca17267922249b32"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::pipeline::isq::write_uqff_metadata (cognitive 41): mistralrs_core::pipeline::isq::write_uqff_metadata has cognitive complexity 41 (threshold 15). Drivers by points: if/else 9 (29 pts), match/switch 2 (9 pts), loops 1 (3 pts) (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":"mistralrs-core/src/pipeline/isq.rs"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"199b358953b7d4fd2832be7e56a75fa99786cdf1b9a1b82b6cfd6f5d7d8efb7e"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::vision_models::diffusion_gemma::generation::generate_canvas (cognitive 41): mistralrs_core::vision_models::diffusion_gemma::generation::generate_canvas has cognitive complexity 41 (threshold 15). Drivers by points: if/else 14 (26 pts), loops 4 (10 pts), boolean chains 5 (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":"mistralrs-core/src/vision_models/diffusion_gemma/generation.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"221cb4580baada55d74af0cf7978810457beb56bb2a82d9c06848f430094d25a"}},{"ruleId":"D2","level":"warning","message":{"text":"PagedAttention::metal_fwd (cognitive 41): PagedAttention::metal_fwd has cognitive complexity 41 (threshold 15). Drivers by points: if/else 19 (22 pts), match/switch 10 (14 pts), boolean chains 5 (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, 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":"mistralrs-paged-attn/src/metal/backend/paged_attention.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"b204cd1c820c41c81ec9250a7e99b9f79e822dd84e64038e79412d140398bda7"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockwiseFP8Linear::forward_raw (cognitive 41): BlockwiseFP8Linear::forward_raw has cognitive complexity 41 (threshold 15). Drivers by points: if/else 20 (33 pts), boolean chains 4, match/switch 2 (4 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":"mistralrs-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff3ac0e5e964cc15ac8d7c266c85d3ab377281b4b7c7606fe77674b61d255500"}},{"ruleId":"D2","level":"warning","message":{"text":"Nvfp4Layer::from_normalized_parts (cognitive 41): Nvfp4Layer::from_normalized_parts has cognitive complexity 41 (threshold 15). Drivers by points: if/else 25 (30 pts), boolean chains 9, loops 1, match/switch 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":"mistralrs-quant/src/nvfp4/mod.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6e4997bfddc2a5cf5c33f3c401b32226c42be0453b0238ac241812fe77a76db"}},{"ruleId":"D2","level":"warning","message":{"text":"Sdpa::run_attention_noflash (cognitive 40): Sdpa::run_attention_noflash has cognitive complexity 40 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 12, match/switch 3 (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":"mistralrs-core/src/attention/mod.rs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d5551fd552917aa2506b2586b9d2ba4fb69ce38fe7703ad568ba9d036524e6"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::ops::cuda_dflash_sample_select (cognitive 40): mistralrs_core::ops::cuda_dflash_sample_select has cognitive complexity 40 (threshold 15). Drivers by points: if/else 23 (26 pts), match/switch 8, boolean chains 4, loops 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":"mistralrs-core/src/ops.rs"},"region":{"startLine":1710}}}],"partialFingerprints":{"codehealthFindingId/v1":"23adf53f9d64ca928011017cf5bb2c5b14661645becfda09b77db5b1643c3f1b"}},{"ruleId":"D2","level":"warning","message":{"text":"HybridCacheManager::clone_out_cache (cognitive 39): HybridCacheManager::clone_out_cache has cognitive complexity 39 (threshold 15). Drivers by points: if/else 6 (21 pts), loops 3 (11 pts), match/switch 1 (6 pts), boolean chains 1 (nesting depth added 28). 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":"mistralrs-core/src/kv_cache/mod.rs"},"region":{"startLine":1285}}}],"partialFingerprints":{"codehealthFindingId/v1":"a37849ed69c52bd43bdf3986be36e24b8aee40dc1752a249d74c7c6ae0f3efb6"}},{"ruleId":"D2","level":"warning","message":{"text":"Sampler::apply_dry_penalty (cognitive 39): Sampler::apply_dry_penalty has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (32 pts), loops 3 (7 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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":2040}}}],"partialFingerprints":{"codehealthFindingId/v1":"573efaf22a0a82bb67e8ff72dbc6005e905aa654cf431b642804563615a2acd5"}},{"ruleId":"D2","level":"warning","message":{"text":"Llama4ImageProcessor::process_inputs (cognitive 39): Llama4ImageProcessor::process_inputs has cognitive complexity 39 (threshold 15). Drivers by points: if/else 19 (31 pts), loops 3 (7 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":"mistralrs-core/src/vision_models/llama4/inputs_processor.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a25a0134a097b20b7cff6f230fecb4ecea351d00add0b41854bfc01112da071"}},{"ruleId":"D2","level":"warning","message":{"text":"Mistral3ImageProcessor::process_inputs (cognitive 39): Mistral3ImageProcessor::process_inputs has cognitive complexity 39 (threshold 15). Drivers by points: if/else 26 (36 pts), loops 1 (2 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":"mistralrs-core/src/vision_models/mistral3/inputs_processor.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ab1522e215a8fe1cb8bf422194ed0754b0a7bbe305e39e3bded59c1683c15e"}},{"ruleId":"D2","level":"warning","message":{"text":"UnquantLinear::apply_isq (cognitive 39): UnquantLinear::apply_isq has cognitive complexity 39 (threshold 15). Drivers by points: if/else 17 (29 pts), match/switch 4 (8 pts), boolean chains 2 (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":"mistralrs-quant/src/unquantized/mod.rs"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"add38a82639c246da70f9458e1d301913a9c93e501ad74e7399515b41f063c08"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::gguf::weight_source::infer_binding_shape (cognitive 39): mistralrs_quant::gguf::weight_source::infer_binding_shape has cognitive complexity 39 (threshold 15). Drivers by points: if/else 14 (30 pts), boolean chains 4, loops 2 (4 pts), match/switch 1 (nesting depth added 18). 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":"mistralrs-quant/src/gguf/weight_source.rs"},"region":{"startLine":1193}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7377166d35742047fe1ee888187e67a02ed4acee8ef064c13f46e3ca1f0cd1d"}},{"ruleId":"D2","level":"warning","message":{"text":"Gemma4AudioAttention::forward (cognitive 38): Gemma4AudioAttention::forward has cognitive complexity 38 (threshold 15). Drivers by points: if/else 20 (29 pts), boolean chains 4, match/switch 2 (3 pts), loops 1 (2 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":"mistralrs-core/src/vision_models/gemma4/audio.rs"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"82448dd4ba670f1a93722c3bd9c876fc0871229292ab7a2d78526f6c52504287"}},{"ruleId":"D2","level":"warning","message":{"text":"VoxtralInputsProcessor::process_inputs (cognitive 38): VoxtralInputsProcessor::process_inputs has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17 (32 pts), loops 3 (6 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":"mistralrs-core/src/vision_models/voxtral/inputs_processor.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab9cc493d794cecfc0eeecf091c6354275c368ae7058895917ae975552b5a73"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::attention::backends::cpu::single_q::compute_group_range (cognitive 38): mistralrs_core::attention::backends::cpu::single_q::compute_group_range has cognitive complexity 38 (threshold 15). Drivers by points: loops 8 (21 pts), if/else 5 (17 pts) (nesting depth added 25). 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":"mistralrs-core/src/attention/backends/cpu/single_q.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ffef37edc7eb028e1fda2c7f797039134867df975b6fea55d551847164048f"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::gguf::generation_config::generation_config_from_metadata (cognitive 38): mistralrs_core::gguf::generation_config::generation_config_from_metadata has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (28 pts), loops 4 (7 pts), match/switch 1 (3 pts) (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":"mistralrs-core/src/gguf/generation_config.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb6c238efb805e1fa4ebb3dabbbd73e151c0eb40e011c5b238e94263c1f1f2a5"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::pipeline::chat_template::preprocess_gemma4_tool_messages (cognitive 38): mistralrs_core::pipeline::chat_template::preprocess_gemma4_tool_messages has cognitive complexity 38 (threshold 15). Drivers by points: if/else 5 (16 pts), match/switch 6 (13 pts), loops 3 (7 pts), boolean chains 2 (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":"mistralrs-core/src/pipeline/chat_template.rs"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b6e12a459c189cfbbc20b2c7ed51ac7f07a53a53ee7a7cac256ecbb2202e6b"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::vision_models::lfm3_d1::parsing::parse_date_inner (cognitive 38): mistralrs_core::vision_models::lfm3_d1::parsing::parse_date_inner has cognitive complexity 38 (threshold 15). Drivers by points: if/else 19 (33 pts), boolean chains 5 (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":"mistralrs-core/src/vision_models/lfm3_d1/parsing.rs"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"46acccc6ecd6bb44f44a7fd2a4f60a952795ff80a6fa84c6c719cbb2e10e2355"}},{"ruleId":"D2","level":"warning","message":{"text":"CumSum::cpu_fwd (cognitive 38): CumSum::cpu_fwd has cognitive complexity 38 (threshold 15). Drivers by points: loops 8 (28 pts), if/else 7 (9 pts), match/switch 1 (nesting depth added 22). 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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"76425ee8c03c43698be25468cd35d3d27b99dd42a284e27bc6d73109d6ee09a9"}},{"ruleId":"D2","level":"warning","message":{"text":"CacheEngine::allocate_gpu_cache (cognitive 37): CacheEngine::allocate_gpu_cache has cognitive complexity 37 (threshold 15). Drivers by points: if/else 17 (31 pts), boolean chains 3, match/switch 1 (2 pts), loops 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":"mistralrs-core/src/paged_attention/cache_engine.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"10ef9121a5710f69f44d49d5f3e7791d90e9ed3306947873d013e79a0d3023ac"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::cuda::gdn::speculative_transition_commit_batched_cuda::cuda_commit (cognitive 37): mistralrs_core::cuda::gdn::speculative_transition_commit_batched_cuda::cuda_commit has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 8, match/switch 3 (4 pts), 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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":4980}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0279fa68a4eabf16df1881d2efd7445c3e0e68e0d4005652d38b2798331a6d6"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::engine::tool_dispatch::execute_search (cognitive 37): mistralrs_core::engine::tool_dispatch::execute_search has cognitive complexity 37 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 4 (10 pts), match/switch 3 (5 pts) (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":"mistralrs-core/src/engine/tool_dispatch.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f9eaadfdf2ceff88c2fa268f451599238efe9b0bae787083cc4e863be865cf4"}},{"ruleId":"D2","level":"warning","message":{"text":"ManagedEmbedding::prepare_mapped (cognitive 37): ManagedEmbedding::prepare_mapped has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 5 (14 pts) (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":"mistralrs-quant/src/embedding/storage.rs"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"d24ed5f73281566c1293a84015d87e5c2a34296e88ae5893653ccbc34c98f93a"}},{"ruleId":"D2","level":"warning","message":{"text":"HarmonyContext::extract_delta (cognitive 36): HarmonyContext::extract_delta has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (33 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 22). 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":"mistralrs-core/src/reasoning_parsers/harmony.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb1a5003c1f615ed65d60e215f6a7ec22dc9a45178b4950ced5b4dfed0ed1fd5"}},{"ruleId":"D2","level":"warning","message":{"text":"Phi3InputsProcessor::process_inputs (cognitive 36): Phi3InputsProcessor::process_inputs has cognitive complexity 36 (threshold 15). Drivers by points: if/else 20 (29 pts), loops 3 (4 pts), boolean chains 3 (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":"mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"d64e84ca2467365e052c83c58308c819d813e7f1ef01a7ff6395a5484d85af31"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::cuda::gdn::speculative_conv_checkpoints_cuda::cuda_fwd (cognitive 36): mistralrs_core::cuda::gdn::speculative_conv_checkpoints_cuda::cuda_fwd has cognitive complexity 36 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 12, match/switch 5, loops 2 (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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":3517}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc61a0e16ad59a25c0a322f22086965426ffc2e1574c0ec70d1c8877a1f2ce3"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::pipeline::loaders::activation_memory::model_activation_memory (cognitive 36): mistralrs_core::pipeline::loaders::activation_memory::model_activation_memory has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (24 pts), boolean chains 6, match/switch 2 (5 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":"mistralrs-core/src/pipeline/loaders/activation_memory.rs"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"9206cfca5468a0767a3bb3ab99f0886b849d3443c40da06fb25994eee38b7647"}},{"ruleId":"D2","level":"warning","message":{"text":"LoraConfig::validate_dynamic (cognitive 36): LoraConfig::validate_dynamic has cognitive complexity 36 (threshold 15). Drivers by points: if/else 20 (25 pts), boolean chains 4, loops 3 (4 pts), match/switch 2 (3 pts) (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":"mistralrs-quant/src/lora/mod.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"434b89d5a75f642b4858d1fdf787bb9c01c3d080eee7797f9812db6159ce4813"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::metal_kernels::call_copy_gpu_inplace (cognitive 36): mistralrs_quant::metal_kernels::call_copy_gpu_inplace has cognitive complexity 36 (threshold 15). Drivers by points: if/else 20 (32 pts), match/switch 4 (nesting depth added 12). 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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":2457}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84a5fb573691fe66e49a5be953c9cc36e3e0ecf6ac06057e840dea6516f2ff4"}},{"ruleId":"D2","level":"warning","message":{"text":"MistralRsForServerBuilder::build_multi_model (cognitive 36): MistralRsForServerBuilder::build_multi_model has cognitive complexity 36 (threshold 15). Drivers by points: if/else 27 (34 pts), boolean chains 1, loops 1 (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, 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":"mistralrs-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba59ee4a0d61fcceaf91081064c2e08fc07bb5542265ae4fed97fa915dd404ba"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_cli::commands::run::interactive::stream_assistant_response (cognitive 35): mistralrs_cli::commands::run::interactive::stream_assistant_response has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (30 pts), boolean chains 2, match/switch 1 (2 pts), loops 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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1415}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffaaaaa1706ccc734dfe5fd2566b04119fc2c632c6ff34499ec351928acfadef"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_cli::commands::serve::apply_quant_resolution (cognitive 35): mistralrs_cli::commands::serve::apply_quant_resolution has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (26 pts), boolean chains 9 (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":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"62861ce390cdc2d1e5992cc7aa2d63835d419be07087ff92ab2ae2dfcd4985a1"}},{"ruleId":"D2","level":"warning","message":{"text":"Sdpa::run_attention (cognitive 35): Sdpa::run_attention has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 12, match/switch 3 (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":"mistralrs-core/src/attention/mod.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14cc1ba48935cc9d4a156db37bb0ddf0091ebb4b5ff8c282212e06ae7c555cb"}},{"ruleId":"D2","level":"warning","message":{"text":"PackedMultimodalLayout::new (cognitive 35): PackedMultimodalLayout::new has cognitive complexity 35 (threshold 15). Drivers by points: if/else 6 (22 pts), loops 4 (10 pts), boolean chains 3 (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":"mistralrs-core/src/vision_models/multimodal_layout.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeeb0e385887d223897d3cdcb875ceb4af98d1c241d55aabb990fdce9ae3c748"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::cuda::speculative_rejection::sparse_rejection_cuda_submit (cognitive 35): mistralrs_core::cuda::speculative_rejection::sparse_rejection_cuda_submit has cognitive complexity 35 (threshold 15). Drivers by points: if/else 18 (25 pts), match/switch 5, boolean chains 3, 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":"mistralrs-core/src/cuda/speculative_rejection.rs"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"d65977a2405f0cd7ed359ee938388b5586567794603f1ff68d212df68acce1d2"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::ops::try_cuda_qkv_rms_norm_rope_positions (cognitive 35): mistralrs_core::ops::try_cuda_qkv_rms_norm_rope_positions has cognitive complexity 35 (threshold 15). Drivers by points: if/else 18 (19 pts), match/switch 10, boolean chains 5, loops 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":"mistralrs-core/src/ops.rs"},"region":{"startLine":6347}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ef4969a9ea5a0ff47762f2a7ab880c908697bfc18d54cf085ea65dcb604f3cb"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::pipeline::metal_warmup::prepare_model (cognitive 35): mistralrs_core::pipeline::metal_warmup::prepare_model has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (22 pts), loops 5 (11 pts), boolean chains 2 (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":"mistralrs-core/src/pipeline/metal_warmup.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"3808e4e5185453598e3572779af000dc2dc89b05b28b987fc01d403433ff5611"}},{"ruleId":"D2","level":"warning","message":{"text":"RoutedExperts::forward_grouped (cognitive 35): RoutedExperts::forward_grouped has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (22 pts), match/switch 8 (11 pts), boolean chains 2 (nesting depth added 8). 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":"mistralrs-quant/src/routed_moe/cuda.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f0450140a04668e5cd66f081c5c3ebd0e6fe1900e670ec66538c7541814ce64"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::bitsandbytes::op::d_dequantize_nf4 (cognitive 35): mistralrs_quant::bitsandbytes::op::d_dequantize_nf4 has cognitive complexity 35 (threshold 15). Drivers by points: if/else 23 (35 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":"mistralrs-quant/src/bitsandbytes/op.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfab20ba33018d99defe38e7c943c14ad741e376ada969d0c44b55905f2ef869"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatStore.generateAssistant (cognitive 35): ChatStore.generateAssistant has cognitive complexity 35 (threshold 15). Drivers by points: if/else 16 (23 pts), boolean chains 11, ternaries 1 (nesting depth added 7). Most of this is not in the body itself: 9 of the 35 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 445, appendText, a function literal at line 491, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/stores/chat.svelte.ts"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45e3e727ca2791ad2a984a443670b4563c2528475ddf97ec8c6701f6d27f789"}},{"ruleId":"D2","level":"warning","message":{"text":"MultimodalPipeline::try_cuda_decode_graph_forward (cognitive 34): MultimodalPipeline::try_cuda_decode_graph_forward has cognitive complexity 34 (threshold 15). Drivers by points: if/else 23 (28 pts), boolean chains 6 (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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2129}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd50fa72eabb16160b736c857e40108d3ccf5593354aeec4ff3614a5f65ea07"}},{"ruleId":"D2","level":"warning","message":{"text":"Topology::from_str (cognitive 34): Topology::from_str has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (25 pts), loops 3 (4 pts), match/switch 1 (4 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":"mistralrs-core/src/topology/mod.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1cef8943580c9eac8cff563685184da4b764ab15282e9a384469a1d8fdb0f69"}},{"ruleId":"D2","level":"warning","message":{"text":"TextModel::forward_embeds (cognitive 34): TextModel::forward_embeds has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (15 pts), match/switch 6 (10 pts), boolean chains 8, 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":"mistralrs-core/src/vision_models/gemma3/text.rs"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e5621cd917115d1d3349d13aecd012dde94a73189993ca26bf91050730e6e0"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::attention::backends::cpu::full::compute_full_qblock (cognitive 34): mistralrs_core::attention::backends::cpu::full::compute_full_qblock has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (26 pts), loops 5 (8 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":"mistralrs-core/src/attention/backends/cpu/full.rs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec7f32912c7662aa94b4a6d07ef663e0fcd007eb0c3ea25e47e31ac15ff8698"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::pipeline::chat_template::apply_chat_template_to (cognitive 34): mistralrs_core::pipeline::chat_template::apply_chat_template_to has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 7, loops 3 (5 pts), 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":"mistralrs-core/src/pipeline/chat_template.rs"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf7b41a947096fb52ea19f11de769dff622b9a2228786479e1a45c7d197ef475"}},{"ruleId":"D2","level":"warning","message":{"text":"ReplicatedLayer::new_layers_matformer_indices (cognitive 34): ReplicatedLayer::new_layers_matformer_indices has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (25 pts), match/switch 3 (8 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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":1560}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e9e09759c81ab4aa93c94d28939b24e1d3f7ae8ac78a9f9bbdacb223f6beffd"}},{"ruleId":"D2","level":"warning","message":{"text":"Nvfp4Layer::load_shape (cognitive 34): Nvfp4Layer::load_shape has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (21 pts), match/switch 5 (7 pts), boolean chains 5, loops 1 (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, 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":"mistralrs-quant/src/nvfp4/mod.rs"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"303b368b534d22c76945148eaa7ad63925cffb061a650b7f132aa330941a678e"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::cutile::fused_moe::fused_moe::fused_moe_kernel (cognitive 34): mistralrs_quant::cutile::fused_moe::fused_moe::fused_moe_kernel has cognitive complexity 34 (threshold 15). Drivers by points: if/else 18 (31 pts), loops 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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"948dd169b82a1bc52368392b3fb87ad9e3987edbefd750ce41aa2643e500886a"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::cutile::fused_moe_fp8::fused_moe_fp8::fused_moe_fp8_kernel (cognitive 34): mistralrs_quant::cutile::fused_moe_fp8::fused_moe_fp8::fused_moe_fp8_kernel has cognitive complexity 34 (threshold 15). Drivers by points: if/else 18 (31 pts), loops 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":"mistralrs-quant/src/cutile/fused_moe_fp8.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"c716abe9f5f885af69d0ccc0cb1ad99813cc3cfa147112faf2ad0e02ec99a0ae"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::lora::dynamic::expert_cuda::launch_projection (cognitive 34): mistralrs_quant::lora::dynamic::expert_cuda::launch_projection has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (21 pts), match/switch 4 (7 pts), loops 3 (4 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":"mistralrs-quant/src/lora/dynamic/expert_cuda.rs"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f4f9018c9b55f073b9b523992520241aa4b2a261fce4d8bba954d822a7b66d6"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::metal_kernels::prepare::prepare_afq (cognitive 34): mistralrs_quant::metal_kernels::prepare::prepare_afq has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (22 pts), loops 6 (11 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":"mistralrs-quant/src/metal_kernels/prepare.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a4e8d26eeedb68e1160e0930379e61397da8f9100d37346e56f3851fe80284"}},{"ruleId":"D2","level":"warning","message":{"text":"AnyMoePipeline::amoe_pre_train (cognitive 33): AnyMoePipeline::amoe_pre_train has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 5 (11 pts), match/switch 2 (9 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":"mistralrs-core/src/pipeline/amoe.rs"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"925ac46b5d1034dac3e15eb7f4167db3dd2cb4181142f1225a5e85860188f936"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::attention::backends::cpu::single_q::run_barrier (cognitive 33): mistralrs_core::attention::backends::cpu::single_q::run_barrier has cognitive complexity 33 (threshold 15). Drivers by points: loops 8 (16 pts), if/else 8 (15 pts), boolean chains 2 (nesting depth added 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":"mistralrs-core/src/attention/backends/cpu/single_q.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ab71b5722d81a5a54f9062bf2fdfef9df3f85591d6066d1a30e844f9368c8d"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::ops::cuda_dflash_greedy_select (cognitive 33): mistralrs_core::ops::cuda_dflash_greedy_select has cognitive complexity 33 (threshold 15). Drivers by points: if/else 19 (22 pts), match/switch 6, boolean chains 3, loops 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":"mistralrs-core/src/ops.rs"},"region":{"startLine":1493}}}],"partialFingerprints":{"codehealthFindingId/v1":"28dfdca7353a1fe1e6cd850acbbb5a31444a1410bb6e5aecddcccd05e79cd17f"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::paged_attention::plan::metal_decode_workspace (cognitive 33): mistralrs_core::paged_attention::plan::metal_decode_workspace has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (26 pts), boolean chains 5, loops 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":"mistralrs-core/src/paged_attention/plan.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6df19fd22ebc6707d03f6ae7bb9a524fe19ae8460be89a56a7670e9003b1ef9"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::tuning::auto_tune (cognitive 33): mistralrs_core::tuning::auto_tune has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16 (22 pts), match/switch 4 (5 pts), boolean chains 3, loops 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":"mistralrs-core/src/tuning.rs"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a37be6e38fbe895e1d280929c2e6bb0ff931bcf47161c01ee499f3e0f4b76f"}},{"ruleId":"D2","level":"warning","message":{"text":"ParsedShard::finish (cognitive 33): ParsedShard::finish has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (25 pts), match/switch 2 (4 pts), boolean chains 3, loops 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":"mistralrs-quant/src/gguf/archive.rs"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"9be6b90a769f593d62555fdb573f95d2bd46ac184e5a882dc66a9a6953c19cdf"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::cutile::tune::tune (cognitive 33): mistralrs_quant::cutile::tune::tune has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (16 pts), match/switch 5 (11 pts), loops 2 (4 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":"mistralrs-quant/src/cutile/tune.rs"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"0592d91e92079a84f906e4ff04d1e567e444598b93f42fc5571582bea22e299d"}},{"ruleId":"D2","level":"warning","message":{"text":"Model::forward_embeds (cognitive 32): Model::forward_embeds has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (27 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 15). 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":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":1172}}}],"partialFingerprints":{"codehealthFindingId/v1":"eabf3be241460c9a50cf564d473ed95ac9d0fd5a451daa7bac3b5e5fd355d486"}},{"ruleId":"D2","level":"warning","message":{"text":"Gemma3nModel::forward (cognitive 32): Gemma3nModel::forward has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 2 (6 pts), boolean chains 4, match/switch 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":"mistralrs-core/src/vision_models/gemma3n/mod.rs"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a69790ad90a351a83a7b84168d4937689a023559c0766bff081f80475292eee"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioProcessor::extract_spectrogram (cognitive 32): AudioProcessor::extract_spectrogram has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 5 (14 pts) (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":"mistralrs-core/src/vision_models/gemma4/audio_processing.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b852694c956072ca693c67134f2e51d965358172c16f6cbac061239381525e"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen4ExpModel::forward (cognitive 32): Qwen4ExpModel::forward has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (19 pts), loops 4 (8 pts), match/switch 2 (3 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":"mistralrs-core/src/vision_models/qwen4_exp/mod.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"c257e74964eed4b8582603215fc46e6ab4f635b02184fc2aac3273670cb1296c"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::mxfp4::ops::mxfp4_matmul (cognitive 32): mistralrs_quant::mxfp4::ops::mxfp4_matmul has cognitive complexity 32 (threshold 15). Drivers by points: if/else 17 (21 pts), match/switch 8 (11 pts) (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, 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":"mistralrs-quant/src/mxfp4/ops.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a9bfc393c7d0d06552ec572a249b293115625bf65f9487737e7759b34842dc0"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::cuda::gdn::deferred_recurrence_rmsnorm_gate_cuda (cognitive 31): mistralrs_core::cuda::gdn::deferred_recurrence_rmsnorm_gate_cuda has cognitive complexity 31 (threshold 15). Drivers by points: if/else 18 (20 pts), boolean chains 6, match/switch 2 (3 pts), loops 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, 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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":4368}}}],"partialFingerprints":{"codehealthFindingId/v1":"2252d4826257e4da058d87ceb31ec03b406e989d4f92a44880525d81857d0f83"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::cuda::speculative_rejection::sparse_rejection_cuda_device_with_outcomes (cognitive 31): mistralrs_core::cuda::speculative_rejection::sparse_rejection_cuda_device_with_outcomes has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (17 pts), match/switch 12, boolean chains 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, 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":"mistralrs-core/src/cuda/speculative_rejection.rs"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"95a76113caeb6f7425f887f8077df72dd497da291a0ee923f9d28b296625df4a"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::ops::cuda_rms_norm_residual_then_rms_norm (cognitive 31): mistralrs_core::ops::cuda_rms_norm_residual_then_rms_norm has cognitive complexity 31 (threshold 15). Drivers by points: if/else 19 (21 pts), match/switch 6 (7 pts), boolean chains 3 (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":"mistralrs-core/src/ops.rs"},"region":{"startLine":5337}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe320c41465ddf2b2f8ed4e1bffbec38e80ac94c6cae89f4d013e76e804c83b"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::vision_models::lfm3_d1::parsing::parse_digits (cognitive 31): mistralrs_core::vision_models::lfm3_d1::parsing::parse_digits has cognitive complexity 31 (threshold 15). Drivers by points: if/else 17 (22 pts), boolean chains 9 (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":"mistralrs-core/src/vision_models/lfm3_d1/parsing.rs"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"77703dfdc422af1d28d8171c9caebff8dbf020a46231678637d968d5bbebf78d"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_paged_attn::cuda::backend::gather_kv::gather_kv_cache (cognitive 31): mistralrs_paged_attn::cuda::backend::gather_kv::gather_kv_cache has cognitive complexity 31 (threshold 15). Drivers by points: match/switch 14 (16 pts), if/else 15 (nesting depth added 2). 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":"mistralrs-paged-attn/src/cuda/backend/gather_kv.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0908e4b7ad3d5367309fbb13f95bbf27b4fd6521b9759a5a4a30d0e10f945ed"}},{"ruleId":"D2","level":"warning","message":{"text":"HqqBits::bitpack_type (cognitive 31): HqqBits::bitpack_type has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (19 pts), match/switch 8 (12 pts) (nesting depth added 12). 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":"mistralrs-quant/src/hqq/mod.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc3ccb4e829abb58d32a020d0eddcce0bd7125a1e7dafe313e0432fdeb5f8aeb"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::lora::dynamic::expert::add_expert_delta_reference (cognitive 31): mistralrs_quant::lora::dynamic::expert::add_expert_delta_reference has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (23 pts), boolean chains 4, match/switch 2 (3 pts), 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":"mistralrs-quant/src/lora/dynamic/expert.rs"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eff1ec1dac8aece833c42f1ccc211562f09724f1779808bff7f2613bc742167"}},{"ruleId":"D2","level":"warning","message":{"text":"Attention::forward (cognitive 30): Attention::forward has cognitive complexity 30 (threshold 15). Drivers by points: if/else 18 (24 pts), match/switch 3 (6 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":"mistralrs-core/src/vision_models/gemma3n/text.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf6d768452c952884a47592868b733ca9c3ee65d75a2589eaa32f29ecc29da5"}},{"ruleId":"D2","level":"warning","message":{"text":"Lfm2VlImageProcessor::patchify (cognitive 30): Lfm2VlImageProcessor::patchify has cognitive complexity 30 (threshold 15). Drivers by points: loops 5 (15 pts), if/else 4 (14 pts), boolean chains 1 (nesting depth added 20). 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":"mistralrs-core/src/vision_models/lfm2_vl/inputs_processor.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03143527b2e3bcc4ba272888b7628a2786aa91a6c09a378650a0cf2a69e35bd"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3_5MoeTextModel::forward_embeds (cognitive 30): Qwen3_5MoeTextModel::forward_embeds has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (25 pts), match/switch 2 (3 pts), boolean chains 1, loops 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":"mistralrs-core/src/vision_models/qwen3_5_moe/text.rs"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb04b2a461eebe9c3ee11df65c55ea128ebad4ef1904559cf1970838f11451a"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::ops::cuda_topk_logits_packed_batched_with_workspace (cognitive 30): mistralrs_core::ops::cuda_topk_logits_packed_batched_with_workspace has cognitive complexity 30 (threshold 15). Drivers by points: if/else 24, match/switch 4, boolean chains 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":"mistralrs-core/src/ops.rs"},"region":{"startLine":1040}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5de844902371d03c553086a7a8b18689eb2dba30b10d33b47a14c45993d100e"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::pipeline::isq_flow::online::requantize_from_source (cognitive 30): mistralrs_core::pipeline::isq_flow::online::requantize_from_source has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (15 pts), match/switch 3 (7 pts), boolean chains 4, loops 4 (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":"mistralrs-core/src/pipeline/isq_flow/online.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f3728f86d38410b2f847300f438395c104da932040051c8a88443de0085ffe0"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::vision_models::minicpmo::inputs_processor::parse_prompt_items (cognitive 30): mistralrs_core::vision_models::minicpmo::inputs_processor::parse_prompt_items has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (24 pts), boolean chains 3, match/switch 1 (2 pts), loops 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":"mistralrs-core/src/vision_models/minicpmo/inputs_processor.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea725159582e81a4ccda68d2636b5dcd7831c1989929dbb70cb1c341e23c54bf"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_paged_attn::cuda::backend::mla::flashinfer_mla_decode (cognitive 30): mistralrs_paged_attn::cuda::backend::mla::flashinfer_mla_decode has cognitive complexity 30 (threshold 15). Drivers by points: match/switch 14, if/else 11, boolean chains 5. 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":"mistralrs-paged-attn/src/cuda/backend/mla.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7150c20b4a193046e662bedc9b4efb0a5b4b56ef5e6bdcf625e957d74b2579e"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockwiseFP8Linear::apply_isq (cognitive 30): BlockwiseFP8Linear::apply_isq has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (25 pts), match/switch 3 (5 pts) (nesting depth added 12). 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":"mistralrs-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a809ac8238a08ded3bb87eb7a3bc7fee25bda1513b709ad818562ace52b2d8"}},{"ruleId":"D2","level":"warning","message":{"text":"SumAllReduce::cuda_fwd (cognitive 30): SumAllReduce::cuda_fwd has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (18 pts), match/switch 5 (12 pts) (nesting depth added 19). 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. This shape REPEATS in the file: one other method here (AllGather::cuda_fwd) 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":"mistralrs-quant/src/distributed/mod.rs"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"8346cfe9a0c3d1e7948e75d0ddb0c0ecb4f0952dec0c0711e9405a819dbfa031"}},{"ruleId":"D2","level":"warning","message":{"text":"AllGather::cuda_fwd (cognitive 30): AllGather::cuda_fwd has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (18 pts), match/switch 5 (12 pts) (nesting depth added 19). 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. This shape REPEATS in the file: one other method here (SumAllReduce::cuda_fwd) 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":"mistralrs-quant/src/distributed/mod.rs"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"643f825a4cd5e34556ceef1bde39ce2663ea3fe5648d7d3f1c3c90ea97f23ccc"}},{"ruleId":"D2","level":"warning","message":{"text":"PerTensorFP8Linear::apply_isq (cognitive 30): PerTensorFP8Linear::apply_isq has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (25 pts), match/switch 3 (5 pts) (nesting depth added 12). 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":"mistralrs-quant/src/pertensor_fp8/mod.rs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d7a108e2b30c6bf5ae0bb07a363dc3d1f00a7daa8551ff20b42e742ca9a88eb"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::mxfp4::metal_ops::mxfp4_indexed_moe_gemm (cognitive 30): mistralrs_quant::mxfp4::metal_ops::mxfp4_indexed_moe_gemm has cognitive complexity 30 (threshold 15). Drivers by points: if/else 19 (24 pts), boolean chains 4, match/switch 2 (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":"mistralrs-quant/src/mxfp4/metal_ops.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b5eb46bfc4fab917d66a2ec67da614367ad1f8e9cfc9a31a6464020c2d9b5e"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_server_core::metrics::observe_http (cognitive 30): mistralrs_server_core::metrics::observe_http has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (17 pts), match/switch 4 (7 pts), boolean chains 6 (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, 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":"mistralrs-server-core/src/metrics.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c41841c9f1e53617c3b0b4fb896ca89303abe8aee0ef1558a957d5519293a93"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_cli::commands::run::interactive::agent_approval_callback (cognitive 29): mistralrs_cli::commands::run::interactive::agent_approval_callback has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 3 (10 pts), match/switch 1 (2 pts) (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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1321}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69da4a89509ade15866d71c6e145f358fa5f2bd2a4080e21697e8662d77d5a0"}},{"ruleId":"D2","level":"warning","message":{"text":"GGUFLoader::load_model_from_path (cognitive 29): GGUFLoader::load_model_from_path has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17 (20 pts), match/switch 4 (5 pts), boolean chains 3, loops 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":"mistralrs-core/src/pipeline/gguf.rs"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cdec5d20c52c19545dd02ca23314d2f462ac6936184c02ef6ee17fe6061d565"}},{"ruleId":"D2","level":"warning","message":{"text":"MultimodalPipeline::precapture_cuda_decode_graphs_impl (cognitive 29): MultimodalPipeline::precapture_cuda_decode_graphs_impl has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17 (24 pts), loops 3, 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2360}}}],"partialFingerprints":{"codehealthFindingId/v1":"828f70a8efbe3086972cdf90ad3ffc56df7e84f7552c377f6055779202231276"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::tools::parsers::flint::tool_grammar (cognitive 29): mistralrs_core::tools::parsers::flint::tool_grammar has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (24 pts), loops 2 (5 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":"mistralrs-core/src/tools/parsers/flint.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f46bf78d40b229fa79efff2fee28aaf75d86e6b4da766c10d4ff41eb550968d"}},{"ruleId":"D2","level":"warning","message":{"text":"UnquantLinear::forward_raw (cognitive 29): UnquantLinear::forward_raw has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (21 pts), match/switch 4 (7 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":"mistralrs-quant/src/unquantized/mod.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"d90541b83b7d8efe86604ae3cec1dbedcf3d0e84649e20549e333afb10f77d69"}},{"ruleId":"D2","level":"warning","message":{"text":"SoftmaxWithSinks::cpu_fwd (cognitive 29): SoftmaxWithSinks::cpu_fwd has cognitive complexity 29 (threshold 15). Drivers by points: loops 9 (18 pts), if/else 3 (9 pts), match/switch 2 (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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":1870}}}],"partialFingerprints":{"codehealthFindingId/v1":"33d987a5aae03d08c9f5b3ba192f9d8d478a8b5b393a3754c891bce903c6bbbb"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_cli::commands::run::interactive::text_interactive_mode (cognitive 28): mistralrs_cli::commands::run::interactive::text_interactive_mode has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (19 pts), match/switch 3 (7 pts), boolean chains 1, loops 1 (nesting depth added 14). 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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"930fe5f2f0dbd2f9a8f8277cd92fa8268e25d80978821f7655fa41bce37f546f"}},{"ruleId":"D2","level":"warning","message":{"text":"Engine::new (cognitive 28): Engine::new has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 7, match/switch 4 (5 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":"mistralrs-core/src/engine/mod.rs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca8b52577172ff1a69e44323efe86a733a62d5b4df2987bef0f3c5ca5d11d747"}},{"ruleId":"D2","level":"warning","message":{"text":"PagedAttentionScheduler::select_prompt_batch (cognitive 28): PagedAttentionScheduler::select_prompt_batch has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 12, 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":"mistralrs-core/src/paged_attention/scheduler.rs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"d421f0f8b46c9830b917517b488168af88b29a63e19f1fe03c0850d8f863f12e"}},{"ruleId":"D2","level":"warning","message":{"text":"Gemma3nLoader::non_mapped_size_in_bytes (cognitive 28): Gemma3nLoader::non_mapped_size_in_bytes has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 4 (5 pts), match/switch 1 (3 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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":6002}}}],"partialFingerprints":{"codehealthFindingId/v1":"517e023dc238e45c692afcdc568f7bac1315cffc7c10c7456fe6db0eb69fea30"}},{"ruleId":"D2","level":"warning","message":{"text":"BuiltinMtpProposer::propose (cognitive 28): BuiltinMtpProposer::propose has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 6 (9 pts), boolean chains 4 (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":"mistralrs-core/src/speculative/builtin_mtp.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"184011464534ad26ffc8ccc217e1ec6e2d65691664d08252e2f176ed164a9354"}},{"ruleId":"D2","level":"warning","message":{"text":"VisionModel::position_embeddings (cognitive 28): VisionModel::position_embeddings has cognitive complexity 28 (threshold 15). Drivers by points: loops 7 (28 pts) (nesting depth added 21). 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":"mistralrs-core/src/vision_models/lfm3_vl/vision.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"419d50965e34891cd9469fd71c7440109f9dbeff57f4886e79002564b2fe3099"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::cuda::dflash_context::pack_taps (cognitive 28): mistralrs_core::cuda::dflash_context::pack_taps has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 5, loops 2, match/switch 2 (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":"mistralrs-core/src/cuda/dflash_context.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30ef253efceaffc8d3e077a5468cc1fd20542b24f592e68137d814b7a60af4d"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::distributed::handle_daemon_request (cognitive 28): mistralrs_core::distributed::handle_daemon_request has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (18 pts), match/switch 4 (8 pts), loops 1 (2 pts) (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":"mistralrs-core/src/distributed.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7c174bd08c5d6b6b8e9ea8556ce72a9752fb67e71304627516859e35b0b1758"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::ops::cuda_rms_norm_residual (cognitive 28): mistralrs_core::ops::cuda_rms_norm_residual has cognitive complexity 28 (threshold 15). Drivers by points: if/else 17 (19 pts), match/switch 5 (6 pts), boolean chains 3 (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":"mistralrs-core/src/ops.rs"},"region":{"startLine":4395}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b0c72a32e7fd93efd0c946744579e8e311b3a701c261e1392bdc769d7f9d2c"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::vision_models::lfm3_d1::parsing::parse_number (cognitive 28): mistralrs_core::vision_models::lfm3_d1::parsing::parse_number has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 6, 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":"mistralrs-core/src/vision_models/lfm3_d1/parsing.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8e68c9395027de41604dc8d7abb506706d275ff1db0850f669b118a88bef84"}},{"ruleId":"D2","level":"warning","message":{"text":"DequantizeOp::dequantize_cpu (cognitive 28): DequantizeOp::dequantize_cpu has cognitive complexity 28 (threshold 15). Drivers by points: loops 6 (15 pts), if/else 6 (12 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":"mistralrs-quant/src/bitsandbytes/op.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf5eb5260619384b8bee32ad7e3aef8d28280bd359d06807bc0723691890222e"}},{"ruleId":"D2","level":"warning","message":{"text":"MXFP4Layer::gather_forward_dequantize (cognitive 28): MXFP4Layer::gather_forward_dequantize has cognitive complexity 28 (threshold 15). Drivers by points: loops 6 (19 pts), if/else 5 (9 pts) (nesting depth added 17). 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":"mistralrs-quant/src/mxfp4/mod.rs"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"e537d266476896299d4457262e676ade8c165a85b0076f80f5cf08b733eee902"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_server_core::embeddings::embeddings (cognitive 28): mistralrs_server_core::embeddings::embeddings has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 5 (9 pts), loops 2 (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":"mistralrs-server-core/src/embeddings.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4fc76f7cb8249a092fd1bb030254fddec5b7a27e389a0e8b1fc9fadff318d9d"}},{"ruleId":"D2","level":"warning","message":{"text":"render_pyi._render_class (cognitive 28): render_pyi._render_class has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 5 (9 pts), boolean chains 1, ternaries 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":"docs/scripts/render_pyi.py"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2be876c19ff301aacec86c9ddc116119051e21a3a2be55a06f0509a7b16089"}},{"ruleId":"D2","level":"warning","message":{"text":"NormalCacheManager::set_none_cache (cognitive 27): NormalCacheManager::set_none_cache has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 4 (6 pts), match/switch 2 (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":"mistralrs-core/src/kv_cache/mod.rs"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"de26415f3aaec66784ce6af0f107e57bb856645a52139bb0b82ecdc1e0ab7ab5"}},{"ruleId":"D2","level":"warning","message":{"text":"Attention::forward (cognitive 27): Attention::forward has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (18 pts), match/switch 2 (7 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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee71a1c1305c94d7897c6e539e04fb033886c52a253475b93c24b9abb779925"}},{"ruleId":"D2","level":"warning","message":{"text":"Attention::forward (cognitive 27): Attention::forward has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (18 pts), match/switch 2 (7 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":"mistralrs-core/src/models/deepseek3.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"97cf9e402059cb7e6479d24b00412c5d786e27d0ddeca939d20d576b57a4f367"}},{"ruleId":"D2","level":"warning","message":{"text":"Model::create_anymoe_layers (cognitive 27): Model::create_anymoe_layers has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 4 (5 pts), match/switch 1 (3 pts) (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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df3b5d02fbfd3189928050c9e93e294a7fb7668cc853c856abacc24a6e6998e"}},{"ruleId":"D2","level":"warning","message":{"text":"Model::create_anymoe_layers (cognitive 27): Model::create_anymoe_layers has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 4 (5 pts), match/switch 1 (3 pts) (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":"mistralrs-core/src/models/gemma2.rs"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f12dad2a51bf3448220c16163b36dd02008f6094a3b4f2fe36ade84e53c91cb"}},{"ruleId":"D2","level":"warning","message":{"text":"Model::create_anymoe_layers (cognitive 27): Model::create_anymoe_layers has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 4 (5 pts), match/switch 1 (3 pts) (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":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a94d4bc5ed4941e7b6962d746a3d848b710210a60d0bf9a7fd0c921d942bb8"}},{"ruleId":"D2","level":"warning","message":{"text":"Attention::forward (cognitive 27): Attention::forward has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (18 pts), match/switch 2 (7 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":"mistralrs-core/src/models/glm4_moe_lite.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d4e69cfe2cf2a9d24f8f85150deae058379854a337ec73c361b401e9d58d713"}},{"ruleId":"D2","level":"warning","message":{"text":"Model::create_anymoe_layers (cognitive 27): Model::create_anymoe_layers has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 4 (5 pts), match/switch 1 (3 pts) (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":"mistralrs-core/src/models/hunyuan_v1_dense.rs"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"67cdd18343bda677c13da32436f7ce157b6b88d637632a8e3754e9718dcfe86c"}},{"ruleId":"D2","level":"warning","message":{"text":"Llama::create_anymoe_layers (cognitive 27): Llama::create_anymoe_layers has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 4 (5 pts), match/switch 1 (3 pts) (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":"mistralrs-core/src/models/llama.rs"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"b453a8a6444d48458cf57cb9dbc63463845db6c4d02b3dd16c8f8dd305506dbe"}},{"ruleId":"D2","level":"warning","message":{"text":"Model::create_anymoe_layers (cognitive 27): Model::create_anymoe_layers has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 4 (5 pts), match/switch 1 (3 pts) (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":"mistralrs-core/src/models/mistral.rs"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"693feefbd1de05df887f25e965bc0e538db45b377ff791d58595b2e1a1d8d68d"}},{"ruleId":"D2","level":"warning","message":{"text":"Model::create_anymoe_layers (cognitive 27): Model::create_anymoe_layers has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 4 (5 pts), match/switch 1 (3 pts) (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":"mistralrs-core/src/models/qwen2.rs"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"98194a3748b51e911610cf1a8c3046fd4f6d5fa5e836aed6a3e4ec09f3bb2ddb"}},{"ruleId":"D2","level":"warning","message":{"text":"Model::create_anymoe_layers (cognitive 27): Model::create_anymoe_layers has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 4 (5 pts), match/switch 1 (3 pts) (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":"mistralrs-core/src/models/qwen3.rs"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"535965acda184e34d043872d9c0239f77878f7be37bc1b894859cc3b0df6a89d"}},{"ruleId":"D2","level":"warning","message":{"text":"SmolLm3::create_anymoe_layers (cognitive 27): SmolLm3::create_anymoe_layers has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 4 (5 pts), match/switch 1 (3 pts) (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":"mistralrs-core/src/models/smollm3.rs"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"6647c67868d825223748b3a045e3ca5b1747d5294c0839030cfdc987f925df28"}},{"ruleId":"D2","level":"warning","message":{"text":"CudaGraphDecodeStep::one_token_continuation (cognitive 27): CudaGraphDecodeStep::one_token_continuation has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (23 pts), match/switch 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":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"8696ca91d38b3082507bd4f870a4e68d203af1e2dea5d60df13c9f6af079a4f4"}},{"ruleId":"D2","level":"warning","message":{"text":"TextModel::create_anymoe_layers (cognitive 27): TextModel::create_anymoe_layers has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 4 (5 pts), match/switch 1 (3 pts) (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":"mistralrs-core/src/vision_models/gemma3/text.rs"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"31ad3ce5a241b859462ba922003bce38134a6c3493da6531544092462baf6ad4"}},{"ruleId":"D2","level":"warning","message":{"text":"TextModel::new (cognitive 27): TextModel::new has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17 (21 pts), loops 3 (4 pts), boolean chains 1, match/switch 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":"mistralrs-core/src/vision_models/gemma4/text.rs"},"region":{"startLine":1618}}}],"partialFingerprints":{"codehealthFindingId/v1":"2988a4a16158e0a18ef408f0ade36e7f7bdfea00bafed1d72211f081c3e795e6"}},{"ruleId":"D2","level":"warning","message":{"text":"Llama::create_anymoe_layers (cognitive 27): Llama::create_anymoe_layers has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 4 (5 pts), match/switch 1 (3 pts) (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":"mistralrs-core/src/vision_models/llava/llava_llm/llama.rs"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"00ed821db9a50eeb70a76bd42a94885abee89b5a4df0c4c4474c8c049a34828a"}},{"ruleId":"D2","level":"warning","message":{"text":"Model::create_anymoe_layers (cognitive 27): Model::create_anymoe_layers has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 4 (5 pts), match/switch 1 (3 pts) (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":"mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c82b52d806312a18423f2b16329ffac501900636d72368a8f7241c0f76cb09"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::cuda::gdn::pending_transition_apply_batched_cuda::cuda_apply (cognitive 27): mistralrs_core::cuda::gdn::pending_transition_apply_batched_cuda::cuda_apply has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 7, loops 3 (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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":5664}}}],"partialFingerprints":{"codehealthFindingId/v1":"577cc12d862a1ecffaca3c06bf8b26f1b45580e18987c99ee4bb0c33d21674dc"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::gguf::lfm3_audio_bindings::bind_stack (cognitive 27): mistralrs_core::gguf::lfm3_audio_bindings::bind_stack has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 5 (12 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":"mistralrs-core/src/gguf/lfm3_audio_bindings.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b782778646511a5c4d3a44cd7ad23df232812150e4ed4f473e8b7bd311b3b0"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::gguf::normal_config::build_lfm3 (cognitive 27): mistralrs_core::gguf::normal_config::build_lfm3 has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 3, 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":"mistralrs-core/src/gguf/normal_config.rs"},"region":{"startLine":2077}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f95fd326af5155c16c3e4399b09f2ebdc9c1895d9a0907c12d997edc051b2c6"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::paged_attention::calculate_cache_config (cognitive 27): mistralrs_core::paged_attention::calculate_cache_config has cognitive complexity 27 (threshold 15). Drivers by points: if/else 16 (22 pts), loops 2 (3 pts), boolean chains 1, 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":"mistralrs-core/src/paged_attention/mod.rs"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fec00ac9e81b8184586e15c8e41e93bcb6e958b7d37585a2b32a7baa1022a36"}},{"ruleId":"D2","level":"warning","message":{"text":"FlashAttn::cuda_fwd_t (cognitive 27): FlashAttn::cuda_fwd_t has cognitive complexity 27 (threshold 15). Drivers by points: if/else 19 (21 pts), boolean chains 4, match/switch 1 (2 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":"mistralrs-flash-attn/src/flash.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ee9a814104c55ae01e2baac6f408c9370e906442e65a74b0fa08b57a17340a"}},{"ruleId":"D2","level":"warning","message":{"text":"PreQuantizedExperts::new (cognitive 27): PreQuantizedExperts::new has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (19 pts), match/switch 2 (4 pts), boolean chains 2, loops 1 (2 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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":1939}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc5280fe710047e172a6499ec8e25df1935c60c519f09272e866b093ae3c95a"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::cutile::nvfp4_matmul::prepare_gather_with (cognitive 27): mistralrs_quant::cutile::nvfp4_matmul::prepare_gather_with has cognitive complexity 27 (threshold 15). Drivers by points: if/else 24 (25 pts), boolean chains 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":"mistralrs-quant/src/cutile/nvfp4_matmul.rs"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"6438e8aeeb4cb590305fc67c5977fb1711e86de125078fd9254ad5234d358338"}},{"ruleId":"D2","level":"warning","message":{"text":"bench_decode_serving.plot_summary (cognitive 27): bench_decode_serving.plot_summary has cognitive complexity 27 (threshold 15). Drivers by points: loops 4 (9 pts), if/else 4 (8 pts), ternaries 2 (7 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":"releases/v0.9.3/scripts/bench_decode_serving.py"},"region":{"startLine":1558}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f6419426b4283c6311c6b2f4da01047a546d872041f88fcf414f7189aacef40"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_cli::commands::quantize::generate_model_card (cognitive 26): mistralrs_cli::commands::quantize::generate_model_card has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (24 pts), loops 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":"mistralrs-cli/src/commands/quantize.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a7512788d06238ee096c7a777d71872d61d84efc356448adc9603ece61fc9d"}},{"ruleId":"D2","level":"warning","message":{"text":"GraniteMoeHybrid::new_inner (cognitive 26): GraniteMoeHybrid::new_inner has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (17 pts), match/switch 3 (6 pts), 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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":1940}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1878ed95033c09861b4a09df0aab4d533dab8e608c8435570685fc98e5faa05"}},{"ruleId":"D2","level":"warning","message":{"text":"GgufDeviceMapLoaderInner::layer_sizes_in_bytes (cognitive 26): GgufDeviceMapLoaderInner::layer_sizes_in_bytes has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 1 (4 pts), match/switch 2 (4 pts) (nesting depth added 12). 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":"mistralrs-core/src/utils/gguf_metadata.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd9249def06a2c7e5947c4ca6be12e51e7c6caf72c1df8113b4a03c437822bc"}},{"ruleId":"D2","level":"warning","message":{"text":"TextModel::new (cognitive 26): TextModel::new has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16 (22 pts), loops 3, 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":"mistralrs-core/src/vision_models/gemma3n/text.rs"},"region":{"startLine":1310}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef372d54bcc51ed938b480ca98ab0b09bd00c7062236fb1b9dec5578c4bd2b68"}},{"ruleId":"D2","level":"warning","message":{"text":"DecoderLayer::forward_post_attn (cognitive 26): DecoderLayer::forward_post_attn has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16 (26 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":"mistralrs-core/src/vision_models/gemma4/text.rs"},"region":{"startLine":1208}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d21122c8acbbee89a85e1dc901635d6b4107dc61f226c5702998d3a1b6e05e4"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioEmbedding::forward (cognitive 26): AudioEmbedding::forward has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (24 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":"mistralrs-core/src/vision_models/phi4/audio_embedding.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bae3261c13abbeb197c29cbfab382096ea803b54532cb1411c793099de69f95"}},{"ruleId":"D2","level":"warning","message":{"text":"TextConfig::validate (cognitive 26): TextConfig::validate has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 10 (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":"mistralrs-core/src/vision_models/qwen3_5_moe/config.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ff43e42e8f3d4cea071c74f8cda7629c74ef5344405c3942daa81a17730520"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::cuda::gdn::speculative_transition_stage_batched_cuda::cuda_stage (cognitive 26): mistralrs_core::cuda::gdn::speculative_transition_stage_batched_cuda::cuda_stage has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 8, loops 3 (4 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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":5232}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee66554f00f4355db961890732f12295321181e66e36851fc9272d82d974f36"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::device_map::get_all_similar_devices (cognitive 26): mistralrs_core::device_map::get_all_similar_devices has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 2 (4 pts), match/switch 1 (nesting depth added 14). 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":"mistralrs-core/src/device_map/mod.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8d19fd04bba64ad7bfa488f50bb19445c1be159bd487720add5136dea9c890"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::model_loader::loader_from_model_selected (cognitive 26): mistralrs_core::model_loader::loader_from_model_selected has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 5, 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":"mistralrs-core/src/model_loader.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d57644f7d1b9060e14134f28dbfa29b23330262380b924b1a4f497919df7a19"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::ops::cuda_moe_router_topk (cognitive 26): mistralrs_core::ops::cuda_moe_router_topk has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (17 pts), match/switch 5 (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, 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":"mistralrs-core/src/ops.rs"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"79fe7c60a69bd50afd440399b78a0632af0dc81442cc1a440d7b3295e9d16ff7"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::paged_attention::cache_allocation::allocate_cache (cognitive 26): mistralrs_core::paged_attention::cache_allocation::allocate_cache has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 3 (7 pts) (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":"mistralrs-core/src/paged_attention/cache_allocation.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"e254255ebc52ce69e4033ca2620eb34945af6bb27e012a22b7dd015fc9837eb7"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::pipeline::isq::write_uqff_type (cognitive 26): mistralrs_core::pipeline::isq::write_uqff_type has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 3 (4 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":"mistralrs-core/src/pipeline/isq.rs"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaaa03a8eb91543f79540d37bc090f3762bca631ac0cefe37f465eff12306ce1"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_paged_attn::cuda::backend::paged_attention::update_cache (cognitive 26): mistralrs_paged_attn::cuda::backend::paged_attention::update_cache has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (14 pts), match/switch 9 (11 pts), boolean chains 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":"mistralrs-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c5f756412050de2c074547093d7f0d5d9f0eacee2a08422ec67e5d2d6ef970"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_server_core::chat_completion::serialize_agentic_data (cognitive 26): mistralrs_server_core::chat_completion::serialize_agentic_data has cognitive complexity 26 (threshold 15). Drivers by points: if/else 20 (25 pts), match/switch 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/chat_completion.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"c98f3dbb922d37dcf4eaa121b6bb2f0f3ff9f4b680f9a217b6e5f9f6ef79517a"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_cli::commands::quantize::run_quantize (cognitive 25): mistralrs_cli::commands::quantize::run_quantize has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 3, loops 2 (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":"mistralrs-cli/src/commands/quantize.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"945850010ccf86b41dafff86f0c738ed8f83a7c29e9f4d23ccdc543f7a3e1078"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_cli::commands::tune::run_tune (cognitive 25): mistralrs_cli::commands::tune::run_tune has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (15 pts), loops 3 (5 pts), match/switch 3 (5 pts) (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, 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":"mistralrs-cli/src/commands/tune.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"578c6d296d815a85534197bba271650708dbc11aa6ae0d447780dcfa0f18614a"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_cli::commands::uqff::uqff_groups (cognitive 25): mistralrs_cli::commands::uqff::uqff_groups has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (18 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":"mistralrs-cli/src/commands/uqff.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"632287d87929236e0369f2e99840680e8553be6e4aec621097e1d42a3fd09494"}},{"ruleId":"D2","level":"warning","message":{"text":"CudaPeerAccess::new_cuda (cognitive 25): CudaPeerAccess::new_cuda has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 3 (4 pts), match/switch 1 (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":"mistralrs-core/src/device_map/peer.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b8bc407838ab52e80e51944c1331e2aa0f7815632badc07310f1980636e2451"}},{"ruleId":"D2","level":"warning","message":{"text":"NormalCacheManager::clone_in_cache (cognitive 25): NormalCacheManager::clone_in_cache has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 3 (5 pts), 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":"mistralrs-core/src/kv_cache/mod.rs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f45a74a5925c22ed90495cb8a107b16ba3457169ca3b7285e3e3751bdb31477"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoLoader::detect (cognitive 25): AutoLoader::detect has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (24 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":"mistralrs-core/src/pipeline/auto.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7397d19cf95916194cef4bc7878e5c4a9c2b6eeeac0d81da7abbf0a3e4ab9d5"}},{"ruleId":"D2","level":"warning","message":{"text":"Sampler::apply_freq_pres_rep_penalty (cognitive 25): Sampler::apply_freq_pres_rep_penalty has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 2 (4 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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":1989}}}],"partialFingerprints":{"codehealthFindingId/v1":"58a87258fd88098fe4cc35951f733552e310038717313c9cce72edac86e74123"}},{"ruleId":"D2","level":"warning","message":{"text":"TextModel::forward_embeds (cognitive 25): TextModel::forward_embeds has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (22 pts), loops 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":"mistralrs-core/src/vision_models/gemma3n/text.rs"},"region":{"startLine":1743}}}],"partialFingerprints":{"codehealthFindingId/v1":"e57e77a589284d1688545e07aa78780e7ed2d88ee6195ba210f510b5394e3cb3"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::attention::backends::metal_flash_attn::try_flash_attn_ext_vec_bf16_dk512 (cognitive 25): mistralrs_core::attention::backends::metal_flash_attn::try_flash_attn_ext_vec_bf16_dk512 has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (16 pts), match/switch 4 (6 pts), boolean chains 3 (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":"mistralrs-core/src/attention/backends/metal_flash_attn.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"85305076e7433eac22c999dec8df1d702e48f9fa3fe334a61668cec6983439df"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::engine::cuda_memory::maintain_device (cognitive 25): mistralrs_core::engine::cuda_memory::maintain_device has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 7, match/switch 1 (2 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":"mistralrs-core/src/engine/cuda_memory.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"deee478f1f5f0d1fb02d142d4b53560e7fa3d64e2241eb27b0c703068063556e"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::vision_models::muse_glimmer::inputs_processor::packed_layout (cognitive 25): mistralrs_core::vision_models::muse_glimmer::inputs_processor::packed_layout has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 4 (8 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":"mistralrs-core/src/vision_models/muse_glimmer/inputs_processor.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eb33c79dcb5687fdc398786fba552ebee50f3fc1e62bf20a69a9abbafcc6105"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_paged_attn::metal::backend::paged_attention::reshape_and_cache (cognitive 25): mistralrs_paged_attn::metal::backend::paged_attention::reshape_and_cache has cognitive complexity 25 (threshold 15). Drivers by points: match/switch 9 (11 pts), if/else 8 (10 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":"mistralrs-paged-attn/src/metal/backend/paged_attention.rs"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b7b56609527d1b236d0cf4342d30b234e6c851f9f81eea47be27cd579d614b0"}},{"ruleId":"D2","level":"warning","message":{"text":"GgufMatMul::apply_isq (cognitive 25): GgufMatMul::apply_isq has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (21 pts), match/switch 2 (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":"mistralrs-quant/src/gguf/mod.rs"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"38f084e5e4cb9cabd9977326d0b614e4e61f41fb80ddeac9b659878150605252"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::cutile::nvfp4::validate_input (cognitive 25): mistralrs_quant::cutile::nvfp4::validate_input has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 5, match/switch 1 (2 pts), 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":"mistralrs-quant/src/cutile/nvfp4.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd5f5cd547fcdb9a9639f6b835cd0a03f08df71f4be2dccc8b4d76276c9b63a"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::rotary::cuda::launch_rotary (cognitive 25): mistralrs_quant::rotary::cuda::launch_rotary has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 5, match/switch 2 (3 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":"mistralrs-quant/src/rotary/mod.rs"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef89f1c8eca80b2bda3afb4504e0838dcd6361903525282d98d07ea0bf760c1b"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_server_core::speech_generation::speech_stream (cognitive 25): mistralrs_server_core::speech_generation::speech_stream has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 2 (4 pts), match/switch 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":"mistralrs-server-core/src/speech_generation.rs"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"57365442b2c0fe8861b3a3c5a5c878bdc94539e55e947555aed1f187575a2bc6"}},{"ruleId":"D2","level":"warning","message":{"text":"bench_decode_serving.write_summaries (cognitive 25): bench_decode_serving.write_summaries has cognitive complexity 25 (threshold 15). Drivers by points: if/else 4 (14 pts), loops 5 (11 pts) (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":"releases/v0.9.3/scripts/bench_decode_serving.py"},"region":{"startLine":1511}}}],"partialFingerprints":{"codehealthFindingId/v1":"64bf969083572eb7f51be5cc734f226eca45d4cbab435a1053fc2dd67fddbb3c"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_cli::commands::quantize::resolve_gguf_source (cognitive 24): mistralrs_cli::commands::quantize::resolve_gguf_source has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 5 (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":"mistralrs-cli/src/commands/quantize.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d9ae83965e911a5365a5ac4f2bdca03e0d661ebb2273937f3e7b144704a493"}},{"ruleId":"D2","level":"warning","message":{"text":"NormalCacheManager::clone_out_cache (cognitive 24): NormalCacheManager::clone_out_cache has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (6 pts), match/switch 2 (5 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":"mistralrs-core/src/kv_cache/mod.rs"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae478651ca86a47dadf83849a6eace5322483b255ffb94efcb48360aa84944e"}},{"ruleId":"D2","level":"warning","message":{"text":"MoEExpertsBackend::resolve (cognitive 24): MoEExpertsBackend::resolve has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 4, match/switch 1 (2 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":"mistralrs-core/src/moe/experts/config.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ec9470ba2869bc23570810772d9ddceb7f9c16f2e45e94321f774120199bd5"}},{"ruleId":"D2","level":"warning","message":{"text":"Sampler::sample_topk_on_device_metal (cognitive 24): Sampler::sample_topk_on_device_metal has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 4, loops 2 (4 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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":1649}}}],"partialFingerprints":{"codehealthFindingId/v1":"0570bca47e6aa1a964fef50f81707fcfa1ea88522f18599acfb5bb6f97f63283"}},{"ruleId":"D2","level":"warning","message":{"text":"DFlashDraftModel::prepare_ctx_batch (cognitive 24): DFlashDraftModel::prepare_ctx_batch has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 4 (11 pts) (nesting depth added 10). 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":"mistralrs-core/src/speculative/dflash.rs"},"region":{"startLine":2999}}}],"partialFingerprints":{"codehealthFindingId/v1":"88dbfc81a12cdc7db8f55be24a8123e58c3885cd51bad497357ad57554d37df9"}},{"ruleId":"D2","level":"warning","message":{"text":"GdnTransitionLayers::stage_prefixes (cognitive 24): GdnTransitionLayers::stage_prefixes has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 4, loops 3 (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":"mistralrs-core/src/speculative/gdn_transitions.rs"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"862835fb3040c93da4efe0cd6775ac8f60c26822f34df7f455dff3598e893ead"}},{"ruleId":"D2","level":"warning","message":{"text":"Gemma3nImageProcessor::prepare_prompt_plans (cognitive 24): Gemma3nImageProcessor::prepare_prompt_plans has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 6, 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":"mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"586ce31786ed9285164eb65c7d0dfd9a75c8391d537fc924f4e930190f702e6a"}},{"ruleId":"D2","level":"warning","message":{"text":"Idefics2ImageProcessor::preprocess (cognitive 24): Idefics2ImageProcessor::preprocess has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 4 (5 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":"mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e01ed80e6677ce4a56d14b7947c15ec5ab441aebecc63f641931977c6f90560"}},{"ruleId":"D2","level":"warning","message":{"text":"TextConfig::validate (cognitive 24): TextConfig::validate has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 9 (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":"mistralrs-core/src/vision_models/qwen3_5/config.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"3363c5fe827647f4a85da600a799ce08622f9e7be45ea4984b4508812f677792"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelWeights::from_gguf (cognitive 24): ModelWeights::from_gguf has cognitive complexity 24 (threshold 15). Drivers by points: loops 5 (11 pts), if/else 7 (8 pts), match/switch 1 (3 pts), boolean chains 2 (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":"mistralrs-core/src/xlora_models/quantized_llama.rs"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"370ff299b81562c32aac416aaf4a009161cff42f3606140da3d9009cf7dc013d"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::cuda::gdn::try_fused_vmajor_prefill_recurrence_cuda (cognitive 24): mistralrs_core::cuda::gdn::try_fused_vmajor_prefill_recurrence_cuda has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":2533}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b7117c674e2575342fb959859ced9661f3e576a20a9a424e175d29302c75ea"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::pipeline::chat_template::parse_tool_call_arguments (cognitive 24): mistralrs_core::pipeline::chat_template::parse_tool_call_arguments has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (19 pts), loops 2 (3 pts), match/switch 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":"mistralrs-core/src/pipeline/chat_template.rs"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa23459c98e4e3686d6cc17ef4b67fa6d0a6035e29ef64ddc86ee0abe64c7a2"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::pipeline::paths::get_model_paths (cognitive 24): mistralrs_core::pipeline::paths::get_model_paths has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 4, loops 2 (4 pts), match/switch 1 (nesting depth added 7). 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":"mistralrs-core/src/pipeline/paths.rs"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"47cd61576efea1a080ce1b5b495508090dff27f15bc5bb381528dab8fed1bab2"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::vision_models::muse_glimmer::vision::vision_rope_cos_sin (cognitive 24): mistralrs_core::vision_models::muse_glimmer::vision::vision_rope_cos_sin has cognitive complexity 24 (threshold 15). Drivers by points: loops 8 (21 pts), if/else 2 (3 pts) (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":"mistralrs-core/src/vision_models/muse_glimmer/vision.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"485af1a6bdcebe40ba3e9f01c56f8058ec85e7428fc88259b530c89d70423acf"}},{"ruleId":"D2","level":"warning","message":{"text":"RowParallelLayer::new_with_lora_spec (cognitive 24): RowParallelLayer::new_with_lora_spec has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 2, match/switch 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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"12dedd7721117b18eb4535d57bb4bc6ae6a0268c509a052cf3faea83e67b94dd"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::blockwise_fp8::ops::fused_add_rms_norm_quantized_impl (cognitive 24): mistralrs_quant::blockwise_fp8::ops::fused_add_rms_norm_quantized_impl has cognitive complexity 24 (threshold 15). Drivers by points: if/else 19, boolean chains 5. 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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1733}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9f245347f72249c52d0a630cf7d90e6ea73d5b9d969dc00f10d0ff8dcf7fe67"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::cutile::nvfp4_matmul::launch_dense (cognitive 24): mistralrs_quant::cutile::nvfp4_matmul::launch_dense has cognitive complexity 24 (threshold 15). Drivers by points: if/else 21 (22 pts), match/switch 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":"mistralrs-quant/src/cutile/nvfp4_matmul.rs"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"6544e9f1890d0731f9446c1a1b5dfdced41cee2914aaad48b8f886a048997f36"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::fp8_config::compressed_tensors_spec (cognitive 24): mistralrs_quant::fp8_config::compressed_tensors_spec has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 4, match/switch 3 (4 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":"mistralrs-quant/src/fp8_config.rs"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"723a69fdf2f203088ffe9ac834342db0de59a8b1e70e1a22c71590d6a76b2c9b"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::gguf::group::cuda::dense (cognitive 24): mistralrs_quant::gguf::group::cuda::dense has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (17 pts), match/switch 2 (5 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":"mistralrs-quant/src/gguf/group.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"9426a381b014f5b4dd5eb592078a317e7886a9767344c486ab3d4631a06fc351"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_server_core::openai::normalize_openai_tools (cognitive 24): mistralrs_server_core::openai::normalize_openai_tools has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 2 (6 pts), loops 2 (4 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":"mistralrs-server-core/src/openai.rs"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"d814c059bf5a0e129934419c38c5e593a42ea326ff407091b2339ac2911c7eb2"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_server_core::video::decode_video_ffmpeg (cognitive 24): mistralrs_server_core::video::decode_video_ffmpeg has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (18 pts), match/switch 2 (4 pts), loops 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":"mistralrs-server-core/src/video.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e2274fff691055a8bf17316e7d9ba51d56b21d83a9f54f19cd1a60a9be41b0d"}},{"ruleId":"D2","level":"warning","message":{"text":"render_pyi._parse_doc_sections (cognitive 24): render_pyi._parse_doc_sections has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 2 (3 pts), boolean chains 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":"docs/scripts/render_pyi.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c7dccecbe155e7bebd290bdd1a5d00aa570e436af8c552a4ac58f900d4c7a5c"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_cli::commands::quant::gguf_discovery::resolve_gguf_projector (cognitive 23): mistralrs_cli::commands::quant::gguf_discovery::resolve_gguf_projector has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 2 (6 pts), loops 2 (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":"mistralrs-cli/src/commands/quant/gguf_discovery.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1eb3ea003b3abea058d25674655f85e169ffb274dc7ab5d5da733cddbda40c2"}},{"ruleId":"D2","level":"warning","message":{"text":"RotatingCache::append (cognitive 23): RotatingCache::append has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (22 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":"mistralrs-core/src/kv_cache/rotating_cache.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e4f6b0dc8ba2671d2e1ce177921b53313bef683849f5fdaca0f7e1caeba502e"}},{"ruleId":"D2","level":"warning","message":{"text":"Config::validate (cognitive 23): Config::validate has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 4, loops 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":"mistralrs-core/src/models/hunyuan_v1_moe.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b8ab9899925ff14616c18102df86d57e06cd02fa6c0954010a8e728d4782ce"}},{"ruleId":"D2","level":"warning","message":{"text":"GGUFLoader::infer_multimodal_asset_paths (cognitive 23): GGUFLoader::infer_multimodal_asset_paths has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (14 pts), match/switch 6 (7 pts), boolean chains 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, 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":"mistralrs-core/src/pipeline/gguf.rs"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93df803ee89ccc003433c22869da22daffe8d3d1e6d94229dcc5a43ca227808"}},{"ruleId":"D2","level":"warning","message":{"text":"NormalPipeline::try_cuda_decode_graph_forward (cognitive 23): NormalPipeline::try_cuda_decode_graph_forward has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19 (20 pts), boolean chains 3 (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":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":1886}}}],"partialFingerprints":{"codehealthFindingId/v1":"f34d6a9e639adc78fd03bb067f95a60e83ca686dd68ab74467f0fc45c6373264"}},{"ruleId":"D2","level":"warning","message":{"text":"Sampler::sample_cuda_topk_probabilities (cognitive 23): Sampler::sample_cuda_topk_probabilities has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (6 pts), boolean chains 2 (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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf3c088a68c50ba318c99c3fc52cd5e96ac5e4b066db861ba2cc13af5db886c"}},{"ruleId":"D2","level":"warning","message":{"text":"Sampler::sample_topk_on_device (cognitive 23): Sampler::sample_topk_on_device has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 4, loops 2 (4 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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":1470}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dfcdaf9cd341b773376b3d047e06b7cc56069195c9b17823caf08e4dba5b281"}},{"ruleId":"D2","level":"warning","message":{"text":"SequenceGroup::maybe_send_streaming_response (cognitive 23): SequenceGroup::maybe_send_streaming_response has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 5, 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":"mistralrs-core/src/sequence.rs"},"region":{"startLine":2584}}}],"partialFingerprints":{"codehealthFindingId/v1":"88425f17369fb75337cebdca5eec19d3f52b3cfe5cc0ab3fc938008ebace8ea2"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioModel::forward (cognitive 23): AudioModel::forward has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (17 pts), loops 3 (4 pts), boolean chains 2 (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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":1311}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b4ae67dd4951e27db1ee1e267bb66e1125b66d0b8eba068ed13bc6b9946dfa5"}},{"ruleId":"D2","level":"warning","message":{"text":"Lfm2VlImageProcessor::process_inputs (cognitive 23): Lfm2VlImageProcessor::process_inputs has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17 (21 pts), loops 1 (2 pts) (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":"mistralrs-core/src/vision_models/lfm2_vl/inputs_processor.rs"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"87270751f00a1816b4b2084008dd8b0d3618e2ea132b8d4451e9daaed5d0033e"}},{"ruleId":"D2","level":"warning","message":{"text":"DecisionPrompt::plan (cognitive 23): DecisionPrompt::plan has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 5 (8 pts), boolean chains 4 (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":"mistralrs-core/src/vision_models/lfm3_d1/prompt.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0e85d5b838b605f0554a17eee71abd94e855ae9dafa2739d5b28c56e636a49"}},{"ruleId":"D2","level":"warning","message":{"text":"TextModel::create_anymoe_layers (cognitive 23): TextModel::create_anymoe_layers has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 3 (4 pts), match/switch 1 (3 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":"mistralrs-core/src/vision_models/muse_glimmer/text.rs"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a648b30873ddb6432bc967b5cef0abc27e52d8512595799d35180b613815ab2"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::ops::cuda_topk_ranked_packed_batched_with_workspace (cognitive 23): mistralrs_core::ops::cuda_topk_ranked_packed_batched_with_workspace has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19, match/switch 3, boolean chains 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":"mistralrs-core/src/ops.rs"},"region":{"startLine":1283}}}],"partialFingerprints":{"codehealthFindingId/v1":"d03f1f49c9a168f869012d6a219bd2e449e1b9c5faeb3e6752fa1fa4795a2d7d"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::ops::cuda_top1_logits_submit_inner (cognitive 23): mistralrs_core::ops::cuda_top1_logits_submit_inner has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16 (17 pts), match/switch 4, boolean chains 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":"mistralrs-core/src/ops.rs"},"region":{"startLine":2895}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0ca995b91c9cba16b43c71f8e468865c94cfe609bf1b461723c675d7ce64bd"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::vision_models::llama4::text::causal_mask_values (cognitive 23): mistralrs_core::vision_models::llama4::text::causal_mask_values has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (6 pts), boolean chains 4 (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":"mistralrs-core/src/vision_models/llama4/text.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"96eed97e6adcb08b001f512c9bcf4d085b038fc40ecf3a843c4513841d5c1f3e"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_macros::generate_tool_impl (cognitive 23): mistralrs_macros::generate_tool_impl has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 2, loops 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":"mistralrs-macros/src/lib.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"834a88d4de31f679582a2daea366496093e8e72a8a8466f33fb6d5d703855628"}},{"ruleId":"D2","level":"warning","message":{"text":"MetalPagedPrefillShape::dispatch (cognitive 23): MetalPagedPrefillShape::dispatch has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18 (19 pts), boolean chains 4 (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":"mistralrs-paged-attn/src/metal/backend/paged_prefill.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ab290b1b1a2e2283b66d7cf80f13f71553aa3ff7505cbcb95e130faa8b3812"}},{"ruleId":"D2","level":"warning","message":{"text":"RegisteredShape::warm (cognitive 23): RegisteredShape::warm has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 3 (5 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":"mistralrs-quant/src/cutile/nvfp4.rs"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9ccb17973cb01468107cb381a494896f3b5e5ab0e5cb22ac589c5d095fdcf7"}},{"ruleId":"D2","level":"warning","message":{"text":"RowCodec::decode_row (cognitive 23): RowCodec::decode_row has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 5 (10 pts), match/switch 1 (nesting depth added 11). 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":"mistralrs-quant/src/embedding/mod.rs"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"c06d00401266f94ababbb69d24ed05bcaefcb8299f17003707dbf04ae2b24ccd"}},{"ruleId":"D2","level":"warning","message":{"text":"GptqLayer::gptq_gemm (cognitive 23): GptqLayer::gptq_gemm has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (13 pts), match/switch 6, boolean chains 4 (nesting depth added 3). 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":"mistralrs-quant/src/gptq/gptq_cuda.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"de91aa4a7e7e5a4086f3b5bb8624882c2924098077203d4e23b95874bb44e3be"}},{"ruleId":"D2","level":"warning","message":{"text":"Nvfp4Layer::gather_forward_raw (cognitive 23): Nvfp4Layer::gather_forward_raw has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 6, match/switch 2 (3 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":"mistralrs-quant/src/nvfp4/mod.rs"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"f626e3e4b9cdd6c5e7880b3187ac680534e2e9e0c38a600a02d3f1022427a1ad"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::gguf::fast_mmvq::fused_qkv_optional (cognitive 23): mistralrs_quant::gguf::fast_mmvq::fused_qkv_optional has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17, boolean chains 5, match/switch 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":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"970f7a8797aa00a26a80a4b75a23fee69a1723a47ee38467b96f7e955880f9c1"}},{"ruleId":"D2","level":"warning","message":{"text":"bench_cpu_sweep.main (cognitive 23): bench_cpu_sweep.main has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 5 (11 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":"releases/v0.9.0/scripts/bench_cpu_sweep.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"7afa03833d02f80b4ff63042be01ac546214ed2aca79db5fe555e6892041f88e"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_cli::commands::run::interactive::handle_sampling_command (cognitive 22): mistralrs_cli::commands::run::interactive::handle_sampling_command has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (12 pts), match/switch 3 (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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"abeb02a961999f2a609b299e5e01dc3f32901d6cc582a987fe793ee36ce27ea1"}},{"ruleId":"D2","level":"warning","message":{"text":"IntervalLogger::new (cognitive 22): IntervalLogger::new has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 1, loops 1, match/switch 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":"mistralrs-core/src/engine/logger.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"222abb98fe9b8984503de7836fa66adddcce1be59dd53fbc5a8c1cb5d0a123ad"}},{"ruleId":"D2","level":"warning","message":{"text":"Model::create_anymoe_layers (cognitive 22): Model::create_anymoe_layers has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 4 (5 pts), match/switch 1 (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":"mistralrs-core/src/models/phi2.rs"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac60f882cc9df94eb78e7182b40ab3435f5f37f55e96ec3a5e1917698ef6719"}},{"ruleId":"D2","level":"warning","message":{"text":"Model::create_anymoe_layers (cognitive 22): Model::create_anymoe_layers has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 4 (5 pts), match/switch 1 (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":"mistralrs-core/src/models/phi3.rs"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"095b081684580635a0472f0afa1dab6678fba4d93df00e1d2c099a224f709b23"}},{"ruleId":"D2","level":"warning","message":{"text":"Model::create_anymoe_layers (cognitive 22): Model::create_anymoe_layers has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 4 (5 pts), match/switch 1 (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":"mistralrs-core/src/models/starcoder2.rs"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"891b5151fee332ec02ecdddb37cf37780464ad0f0aaf9f2751a71562d466d2ca"}},{"ruleId":"D2","level":"warning","message":{"text":"MultimodalPipeline::capture_cuda_decode_graph_step (cognitive 22): MultimodalPipeline::capture_cuda_decode_graph_step has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, match/switch 3 (6 pts), boolean chains 2 (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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2549}}}],"partialFingerprints":{"codehealthFindingId/v1":"accbe876e0160f1f6c70282d8a367c5656933a9a0ad98465b63f135a2bc2cce6"}},{"ruleId":"D2","level":"warning","message":{"text":"DFlashDraftModel::geometry_mask (cognitive 22): DFlashDraftModel::geometry_mask has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 2 (3 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":"mistralrs-core/src/speculative/dflash.rs"},"region":{"startLine":3808}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd1552ae0e3923505485bbe828a32fa6283049fadc3822653307afe3375a4d0"}},{"ruleId":"D2","level":"warning","message":{"text":"GdnTransitionLayers::apply_pending (cognitive 22): GdnTransitionLayers::apply_pending has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 4 (7 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":"mistralrs-core/src/speculative/gdn_transitions.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"29e78bdd2f527a0a9be7ab2f200d37bb0e29042c255b7520a71be67730e0a665"}},{"ruleId":"D2","level":"warning","message":{"text":"Mistral3Model::forward (cognitive 22): Mistral3Model::forward has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 2 (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":"mistralrs-core/src/vision_models/mistral3/mod.rs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d91c2d63c30c4c8c5a685efd97d543696eb5d2ae13c61b0551af8eafd155434"}},{"ruleId":"D2","level":"warning","message":{"text":"Model::create_anymoe_layers (cognitive 22): Model::create_anymoe_layers has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 4 (5 pts), match/switch 1 (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":"mistralrs-core/src/vision_models/phi3/mod.rs"},"region":{"startLine":1484}}}],"partialFingerprints":{"codehealthFindingId/v1":"172c5399837db3446330fcd35c54d5681dd89dcc67b4be310ce23637edb9c482"}},{"ruleId":"D2","level":"warning","message":{"text":"VisualEncoder::encode (cognitive 22): VisualEncoder::encode has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 4 (9 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":"mistralrs-core/src/vision_models/qwen3_vl/mod.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc3612284591e17b4dc55d3ab1ab007c1650f26fc48c12595d14d6590ab705ae"}},{"ruleId":"D2","level":"warning","message":{"text":"TextConfig::validate (cognitive 22): TextConfig::validate has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 7 (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":"mistralrs-core/src/vision_models/qwen4_exp/config.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ca94b420d240bf66573063c1eb3bb48e47c54c2c2467c113f931d7650fa428"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::cuda::speculative_rejection::validate_input (cognitive 22): mistralrs_core::cuda::speculative_rejection::validate_input has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 3, loops 2, match/switch 1 (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":"mistralrs-core/src/cuda/speculative_rejection.rs"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed76988df4ff1545fbe0b6846bef53c441f70b8f80ff4034aa2500c41d7d7169"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::gguf::normal_bindings::bind_gpt_oss (cognitive 22): mistralrs_core::gguf::normal_bindings::bind_gpt_oss has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 5, 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":"mistralrs-core/src/gguf/normal_bindings.rs"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d709c2d67b6f9ed51c10ef32feb3946a6e11552c288d5e286e6b2f087a77773"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::kv_cache::try_kv_append_rotating_metal (cognitive 22): mistralrs_core::kv_cache::try_kv_append_rotating_metal has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12, boolean chains 10. 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":"mistralrs-core/src/kv_cache/mod.rs"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c4b41e34d9c29db630517c5b5ce8525dc73a4a39314785dbfc779dfcbd9c49f"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::paged_attention::layers::paged_attention::prefix_gather_causal_mask (cognitive 22): mistralrs_core::paged_attention::layers::paged_attention::prefix_gather_causal_mask has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (6 pts), boolean chains 4 (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":"mistralrs-core/src/paged_attention/layers/paged_attention.rs"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"88073d9e24e3add54bdef8f6a11736f2bab6f321e05acb33c6675d261ae33100"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::pipeline::sampling::try_sample_batch_cuda (cognitive 22): mistralrs_core::pipeline::sampling::try_sample_batch_cuda has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 6, match/switch 2, 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":"mistralrs-core/src/pipeline/sampling.rs"},"region":{"startLine":1298}}}],"partialFingerprints":{"codehealthFindingId/v1":"673568e7926fe28cbdfe3cc0663f45eb36e163fe794ca5bd34a11289537cd5e3"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::vision_models::muse_glimmer::vision::sequence_layout (cognitive 22): mistralrs_core::vision_models::muse_glimmer::vision::sequence_layout has cognitive complexity 22 (threshold 15). Drivers by points: loops 7 (22 pts) (nesting depth added 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":"mistralrs-core/src/vision_models/muse_glimmer/vision.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"1383718c5fd7911c3683dad264b1f697662fc97789572d0e410b1188025783cc"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_paged_attn::metal::backend::paged_attention::prepare_decode_kernels (cognitive 22): mistralrs_paged_attn::metal::backend::paged_attention::prepare_decode_kernels has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 3 (6 pts), match/switch 1 (3 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":"mistralrs-paged-attn/src/metal/backend/paged_attention.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"5be5af39f9527e22e958d1aa6bc1b34ff0f6692bb5cceb7977c9ee32a8e95ca5"}},{"ruleId":"D2","level":"warning","message":{"text":"GgufArchive::merge_components (cognitive 22): GgufArchive::merge_components has cognitive complexity 22 (threshold 15). Drivers by points: if/else 3 (10 pts), loops 5 (8 pts), match/switch 1 (3 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":"mistralrs-quant/src/gguf/archive.rs"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ad9e0552f19850225be7381157304a5b8da72a63daee1f459e4b53384ea7a4"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::cutile::nvfp4_gemv::launch (cognitive 22): mistralrs_quant::cutile::nvfp4_gemv::launch has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15 (17 pts), match/switch 2 (3 pts), boolean chains 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, 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":"mistralrs-quant/src/cutile/nvfp4_gemv.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51292dc3812d625da018873d0654f9864a0c7dc5961c11b343b61159751d379"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::cutile::qsa_decode::decode_shape (cognitive 22): mistralrs_quant::cutile::qsa_decode::decode_shape has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 7 (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":"mistralrs-quant/src/cutile/qsa_decode.rs"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9adada7f2c6a46cfcc168d93e9e3caa7da74c4c162e53dcf92f98cdc80f85d"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::gguf::weight_source::concat_packed_bindings (cognitive 22): mistralrs_quant::gguf::weight_source::concat_packed_bindings has cognitive complexity 22 (threshold 15). Drivers by points: loops 5 (11 pts), if/else 7 (9 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":"mistralrs-quant/src/gguf/weight_source.rs"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"57d1be8211a834653ca5a2dcaa1cd43264ab7962ac10a9dfbe9971aa7ab6ddaf"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::mxfp4::metal_ops::mxfp4_matmul (cognitive 22): mistralrs_quant::mxfp4::metal_ops::mxfp4_matmul has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 2, 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, 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":"mistralrs-quant/src/mxfp4/metal_ops.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"f74b398f1650c647837efdaa0c667bebe6e308587a89fb5d6351435448454f0a"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::uqff::report::scan_group (cognitive 22): mistralrs_quant::uqff::report::scan_group has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 5 (10 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":"mistralrs-quant/src/uqff/report.rs"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"056be551934c7d63fb0e4adf1786f9d35ddf8e731d8be67dffe836a612e357d2"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_server_core::handlers::models (cognitive 22): mistralrs_server_core::handlers::models has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (11 pts), match/switch 4 (8 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":"mistralrs-server-core/src/handlers.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"73733554cc2f77f8212f09c35935809318f056e9e85b5c5770c8503e890c0e4e"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_server_core::mistralrs_for_server_builder::init_mapper (cognitive 22): mistralrs_server_core::mistralrs_for_server_builder::init_mapper has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (7 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":"mistralrs-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":1361}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4fd3854e529d94a5f3835cc496477c84430ce0724bcea7779db6e437846a6e5"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_cli::commands::serve::convert_to_model_selected (cognitive 21): mistralrs_cli::commands::serve::convert_to_model_selected has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (11 pts), match/switch 4 (9 pts), boolean chains 1 (nesting depth added 12). 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":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"447eba9575f25cf37e5a7d2532bd5bdcc3dcc4e701bda551f4c542a7419122ad"}},{"ruleId":"D2","level":"warning","message":{"text":"QLoraLinear::lora_forward (cognitive 21): QLoraLinear::lora_forward has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 2, 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":"mistralrs-core/src/lora/qloralinear.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c8bd03edf90526a9a13b635f86b9fe21e9a3124dd20eea61dc6485f62e56323"}},{"ruleId":"D2","level":"warning","message":{"text":"DiaPipeline::generate (cognitive 21): DiaPipeline::generate has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (4 pts), match/switch 1 (4 pts), boolean chains 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":"mistralrs-core/src/speech_models/dia/mod.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"718af30146eafceb6a321ae305c30529c0c76717a01e2e313b6902cd0fe8c574"}},{"ruleId":"D2","level":"warning","message":{"text":"Gemma3ImageProcessor::prepare_for_paged_prompt_planning (cognitive 21): Gemma3ImageProcessor::prepare_for_paged_prompt_planning has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (18 pts), 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":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7aef86b0c0b9ef82b7b0643c109274a6ab0ca23d2ebd3a184af33d5ce3d28d8"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioProcessor::normalize_mel_spectrogram (cognitive 21): AudioProcessor::normalize_mel_spectrogram has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 4 (10 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":"mistralrs-core/src/vision_models/gemma3n/audio_processing.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"32b68afd38aab099e18e1b02ee885f45e7cbacef23235918763769efd34d161f"}},{"ruleId":"D2","level":"warning","message":{"text":"LLaVAInputProcessor::prepare_for_paged_prompt_planning (cognitive 21): LLaVAInputProcessor::prepare_for_paged_prompt_planning has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 3 (5 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":"mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"130259ec007f2be8f08adfb4c14400bb775ce6cdca46535ac9837e77a474aeec"}},{"ruleId":"D2","level":"warning","message":{"text":"MuseGlimmerImageProcessor::process_inputs (cognitive 21): MuseGlimmerImageProcessor::process_inputs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (14 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 4). 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":"mistralrs-core/src/vision_models/muse_glimmer/inputs_processor.rs"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e5e61d9a71c4c8b40deb702ffb2851a2bf14a47d4bc8c09dead7094859fdc2"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::attention::backends::flash::flash_attn_v2 (cognitive 21): mistralrs_core::attention::backends::flash::flash_attn_v2 has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (20 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":"mistralrs-core/src/attention/backends/flash.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5942bd6e02737a76d0027ff3f716d36f16d2feeb7d772d0cd8016ddebb44d87"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::vision_models::muse_glimmer::vision::interpolation_indices_and_weights (cognitive 21): mistralrs_core::vision_models::muse_glimmer::vision::interpolation_indices_and_weights has cognitive complexity 21 (threshold 15). Drivers by points: loops 6 (21 pts) (nesting depth added 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. This shape REPEATS in the file: one other method here (mistralrs_core::vision_models::muse_glimmer::vision::pixel_shuffle_indices) 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":"mistralrs-core/src/vision_models/muse_glimmer/vision.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"141582d55dddf39140f04cd13c44ee941339fb3f44603ce1b28a792918809d92"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::vision_models::muse_glimmer::vision::pixel_shuffle_indices (cognitive 21): mistralrs_core::vision_models::muse_glimmer::vision::pixel_shuffle_indices has cognitive complexity 21 (threshold 15). Drivers by points: loops 6 (21 pts) (nesting depth added 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. This shape REPEATS in the file: one other method here (mistralrs_core::vision_models::muse_glimmer::vision::interpolation_indices_and_weights) 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":"mistralrs-core/src/vision_models/muse_glimmer/vision.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed6e451c2ec2f7970d9c46a6edf24c20efce0ef2c8b2f9a98ed6857c4874c099"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockwiseFP8Linear::prepare_provider (cognitive 21): BlockwiseFP8Linear::prepare_provider has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 3, match/switch 2 (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":"mistralrs-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0a5e3ff98d8e3f6aec286d6fea9db35186549d7da61dd1da584c6ceb8edd9b"}},{"ruleId":"D2","level":"warning","message":{"text":"Fp8BlockwiseQuantize::dispatch_quant_blockwise (cognitive 21): Fp8BlockwiseQuantize::dispatch_quant_blockwise has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 4 (6 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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b76f49576f5142728b5e6ddb6f07e8fa38bf6e09f8032d9214cd99e286d26b4"}},{"ruleId":"D2","level":"warning","message":{"text":"GgufWeightSource::materialize_mxfp4_component (cognitive 21): GgufWeightSource::materialize_mxfp4_component has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 2 (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":"mistralrs-quant/src/gguf/weight_source.rs"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"5877e3805636ae72a4d9d800205e2e051d27e4e768bd7087ea7e48eb62885da5"}},{"ruleId":"D2","level":"warning","message":{"text":"CpuInputs::run (cognitive 21): CpuInputs::run has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (17 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":"mistralrs-quant/src/lfm3_conv.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9070c65270b01cb315504e32635c69c82fdbc2eee5a0d4f4a951c46810781a"}},{"ruleId":"D2","level":"warning","message":{"text":"RoutedExperts::forward (cognitive 21): RoutedExperts::forward has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (18 pts), match/switch 1 (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":"mistralrs-quant/src/routed_moe/mod.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"69599e86dcdd3f2a3ca473e7904a79047d9be9e5dbe7ca9dfd09fa08b0c972bf"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::cutile::nvfp4_matmul::launch_gather_prepared (cognitive 21): mistralrs_quant::cutile::nvfp4_matmul::launch_gather_prepared has cognitive complexity 21 (threshold 15). Drivers by points: if/else 20, match/switch 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":"mistralrs-quant/src/cutile/nvfp4_matmul.rs"},"region":{"startLine":1110}}}],"partialFingerprints":{"codehealthFindingId/v1":"1828e648864636cf07a28b83a92e6e30268a563c32393533379242c483b00b7b"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::gguf::archive::validate_and_order_splits (cognitive 21): mistralrs_quant::gguf::archive::validate_and_order_splits has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (18 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":"mistralrs-quant/src/gguf/archive.rs"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a7d4de4f47b1662f28b32d983680f291bf7fd7026926c5e58be7956c71c5b3"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::gguf::fast_mmq::shared_lhs (cognitive 21): mistralrs_quant::gguf::fast_mmq::shared_lhs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (18 pts), match/switch 2, loops 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":"mistralrs-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"6108baa08406ee667636d8de7715ff2cb6458a04b31bb317f59ec22e0fb4a693"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::metal_kernels::call_scan (cognitive 21): mistralrs_quant::metal_kernels::call_scan has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15 (19 pts), match/switch 2 (nesting depth added 4). 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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":2089}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc39b0c95c5839afef12b41109de3058850e2f6270baa0da3fc7b2182f762d6d"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::rotary::apply_rotary_cpu_inner (cognitive 21): mistralrs_quant::rotary::apply_rotary_cpu_inner has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (16 pts), loops 2 (3 pts), boolean chains 2 (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":"mistralrs-quant/src/rotary/mod.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca004e214db0ef79c67d1bea9a9948051d8746b7b459fd0ebfc8521a62de4453"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::routed_gemv::cuda::operand (cognitive 21): mistralrs_quant::routed_gemv::cuda::operand has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 2, match/switch 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":"mistralrs-quant/src/routed_gemv/cuda.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd74b4394298d661cc4c81d98cc1d676e8b8b58cc6ea7e584c520588cd169c8"}},{"ruleId":"D2","level":"warning","message":{"text":"merge_results.build_summary (cognitive 21): merge_results.build_summary has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 5 (10 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":"releases/v0.9.3/scripts/merge_results.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f8c7f2fc2cf57edcb56d59c92654f3c6339dae7ada88f03f1750156a4a56fdb"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs::messages::resolve_pending (cognitive 20): mistralrs::messages::resolve_pending has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (3 pts), match/switch 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":"mistralrs/src/messages.rs"},"region":{"startLine":1349}}}],"partialFingerprints":{"codehealthFindingId/v1":"9186a7f81551fb1c19186d607ed49b1f10ae502ecd42a411cf4592e665887c47"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_cli::commands::quant::gguf_discovery::build_groups (cognitive 20): mistralrs_cli::commands::quant::gguf_discovery::build_groups has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 3, 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":"mistralrs-cli/src/commands/quant/gguf_discovery.rs"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca89887b300b1165d4d1b2e0a1c852cbc7f8dc03966ef48038af3064a91e29d3"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_cli::commands::uqff::natural_sort_key (cognitive 20): mistralrs_cli::commands::uqff::natural_sort_key has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (19 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":"mistralrs-cli/src/commands/uqff.rs"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab840eb92b0e59ab0a10c5c66fca01d210f63c57b7ddaeea0909f6aa8cb65fd"}},{"ruleId":"D2","level":"warning","message":{"text":"KvCache::append (cognitive 20): KvCache::append has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (9 pts), match/switch 6 (9 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":"mistralrs-core/src/kv_cache/mod.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"74906a8e8c72db8f6a32dee6067a810c03732963607c707f3ee8ab065eede4ac"}},{"ruleId":"D2","level":"warning","message":{"text":"LoraLinear::lora_forward (cognitive 20): LoraLinear::lora_forward has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (17 pts), loops 1 (2 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":"mistralrs-core/src/lora/loralinear.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"7291d38b83ebcf9e6ea651375a67ce117c55faa7732d2338fe385c904116a00f"}},{"ruleId":"D2","level":"warning","message":{"text":"PagedAttention::run_standard_paged_decode (cognitive 20): PagedAttention::run_standard_paged_decode has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (19 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":"mistralrs-core/src/paged_attention/layers/paged_attention.rs"},"region":{"startLine":2584}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fdc18501d2b48190084f23e769c8416a932216f7b1068fa99b93eab04672515"}},{"ruleId":"D2","level":"warning","message":{"text":"FixedBucketingManager::bucket_and_waitlist_seqs_waiting (cognitive 20): FixedBucketingManager::bucket_and_waitlist_seqs_waiting has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (6 pts), match/switch 1 (2 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":"mistralrs-core/src/scheduler/default_scheduler.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"315e9d1961012cdf6cd8829ab0a05ae3fa3d54ae0c1df8427202e64b72b52bd2"}},{"ruleId":"D2","level":"warning","message":{"text":"DiaPipeline::sample_next_token (cognitive 20): DiaPipeline::sample_next_token has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (6 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":"mistralrs-core/src/speech_models/dia/mod.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"19bdea1010838c41805e4d028e511c7c4b87849608885d71e9c423a209039cb2"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolCallingMatcher::new_with_format (cognitive 20): ToolCallingMatcher::new_with_format has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 11). 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":"mistralrs-core/src/tools/mod.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f3c8a2d5849e1cb4929f6f40be584cf7c4da9f5fee2432cefeaa9b9a9e7e56"}},{"ruleId":"D2","level":"warning","message":{"text":"GemmaLarkBuilder::emit_constrained_args (cognitive 20): GemmaLarkBuilder::emit_constrained_args has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 4 (5 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":"mistralrs-core/src/tools/parsers/gemma4_strict.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"706ded89e0e36a3a403facc44f8d353439f07f0ed5efeedb9e8b06724e1d6bf1"}},{"ruleId":"D2","level":"warning","message":{"text":"Attention::new (cognitive 20): Attention::new has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 2, match/switch 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":"mistralrs-core/src/vision_models/gemma4/text.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"90c895b494401b13a0dbc0b28c71a509307050d18f2ea9b38e7db8889606f945"}},{"ruleId":"D2","level":"warning","message":{"text":"Idefics3ImageProcessor::preprocess (cognitive 20): Idefics3ImageProcessor::preprocess has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (13 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":"mistralrs-core/src/vision_models/idefics3/inputs_processor.rs"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d2e5eb7d494707cf1b76a65d49bd3521498ea69a2ac3b41158b1d3f3632cb19"}},{"ruleId":"D2","level":"warning","message":{"text":"Phi4MMInputsProcessor::process_audio_batch (cognitive 20): Phi4MMInputsProcessor::process_audio_batch has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (17 pts), 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":"mistralrs-core/src/vision_models/phi4/inputs_processor.rs"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff32e295a09ae7cbf7f7b21a5ecbb804080bab8b0b464ee01557c8e918014496"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::gdn::backend::gated_delta_rule_recurrence (cognitive 20): mistralrs_core::gdn::backend::gated_delta_rule_recurrence has cognitive complexity 20 (threshold 15). Drivers by points: loops 7 (20 pts) (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":"mistralrs-core/src/gdn/backend.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b2bf4cddaafe260f7f75ae6c121c2dfa8d69925f14e63fd81607d85b4b3baa"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::pipeline::prompt_chunks::build_prompt_chunk_plan (cognitive 20): mistralrs_core::pipeline::prompt_chunks::build_prompt_chunk_plan has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 4, 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":"mistralrs-core/src/pipeline/prompt_chunks.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"03fe4d299e96ef452b981c4877e1ffc996f7c6f699d3e46175ac017cec356713"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::vision_models::grid_processor::grid_packed_layout (cognitive 20): mistralrs_core::vision_models::grid_processor::grid_packed_layout has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 4 (8 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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"f806fb1e0cf5859920a928a6e374ed4ba40393d1f60ba2a7251691bea6305c86"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_paged_attn::cuda::backend::fa3::fa3_prepare_paged_metadata (cognitive 20): mistralrs_paged_attn::cuda::backend::fa3::fa3_prepare_paged_metadata has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (9 pts), match/switch 7, boolean chains 3, loops 1 (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":"mistralrs-paged-attn/src/cuda/backend/fa3.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"5653839f3a13079dd3d2aaec7a354d5d392a214c7fcfbe0a8e6198586a6019e4"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockwiseFP8Linear::forward_packed_glu (cognitive 20): BlockwiseFP8Linear::forward_packed_glu has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 3, match/switch 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":"mistralrs-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e9ec274a18ab2ded36079e06805f61a1bc93208c96a58f11b9cc440d77f4552"}},{"ruleId":"D2","level":"warning","message":{"text":"CublasLTBatchMatmul::fwd (cognitive 20): CublasLTBatchMatmul::fwd has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (16 pts), match/switch 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":"mistralrs-quant/src/cublaslt/api.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"603b5a821fe42fb0687414c2909bffea489cb8761d894b5c8a680318e07d601d"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexedMoeLoraDecode::new (cognitive 20): IndexedMoeLoraDecode::new has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 4, loops 2 (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":"mistralrs-quant/src/gguf/cuda.rs"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e4c44cbe71e935f0db377aa87f10863fae933db919ba54b327208ccb8889fe"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::cutile::fp8_w8a8::launch (cognitive 20): mistralrs_quant::cutile::fp8_w8a8::launch has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, boolean chains 5, match/switch 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":"mistralrs-quant/src/cutile/fp8_w8a8.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f8a4b9d09714aad4a510ecf4fada139afa562fe668b251572ac1926619f895e"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::cutile::mxfp8_gemm::config (cognitive 20): mistralrs_quant::cutile::mxfp8_gemm::config has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, boolean chains 7. 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":"mistralrs-quant/src/cutile/mxfp8_gemm.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"2717cd1539a2f4bb1207c311aefc446871563981a00c1a582a400bc45a46eb25"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::gguf::fast_mmvq::plain (cognitive 20): mistralrs_quant::gguf::fast_mmvq::plain has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 2, 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, 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":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a35a18eecc60120dcf9a3581b203a811719adc281fa1c3afaf0826fbfd7c892"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::uqff::report::validate_output_integrity (cognitive 20): mistralrs_quant::uqff::report::validate_output_integrity has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (17 pts), 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":"mistralrs-quant/src/uqff/report.rs"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"c315d51cd3ba886b7cf48da54d275cbcc6c1ce447df36a5ccda4d1fa5d637005"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiModelBuilder::build (cognitive 19): MultiModelBuilder::build has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (17 pts), loops 2 (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":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfa732d0c0a733a7e8d17765c7d512c950e7443ea936787808524d9a1165babc"}},{"ruleId":"D2","level":"warning","message":{"text":"Engine::handle_request (cognitive 19): Engine::handle_request has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 5, match/switch 2 (3 pts) (nesting depth added 6). 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":"mistralrs-core/src/engine/add_request.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"83926f462c2d883681639c168045b587cd9292b333bfb9c8225dc15f93d1992b"}},{"ruleId":"D2","level":"warning","message":{"text":"HybridPagedPrefixValidator::validate_prefix_cache_hit (cognitive 19): HybridPagedPrefixValidator::validate_prefix_cache_hit has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (19 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":"mistralrs-core/src/engine/mod.rs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d42931757898fe085eb9247cf591f020a7e18c6816dc12504a38f0fb1c38a7d"}},{"ruleId":"D2","level":"warning","message":{"text":"HybridCache::allocate_slot (cognitive 19): HybridCache::allocate_slot has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (4 pts), match/switch 2 (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":"mistralrs-core/src/kv_cache/hybrid_cache.rs"},"region":{"startLine":1972}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ec96e969f96c48cf73375727df0388ef7f3a3ded8f3b1e6816167f40fdeffa"}},{"ruleId":"D2","level":"warning","message":{"text":"NormalPipeline::forward_step (cognitive 19): NormalPipeline::forward_step has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 3 (5 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":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":2540}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e216747e9bdcc65a0e5d72387b71c074843192341ff05f28c7528088af30027"}},{"ruleId":"D2","level":"warning","message":{"text":"SamplingParams::apply_model_defaults (cognitive 19): SamplingParams::apply_model_defaults has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (17 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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"e833732839cc407677dcd48250a471dd6187568687723745772edbb859442cc5"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultScheduler::schedule (cognitive 19): DefaultScheduler::schedule has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 3 (4 pts), 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":"mistralrs-core/src/scheduler/default_scheduler.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"35d7558e4e47adb1c1622d033d227898eb34d16b289e65e81dec4a98f6c6e202"}},{"ruleId":"D2","level":"warning","message":{"text":"Sequence::take_ready_streaming_emissions (cognitive 19): Sequence::take_ready_streaming_emissions has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (5 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":"mistralrs-core/src/sequence.rs"},"region":{"startLine":1595}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe691a381558e38cc4fe11ae169a62e7b2a6a061b8645d1076f0a2533fe982b"}},{"ruleId":"D2","level":"warning","message":{"text":"DFlashDraftModel::precapture_cuda_graphs (cognitive 19): DFlashDraftModel::precapture_cuda_graphs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, loops 2 (3 pts), 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":"mistralrs-core/src/speculative/dflash.rs"},"region":{"startLine":2459}}}],"partialFingerprints":{"codehealthFindingId/v1":"2093feab25631fb3378a2da1e938e9f3805edf7e436bd334cfdf9f78f9a30729"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolCallingMatcher::get_call_with_content (cognitive 19): ToolCallingMatcher::get_call_with_content has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 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":"mistralrs-core/src/tools/mod.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"d01e242323d18e43557e0fdc4ae01e906ad1284b69c6d436f1e6925bf7a64566"}},{"ruleId":"D2","level":"warning","message":{"text":"DecisionPlan::read_span (cognitive 19): DecisionPlan::read_span has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 3, match/switch 2 (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":"mistralrs-core/src/vision_models/lfm3_d1/readout.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab67e8176405a3c911a7a88cebea84cdbcd3d7108174d2286f24ebc044bbbbd"}},{"ruleId":"D2","level":"warning","message":{"text":"QsaAttention::forward_paged (cognitive 19): QsaAttention::forward_paged has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), match/switch 3 (7 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":"mistralrs-core/src/vision_models/qwen4_exp/qsa.rs"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"a47e8482538b59b136fa7448700db0a727468646cff4a8e2881effd72bf95295"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::cuda::dflash_context::context_keys (cognitive 19): mistralrs_core::cuda::dflash_context::context_keys has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 5, match/switch 2, loops 1 (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":"mistralrs-core/src/cuda/dflash_context.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0164b55d7b4557dbb3349aa3db5725b05aa8f236d0f43eb4df27eecad7876b0"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::cuda::gdn::speculative_state_commit_cuda::cuda_fwd (cognitive 19): mistralrs_core::cuda::gdn::speculative_state_commit_cuda::cuda_fwd has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, boolean chains 5, match/switch 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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":3313}}}],"partialFingerprints":{"codehealthFindingId/v1":"b945c30e636f55a3f8948cebece9322c09d9025c4637e1695e10f3090683e971"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::engine::agentic_session::splice_session_into_request (cognitive 19): mistralrs_core::engine::agentic_session::splice_session_into_request has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, loops 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":"mistralrs-core/src/engine/agentic_session.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"c287d183057275b212bd03e41de09e48906f769fae3331a8ccec4999c931ae1a"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::gguf::qwen4exp::build_qwen4exp_bindings (cognitive 19): mistralrs_core::gguf::qwen4exp::build_qwen4exp_bindings has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (5 pts), boolean chains 2, 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":"mistralrs-core/src/gguf/qwen4exp.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ebdd3d9d4679ef94d91e791d6abd67d2b1df9a865e788eba87cdf0198397ce5"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::ops::cuda_categorical_logits_f32_packed_batched (cognitive 19): mistralrs_core::ops::cuda_categorical_logits_f32_packed_batched has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, boolean chains 5, match/switch 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":"mistralrs-core/src/ops.rs"},"region":{"startLine":2121}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f8f57de45318843c4878efc03c4e64335085bde1c20002483a262b5c883eb22"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::pipeline::loaders::activation_memory::estimate_model_activation_memory (cognitive 19): mistralrs_core::pipeline::loaders::activation_memory::estimate_model_activation_memory has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 6, match/switch 2, 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":"mistralrs-core/src/pipeline/loaders/activation_memory.rs"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"6589b48ba2c0bc9298ecccb02c5f39775a2236c458133f161c25d5ab8a1dc1d3"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::utils::normal::determine_auto_dtype_all (cognitive 19): mistralrs_core::utils::normal::determine_auto_dtype_all has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 2 (9 pts), loops 3 (6 pts), if/else 3 (4 pts) (nesting depth added 11). 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":"mistralrs-core/src/utils/normal.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"4495c1034a2f490d03e42c1d8affa2406311ef1eb574d47027852e3dfc9d90c6"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::utils::tiktoken::extract_vocab_merges_from_model (cognitive 19): mistralrs_core::utils::tiktoken::extract_vocab_merges_from_model has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 4 (6 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":"mistralrs-core/src/utils/tiktoken.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa362390b91ee91c8c8d435dc9698dd5ae83cf963b01fe0716e3cbf8204e6a0"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::vision_models::lfm3_audio::config::normalize_config (cognitive 19): mistralrs_core::vision_models::lfm3_audio::config::normalize_config has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 6 (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":"mistralrs-core/src/vision_models/lfm3_audio/config.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"d50dc28de36a110b8acfb7f4335972403decd9c83e327739c15845984f3d16bf"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::vision_models::lfm3_d1::readout::answer_codes (cognitive 19): mistralrs_core::vision_models::lfm3_d1::readout::answer_codes has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (7 pts), boolean chains 1, match/switch 1 (nesting depth added 10). 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":"mistralrs-core/src/vision_models/lfm3_d1/readout.rs"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f123a9578578fd2ac7451e7bebec3d902bda5e7a0578e7e47cd727289d8b8cc"}},{"ruleId":"D2","level":"warning","message":{"text":"ParamArgs::from_attrs (cognitive 19): ParamArgs::from_attrs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 1 (nesting depth added 12). 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":"mistralrs-macros/src/lib.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0eaf5f642b5c9aeec187986228506de310ae8be7d7941502a3745e397e93f49"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_paged_attn::cuda::backend::flashinfer::gather_kv_cache_flashinfer (cognitive 19): mistralrs_paged_attn::cuda::backend::flashinfer::gather_kv_cache_flashinfer has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 10, if/else 8, boolean chains 1. 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":"mistralrs-paged-attn/src/cuda/backend/flashinfer.rs"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"b61206dff1986c1266740950bcaf8f0fec323de15570c46ecab60bc39ca23984"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_paged_attn::metal::backend::cache::swap_blocks (cognitive 19): mistralrs_paged_attn::metal::backend::cache::swap_blocks has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (4 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 8). 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":"mistralrs-paged-attn/src/metal/backend/cache.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"b246be8b5a42ac289c0f74e9735cb5608187c4f3072c555f9899716df0c89c62"}},{"ruleId":"D2","level":"warning","message":{"text":"MXFP4Layer::forward_dequantize (cognitive 19): MXFP4Layer::forward_dequantize has cognitive complexity 19 (threshold 15). Drivers by points: loops 5 (13 pts), if/else 6 (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":"mistralrs-quant/src/mxfp4/mod.rs"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"4617614c5985d70851ddbd131d3b74f71c3afd24460b1e2a3291471922edfa6b"}},{"ruleId":"D2","level":"warning","message":{"text":"Matmul::cpu_fwd (cognitive 19): Matmul::cpu_fwd has cognitive complexity 19 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 6 (8 pts), match/switch 1 (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":"mistralrs-quant/src/mxfp8/mod.rs"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"41afebfc85199ec54939a7177636327768d67f015254e2824758023742cc2437"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::metal_kernels::call_single_block_sort (cognitive 19): mistralrs_quant::metal_kernels::call_single_block_sort has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 6). 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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":2652}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd3f7be1e26a3bc7197b2d8236c30f20ef9a608cd99d5ad552a21490874ba584"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::metal_kernels::call_multi_block_sort (cognitive 19): mistralrs_quant::metal_kernels::call_multi_block_sort has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (17 pts), loops 2 (nesting depth added 4). 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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":2798}}}],"partialFingerprints":{"codehealthFindingId/v1":"10dcec93fcfa02357cd27f33788173a846adf7811f3406499cd066cbfe4091b9"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::mxfp4::ops::mxfp4_grouped_moe_gemm (cognitive 19): mistralrs_quant::mxfp4::ops::mxfp4_grouped_moe_gemm has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 6 (8 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":"mistralrs-quant/src/mxfp4/ops.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f4fc355cf35885238683d687daf31e74a94b82f29a946080609d185c17cf23f"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_server_core::chat_completion::process_non_streaming_response_with_model (cognitive 19): mistralrs_server_core::chat_completion::process_non_streaming_response_with_model has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (16 pts), match/switch 1 (2 pts), 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":"mistralrs-server-core/src/chat_completion.rs"},"region":{"startLine":1356}}}],"partialFingerprints":{"codehealthFindingId/v1":"302696ab72bd1be0528fca6c2427b99fa9c241fa884d006ee03cca2f79df10dd"}},{"ruleId":"D2","level":"warning","message":{"text":"plot_results.plot_speedup (cognitive 19): plot_results.plot_speedup has cognitive complexity 19 (threshold 15). Drivers by points: if/else 2 (8 pts), loops 4 (8 pts), ternaries 1 (2 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":"releases/v0.9.0/scripts/plot_results.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5699f7af4864bd7a710fb5935a912d7ce2f6fb6ffb70db39885976278178b66"}},{"ruleId":"D2","level":"warning","message":{"text":"bench_decode_serving.main (cognitive 19): bench_decode_serving.main has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 3 (6 pts), boolean chains 3 (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":"releases/v0.9.3/scripts/bench_decode_serving.py"},"region":{"startLine":1657}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f910f4638594b79d8d10d40724b115f60fd723f45f801dbb0980922dd62102c"}},{"ruleId":"D2","level":"warning","message":{"text":"Agent::run (cognitive 18): Agent::run has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 3 (6 pts), match/switch 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":"mistralrs/src/agent.rs"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"d972768fbdbe714568ca2e2c99b6042d978e510285790d746a5a43bf1f2e2ffc"}},{"ruleId":"D2","level":"warning","message":{"text":"FormatOptions::derive_local_model_root (cognitive 18): FormatOptions::derive_local_model_root 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":"mistralrs-cli/src/args/model.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd04d711fbb249d92db3327f6eb2e7ffe788d3abc4b2a55796722a8c5eca7ac4"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_cli::commands::run::interactive::oneshot_multimodal (cognitive 18): mistralrs_cli::commands::run::interactive::oneshot_multimodal has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 5 (8 pts), loops 6, if/else 3, boolean chains 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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"23c617897dd1353b781f0cafde6179a316a38171660f2a7900a065a5ffcf8ee7"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_cli::config::validate_config (cognitive 18): mistralrs_cli::config::validate_config has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), match/switch 2 (4 pts), boolean chains 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":"mistralrs-cli/src/config/mod.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e8b94167a21c56814eec2b0618c62db9f366486142e7014ab0fc9c97155d9d"}},{"ruleId":"D2","level":"warning","message":{"text":"T5Attention::forward (cognitive 18): T5Attention::forward has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), match/switch 5 (8 pts) (nesting depth added 8). 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":"mistralrs-core/src/diffusion_models/t5/mod.rs"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"e11f50e0876843ef502b9d0d794a778dfe3e92b1e7f5a5634a11203d46dea84b"}},{"ruleId":"D2","level":"warning","message":{"text":"Content::print_metadata (cognitive 18): Content::print_metadata has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 5 (9 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":"mistralrs-core/src/gguf/content.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f627e271b36c2fdfe2186b99528238c294410570993fc8fcaabbacef846403"}},{"ruleId":"D2","level":"warning","message":{"text":"MistralRs::new (cognitive 18): MistralRs::new has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 2 (4 pts), boolean chains 2, match/switch 2 (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":"mistralrs-core/src/lib.rs"},"region":{"startLine":1557}}}],"partialFingerprints":{"codehealthFindingId/v1":"4110937b020dbd124fbcc44e5681b2b99aa33b14c446952d3870efcb0193733c"}},{"ruleId":"D2","level":"warning","message":{"text":"PagedAttentionScheduler::bucket_and_preempt_sequences (cognitive 18): PagedAttentionScheduler::bucket_and_preempt_sequences has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 3, boolean chains 2, match/switch 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":"mistralrs-core/src/paged_attention/scheduler.rs"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d05a6d7fadae53edb3ec90975ecf8bcf4ee9bdd3816ddb393914e33b0cefb33"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoDeviceMapQuantization::pack_factor_for_candidates (cognitive 18): AutoDeviceMapQuantization::pack_factor_for_candidates has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (4 pts), match/switch 1 (nesting depth added 9). 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":"mistralrs-core/src/pipeline/loaders/mod.rs"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b878be7588848d48c75ac21406527b4b3e93790f3a7e2fd608163bc334c03ee"}},{"ruleId":"D2","level":"warning","message":{"text":"NormalPipeline::precapture_cuda_decode_graphs_impl (cognitive 18): NormalPipeline::precapture_cuda_decode_graphs_impl 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":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":2088}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b6539c8f4656eff31a25bf03cd233b8d9665532919eb318fbec3ad6482c1f0"}},{"ruleId":"D2","level":"warning","message":{"text":"Sampler::cuda_batch_sampling_plan (cognitive 18): Sampler::cuda_batch_sampling_plan has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 7, match/switch 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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"9657450b2d15c9ae7ef2858ffc8842f3edf222c7b940efcc98a2fdd69f52a384"}},{"ruleId":"D2","level":"warning","message":{"text":"BuiltinMtpProposer::prefill (cognitive 18): BuiltinMtpProposer::prefill has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (14 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":"mistralrs-core/src/speculative/builtin_mtp.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eea86a416faaa7b138b3b9d2c81316d98f1f37c6b93f54b2013b210be03e63b"}},{"ruleId":"D2","level":"warning","message":{"text":"DFlashDraftModel::draft_hidden_batch (cognitive 18): DFlashDraftModel::draft_hidden_batch has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 5 (6 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":"mistralrs-core/src/speculative/dflash.rs"},"region":{"startLine":3257}}}],"partialFingerprints":{"codehealthFindingId/v1":"63893208461869d3c32cee5720cdc1e3c06025bcfaf04bbe6cd3b8205fd5c7e4"}},{"ruleId":"D2","level":"warning","message":{"text":"DFlashDraftModel::run_draft_layers (cognitive 18): DFlashDraftModel::run_draft_layers has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 6 (10 pts), if/else 4 (7 pts), loops 1 (nesting depth added 7). 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":"mistralrs-core/src/speculative/dflash.rs"},"region":{"startLine":3378}}}],"partialFingerprints":{"codehealthFindingId/v1":"79c90656bd7f0ef6fd69fec78434c322b5233a8f46cd3a9a8654b99d095a8d55"}},{"ruleId":"D2","level":"warning","message":{"text":"SpeculativeTapRouting::new (cognitive 18): SpeculativeTapRouting::new has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (4 pts), 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":"mistralrs-core/src/speculative/proposer.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bf03a11f4250baf4da3e1ed341fc20f0e7f848a810c199944e7f85837ab1a04"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioProcessor::create_mel_filterbank (cognitive 18): AudioProcessor::create_mel_filterbank has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 3 (4 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":"mistralrs-core/src/vision_models/gemma3n/audio_processing.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e7c624126668ba4352faafffc98aa7e0a0f55feec54cfac46cd3cce61a593a"}},{"ruleId":"D2","level":"warning","message":{"text":"Gemma3nImageProcessor::process_audio_batch (cognitive 18): Gemma3nImageProcessor::process_audio_batch has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 4 (5 pts), boolean chains 2 (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":"mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"6af026ff05a5893537daa39fac029a7930cf21ce0e2257254fc3b6db99b1db87"}},{"ruleId":"D2","level":"warning","message":{"text":"Gemma4Model::speculative_target_hiddens (cognitive 18): Gemma4Model::speculative_target_hiddens has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2 (4 pts), match/switch 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":"mistralrs-core/src/vision_models/gemma4/mod.rs"},"region":{"startLine":1213}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca608f1bf5fc4a26d3f1900ee289e69ccc0444e1fa7076ed2b7f24dd686155cc"}},{"ruleId":"D2","level":"warning","message":{"text":"TextModel::apply_image_bidirectional_mask (cognitive 18): TextModel::apply_image_bidirectional_mask has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (4 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":"mistralrs-core/src/vision_models/gemma4/text.rs"},"region":{"startLine":2443}}}],"partialFingerprints":{"codehealthFindingId/v1":"1795102e238ef135896a532523edc9f0bd2628b2e25f642e0c4d6693b226ba25"}},{"ruleId":"D2","level":"warning","message":{"text":"GridImageProcessor::preprocess_inner (cognitive 18): GridImageProcessor::preprocess_inner has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 2 (3 pts), match/switch 1 (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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1926}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f7eacde72c4f18309180a904c07abb7f81e85d84c64e35af12663f82225f87d"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3VLVisionModel::rot_pos_emb (cognitive 18): Qwen3VLVisionModel::rot_pos_emb has cognitive complexity 18 (threshold 15). Drivers by points: loops 7 (18 pts) (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":"mistralrs-core/src/vision_models/qwen3_vl/vision.rs"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c83fb070ef7b9a0184f5458b3f9ba8ac986854250835e74c73a949cd0caabf"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::flashinfer::metadata::make_fa3_decode_state (cognitive 18): mistralrs_core::flashinfer::metadata::make_fa3_decode_state has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 3, 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":"mistralrs-core/src/flashinfer/metadata.rs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4eaed915a92c28806c8065be3325f1521d32b7c76f64869a293ea91790eb84"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::gguf::normal_registry::resolve_native_adapter (cognitive 18): mistralrs_core::gguf::normal_registry::resolve_native_adapter has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 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":"mistralrs-core/src/gguf/normal_registry.rs"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"5951ef1f5dffa5f4d107d6aa14b7c6d5ea2569ca653745ba60f3e5d15420104a"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::kv_cache::try_kv_append_dual_metal (cognitive 18): mistralrs_core::kv_cache::try_kv_append_dual_metal has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, boolean chains 4. 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":"mistralrs-core/src/kv_cache/mod.rs"},"region":{"startLine":1388}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d437fa917b4f57037c133c0b8c114f2aaed3df451f78029ddeb4f9794e3e2d2"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::ops::cuda_add_rms_norm (cognitive 18): mistralrs_core::ops::cuda_add_rms_norm has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, boolean chains 4, match/switch 4. 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":"mistralrs-core/src/ops.rs"},"region":{"startLine":4581}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dcfb4ad80aea20ea1282977d9dd49b222b238898cbf7fa00f7f9bb421f13c38"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::paged_attention::plan::gather_prefill_workspace_bytes (cognitive 18): mistralrs_core::paged_attention::plan::gather_prefill_workspace_bytes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 3, 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":"mistralrs-core/src/paged_attention/plan.rs"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"8894f66a336f11f96d31af7b8f56c736e30a1b30b6065c272f4ccbae01b42bad"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::pipeline::cuda_graph::admit_cuda_graph_memory (cognitive 18): mistralrs_core::pipeline::cuda_graph::admit_cuda_graph_memory has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 4, loops 2 (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":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd1c84b176233690acefd50f6243a64cf1b9a6c9be66084b69bf26ca0ce4257"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::speculative::verifier::greedy_device_verify_batch (cognitive 18): mistralrs_core::speculative::verifier::greedy_device_verify_batch has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (9 pts), match/switch 2 (4 pts), boolean chains 3, loops 2 (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":"mistralrs-core/src/speculative/verifier.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f29cc6140d292636bba5c9cd3a71c09be0b996750fab1c91e5efbde93925421"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::tools::parsers::flint::value_rule (cognitive 18): mistralrs_core::tools::parsers::flint::value_rule has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (16 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":"mistralrs-core/src/tools/parsers/flint.rs"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c710ed25834290678ac1d8df5b4567660ccfba6e8fca653e97789b8f5f8237"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::vision_models::lfm3_d1::readout::json_paths (cognitive 18): mistralrs_core::vision_models::lfm3_d1::readout::json_paths has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 5 (8 pts), boolean chains 1, match/switch 1 (nesting depth added 8). None of this is in the body itself: all 18 points belong to 3 function items inside it that branch (walk, string, skip). 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":"mistralrs-core/src/vision_models/lfm3_d1/readout.rs"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"92dd23cfb5af3dc4f11f4fcf185a4bdae5c8376337b55668f2e8015ef7f1946d"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::vision_models::voxtral::condition_audio_embeddings (cognitive 18): mistralrs_core::vision_models::voxtral::condition_audio_embeddings has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (9 pts), match/switch 2 (5 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":"mistralrs-core/src/vision_models/voxtral/mod.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"3edcf0f4d92bf2de9c801d098737694ef6593cc15e75de4a36db33549b357934"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_paged_attn::metal::backend::gather_kv::gather_kv_cache (cognitive 18): mistralrs_paged_attn::metal::backend::gather_kv::gather_kv_cache has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 10 (12 pts), if/else 6 (nesting depth added 2). 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":"mistralrs-paged-attn/src/metal/backend/gather_kv.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"512cc1390ee92e5c2a1c48335230324308f9113ab8a09b61668fc0a283985205"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_pyo3::util::parse_video_url (cognitive 18): mistralrs_pyo3::util::parse_video_url has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 4, 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":"mistralrs-pyo3/src/util.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b0429aed1777f388ffe9d28eed01c3a9d5a9d32da2e7e53418b08c2e651746"}},{"ruleId":"D2","level":"warning","message":{"text":"BitWise::cpu_fwd (cognitive 18): BitWise::cpu_fwd has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 11 (13 pts), if/else 4, boolean chains 1 (nesting depth added 2). 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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"407ac36e6a6827f3a378fdfdb7cca543c3a43507f7584970e01b0386ff4a19eb"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::cutile::fp8_w8a16::launch (cognitive 18): mistralrs_quant::cutile::fp8_w8a16::launch has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, boolean chains 5, match/switch 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":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a8510c32a298fe1611cced55ccdae37fcbc537ee0bdf651293ac93be069e8f"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::distributed::packing::detect_format (cognitive 18): mistralrs_quant::distributed::packing::detect_format has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 2 (3 pts), match/switch 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":"mistralrs-quant/src/distributed/packing.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"720ae9edef2385cef7ecf2f6666697316014bc9aed8ece3f8ed104293477f30b"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::routed_gemv::cuda::launch (cognitive 18): mistralrs_quant::routed_gemv::cuda::launch has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, match/switch 6 (8 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":"mistralrs-quant/src/routed_gemv/cuda.rs"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"87624219072cda091b8f9499304a489ab2889d00377cb1c41caa87bf721d8b78"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::uqff::report::validate_layer (cognitive 18): mistralrs_quant::uqff::report::validate_layer has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 2 (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":"mistralrs-quant/src/uqff/report.rs"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"1941d7830fc32816e3612f733865ebf2f69005b7bf8fbf482baa5df1414f8c82"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingAudioCapture::stage (cognitive 18): StreamingAudioCapture::stage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (17 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":"mistralrs-server-core/src/audio_history.rs"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"474d469f1c02e8f0524914ea4c1dee48dca1ef5a173c1b6636e5b3d11189d786"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageContent::to_text (cognitive 18): MessageContent::to_text has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (5 pts), match/switch 1 (nesting depth added 11). 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":"mistralrs-server-core/src/openai.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"a42adc90670ac08057a013170886419663581caa3354545840c3dcbf1e5f786e"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_server_core::chat_completion::chatcompletions (cognitive 18): mistralrs_server_core::chat_completion::chatcompletions has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (13 pts), match/switch 3, boolean chains 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":"mistralrs-server-core/src/chat_completion.rs"},"region":{"startLine":1188}}}],"partialFingerprints":{"codehealthFindingId/v1":"d588368d9393d0af6b0e328ca86eef751c354a08ef02928b06fc84f85b49e042"}},{"ruleId":"D2","level":"warning","message":{"text":"executor.execute_code (cognitive 18): executor.execute_code has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), error handling 3, 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":"mistralrs-code-exec/python/executor.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9da9c5fd5c65179569f68ee1dc944487c9f18ec21f83be122f7d2a4f75f964a"}},{"ruleId":"D2","level":"warning","message":{"text":"HybridCache::reserve_gdn_deferred_state (cognitive 17): HybridCache::reserve_gdn_deferred_state has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 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":"mistralrs-core/src/kv_cache/hybrid_cache.rs"},"region":{"startLine":1718}}}],"partialFingerprints":{"codehealthFindingId/v1":"423cd5bb1ce75d48cbf13b942f4de568db1e8869771c7a37100c1c2eca6e59e8"}},{"ruleId":"D2","level":"warning","message":{"text":"QLoraLinear::new (cognitive 17): QLoraLinear::new has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), loops 3 (4 pts), boolean chains 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, 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":"mistralrs-core/src/lora/qloralinear.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dca22b5178cfb8cf703ee0b80f7dcc4ba8b3c4225183dd26450a3f22070c547"}},{"ruleId":"D2","level":"warning","message":{"text":"Gemma4Loader::non_mapped_size_in_bytes (cognitive 17): Gemma4Loader::non_mapped_size_in_bytes has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, loops 1 (2 pts), boolean chains 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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":9704}}}],"partialFingerprints":{"codehealthFindingId/v1":"782d183a69ddedab8d6fdb183897659af8f58a5ef202ccd2e5e8f49c13fb0a39"}},{"ruleId":"D2","level":"warning","message":{"text":"MultimodalPipeline::forward_step (cognitive 17): MultimodalPipeline::forward_step has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, match/switch 2 (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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2933}}}],"partialFingerprints":{"codehealthFindingId/v1":"466422df4b270e995f5e15ca5fe5dc6d76703b5ab75f13e956e0745959b53bdc"}},{"ruleId":"D2","level":"warning","message":{"text":"PrefixCacheManagerV2::evict_caches (cognitive 17): PrefixCacheManagerV2::evict_caches has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 2 (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":"mistralrs-core/src/prefix_cacher.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e75960ddc553a355fc5c336e0109273f0835088a3c3fcca91d129f52fe85cf"}},{"ruleId":"D2","level":"warning","message":{"text":"Sampler::sample_top_kp_min_p (cognitive 17): Sampler::sample_top_kp_min_p has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, loops 2 (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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":1903}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f83c77b83d1079a3301a3531f77519de3511f988bdcd981b31989d3a219691"}},{"ruleId":"D2","level":"warning","message":{"text":"TextModel::residual_tensors (cognitive 17): TextModel::residual_tensors has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (16 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":"mistralrs-core/src/vision_models/gemma4/text.rs"},"region":{"startLine":2578}}}],"partialFingerprints":{"codehealthFindingId/v1":"7099c6d316d73e2cd6651de279fc65028a01e61fe4be59fae9f324e5ba6dafdc"}},{"ruleId":"D2","level":"warning","message":{"text":"Idefics3ImageProcessor::planned_image_grids (cognitive 17): Idefics3ImageProcessor::planned_image_grids has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, loops 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":"mistralrs-core/src/vision_models/idefics3/inputs_processor.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"119dc8d70484128577519c4224f2d358e428223437ffa950d0c3118b7b8b2725"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageEmbedding::new (cognitive 17): ImageEmbedding::new has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), match/switch 3 (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":"mistralrs-core/src/vision_models/phi4/image_embedding.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ecffbf73aec76f9735c7855e119fe3c439738125218ddbd5247fa1f0d320d6"}},{"ruleId":"D2","level":"warning","message":{"text":"Phi4MMInputsProcessor::process_inputs (cognitive 17): Phi4MMInputsProcessor::process_inputs has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 3, match/switch 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":"mistralrs-core/src/vision_models/phi4/inputs_processor.rs"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f27e712b03f7f2180ecd5586dcd5dff367bc7b90ff96cc8ce0bc0216619ced9"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::attention::backends::cpu::full::compute_full_row (cognitive 17): mistralrs_core::attention::backends::cpu::full::compute_full_row has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 2 (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":"mistralrs-core/src/attention/backends/cpu/full.rs"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea455a276f35dc7d061d6a30c61f88ea04ba361364ece3954d2cb8046439532"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::cuda::gdn::causal_conv1d_cuda (cognitive 17): mistralrs_core::cuda::gdn::causal_conv1d_cuda has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 7 (10 pts), if/else 5 (6 pts), boolean chains 1 (nesting depth added 4). Most of this is not in the body itself: 3 of the 17 points are its own statements and the rest belongs to one function item inside it that branches (cuda_fwd). 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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":1709}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d5b0c88b5285afc1577b3bf5cbc333d9bb687734f2082b782548e4a7da8a19f"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::cuda::gdn::pending_transition_publish_batched_cuda (cognitive 17): mistralrs_core::cuda::gdn::pending_transition_publish_batched_cuda has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (7 pts), loops 4 (6 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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":5493}}}],"partialFingerprints":{"codehealthFindingId/v1":"601992f6e3231d3d849b195db0155c9808df9d8aaacf08bb7f0c70fc39e6bdb7"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::engine::agentic_loop::do_custom_tool (cognitive 17): mistralrs_core::engine::agentic_loop::do_custom_tool has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 4 (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":"mistralrs-core/src/engine/agentic_loop.rs"},"region":{"startLine":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"925203a6afc72225b347c5416b32797b8fe182b153626b04cbde684ccb175041"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::engine::speech::adapt_request (cognitive 17): mistralrs_core::engine::speech::adapt_request has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 4 (10 pts), if/else 3 (5 pts), boolean chains 1, loops 1 (nesting depth added 8). 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":"mistralrs-core/src/engine/speech.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"0903bd932565518bc3d9ff55c65d1b7cf53e96ae07d9877514e5fb3df98320b2"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::files::inject::input_files_message (cognitive 17): mistralrs_core::files::inject::input_files_message has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), 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":"mistralrs-core/src/files/inject.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"98029d94175fa340f6374f402f5ce552b7650c66db4863f89c2bf4db19c676f1"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::gdn::backend::recurrence_cuda_from_convolved (cognitive 17): mistralrs_core::gdn::backend::recurrence_cuda_from_convolved has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 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":"mistralrs-core/src/gdn/backend.rs"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f00789568b88f4cf3a8a76000301d1715651ce3f5fc8cd743c75307e7e7f1e"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::gguf::gguf_tokenizer::convert_gguf_metadata_to_hf_tokenizer (cognitive 17): mistralrs_core::gguf::gguf_tokenizer::convert_gguf_metadata_to_hf_tokenizer has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), match/switch 4, boolean chains 2, loops 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":"mistralrs-core/src/gguf/gguf_tokenizer.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1c15ac6f1c75b405aac3acd562b4e45775b7eb9998e0e5620481598726a65ca"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::pipeline::loaders::activation_memory::prefix_prefill_workspace (cognitive 17): mistralrs_core::pipeline::loaders::activation_memory::prefix_prefill_workspace has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 6, match/switch 1 (2 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":"mistralrs-core/src/pipeline/loaders/activation_memory.rs"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcaea6c822f2c9597c9425595738290c113c1d76ed2f17a741468fff70d5db56"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::speculative::dflash::gather_ctx_taps (cognitive 17): mistralrs_core::speculative::dflash::gather_ctx_taps has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (14 pts), match/switch 1 (2 pts), loops 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":"mistralrs-core/src/speculative/dflash.rs"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"ded0e48f6ce74b14542d49718429815cc8dc66a3ffcb61dc182ca3fe906cb314"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::speculative::verifier::submit_sparse_rejection_group (cognitive 17): mistralrs_core::speculative::verifier::submit_sparse_rejection_group has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, match/switch 3 (5 pts), boolean chains 2 (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":"mistralrs-core/src/speculative/verifier.rs"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f48fa8be5138158cb515f87c45f7fce5497118eb351d7e867a83520a0deedf7"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::vision_models::lfm3_d1::parsing::decimal_mark (cognitive 17): mistralrs_core::vision_models::lfm3_d1::parsing::decimal_mark has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 3, boolean chains 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":"mistralrs-core/src/vision_models/lfm3_d1/parsing.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"730d413ba8f96145ab6b52ee8ea635abca61da43404b7a99b1de29e150780bee"}},{"ruleId":"D2","level":"warning","message":{"text":"McpClient::convert_mcp_schema_to_parameters (cognitive 17): McpClient::convert_mcp_schema_to_parameters has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 2 (7 pts), match/switch 1 (nesting depth added 9). 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":"mistralrs-mcp/src/client.rs"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc04e3e283bc2b0f8861e3b162d7cc3b8c1339f75b2def8ef5798bc02551d289"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_metal_compile::preprocess_includes (cognitive 17): mistralrs_metal_compile::preprocess_includes has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (15 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":"mistralrs-metal-compile/src/lib.rs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5cf1aa910a8efc5e573fb74522ef7f8c48d07d68123f9fe03ac5cd8bc5dcfc8"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_paged_attn::cuda::backend::cache::swap_blocks (cognitive 17): mistralrs_paged_attn::cuda::backend::cache::swap_blocks has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (4 pts), match/switch 2 (3 pts) (nesting depth added 8). 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":"mistralrs-paged-attn/src/cuda/backend/cache.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"39747ea7d5ebb5cab452ed294df2af560dc9fe0e978ec2e7903a761f4e0ef1c3"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_paged_attn::cuda::backend::flashinfer::reshape_and_cache_flashinfer (cognitive 17): mistralrs_paged_attn::cuda::backend::flashinfer::reshape_and_cache_flashinfer has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 9, if/else 6, boolean chains 2. 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":"mistralrs-paged-attn/src/cuda/backend/flashinfer.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6225b37761eb2c5bfa666f868cf918ba18d0b7bc29e35f2514ef62942159e1"}},{"ruleId":"D2","level":"warning","message":{"text":"Fp8W8A8Kernel::warm (cognitive 17): Fp8W8A8Kernel::warm has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), match/switch 2 (5 pts), 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":"mistralrs-quant/src/cutile/fp8_w8a8.rs"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4a6966da4772256cb23729cc4b5155cd354eb541810e5ed9e13289408376a2b"}},{"ruleId":"D2","level":"warning","message":{"text":"Descent::search (cognitive 17): Descent::search has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 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":"mistralrs-quant/src/cutile/tune.rs"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"df323b4ff5c37d259b6673f410b6bdba5ad32d2c18187055fd6e0590cf374eae"}},{"ruleId":"D2","level":"warning","message":{"text":"State::forward (cognitive 17): State::forward has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (13 pts), match/switch 2, boolean chains 1, loops 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":"mistralrs-quant/src/nvfp4/cutlass.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"daac00b9e1fffc9c8f1de3d9748375f599347a5664f3d214fe6df34594569c31"}},{"ruleId":"D2","level":"warning","message":{"text":"Nvfp4Layer::reference_forward (cognitive 17): Nvfp4Layer::reference_forward has cognitive complexity 17 (threshold 15). Drivers by points: loops 3 (8 pts), if/else 4 (7 pts), match/switch 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":"mistralrs-quant/src/nvfp4/mod.rs"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc3482c88f385c9520c8bd631f065e7d83b5cf3d02eec1bbf16993edbc7ee61"}},{"ruleId":"D2","level":"warning","message":{"text":"PerTensorFP8Linear::register_cutile (cognitive 17): PerTensorFP8Linear::register_cutile has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 2 (nesting depth added 9). 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":"mistralrs-quant/src/pertensor_fp8/mod.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db09d1558ad62cf85e397cf438b5a0f26a928568e190132117deaea267f8b63"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::afq::group::gate_up (cognitive 17): mistralrs_quant::afq::group::gate_up has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, boolean chains 2, match/switch 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":"mistralrs-quant/src/afq/group.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"08bb950e4bcdcd8fe7abe9377efeb8bdcecdda8509b413946178dc777cd6062c"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::bitsandbytes::op::d_dequantize_fp4_tree (cognitive 17): mistralrs_quant::bitsandbytes::op::d_dequantize_fp4_tree has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (17 pts) (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":"mistralrs-quant/src/bitsandbytes/op.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3680e158a7c2e80559f30ac0901f111d10e8c6a1be7fc29ee5e7a18d39d4bb"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::blockwise_fp8::ops::fp8_indexed_moe_gemm (cognitive 17): mistralrs_quant::blockwise_fp8::ops::fp8_indexed_moe_gemm has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, match/switch 7 (8 pts) (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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1172}}}],"partialFingerprints":{"codehealthFindingId/v1":"33e2fdf4fb55ce34d09480794c7663c685f1be4145aba72b23146e40dbefef9c"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::cutile::gdn_prefill::launch (cognitive 17): mistralrs_quant::cutile::gdn_prefill::launch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3, loops 1 (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":"mistralrs-quant/src/cutile/gdn_prefill.rs"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f9dae585d0fd46dab809e5c7800e71f0f8f0964a464103804540ee7b44b680"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::cutile::mxfp8_gemm::kernels::mxfp8_gemm (cognitive 17): mistralrs_quant::cutile::mxfp8_gemm::kernels::mxfp8_gemm has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), 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":"mistralrs-quant/src/cutile/mxfp8_gemm.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ec2d76dd062ec062dcf43986c3376cf2e74b56485001ecc4346b61e664d357"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::cutile::nvfp4_gemv::kernels::gemv_bf16 (cognitive 17): mistralrs_quant::cutile::nvfp4_gemv::kernels::gemv_bf16 has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 2 (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. This shape REPEATS in the file: one other method here (mistralrs_quant::cutile::nvfp4_gemv::kernels::gemv_f16) 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":"mistralrs-quant/src/cutile/nvfp4_gemv.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"5590392b3816691140f07805aac388696e9752648bbdbfe2332dcf6e8e95fc4b"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::cutile::nvfp4_gemv::kernels::gemv_f16 (cognitive 17): mistralrs_quant::cutile::nvfp4_gemv::kernels::gemv_f16 has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 2 (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. This shape REPEATS in the file: one other method here (mistralrs_quant::cutile::nvfp4_gemv::kernels::gemv_bf16) 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":"mistralrs-quant/src/cutile/nvfp4_gemv.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d3e3402c323c9c295214df07c06f363b5a2e362a631947ba9b1738328ecdd4"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::cutile::nvfp4_matmul::kernels::routed_matmul (cognitive 17): mistralrs_quant::cutile::nvfp4_matmul::kernels::routed_matmul has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 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":"mistralrs-quant/src/cutile/nvfp4_matmul.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"52a060d771476cff3699f4afb245e9d681dca075f99f5b737ee7644729d6ccb0"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::gguf::cpu::qtensor_indexed_moe_forward (cognitive 17): mistralrs_quant::gguf::cpu::qtensor_indexed_moe_forward has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 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":"mistralrs-quant/src/gguf/cpu.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebcd8c9e10d26c8e6949153a6e326ead97e30299650196cd0d5a5f87c25a9f88"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::gguf::quantize::quantize_cpu (cognitive 17): mistralrs_quant::gguf::quantize::quantize_cpu has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), loops 1 (3 pts), match/switch 3, boolean chains 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":"mistralrs-quant/src/gguf/quantize.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b00b8484b7c507c87df08bbb169a65dda1180d75c973867d595408e238af474"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::lora::dynamic::expert_cuda::with_prepared_resource (cognitive 17): mistralrs_quant::lora::dynamic::expert_cuda::with_prepared_resource has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3, match/switch 1 (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":"mistralrs-quant/src/lora/dynamic/expert_cuda.rs"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"956ab7f2e5229af9d40485fc553e572b298e85eabae08c7ff0764a8eaff7c07b"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::metal_kernels::utils::get_2d_grid_dims_divisor (cognitive 17): mistralrs_quant::metal_kernels::utils::get_2d_grid_dims_divisor has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 1, loops 1 (nesting depth added 6). 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":"mistralrs-quant/src/metal_kernels/utils.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7460de75385d6dbe955d6be531d311cee3f8168d8790391855b370a6bc85b64"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::utils::ops::fused_glu_quantized_bf16 (cognitive 17): mistralrs_quant::utils::ops::fused_glu_quantized_bf16 has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 4. 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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":2981}}}],"partialFingerprints":{"codehealthFindingId/v1":"4010abaa3e13c8432823c5360885e6e5c4ac7574a26654186560d896bf998a0d"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicStreamer::poll_next (cognitive 17): AnthropicStreamer::poll_next has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (11 pts), match/switch 2 (5 pts), 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":"mistralrs-server-core/src/anthropic.rs"},"region":{"startLine":1542}}}],"partialFingerprints":{"codehealthFindingId/v1":"dee6c23bb16b812d5d457dc344edc0cdafacac73d1f1d35ed9a32da189df8746"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_server_core::chat_completion::record_agentic_progress (cognitive 17): mistralrs_server_core::chat_completion::record_agentic_progress has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 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":"mistralrs-server-core/src/chat_completion.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"940ce5a020625695e0758715c6aa7be4bf99fd19374bc75c5bcc0a5f7dd55c5d"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_server_core::skills::parse_upload (cognitive 17): mistralrs_server_core::skills::parse_upload has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (3 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":"mistralrs-server-core/src/skills.rs"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"41de005d9dc66b868c449521f06a15e34d084513f8faf6cfb9dabf0c537da027"}},{"ruleId":"D2","level":"warning","message":{"text":"plot_results.plot_concurrency (cognitive 17): plot_results.plot_concurrency has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 4 (12 pts), loops 3 (5 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":"releases/v0.9.5/scripts/plot_results.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"55bf8d3c2e61e776604f36e448f2ccefbda7308147f4fffd39082c1d7a4b948e"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_cli::commands::config::build_model_configs (cognitive 16): mistralrs_cli::commands::config::build_model_configs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), match/switch 1 (3 pts), loops 2 (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":"mistralrs-cli/src/commands/config.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"56a0ad0a3280be8622a36518b29edda78c10ea5ee9292d681e8704cec28a36b9"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_cli::commands::quant::gguf_discovery::resolve_group (cognitive 16): mistralrs_cli::commands::quant::gguf_discovery::resolve_group has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 1 (2 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":"mistralrs-cli/src/commands/quant/gguf_discovery.rs"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"6caa9295cb4243e7950d8971a15bc7d081101f8b65372634f7fd515929275455"}},{"ruleId":"D2","level":"warning","message":{"text":"Engine::free_finished_scheduler_sequences (cognitive 16): Engine::free_finished_scheduler_sequences has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 1 (3 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":"mistralrs-core/src/engine/mod.rs"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"f41520676a82f7ebbedca4eea0e2a88c67a65f66cd7e21fdcc6925014c63e86d"}},{"ruleId":"D2","level":"warning","message":{"text":"Model::new_inner (cognitive 16): Model::new_inner has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 2, match/switch 2 (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":"mistralrs-core/src/models/lfm3.rs"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"f13aebf1962b8c4f8efe02cc9b27b7c9ea88ab41fffb98451919a01599c9e37a"}},{"ruleId":"D2","level":"warning","message":{"text":"DecoderLayer::forward_linear (cognitive 16): DecoderLayer::forward_linear has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"13acbc55af3b6d2616cb7eae0bb459094e4536712bcd59806fe91670d66e6b56"}},{"ruleId":"D2","level":"warning","message":{"text":"Sampler::sample (cognitive 16): Sampler::sample has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 3, match/switch 2 (3 pts), 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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":2132}}}],"partialFingerprints":{"codehealthFindingId/v1":"db87f627945c9b4d63cd399132908f6274d137e3ecd667a3dfabd6a3e88ff2b6"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchPipeline::chunk_document (cognitive 16): SearchPipeline::chunk_document has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (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":"mistralrs-core/src/search/rag.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26850eae3723cc6974f2da8ee2f9e20689332b76c221922aef8366366cdc76a"}},{"ruleId":"D2","level":"warning","message":{"text":"DFlashCudaGraphState::run (cognitive 16): DFlashCudaGraphState::run has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), match/switch 3 (4 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":"mistralrs-core/src/speculative/dflash.rs"},"region":{"startLine":1865}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e517929041acf7f40569b571c1fa1fe2055c372cb334132b2a67ffa1433760"}},{"ruleId":"D2","level":"warning","message":{"text":"GgufDeviceMapLoaderInner::non_mapped_size_in_bytes (cognitive 16): GgufDeviceMapLoaderInner::non_mapped_size_in_bytes has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 pts), match/switch 1 (nesting depth added 5). 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":"mistralrs-core/src/utils/gguf_metadata.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"d089bc7d5495b62d0324fcecb4ccbc3865892e213f31fd8bfb5f665b88d9b8e1"}},{"ruleId":"D2","level":"warning","message":{"text":"TextModel::apply_image_bidirectional_mask (cognitive 16): TextModel::apply_image_bidirectional_mask has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (4 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":"mistralrs-core/src/vision_models/gemma3/text.rs"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"09d702aa360e05dc50292ad7388c1a57a12bd4e56d80853f5142a82cb9dec4b9"}},{"ruleId":"D2","level":"warning","message":{"text":"Grid::new (cognitive 16): Grid::new has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 1 (2 pts), boolean chains 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":"mistralrs-core/src/vision_models/lfm3_d1/prompt.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"604e9fb80ffcfd02d6433981673c7691484f64ffb20d0c3c0503abf8192e7526"}},{"ruleId":"D2","level":"warning","message":{"text":"GenerationCache::audio_inputs (cognitive 16): GenerationCache::audio_inputs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (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":"mistralrs-core/src/vision_models/lfm3_omni/mod.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"7208e0f7025c2145b3b3b17dfb838ff94da0e89d6c2d68c54c731047501691c0"}},{"ruleId":"D2","level":"warning","message":{"text":"TextModel::forward_embeds (cognitive 16): TextModel::forward_embeds has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 2, 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":"mistralrs-core/src/vision_models/llama4/text.rs"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e97bcb5b9dda72738de27938d34691ec788087e5c1486a2c85c8b70e657785"}},{"ruleId":"D2","level":"warning","message":{"text":"LLaVANextInputProcessor::prepare_for_paged_prompt_planning (cognitive 16): LLaVANextInputProcessor::prepare_for_paged_prompt_planning has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 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":"mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e5fd4a0abc4aa000ff94e073a1e29d96cd98c2eabd9cbd1bb705fc5f09792b"}},{"ruleId":"D2","level":"warning","message":{"text":"Phi4MMInputsProcessor::prepare_prompt_plans (cognitive 16): Phi4MMInputsProcessor::prepare_prompt_plans has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, 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":"mistralrs-core/src/vision_models/phi4/inputs_processor.rs"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae950803f90894969e47516487f6e89a6f40243cdb6f7743b226052a6ae69c9"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3_5TextModel::new (cognitive 16): Qwen3_5TextModel::new has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (11 pts), match/switch 3 (4 pts), loops 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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a71467b75e2ec1f4c27e28284eb5089e23c28f65d03906505405b72166b545"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::attention::backends::metal_flash_attn::try_flash_attn_ext_bf16_dk512 (cognitive 16): mistralrs_core::attention::backends::metal_flash_attn::try_flash_attn_ext_bf16_dk512 has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 3, match/switch 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":"mistralrs-core/src/attention/backends/metal_flash_attn.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2b4cc4fbc0b2088182763c8f90dda1189524d3b5d7f04c9eaf54319e06b686"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::gdn::packed::try_forward_grouped_packed_gdn (cognitive 16): mistralrs_core::gdn::packed::try_forward_grouped_packed_gdn has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 4, loops 2 (3 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/gdn/packed.rs"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a47190e3bcb356a887237d69b7f3128749ae2012ffbd7a33d28598dbdd5739d"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::gguf::qwen_multimodal_bindings::bind_text (cognitive 16): mistralrs_core::gguf::qwen_multimodal_bindings::bind_text has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 4 (8 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":"mistralrs-core/src/gguf/qwen_multimodal_bindings.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"debc27cdab041889e81512e0e3ccf7b2be7d8bb473e327790b2450a8021a90aa"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::ops::cuda_topk_sampling_submit_inner (cognitive 16): mistralrs_core::ops::cuda_topk_sampling_submit_inner has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 2, match/switch 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":"mistralrs-core/src/ops.rs"},"region":{"startLine":3437}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c503698e5043ba9d24662eac63626bd620de6473006d74547ffb6fd91b58419"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::ops::try_cuda_rms_norm_strided_4d (cognitive 16): mistralrs_core::ops::try_cuda_rms_norm_strided_4d has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), match/switch 3, boolean chains 2, loops 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":"mistralrs-core/src/ops.rs"},"region":{"startLine":4268}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3e1b6981eab57d7fa56cc0f911e45e01652b13b8354e0b8d3d3889a7f74efb"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::pipeline::cuda_graph::flashinfer_decode_scratch_maps (cognitive 16): mistralrs_core::pipeline::cuda_graph::flashinfer_decode_scratch_maps has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 2 (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":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":3124}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec5015f151ae828601db828a8226fbbc4fd6e73e215f21c6cde46dc8eb491c4a"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::pipeline::sampling::prepare_cuda_token_batch (cognitive 16): mistralrs_core::pipeline::sampling::prepare_cuda_token_batch has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2, match/switch 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":"mistralrs-core/src/pipeline/sampling.rs"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad501264beca513006537b3569ed7565948e7b2e0a5c20ff9a507f4ca1703920"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::speculative::config::reserve_external_mtp_memory_with_runtime (cognitive 16): mistralrs_core::speculative::config::reserve_external_mtp_memory_with_runtime has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 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":"mistralrs-core/src/speculative/config.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"e656b6fcb571425a72347557077f260151935617fb719a741858b895b8d531aa"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::speculative::verifier::normalize_sparse_row (cognitive 16): mistralrs_core::speculative::verifier::normalize_sparse_row has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, 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":"mistralrs-core/src/speculative/verifier.rs"},"region":{"startLine":1200}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca4a12af7da6a865177b2e9258da0cff6a2223b711495541e6f6d5c28e5ada4"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::utils::tokenizer::load_tekken_tokenizer (cognitive 16): mistralrs_core::utils::tokenizer::load_tekken_tokenizer has cognitive complexity 16 (threshold 15). Drivers by points: loops 7 (9 pts), if/else 3 (7 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":"mistralrs-core/src/utils/tokenizer.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e7ba7dbe01c56c6f29e40d3505c76c326fd5ffb96c23cab018a7102279684e7"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::vision_models::grid_processor::expand_video_placeholders (cognitive 16): mistralrs_core::vision_models::grid_processor::expand_video_placeholders has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), loops 3 (6 pts), boolean chains 2 (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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b6600a2c78e37fc2ef96906864fab82eee68c73516d26451058c860269294bb"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::vision_models::mllama::inputs_processor::convert_sparse_cross_attention_mask_to_dense (cognitive 16): mistralrs_core::vision_models::mllama::inputs_processor::convert_sparse_cross_attention_mask_to_dense has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (3 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":"mistralrs-core/src/vision_models/mllama/inputs_processor.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb578b7374bbd41884a0068e17e889c302c6a473ed586ef78e8c3b1c6d301842"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_paged_attn::cuda::backend::mla::concat_and_cache_mla (cognitive 16): mistralrs_paged_attn::cuda::backend::mla::concat_and_cache_mla has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, match/switch 7, boolean chains 2. 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":"mistralrs-paged-attn/src/cuda/backend/mla.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"93323eaf9f3bcfcbe4c722d0a3d1923f5fa1219a9c345a11df49b939321b2925"}},{"ruleId":"D2","level":"warning","message":{"text":"ColumnParallelLayer::new_with_shard_and_key (cognitive 16): ColumnParallelLayer::new_with_shard_and_key has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 2, match/switch 1 (2 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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"7842b4f93a2625c61a8dd5f514167ee6b01a48bda470a6e2e30ef7fef9ce9118"}},{"ruleId":"D2","level":"warning","message":{"text":"ParsedShard::parse (cognitive 16): ParsedShard::parse has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 3 (4 pts), match/switch 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":"mistralrs-quant/src/gguf/archive.rs"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f913b71d880f7b83aa55f3a7fb95e20450f5f52f429cb43147064754f4a94e"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::afq::group::qkv (cognitive 16): mistralrs_quant::afq::group::qkv has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 5. 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":"mistralrs-quant/src/afq/group.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a3f2c76fb61672ef5c83b72d2bc4a499b639e03520d8d2266607eaaeaa295d"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::afq::ops::afq_gather_qmm_rhs_sorted_gate_up (cognitive 16): mistralrs_quant::afq::ops::afq_gather_qmm_rhs_sorted_gate_up has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 3, loops 2 (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":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a319928f2f473a287de3cfd6366b834554e712c62023bd0294bc30535a35b2a"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::fp8_config::glob_regex (cognitive 16): mistralrs_quant::fp8_config::glob_regex has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (10 pts), loops 2 (4 pts), match/switch 1 (2 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":"mistralrs-quant/src/fp8_config.rs"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb9db6016b82a1c291828fbdc60d5e90a21a21c133b782ee45c78d63b132ab9"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::gguf::fast_mmvq::shared_lhs (cognitive 16): mistralrs_quant::gguf::fast_mmvq::shared_lhs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 3, loops 1, match/switch 1 (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":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"055f4bd7550001daf037981feca27180f1559b64ca2a42d87d1271d5a45d61d2"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::lora::dynamic::loader::expert::plan_expert_site (cognitive 16): mistralrs_quant::lora::dynamic::loader::expert::plan_expert_site has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 2 (5 pts), boolean chains 2, 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":"mistralrs-quant/src/lora/dynamic/loader/expert.rs"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"93fbbe4d5c541d353261c856fa333de191698827eed72d0cc33770b99cc42fc2"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::uqff::report::verify_uqff_artifacts (cognitive 16): mistralrs_quant::uqff::report::verify_uqff_artifacts has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 2 (4 pts), match/switch 2 (3 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":"mistralrs-quant/src/uqff/report.rs"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c32aabaa200612a9848faa62c1c57312dc14d1cbec43c428797f1b344a7a99"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::uqff::report::validate_version_tensor_headers (cognitive 16): mistralrs_quant::uqff::report::validate_version_tensor_headers has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), 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":"mistralrs-quant/src/uqff/report.rs"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4749913df81e6c0dbcc44dcf63bf99b33114957de460d695d9aec05d191648f"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_server_core::anthropic::anthropic_response_from_chat (cognitive 16): mistralrs_server_core::anthropic::anthropic_response_from_chat has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 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":"mistralrs-server-core/src/anthropic.rs"},"region":{"startLine":1173}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b7c257561bc6de772cda86e5df4f9a4b73691d1d99e6c7cefa9afe8413aca2"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_server_core::responses::chat_response_to_response_resource (cognitive 16): mistralrs_server_core::responses::chat_response_to_response_resource 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":"mistralrs-server-core/src/responses.rs"},"region":{"startLine":1718}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce5454b32946933272a79dd287cd7c500bfeeb293379ab94d5a99dc709dec1a"}},{"ruleId":"D2","level":"warning","message":{"text":"render_examples.main (cognitive 16): render_examples.main has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), ternaries 2 (6 pts), loops 2 (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":"docs/scripts/render_examples.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e34fc63add9cc0d290ba9f37a67548e49fac6e4d619000c5eda8a40d00cba8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: loaders/multimodal_loaders.rs: FileTooLong \u2014 8156 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 7656 over it, 16.31\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ad70d71b43512a9e97a1bca4decbc8f023dd25dba1b78ea20d136367b4e27a8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Engine.run: MethodTooLong \u2014 run runs 1105 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 1005 over it, 11.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":"mistralrs-core/src/engine/mod.rs"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a3819453541ca124ffd0a88e71b07823b49b250fbe37f7a590ad943eaf267a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: loaders/normal_loaders.rs: FileTooLong \u2014 5477 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 4977 over it, 10.95\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":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c489f36cc517b071497193c474eee219bda3dd494a783d7bfc11b6eb3472a77"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ops.rs: FileTooLong \u2014 5322 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 78 free functions. The bar is 500 significant lines; this is 4822 over it, 10.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":"mistralrs-core/src/ops.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"17743c7664d1a6f71b523f47d75f672e5e775bb4f8c886d1d6c856c5c61387fa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cuda/gdn.rs: FileTooLong \u2014 4971 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 57 free functions. The bar is 500 significant lines; this is 4471 over it, 9.94\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"707a1f0fcfdbdf68e2c315a6671c1015285b1d3d5da296ba3a389b5be33c8b27"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MultimodalLoader.load_model_from_path: MethodTooLong \u2014 load_model_from_path runs 964 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 864 over it, 9.64\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c26a7427127645f217c4d80e5bffc5743d23cb0df2c2c8577df1c627157828"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Pipeline.submit_step: MethodTooLong \u2014 submit_step runs 804 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 704 over it, 8.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":"mistralrs-core/src/pipeline/mod.rs"},"region":{"startLine":2255}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef03eb93d91a1b1ce7bbc8b554969e7653da67ec4ed90dfd7607e8c59ada841"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: metal_kernels/mod.rs: FileTooLong \u2014 3992 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 72 free functions. The bar is 500 significant lines; this is 3492 over it, 7.98\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff7778338f3ddbe17d0f30d82857f79596d703dccb3bbeee7c4c5b1852f4e45"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NormalLoader.load_model_from_path: MethodTooLong \u2014 load_model_from_path runs 771 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 671 over it, 7.71\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":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"92516835f295c838c48ae6cc6da17df632d65a09e2abe1085606521db8542445"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Engine.add_request: MethodTooLong \u2014 add_request runs 738 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 638 over it, 7.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":"mistralrs-core/src/engine/add_request.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"125ee0ec0c1d3b57ea56c4d967c323d4aaa82c5e417d0c9c97cd4756bea59b29"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pipeline/cuda_graph.rs: FileTooLong \u2014 3106 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 77 free functions. The bar is 500 significant lines; this is 2606 over it, 6.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":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"38da92eb74de13159750a91517e5e14561485af0ffed35499c5e6e367cef277b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/layers.rs: FileTooLong \u2014 3101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 37 free functions. The bar is 500 significant lines; this is 2601 over it, 6.20\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":"mistralrs-core/src/layers.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ebc33200d3ab70885213ccace822e6db7a16e1356b34b383eea9b83b0137f16"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: speculative/dflash.rs: FileTooLong \u2014 3051 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 2551 over it, 6.10\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":"mistralrs-core/src/speculative/dflash.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b548eb94b7ac812ddbd9fc8daeaee07a39bab93f9f999c004256caa89959d513"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::model_loader::loader_from_model_selected: FunctionTooLong \u2014 mistralrs_core::model_loader::loader_from_model_selected runs 572 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 472 over it, 5.72\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":"mistralrs-core/src/model_loader.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f84a86a484f6e627933cf808fde7dd4bbcb796cabf95898cb7be61d30ec270"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GridImageProcessor.process_inputs: MethodTooLong \u2014 process_inputs runs 570 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 470 over it, 5.70\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"5323c8406d93b9dc57803137a176b473bf7ba83b8f56eb47c7c96487d62c67a0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::pipeline::inputs_processor::text_models_inputs_processor::make_prompt_chunk: FunctionTooLong \u2014 mistralrs_core::pipeline::inputs_processor::text_models_inputs_processor::make_prompt_chunk runs 564 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 464 over it, 5.64\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":"mistralrs-core/src/pipeline/inputs_processor.rs"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d840742f9f569c4ad4eaf7c38433764300193cdc64e3c457806aba79dc02044"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pipeline/multimodal.rs: FileTooLong \u2014 2736 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 2236 over it, 5.47\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e1ff36ca52e463b7354a3024d369d8600f133436e3e68cc9ca18049ba626c95"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Sequence: TooManyMethods \u2014 163 methods. The bar is 30 methods; this is 133 over it, 5.43\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":"mistralrs-core/src/sequence.rs"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c65a5c337a8aa2dec815545dd95ade87f1941ae0dcdef72ce13c51565dfbebb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen2_5VLImageProcessor.process_inputs: MethodTooLong \u2014 process_inputs runs 516 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 416 over it, 5.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":"mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0d3fce25c7ce69ce800320864962938f1bf2ee052b77e700a8ecef37f40fc9f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen2VLImageProcessor.process_inputs: MethodTooLong \u2014 process_inputs runs 516 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 416 over it, 5.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":"mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2f2a0bd9188137e5b1af690e2b85ffb10192e04dbdc6ddbc9e17b9fc9583d94"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::afq::ops::cuda_backend::afq_mm_op: FunctionTooLong \u2014 mistralrs_quant::afq::ops::cuda_backend::afq_mm_op runs 513 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 413 over it, 5.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":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":2588}}}],"partialFingerprints":{"codehealthFindingId/v1":"4812aea46282903fd1021eb31510c2681c8c293830b90467c7169e9bc9d45751"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Gemma4ImageProcessor.process_inputs: MethodTooLong \u2014 process_inputs runs 512 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 412 over it, 5.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":"mistralrs-core/src/vision_models/gemma4/inputs_processor.rs"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"df5fd9f574b2e37ecded1e473ccbc4ae6321c6f6f6a15e25a3e47bae629a54e7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pipeline/mod.rs: FileTooLong \u2014 2497 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1997 over it, 4.99\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":"mistralrs-core/src/pipeline/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98682902a7abbfdf38ed08f2a94cd3cc403050382347b2d8a5f7792b18018799"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/ops.rs: FileTooLong \u2014 2448 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1948 over it, 4.90\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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecbad26405eb1a4b4cdc443f0bd34bc6acb0ae774bcb861153b8df4940c6ce11"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: layers/paged_attention.rs: FileTooLong \u2014 2392 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 35 free functions. The bar is 500 significant lines; this is 1892 over it, 4.78\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":"mistralrs-core/src/paged_attention/layers/paged_attention.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b831e1bf7002ebdac5d44f22ea8e87151a747abe7db003991007ef56c18fb5ba"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pipeline/normal.rs: FileTooLong \u2014 2382 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1882 over it, 4.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":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e24e345b9c31f34bae17d91708917ebc9e7c25dd9d0ecc9f65d613d30e8705e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 2317 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1817 over it, 4.63\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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"44971c949700bb453262c7ffa58b68b5a48487f0336037bd5e5609c190f70077"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pipeline/inputs_processor.rs: FileTooLong \u2014 2293 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1793 over it, 4.59\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":"mistralrs-core/src/pipeline/inputs_processor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"17dc444e7d1c6f7191d07ce63b52c9d952f9ac76102b1f73cd7c97c002e17a3c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EmbeddingLoader.load_model_from_path: MethodTooLong \u2014 load_model_from_path runs 445 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"f031b26ad93d738d089a4d32ff64405b456cac15bea7eb2aa9fc329d974b87f4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Gemma4Model.forward_inner: MethodTooLong \u2014 forward_inner runs 436 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 336 over it, 4.36\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":"mistralrs-core/src/vision_models/gemma4/mod.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eeb40df61a2088380ea01a30842f20269eff3d6c677bf917c889ea61e54224d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 2164 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 77% of them inside a single declaration: MistralRs (3 blocks, 462-3045). The bar is 500 significant lines; this is 1664 over it, 4.33\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":"mistralrs-core/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e533d1d84c4ab164d9d074aeb2555b8f1ed24cca16895bc218f6b4ba29bc65"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_pyo3::parse_which: FunctionTooLong \u2014 mistralrs_pyo3::parse_which runs 431 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 331 over it, 4.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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"257aa8ad11fd872bc98fa7d3997c76ad4b2993b69d081f79caa8c99d6490a3ab"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_server_core::chat_completion::parse_request: FunctionTooLong \u2014 mistralrs_server_core::chat_completion::parse_request runs 430 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 330 over it, 4.30\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":"mistralrs-server-core/src/chat_completion.rs"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a2cd002a4da6a9402583e37c1d1422ec0862384e6170549f312e1c4e80ea8e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: afq/ops.rs: FileTooLong \u2014 2095 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1595 over it, 4.19\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":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2021d0babd4015cac433c0df5aed4796ff64c2b8c5ae0de2c7fe0b8be786ec"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MistralRs: ClassTooLong \u2014 1664 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 81 methods, 3 blocks, lines 462-3045. The bar is 400 significant lines; this is 1264 over it, 4.16\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":"mistralrs-core/src/lib.rs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f880af4a7d26aeb89c1c5e522098dc6e5d163998a4cae996db3148210e6039a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gguf/normal_config.rs: FileTooLong \u2014 2064 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 72 free functions. The bar is 500 significant lines; this is 1564 over it, 4.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":"mistralrs-core/src/gguf/normal_config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"456959bf401f76854e433cfe0dac38c67daeee4b0b8d4b93eaa86a3ab90f4c03"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gemma4/text.rs: FileTooLong \u2014 2056 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1556 over it, 4.11\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":"mistralrs-core/src/vision_models/gemma4/text.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a71af325b5210901dc8d5f1da98595baf15222a4fbeff41290c11b65994362"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::cuda::gdn::speculative_recurrence_checkpoints_cuda: FunctionTooLong \u2014 mistralrs_core::cuda::gdn::speculative_recurrence_checkpoints_cuda runs 410 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 310 over it, 4.10\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":3813}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c23c640fe1dafb57221f1f70e5b720d7beea9d2cbac30bd14bc138f7f7cea8e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Engine: ClassTooLong \u2014 1631 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 23 methods, 3 blocks, lines 205-2619. The bar is 400 significant lines; this is 1231 over it, 4.08\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":"mistralrs-core/src/engine/mod.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbed5ae4b8d10bc58acc21ead06ba3e81a0459ea96ddc71fac25185decaa3f2e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: engine/mod.rs: FileTooLong \u2014 2009 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 81% of them inside a single declaration: Engine (3 blocks, 205-2619). The bar is 500 significant lines; this is 1509 over it, 4.02\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":"mistralrs-core/src/engine/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b3d443877b0c244561bdcf7e9314e5b005e47d64128cbecf04ce23afa150f21"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::afq::ops::cuda_backend::afq_dequantize_op: FunctionTooLong \u2014 mistralrs_quant::afq::ops::cuda_backend::afq_dequantize_op runs 400 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 300 over it, 4.00\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":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":2102}}}],"partialFingerprints":{"codehealthFindingId/v1":"396f4eece337ad92fb715ad3640a29ad4d1c29227855238ffa5b0b0e893eaa66"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::toml_selector::loader_from_selected: FunctionTooLong \u2014 mistralrs_core::toml_selector::loader_from_selected runs 398 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 298 over it, 3.98\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":"mistralrs-core/src/toml_selector.rs"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddab0feeed6b230678da296b231279bb4ccd35b4cd9ce2eb8fefd7f6abb75fba"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::pipeline::sampling::finish_or_add_toks_to_seq: FunctionTooLong \u2014 mistralrs_core::pipeline::sampling::finish_or_add_toks_to_seq runs 397 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 297 over it, 3.97\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":"mistralrs-core/src/pipeline/sampling.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b7740d04baf0307b8e33796c32bc2e72811b3a90f498dafd4b87d1dee025f26"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: kv_cache/hybrid_cache.rs: FileTooLong \u2014 1980 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 60% of them inside a single declaration: HybridCache (5 blocks, 1082-4229). The bar is 500 significant lines; this is 1480 over it, 3.96\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":"mistralrs-core/src/kv_cache/hybrid_cache.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ca4285272633d2132a49331b96309559fc58ae0e8f2c19df18b774952731ff"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/granite.rs: FileTooLong \u2014 1950 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1450 over it, 3.90\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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e03e88789277e43375a4736108cb35cff7381851808365575611740fefdec47"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 1912 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 39 free functions. The bar is 500 significant lines; this is 1412 over it, 3.82\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":"mistralrs-quant/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe5e55ec15fbdc333bdf6d101aafd8cf53d14d5da4c36dce97cad181fcfcd41"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::cutile::routed_lora::routed_lora_kernel::routed_lora_one_shot: FunctionTooLong \u2014 mistralrs_quant::cutile::routed_lora::routed_lora_kernel::routed_lora_one_shot runs 379 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 279 over it, 3.79\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":"mistralrs-quant/src/cutile/routed_lora.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c563ddb52de86b2f74d637c714618868636c46f9be9568d97278eeef47633dd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/sequence.rs: FileTooLong \u2014 1831 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1331 over it, 3.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":"mistralrs-core/src/sequence.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa4ba1e63dadd9f9981464d4c9f43951df2590e9730452695cc7f3c2a1eadd32"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::cutile::fused_moe_fp8::fused_moe_fp8::fused_moe_fp8_kernel: FunctionTooLong \u2014 mistralrs_quant::cutile::fused_moe_fp8::fused_moe_fp8::fused_moe_fp8_kernel runs 358 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 258 over it, 3.58\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":"mistralrs-quant/src/cutile/fused_moe_fp8.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"1165b2f756dc36cafecbace0aa4a04157b4debcead3323994ddde5be210d324a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gguf/ffi.rs: FileTooLong \u2014 1755 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1255 over it, 3.51\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":"mistralrs-quant/src/gguf/ffi.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb84043a9f908f59f3edfd48ce3f2e77c8f6967eb905e2378b4a34ad66aaa086"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_paged_attn::cuda::backend::mla::flashinfer_mla_decode: FunctionTooLong \u2014 mistralrs_paged_attn::cuda::backend::mla::flashinfer_mla_decode runs 350 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 250 over it, 3.50\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":"mistralrs-paged-attn/src/cuda/backend/mla.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f9da8038066876e5e4979c67380ad19703954655eb1fd4fe9e7798244d9eb12"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DFlashDraftModel: ClassTooLong \u2014 1393 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 40 methods, 2 blocks, lines 1285-3860. The bar is 400 significant lines; this is 993 over it, 3.48\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":"mistralrs-core/src/speculative/dflash.rs"},"region":{"startLine":1285}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df628aacda705683098e8d2125ea8470f31464a8fd3af45c5285126e2444961"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: distributed/layers.rs: FileTooLong \u2014 1739 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1239 over it, 3.48\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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b84b669ac80de4c7d80de61e81a4ed36722c44aea14b2ef065c3c9d66eae1c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MultimodalPipeline: ClassTooLong \u2014 1389 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 12 methods, 10 blocks, lines 217-3517. The bar is 400 significant lines; this is 989 over it, 3.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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc248c7e4dedf848cac711621bd2747304f9b65012ebec1fe1dadedb600e6a8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ImageEmbedding.forward: MethodTooLong \u2014 forward runs 346 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 246 over it, 3.46\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":"mistralrs-core/src/vision_models/phi3/mod.rs"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a7e99ed3c0db624516fef9a18ac4a1560acb8864e67efa3d726c034442cceb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: vision_models/grid_processor.rs: FileTooLong \u2014 1722 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 63% of them inside a single declaration: GridImageProcessor (5 blocks, 65-2164). The bar is 500 significant lines; this is 1222 over it, 3.44\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b421341c3886707589aa4c40b4c55e5ba06c2ab733559f95317135543c2cfb6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::cutile::qsa_decode::kernels::qsa_attention_split: FunctionTooLong \u2014 mistralrs_quant::cutile::qsa_decode::kernels::qsa_attention_split runs 337 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 237 over it, 3.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":"mistralrs-quant/src/cutile/qsa_decode.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"0733cdc1688157b5b55c60030577fdca291da1f3a25d5d1b1dd94d9fa43a9694"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/responses.rs: FileTooLong \u2014 1661 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1161 over it, 3.32\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":"mistralrs-server-core/src/responses.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2e179a0aec66571aa409d8579069ac5facf1646ac1aab902871bc4c572bfd6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::cutile::fused_moe::fused_moe::fused_moe_kernel: FunctionTooLong \u2014 mistralrs_quant::cutile::fused_moe::fused_moe::fused_moe_kernel runs 329 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 229 over it, 3.29\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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5a56932ec2ff0b89e508f75958cab941c874733afa695b11654e9bc9d077c5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OpenResponsesStreamer.poll_next: MethodTooLong \u2014 poll_next runs 329 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 229 over it, 3.29\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":"mistralrs-server-core/src/responses.rs"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed5cbf144b92345e9f1a356ef3bb02537a271656569a4ddda30d989750be5c37"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gemma3n/text.rs: FileTooLong \u2014 1631 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1131 over it, 3.26\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":"mistralrs-core/src/vision_models/gemma3n/text.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd5e7b5892a63ee1558fa2cf64ea4818d51af15f0408081aeca13567da1e4b8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::cuda::gdn::deferred_recurrence_rmsnorm_gate_cuda: FunctionTooLong \u2014 mistralrs_core::cuda::gdn::deferred_recurrence_rmsnorm_gate_cuda runs 326 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 226 over it, 3.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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":4368}}}],"partialFingerprints":{"codehealthFindingId/v1":"23cb759420454f094c8e657168d042c3722c0af1a38916f1a9d19969fd725b33"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MistralRsForServerBuilder.build_multi_model: MethodTooLong \u2014 build_multi_model runs 325 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 225 over it, 3.25\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":"mistralrs-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4452b71e678e7eb05cfd1c97dd899fb2e95c5a4a3b4381e8830fb1094925797"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: blockwise_fp8/ops.rs: FileTooLong \u2014 1571 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1071 over it, 3.14\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f45c76a31fc29f08bb8e425bbbf881bf8d1e2ed72eefec0fba2b5f367d48d4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: run/interactive.rs: FileTooLong \u2014 1567 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1067 over it, 3.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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40e33849f6e70c69ef210d0387478e75a9fc27d32d7d761937ded3e444052a8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/sampler.rs: FileTooLong \u2014 1567 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 72% of them inside a single declaration: Sampler (2 blocks, 304-2237). The bar is 500 significant lines; this is 1067 over it, 3.13\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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad725317fc6e11159d347f771cb00a1223089646cef350f7673bc9c18e93a7e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::afq::ops::cuda_backend::afq_quantize_op: FunctionTooLong \u2014 mistralrs_quant::afq::ops::cuda_backend::afq_quantize_op runs 309 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":1706}}}],"partialFingerprints":{"codehealthFindingId/v1":"b438e68a74d0e027f976cb97dae75c1877a6eb0fc245ef8da92a06aaacdbb72b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HqqBits.bitpack_type: MethodTooLong \u2014 bitpack_type runs 306 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 206 over it, 3.06\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":"mistralrs-quant/src/hqq/mod.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"8419ffc3688f555ae205380f5bc25f9a4f71448dcb6db26834390657b7bc07e5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/anthropic.rs: FileTooLong \u2014 1508 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 38 free functions. The bar is 500 significant lines; this is 1008 over it, 3.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":"mistralrs-server-core/src/anthropic.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e2e16521053729e420f73dafa8c3a8fa36776600d5d505392dc5ff147f27552"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PagedAttentionScheduler.schedule: MethodTooLong \u2014 schedule runs 299 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 199 over it, 2.99\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":"mistralrs-core/src/paged_attention/scheduler.rs"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb5cfe9d4764a4836fcbee29759bcc323e9401476cb1ab3cf5bfddacd0a96f3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: qwen3_5/text.rs: FileTooLong \u2014 1487 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 987 over it, 2.97\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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e96bf39ce1e1dece8352db8cb68ee6c28184828f3982c27d32a3314fb54ee4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HybridCache: ClassTooLong \u2014 1186 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 70 methods, 5 blocks, lines 1082-4229. The bar is 400 significant lines; this is 786 over it, 2.97\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":"mistralrs-core/src/kv_cache/hybrid_cache.rs"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"b069c9ba98d179692a4537b417db1eb0b57e9a46f539ddb177f7221e535c436e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen3VLModel.forward: MethodTooLong \u2014 forward runs 292 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 192 over it, 2.92\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":"mistralrs-core/src/vision_models/qwen3_vl/mod.rs"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c95432a1a3ef15f6783a0e9b9d803aa55d05d811fa33fc01a6a154350a0dfb9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen3VLMoEModel.forward: MethodTooLong \u2014 forward runs 292 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 192 over it, 2.92\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":"mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"84bc8dff9ac20337d56f90c1a15d3b4bbae2123e42e82156b3a22c579c8c80d7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scripts/bench_decode_serving.py: FileTooLong \u2014 1457 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 957 over it, 2.91\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":"releases/v0.9.3/scripts/bench_decode_serving.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4e7534466b45ba48ef699e9b9bdde3e1fddec531b818318e13ef03430b59d0f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LLaVAInputProcessor.process_inputs: MethodTooLong \u2014 process_inputs runs 291 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 191 over it, 2.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":"mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e27dc94781907eac1315ad125e294b3243724d9d563147e54b835609af92f0f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LLaVANextInputProcessor.process_inputs: MethodTooLong \u2014 process_inputs runs 284 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 184 over it, 2.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":"mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"460910440e918afb8f2fed75323b543ce03cdf4a1d3c9e9308c90f0fdf0dee18"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Sampler: ClassTooLong \u2014 1135 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 44 methods, 2 blocks, lines 304-2237. The bar is 400 significant lines; this is 735 over it, 2.84\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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c492eb18a11ee804233e337ed6c93ed1a14f4e3ebe9d724ebb1a2fffea2adbd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: qwen2vl/inputs_processor.rs: FileTooLong \u2014 1402 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 63% of them inside a single declaration: Qwen2VLImageProcessor (4 blocks, 49-1763). The bar is 500 significant lines; this is 902 over it, 2.80\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":"mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bb7afefbbe506f5f67206c503fdefa20d49b75ba6c73b5e5d80e4950ff3b1b0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen3_5TextModel.forward_embeds: MethodTooLong \u2014 forward_embeds runs 280 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5617a57830c15325ff5496a1cbd764e857c0d4da75b7228708148275c51748"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PagedAttention.metal_fwd: MethodTooLong \u2014 metal_fwd runs 280 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-paged-attn/src/metal/backend/paged_attention.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a9f68b20ba9b73cb77c4cb8acac22dd83d8841e0e0716e6e4c0965ac58dd2c4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PagedAttentionScheduler: ClassTooLong \u2014 1119 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 35 methods, 4 blocks, lines 109-1602. The bar is 400 significant lines; this is 719 over it, 2.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":"mistralrs-core/src/paged_attention/scheduler.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"6855898f010c92ca0765d86abb4366862d7929cdace8fa38a4c3620a467e06cd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::speculative::driver::verify_staged_batch: FunctionTooLong \u2014 mistralrs_core::speculative::driver::verify_staged_batch runs 279 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 179 over it, 2.79\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":"mistralrs-core/src/speculative/driver.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"160f7e3cea2458a8cb5ad8dabf1f86349a4c26e63b940bfe2955590b0f5134ae"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/openai.rs: FileTooLong \u2014 1390 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 890 over it, 2.78\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":"mistralrs-server-core/src/openai.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e130a57c9ffcef41197aef1de593602d109171234c5f3d65692b2e478f8b288d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MLlamaImageProcessor.process_inputs: MethodTooLong \u2014 process_inputs runs 277 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 177 over it, 2.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":"mistralrs-core/src/vision_models/mllama/inputs_processor.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a28e32c646185bb346f1654bc1610a2e86ce922e21ae76e6bb6e8d82c68c00"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ImageEmbedding.forward: MethodTooLong \u2014 forward runs 273 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 173 over it, 2.73\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":"mistralrs-core/src/vision_models/phi4/image_embedding.rs"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"f364e5910818c4be3b590569432bbedd1414fbe8e8d02ea4e0ff007b350b12ce"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Runner: ClassTooLong \u2014 1091 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 36 methods, 3 blocks, lines 605-2630. 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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff47cc70e016beda4a04268a21470c3f99d2d1128894f7163425862a4c49b825"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GridImageProcessor: ClassTooLong \u2014 1084 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 9 methods, 5 blocks, lines 65-2164. The bar is 400 significant lines; this is 684 over it, 2.71\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ad09ac8cda1d1ebe114dc1c9be99dcfec12572cae9566495ab152a156dce27"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Phi4MMInputsProcessor: ClassTooLong \u2014 1083 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 14 methods, 5 blocks, lines 262-1714. The bar is 400 significant lines; this is 683 over it, 2.71\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":"mistralrs-core/src/vision_models/phi4/inputs_processor.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"025d13d3ed682d82f4aa8cbde3784ade79fde8b0d58cd883b60853124910c0e7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: phi4/inputs_processor.rs: FileTooLong \u2014 1351 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 80% of them inside a single declaration: Phi4MMInputsProcessor (5 blocks, 262-1714). The bar is 500 significant lines; this is 851 over it, 2.70\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":"mistralrs-core/src/vision_models/phi4/inputs_processor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8063614542676dff868949c2678dd3396a2eceaa8692f25c18ae76f7c7eeb4d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MistralRs: TooManyMethods \u2014 81 methods. The bar is 30 methods; this is 51 over it, 2.70\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":"mistralrs-core/src/lib.rs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"839d80c293caf696f524126aebd8d03e5c9cee01784da77a71d6b8f884b1b1a3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_paged_attn::metal::backend::paged_prefill::metal_paged_prefill: FunctionTooLong \u2014 mistralrs_paged_attn::metal::backend::paged_prefill::metal_paged_prefill runs 270 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 170 over it, 2.70\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":"mistralrs-paged-attn/src/metal/backend/paged_prefill.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84da53b6613c7b03dbee1836c73b4fc726bd15d86260e53ce8ad7c5ea0222e6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Sequence: ClassTooLong \u2014 1075 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 163 methods, 2 blocks, lines 753-2368. The bar is 400 significant lines; this is 675 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":"mistralrs-core/src/sequence.rs"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe1926700588cc9aef17dfa13214fc360336527912eff01dd43946075bc64e5c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cutile/routed_lora.rs: FileTooLong \u2014 1336 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 45 free functions. The bar is 500 significant lines; this is 836 over it, 2.67\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":"mistralrs-quant/src/cutile/routed_lora.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da74363213c529fd9e3cab565ff4794ab70753a8b5b80042c7a636da7f17f7ff"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pipeline/gguf.rs: FileTooLong \u2014 1333 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 66% of them inside a single declaration: GGUFLoader (3 blocks, 125-1485). The bar is 500 significant lines; this is 833 over it, 2.67\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":"mistralrs-core/src/pipeline/gguf.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbfb2f5b25f0aa5d7c13c41a4f26ab3cf9fb1b50953530c7891a3c53443f69bf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Gemma3nLoader.non_mapped_size_in_bytes: MethodTooLong \u2014 non_mapped_size_in_bytes runs 266 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 166 over it, 2.66\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":6002}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0df6d5ff25757fad49503221d126cecd87f63ab4d712818c9e6dd937b871e5b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PreQuantizedExperts.new: MethodTooLong \u2014 new runs 266 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 166 over it, 2.66\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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":1939}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad47c6a4c2cc07b08119dfb813e304b7353f92181a3618679b99d0b9080ab90"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gemma4/inputs_processor.rs: FileTooLong \u2014 1325 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 74% of them inside a single declaration: Gemma4ImageProcessor (4 blocks, 169-1796). The bar is 500 significant lines; this is 825 over it, 2.65\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":"mistralrs-core/src/vision_models/gemma4/inputs_processor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"936375711cafb6cfce69a3cbc9ded1d789f1b8d0d7b6f3620ad6cc5bf2ce553b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TextModel.forward_embeds_scaled: MethodTooLong \u2014 forward_embeds_scaled runs 265 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 165 over it, 2.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":"mistralrs-core/src/vision_models/gemma4/text.rs"},"region":{"startLine":2107}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa20819820889db8b7adebd291f208595d76131fa0d7f58655e761b419b97b9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen3_5Model.forward: MethodTooLong \u2014 forward runs 264 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 164 over it, 2.64\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":"mistralrs-core/src/vision_models/qwen3_5/mod.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14757cf2f0094f98a89cb6cc95a031859456a12691e1c3c13a28fddee3448e8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen3_5MoeModel.forward: MethodTooLong \u2014 forward runs 264 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 164 over it, 2.64\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":"mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"c42de23438fa37d5da1bf41b1358d8050263278de752f32c669872780259f346"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelWeights.from_gguf: MethodTooLong \u2014 from_gguf runs 264 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 164 over it, 2.64\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":"mistralrs-core/src/xlora_models/quantized_llama.rs"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b46a7a995240cd208915ae78afcac873d98ef27c340b07dc6ac36daaae69b95"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NormalPipeline: ClassTooLong \u2014 1043 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 10 methods, 10 blocks, lines 112-2953. The bar is 400 significant lines; this is 643 over it, 2.61\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":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"401aafa3b8bc7bd91a1b36ccd2414e4bced646a6d7406221c732a3944856db3a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: PreProcessorConfig: TooManyFields \u2014 78 stored fields beside 2 methods. The bar is 30 stored fields; this is 48 over it, 2.60\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/preprocessor_config.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1e71c395c8d2b53be5189b25fa51e5b60d393f95772fbe098b6057d6bab1f0b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::cutile::qsa::kernels::qsa_attention: FunctionTooLong \u2014 mistralrs_quant::cutile::qsa::kernels::qsa_attention runs 260 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 160 over it, 2.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":"mistralrs-quant/src/cutile/qsa.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"478c33864beb4fedb758daa5514b0aefa3432031dc06bf869e5d0caa87a12b0e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MultimodalLoader: ClassTooLong \u2014 1036 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 1 methods, 3 blocks, lines 244-1729. The bar is 400 significant lines; this is 636 over it, 2.59\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d586961c2786a6171d1322519ad85ece7146ccdea421cee741031699d160fac"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::paged_attention::plan::gather_prefill_workspace_bytes: FunctionTooLong \u2014 mistralrs_core::paged_attention::plan::gather_prefill_workspace_bytes runs 259 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 159 over it, 2.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":"mistralrs-core/src/paged_attention/plan.rs"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"a666f5b8455df444049346c476a98214abd5f5ebaa3c9110bc266557d30e093e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_paged_attn::cuda::backend::fa3::fa3_fp8_decode: FunctionTooLong \u2014 mistralrs_paged_attn::cuda::backend::fa3::fa3_fp8_decode runs 259 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 159 over it, 2.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":"mistralrs-paged-attn/src/cuda/backend/fa3.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"19fddc7c533cbf734d2c96b75df1083d0aec6b34317e0ce6725fece249260a1b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::pipeline::loaders::auto_device_map::get_device_layers_attempt: FunctionTooLong \u2014 mistralrs_core::pipeline::loaders::auto_device_map::get_device_layers_attempt runs 258 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 158 over it, 2.58\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":"mistralrs-core/src/pipeline/loaders/auto_device_map.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14be9df85ee9f77aa55828c663af1604c7d4c85a74b1bb998093b99b33a7b0b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Pipeline: ClassTooLong \u2014 1025 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 34 methods. The bar is 400 significant lines; this is 625 over it, 2.56\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":"mistralrs-core/src/pipeline/mod.rs"},"region":{"startLine":1981}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1020107ae08f70a30886300b401a457d2d4106b45e57d815b32d41d0982894f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gguf/cuda.rs: FileTooLong \u2014 1265 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 765 over it, 2.53\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":"mistralrs-quant/src/gguf/cuda.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55bb5ac9b715fbf85f290e51f657141f6a705806c2fa9891730ed88ba0dea34d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::diagnostics::run_doctor: FunctionTooLong \u2014 mistralrs_core::diagnostics::run_doctor runs 252 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 152 over it, 2.52\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":"mistralrs-core/src/diagnostics.rs"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ed9ddaf030fb2d098bba23ba6f8aa1e7ffe8a2dd20fb19d3da8a29e2f93e2a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_cli::commands::serve::convert_text_model: FunctionTooLong \u2014 mistralrs_cli::commands::serve::convert_text_model runs 251 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 151 over it, 2.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":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"819d9b2ec0c0f64e8237d4297d0b5ba27e6477057902c92c1456bb8be6d34652"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Gemma3ImageProcessor.process_inputs: MethodTooLong \u2014 process_inputs runs 251 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 151 over it, 2.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":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff674b7ff9defef4b6d54d0ef0d687bbc4eb6eb3ab2fee5a553a9413c086dff"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/model_builder_trait.rs: FileTooLong \u2014 1253 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 753 over it, 2.51\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":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f8e11ba225a269cb086a87992407d7e86d3a25b7cc33494a81b685238e91a6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_paged_attn::cuda::backend::flashinfer::flashinfer_decode: FunctionTooLong \u2014 mistralrs_paged_attn::cuda::backend::flashinfer::flashinfer_decode runs 250 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 150 over it, 2.50\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":"mistralrs-paged-attn/src/cuda/backend/flashinfer.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"6742e2743d4719efaee145fd016d5b44ba8d80a21f90e5890d976d5c758bab24"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: paged_attention/plan.rs: FileTooLong \u2014 1249 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 749 over it, 2.50\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":"mistralrs-core/src/paged_attention/plan.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55bf394d6e7fcee00de091627549f4c681c121d8746c84c4b6c86f6e610e7fd5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen4ExpTextModel.forward_embeds: MethodTooLong \u2014 forward_embeds runs 249 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 149 over it, 2.49\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":"mistralrs-core/src/vision_models/qwen4_exp/text.rs"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc7e3d288e95634d3dfe5c80f72fb2fb0b5aa57345ce24c763c9a61339e91fbc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CacheEngine.allocate_gpu_cache: MethodTooLong \u2014 allocate_gpu_cache runs 248 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 148 over it, 2.48\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":"mistralrs-core/src/paged_attention/cache_engine.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"c820d6a7798e5526856ff9b224cfa2d2b96cd3e43fe0e7e34f54d673ce288509"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: uqff/report.rs: FileTooLong \u2014 1229 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 67 free functions. The bar is 500 significant lines; this is 729 over it, 2.46\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":"mistralrs-quant/src/uqff/report.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"808b4cf0d678c6a21a5ee14e4910a02f2c76601a61d9efc4ed03116d296112bc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Gemma4ImageProcessor: ClassTooLong \u2014 981 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 14 methods, 4 blocks, lines 169-1796. The bar is 400 significant lines; this is 581 over it, 2.45\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":"mistralrs-core/src/vision_models/gemma4/inputs_processor.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"d48e97ccddbc6845602f505b917d70472260e2af903d4513e03e9605511921f3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Runner.new: MethodTooLong \u2014 new runs 245 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 145 over it, 2.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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":1264}}}],"partialFingerprints":{"codehealthFindingId/v1":"722191c1a211a426d5a7e9c553a44dc0f27bd2d6c9ff76e72e862ca4326fd979"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DecodePagedRows.build_inner: MethodTooLong \u2014 build_inner runs 244 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 144 over it, 2.44\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":"mistralrs-core/src/pipeline/inputs_processor.rs"},"region":{"startLine":2156}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff71e254c0f731149736e5c2fbf1b061b0b726431b807b692151bdd92c6d1598"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::engine::agentic_loop::agentic_loop: FunctionTooLong \u2014 mistralrs_core::engine::agentic_loop::agentic_loop runs 243 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 143 over it, 2.43\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":"mistralrs-core/src/engine/agentic_loop.rs"},"region":{"startLine":1256}}}],"partialFingerprints":{"codehealthFindingId/v1":"1973729b13f9b6685cd6ef8618c59570e9d912d4cd39eb1d627468123189d671"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: phi3/mod.rs: FileTooLong \u2014 1209 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 709 over it, 2.42\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":"mistralrs-core/src/vision_models/phi3/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"586f9f662bd2d2b61805d9b17a6d2dcb71f4f3e243ff6bd444f95542f4e55e84"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_cli::commands::run::interactive::multimodal_interactive_mode: FunctionTooLong \u2014 mistralrs_cli::commands::run::interactive::multimodal_interactive_mode runs 241 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 141 over it, 2.41\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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1529}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc9c61bb504a0246b5cb65ee0d7c9a5c46c90b7e4320bbdd2e198ee486b4e8b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::mla::forward::mla_cache_forward: FunctionTooLong \u2014 mistralrs_core::mla::forward::mla_cache_forward runs 241 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 141 over it, 2.41\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":"mistralrs-core/src/mla/forward.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"358d562f135b44d676e681ce70b9a6ea5fffb83918b8381e38caf5b6e6411517"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PagedAttention.cuda_fwd_t: MethodTooLong \u2014 cuda_fwd_t runs 240 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 140 over it, 2.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":"mistralrs-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e205a200284791b7a857c2bec5b10d6c5da9cf933b8f7361630b21d21675c6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gguf/fast_mmq.rs: FileTooLong \u2014 1196 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 696 over it, 2.39\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":"mistralrs-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"335b77786ca1c048f3b6ad91b5556f96afe2419ee5e80594f7410c0ef78ba41d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Phi3InputsProcessor.process_inputs: MethodTooLong \u2014 process_inputs runs 238 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 138 over it, 2.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":"mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a13255fa75724c416b72c5c0e67d6f34de0b2d7e788d9c7f3953ef33a063b84"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: paged_attention/scheduler.rs: FileTooLong \u2014 1186 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 94% of them inside a single declaration: PagedAttentionScheduler (4 blocks, 109-1602). The bar is 500 significant lines; this is 686 over it, 2.37\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":"mistralrs-core/src/paged_attention/scheduler.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6456a769c2797829983f22f8226682b5ed004b0b6375686f2c005f157218e0d9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/fp8_config.rs: FileTooLong \u2014 1181 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 681 over it, 2.36\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":"mistralrs-quant/src/fp8_config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b9ded446bf737a1419e069152b4989b3ab19a969363817250b4c4ff491cfbc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RoutedExperts.forward_grouped: MethodTooLong \u2014 forward_grouped runs 236 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 136 over it, 2.36\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":"mistralrs-quant/src/routed_moe/cuda.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b7fdaafad32e3aaa3bc56b933b1f3a92c6c28a5a729a98c9e18547b6397c92e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: engine/agentic_loop.rs: FileTooLong \u2014 1173 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 49 free functions. The bar is 500 significant lines; this is 673 over it, 2.35\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":"mistralrs-core/src/engine/agentic_loop.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5b55d2b7546fef313ea0360b63d947981ffd7ee013283a2b4be91982327127"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/lfm2.rs: FileTooLong \u2014 1170 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 670 over it, 2.34\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":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8206974a12e4355979ee0086231d597e9bd60f86bcf4fd358ca9b699e70f83f8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TextModel.new: MethodTooLong \u2014 new runs 234 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 134 over it, 2.34\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":"mistralrs-core/src/vision_models/gemma3n/text.rs"},"region":{"startLine":1310}}}],"partialFingerprints":{"codehealthFindingId/v1":"738638d2d9d58c30f042d1bb0e2d2f2d55f03de41b4bbf96381b8aa230197211"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HybridCache: TooManyMethods \u2014 70 methods. The bar is 30 methods; this is 40 over it, 2.33\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":"mistralrs-core/src/kv_cache/hybrid_cache.rs"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e3d607a50b807e850a0569685fb09d484246e0232a718048a76252dd9f65d2c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Idefics3ImageProcessor.process_inputs: MethodTooLong \u2014 process_inputs runs 233 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 133 over it, 2.33\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":"mistralrs-core/src/vision_models/idefics3/inputs_processor.rs"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f606c3285f45624a0df105d81655d06bb188bc75bdd9bcd3e976ff1da9f4af"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pipeline/sampling.rs: FileTooLong \u2014 1155 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 655 over it, 2.31\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":"mistralrs-core/src/pipeline/sampling.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e8b5914c272e9b85bc05e60ac161562d9f3a4312657733b919cb865e652a33b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FlashAttnVarLen.cuda_fwd_t: MethodTooLong \u2014 cuda_fwd_t runs 231 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 131 over it, 2.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":"mistralrs-flash-attn/src/flash.rs"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d174535b75be8adb4b77d91af3a9d995072fbe5dc3cb6d6b99d7c7db90672a8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MiniCpmOImageProcessor.process_inputs: MethodTooLong \u2014 process_inputs runs 230 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 130 over it, 2.30\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":"mistralrs-core/src/vision_models/minicpmo/inputs_processor.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"24f7d75bc083c85ec63085af07becfa78089d51e6aa4bb2d8ea84060985d13ed"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/lfm3.rs: FileTooLong \u2014 1145 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 645 over it, 2.29\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":"mistralrs-core/src/models/lfm3.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6214177efc91d1da7623cecf5a2405b506fdb745c5e79289c2bd65c718dfde4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::pipeline::paths::get_adapter_paths: FunctionTooLong \u2014 mistralrs_core::pipeline::paths::get_adapter_paths runs 229 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 129 over it, 2.29\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":"mistralrs-core/src/pipeline/paths.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"74672ff01b3f5b253c2075f9aab4735eecb42bd9847183d5a39d7cc616c68e5e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pipeline/isq.rs: FileTooLong \u2014 1140 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 640 over it, 2.28\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":"mistralrs-core/src/pipeline/isq.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7ebf5aa25d7f33dcac3f77660aa55f780704d3deb71ab0bdbedbbc5ae854cf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GgufDeviceMapLoaderInner.layer_sizes_in_bytes: MethodTooLong \u2014 layer_sizes_in_bytes runs 228 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 128 over it, 2.28\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":"mistralrs-core/src/utils/gguf_metadata.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"7588f6d3f129b3ffeefde658c1ab8c5ff212c96ef26fc80ff0a85dfaa1bb5233"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Sequence: TooManyFields \u2014 68 stored fields beside 163 methods. The bar is 30 stored fields; this is 38 over it, 2.27\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/sequence.rs"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a45bd5901a5eb21ac38e96e1ebb91c7d014e4098e50bd31ede739e655bb468"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Model: TooManyMethods \u2014 68 methods. The bar is 30 methods; this is 38 over it, 2.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":"mistralrs/src/model.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"3756a9df6e11da1958603ce21ea62142bf8d86e61437a13d95a50c681d540da9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: kv_cache/mod.rs: FileTooLong \u2014 1130 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 630 over it, 2.26\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":"mistralrs-core/src/kv_cache/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab3a9a81ea48d3a51cf24a68ec6850615e9210daf0cccc4cac70ee4bb3ce0d5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cutile/nvfp4_matmul.rs: FileTooLong \u2014 1128 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 628 over it, 2.26\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":"mistralrs-quant/src/cutile/nvfp4_matmul.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a62b6b670cea4fa40b0ce013266ef99712ccaf1c8d8594800358f8cb92117a2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Idefics2ImageProcessor.process_inputs: MethodTooLong \u2014 process_inputs runs 225 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 125 over it, 2.25\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":"mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18c9bf4276a594abe8b1d49458689db60a0cedbd7ff9f7ac3d8c30ed2d37bc0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: commands/serve.rs: FileTooLong \u2014 1117 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 42 free functions. The bar is 500 significant lines; this is 617 over it, 2.23\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":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"384346c386f00dc482b15927de3334a98b1babac31bb9f2c71b3859d1cb3111f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::paged_attention::plan::prompt_prefill_workspace: FunctionTooLong \u2014 mistralrs_core::paged_attention::plan::prompt_prefill_workspace runs 223 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 123 over it, 2.23\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":"mistralrs-core/src/paged_attention/plan.rs"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5eb11362f0c5a5042f435b43d5244193bebcbdf58bf2dee3eca61ec22c5a0a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_server_core::responses_types::items::output_item_schema: FunctionTooLong \u2014 mistralrs_server_core::responses_types::items::output_item_schema runs 223 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 123 over it, 2.23\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":"mistralrs-server-core/src/responses_types/items.rs"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e55c9e2417bc6dc31b122355ef2c2a58fed1698919bfe833e5931aff5d99b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::pipeline::loaders::activation_memory::model_activation_memory: FunctionTooLong \u2014 mistralrs_core::pipeline::loaders::activation_memory::model_activation_memory runs 222 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 122 over it, 2.22\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":"mistralrs-core/src/pipeline/loaders/activation_memory.rs"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"616bc61821f40a170087f464e9beab40964ac876fd71ff02f0998a929fa98336"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TextModel.new: MethodTooLong \u2014 new runs 222 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 122 over it, 2.22\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":"mistralrs-core/src/vision_models/gemma4/text.rs"},"region":{"startLine":1618}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c514b401033ea9ef09854a2fc81d076a3bb42a1185afdda5530d839be2478cc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Qwen2_5VLImageProcessor: ClassTooLong \u2014 886 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 2 methods, 4 blocks, lines 55-1198. The bar is 400 significant lines; this is 486 over it, 2.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":"mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"105f915be728782832d8b5d9de2b9764e354d2a10cea2f2ea665169da1d45fd9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Qwen2VLImageProcessor: ClassTooLong \u2014 886 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 2 methods, 4 blocks, lines 49-1763. The bar is 400 significant lines; this is 486 over it, 2.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":"mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bd67b81f1cd73bfe62a62c569cb4692e42cddd615cbd36e2f38d3f157e37f6f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen4ExpTextModel.new: MethodTooLong \u2014 new runs 221 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/vision_models/qwen4_exp/text.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e588db717ae39525dfa09f4a7de2b81971a9bac520330ad7e59c64f9d067c7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: kernels/mod.rs: FileTooLong \u2014 1103 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 603 over it, 2.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":"mistralrs-paged-attn/src/metal/kernels/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2e55952fcd008a363f65889197c4090ac6328a6b9f368a7e9cbd3d9bd192028"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: speculative/verifier.rs: FileTooLong \u2014 1102 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 602 over it, 2.20\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":"mistralrs-core/src/speculative/verifier.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"06efca5bed43fb8f7518d4a3a3177c54fe2658d1ca382ce2960c97aeea1001a9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GGUFLoader: ClassTooLong \u2014 880 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 9 methods, 3 blocks, lines 125-1485. The bar is 400 significant lines; this is 480 over it, 2.20\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":"mistralrs-core/src/pipeline/gguf.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee9ba7b982a49f3f24574bdb6cb119c8af6fab16946e1e3cb5ff5fafd29ede27"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen3_5TextModel.new: MethodTooLong \u2014 new runs 220 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 120 over it, 2.20\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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b46acda8feb97e0744c4d9e5620b565560870cd897f75f7442d550fd057742c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rotary/mod.rs: FileTooLong \u2014 1097 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 597 over it, 2.19\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":"mistralrs-quant/src/rotary/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e1ba8e9acc1278f0e785a561e239e35192a835dc087779fdebcf64229ea9966"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cuda/speculative_rejection.rs: FileTooLong \u2014 1094 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 594 over it, 2.19\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":"mistralrs-core/src/cuda/speculative_rejection.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5188ba57e2f5304c46fcb243f2c85928b73e593307517fb12528486e6e423a97"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: idefics2/mod.rs: FileTooLong \u2014 1086 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 586 over it, 2.17\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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac9a312e6420e10eabad3167ed62b291da3a366e326d2061cbc663d453a03f7e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PagedAttentionInputMetadata.for_reduced_prefill_queries: MethodTooLong \u2014 for_reduced_prefill_queries runs 217 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 117 over it, 2.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":"mistralrs-core/src/pipeline/inputs_processor.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"8776a78023d667135e623214686de9d8d7322e0d4f06d241e23784fe6617ec30"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dynamic/expert_cuda.rs: FileTooLong \u2014 1084 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 584 over it, 2.17\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":"mistralrs-quant/src/lora/dynamic/expert_cuda.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e707b3ba6fbfeca6dd34c9589379387da7dcca9d7831adb0927c96b95057bc91"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BlockwiseFP8Linear: ClassTooLong \u2014 862 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 7 methods, 5 blocks, lines 34-1253. The bar is 400 significant lines; this is 462 over it, 2.16\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":"mistralrs-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"257237938361b641370a7b9afcf85795c28af1cb59d884e20574a1d20b9b8cbb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Qwen3_5TextModel: ClassTooLong \u2014 861 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 29 methods, 5 blocks, lines 778-1910. The bar is 400 significant lines; this is 461 over it, 2.15\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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c64a603a2086f216c3cf859298a109082d7d049d23d2ab69b96e59554c68a3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::cutile::gdn_prefill::launch: FunctionTooLong \u2014 mistralrs_quant::cutile::gdn_prefill::launch runs 215 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 115 over it, 2.15\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":"mistralrs-quant/src/cutile/gdn_prefill.rs"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d785ed590bf9ad001caba91479de244e399d7eb56f52f23a02ed9dbf3a8fc72"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Nvfp4Layer: ClassTooLong \u2014 852 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 22 methods, 4 blocks, lines 84-1317. The bar is 400 significant lines; this is 452 over it, 2.13\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":"mistralrs-quant/src/nvfp4/mod.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bdb00097700df6c74f3cdf4bc801bd0bbbab45ebe5039e64b518e4d26e946fe"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::vision_models::qwen3_vl::get_rope_index: FunctionTooLong \u2014 mistralrs_core::vision_models::qwen3_vl::get_rope_index runs 213 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 113 over it, 2.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":"mistralrs-core/src/vision_models/qwen3_vl/mod.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"545dea78d1baf9777f04ee5d8f3a2ab0a06ae70104483d1d4e1aa4366d6d40f1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gguf/weight_source.rs: FileTooLong \u2014 1062 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 562 over it, 2.12\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":"mistralrs-quant/src/gguf/weight_source.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bc026e1f153b098843dca58a82b4c49489a126fba1f6e82f854f0b290ccd8cb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_pyo3::normalize_chat_messages: FunctionTooLong \u2014 mistralrs_pyo3::normalize_chat_messages runs 212 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"e268f0a0717911bac9003dbf73c094cbf77ae68d6f908b6504c44b1a319756ac"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::gguf::cuda::indexed_moe_fused_decode: FunctionTooLong \u2014 mistralrs_quant::gguf::cuda::indexed_moe_fused_decode runs 212 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-quant/src/gguf/cuda.rs"},"region":{"startLine":1468}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f5558e5cea66ff1d283d4279bc8900d1d9237b090a3fecfeca334b03096369e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gemma3n/audio.rs: FileTooLong \u2014 1058 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 558 over it, 2.12\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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d5e855a729b83c6e52bbe14421eb539a1fb90e58e66eeb47048c659b9da32fd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Phi4MMInputsProcessor.process_inputs: MethodTooLong \u2014 process_inputs runs 211 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 111 over it, 2.11\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":"mistralrs-core/src/vision_models/phi4/inputs_processor.rs"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dbc49d132a58df2ad9890f84c984c53ab9712baae82340ca2991ec8861daf2d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::cutile::nvfp4_matmul::launch_gather_prepared: FunctionTooLong \u2014 mistralrs_quant::cutile::nvfp4_matmul::launch_gather_prepared runs 211 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 111 over it, 2.11\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":"mistralrs-quant/src/cutile/nvfp4_matmul.rs"},"region":{"startLine":1110}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a5288717a97b335d55fd9ac3373950efb0f44fb90cfaca1420ca6ee9f339a35"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::metal_kernels::afq_qmm_dispatch: FunctionTooLong \u2014 mistralrs_quant::metal_kernels::afq_qmm_dispatch runs 211 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 111 over it, 2.11\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0256e3c6e4dc5fcdc47b06adac97794fdbc584ce46aa0e1b829d1e0ffa85b75"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::cuda::gdn::pending_transition_apply_batched_cuda: FunctionTooLong \u2014 mistralrs_core::cuda::gdn::pending_transition_apply_batched_cuda runs 210 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 110 over it, 2.10\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":5661}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f3ebf5e63204c312b16d29d080a9b3f5fdd16880e337f2ef8423663fc77a69f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TextInputsProcessor.process_inputs: MethodTooLong \u2014 process_inputs runs 209 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 109 over it, 2.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":"mistralrs-core/src/pipeline/inputs_processor.rs"},"region":{"startLine":2645}}}],"partialFingerprints":{"codehealthFindingId/v1":"37f9e87885c8e4f3867d59c90af31c4c1d386b265a6138ef7b9761a56e2f079e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TextModel: ClassTooLong \u2014 832 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 21 methods, 4 blocks, lines 1528-2695. The bar is 400 significant lines; this is 432 over it, 2.08\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":"mistralrs-core/src/vision_models/gemma4/text.rs"},"region":{"startLine":1528}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd861e3db3f345a1ad7cd34d214c2ac0a6a6413578f0dfdbcb81613336e0a66f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_paged_attn::cuda::backend::mla::gather_mla_cache: FunctionTooLong \u2014 mistralrs_paged_attn::cuda::backend::mla::gather_mla_cache runs 208 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 108 over it, 2.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":"mistralrs-paged-attn/src/cuda/backend/mla.rs"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"0989c4c5a4e6f0fb6d19876537bc36cbd199ea951c205db119fa6fd85fc39371"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::afq::ops::afq_mm_op: FunctionTooLong \u2014 mistralrs_quant::afq::ops::afq_mm_op runs 208 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 108 over it, 2.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":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"562b4e1c0749c25c01ad82394defd626fdaa8d803c95e46a9e8ad05dc5c8ba97"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NormalLoader: ClassTooLong \u2014 831 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 0 methods, 2 blocks, lines 376-1602. The bar is 400 significant lines; this is 431 over it, 2.08\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":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde250c4713ef2f97db1fbacfd5b21983740d733eadc4af82683557655f3ba92"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/chat_completion.rs: FileTooLong \u2014 1036 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 536 over it, 2.07\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":"mistralrs-server-core/src/chat_completion.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3351229bf63ec8607bf5aaee13c44561412cafa4612a3feb2b9134034700074"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_server_core::responses::create_response: FunctionTooLong \u2014 mistralrs_server_core::responses::create_response runs 207 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 107 over it, 2.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":"mistralrs-server-core/src/responses.rs"},"region":{"startLine":2046}}}],"partialFingerprints":{"codehealthFindingId/v1":"933ea897da0ae8673dea5b648e68afb91289d0c69b789ca09ed55fdb00822c96"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Model: ClassTooLong \u2014 827 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 68 methods, 2 blocks, lines 80-1319. The bar is 400 significant lines; this is 427 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":"mistralrs/src/model.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"d52b7d874c22066ea45a1e5488e2c5bbaf87e9a00f946c974d1a302d3a289e55"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AnyMoePipeline.amoe_pre_train: MethodTooLong \u2014 amoe_pre_train runs 206 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 106 over it, 2.06\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":"mistralrs-core/src/pipeline/amoe.rs"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b957fc53f250767d2ab9c01a9aa2ef495bbfa93b261efa8b1a3e71cb3198df4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GridImageProcessor.prepare_for_paged_prompt_planning: MethodTooLong \u2014 prepare_for_paged_prompt_planning runs 206 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 106 over it, 2.06\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"f398b94e3eaf78988f91c984aefa7041fbdd90cac484c089b6406160c28294e6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::cutile::qsa::kernels::qsa_score: FunctionTooLong \u2014 mistralrs_quant::cutile::qsa::kernels::qsa_score runs 206 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 106 over it, 2.06\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":"mistralrs-quant/src/cutile/qsa.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad23b46d90afddb7308f27360706a994922b716d49334cd252820a2d4afb213"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::mxfp4::ops::mxfp4_indexed_moe_gemm: FunctionTooLong \u2014 mistralrs_quant::mxfp4::ops::mxfp4_indexed_moe_gemm runs 206 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 106 over it, 2.06\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":"mistralrs-quant/src/mxfp4/ops.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"51162bd2ee05f825d76dea6b2bf197db393daee45517028b353b4af86717c400"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gguf/archive.rs: FileTooLong \u2014 1025 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 525 over it, 2.05\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":"mistralrs-quant/src/gguf/archive.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8b6af7df8b6ce32eb7b3a1e3c0ff8135c9e84c853f369c866b66726b832f140"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::gguf::fast_mmvq::fused_qkv_optional: FunctionTooLong \u2014 mistralrs_quant::gguf::fast_mmvq::fused_qkv_optional runs 204 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 104 over it, 2.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":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"3967a313f366ff539e95f14969041ad6de22c7ccea3d9ae540687769d6e446e2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::moe::cutlass::cutlass_fused_moe: FunctionTooLong \u2014 mistralrs_quant::moe::cutlass::cutlass_fused_moe runs 204 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 104 over it, 2.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":"mistralrs-quant/src/moe/cutlass.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47122c034f500f6056b1e35468d3c7d626d29944e8e319065b71ed27124398e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::cuda::gdn::speculative_transition_stage_batched_cuda: FunctionTooLong \u2014 mistralrs_core::cuda::gdn::speculative_transition_stage_batched_cuda runs 203 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 103 over it, 2.03\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":5227}}}],"partialFingerprints":{"codehealthFindingId/v1":"952b2a88f674abf8e87b01ffffbf47c499373a02ae0c44f16ac6a73095c936b0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_cli::commands::bench::run_bench: FunctionTooLong \u2014 mistralrs_cli::commands::bench::run_bench runs 202 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 102 over it, 2.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":"mistralrs-cli/src/commands/bench.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ede12abdd22a7885b279943440fbb0d1ba5f51fa2baae21a80069840486c95f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GdnWeights.load: MethodTooLong \u2014 load runs 202 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 102 over it, 2.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":"mistralrs-core/src/gdn/weights.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"96472e1d33b8c371d26924234c2a5bfed4af79425175357ebdedc4fdcb001ed5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Attention.forward: MethodTooLong \u2014 forward runs 202 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 102 over it, 2.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":"mistralrs-core/src/vision_models/gemma4/text.rs"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c429fb121a609cb2353f37f75bd8c9512c25d15bcc994b93a1a1eb904f6aa4c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hqq/mod.rs: FileTooLong \u2014 1007 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 507 over it, 2.01\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":"mistralrs-quant/src/hqq/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b0081a9ac2fd07512f1550352e4277ecfbaf573cf9c57c78174221582157d2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::cutile::nvfp4_gemv::launch: FunctionTooLong \u2014 mistralrs_quant::cutile::nvfp4_gemv::launch runs 201 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 101 over it, 2.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":"mistralrs-quant/src/cutile/nvfp4_gemv.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8673f96734c88709e0350b38408a806b0eb9aa04ca01b895d058b2f8edbff44"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: commands/uqff.rs: FileTooLong \u2014 1001 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 35 free functions. The bar is 500 significant lines; this is 501 over it, 2.00\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":"mistralrs-cli/src/commands/uqff.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7552b870d722d6a7174effb8ee852b12567a96677aabe1b66676547b039e82"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gguf/fast_mmvq.rs: FileTooLong \u2014 998 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 498 over it, 2.00\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":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef366e8cf93ef6b3c78b5169d3a20fc5f8848b4c14a5a6c40d182ecf6c5f58a2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: blockwise_fp8/mod.rs: FileTooLong \u2014 997 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 86% of them inside a single declaration: BlockwiseFP8Linear (5 blocks, 34-1253). The bar is 500 significant lines; this is 497 over it, 1.99\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":"mistralrs-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"268f6fe70c39e9dc9e2db4ef95d15990dbd2acc48ffa24f92012bfdfe391cfde"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DFlashDraftModel.load: MethodTooLong \u2014 load runs 198 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 98 over it, 1.98\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":"mistralrs-core/src/speculative/dflash.rs"},"region":{"startLine":2180}}}],"partialFingerprints":{"codehealthFindingId/v1":"a25e3f95b3f3a6442dbcf1909f2c330eb475e44b1fbcb3e39172149f42cc2707"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: nvfp4/mod.rs: FileTooLong \u2014 989 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 86% of them inside a single declaration: Nvfp4Layer (4 blocks, 84-1317). The bar is 500 significant lines; this is 489 over it, 1.98\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":"mistralrs-quant/src/nvfp4/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"256b5cce721405a9ca707846e7d4feb7f252af5264fa0c9208a5ffce3a053eb5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::vision_models::lfm3_d1::prompt::render_question: FunctionTooLong \u2014 mistralrs_core::vision_models::lfm3_d1::prompt::render_question runs 197 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 97 over it, 1.97\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":"mistralrs-core/src/vision_models/lfm3_d1/prompt.rs"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d23311282b3ea833d7f33002872f2f6508145ee406367e93ca6afc58abe48fc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen3_5MoeTextModel.new: MethodTooLong \u2014 new runs 196 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 96 over it, 1.96\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":"mistralrs-core/src/vision_models/qwen3_5_moe/text.rs"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"5374bb7ccc3c98d1917b298bece1540d1f2584c23bfdeeea16890024fedf7936"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Gemma4Model: ClassTooLong \u2014 781 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 4 methods, 5 blocks, lines 201-1263. The bar is 400 significant lines; this is 381 over it, 1.95\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":"mistralrs-core/src/vision_models/gemma4/mod.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"a951ad5426d4e7e726e22944462c20995e084418413ca17586a8fd0909c234a2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/qwen3_next.rs: FileTooLong \u2014 976 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 476 over it, 1.95\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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5797b62ef48e2a2cbd424130e8b4e7a59043d41f30262f3f0688a2c60145e2d8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: loaders/mod.rs: FileTooLong \u2014 972 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 472 over it, 1.94\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":"mistralrs-core/src/pipeline/loaders/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c39793adbc094979095c08bb53572cb913443eb90c6f290f908a70d58b0fe0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gemma4/mod.rs: FileTooLong \u2014 972 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 80% of them inside a single declaration: Gemma4Model (5 blocks, 201-1263). The bar is 500 significant lines; this is 472 over it, 1.94\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":"mistralrs-core/src/vision_models/gemma4/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c8757e6209d1dc634981e05be9e26ae11d54572d545ec22df562c94e90a3d8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gemma4/audio.rs: FileTooLong \u2014 970 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 470 over it, 1.94\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":"mistralrs-core/src/vision_models/gemma4/audio.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"484b452e43d7993220bd963096cd3359cfbb022d9c302664a7a5af340a89a09f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::lora::dynamic::expert_cuda::launch_projection: FunctionTooLong \u2014 mistralrs_quant::lora::dynamic::expert_cuda::launch_projection runs 194 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 94 over it, 1.94\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":"mistralrs-quant/src/lora/dynamic/expert_cuda.rs"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4317b4bde66080acd335c3b4a323dd18682cdd543877ab99d14818bf03ba620"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cutile/fused_moe_fp8.rs: FileTooLong \u2014 965 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 465 over it, 1.93\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":"mistralrs-quant/src/cutile/fused_moe_fp8.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"319e769a6398769ebec964a78de850728fcae1a3c586cd8c4dcf47d5ac0806ce"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GGUFLoader.load_model_from_path: MethodTooLong \u2014 load_model_from_path runs 192 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 92 over it, 1.92\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":"mistralrs-core/src/pipeline/gguf.rs"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf1c6d0c0c96920482c4066a16c7d473f30865a2ee3ceeea14095ac649a1fce"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::blockwise_fp8::ops::fused_add_rms_norm_quantized_impl: FunctionTooLong \u2014 mistralrs_quant::blockwise_fp8::ops::fused_add_rms_norm_quantized_impl runs 192 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 92 over it, 1.92\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1733}}}],"partialFingerprints":{"codehealthFindingId/v1":"db088b338b99760d6727184270647c3ffdbe54a484bc05fc575e91c39f6008b1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentStream.next: MethodTooLong \u2014 next runs 192 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 92 over it, 1.92\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":"mistralrs/src/agent.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"da4df61a64852f013feb18f5e6ba527f95232932e880507ebfb5e88f74a5aa13"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: qwen2_5_vl/inputs_processor.rs: FileTooLong \u2014 959 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 92% of them inside a single declaration: Qwen2_5VLImageProcessor (4 blocks, 55-1198). The bar is 500 significant lines; this is 459 over it, 1.92\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":"mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8251410f7f0e3571ac995d2d584ae011ccb11397afc34d6764178fa240fcdbb8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/mistralrs_for_server_builder.rs: FileTooLong \u2014 956 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 76% of them inside a single declaration: MistralRsForServerBuilder (3 blocks, 178-1332). The bar is 500 significant lines; this is 456 over it, 1.91\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":"mistralrs-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60bed441b6241e41d4d7951352ebeb31a5743b5447496a7db3ff36d463c26eea"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Model.new: MethodTooLong \u2014 new runs 191 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a601820394d9c8ad18cb089e302f00bbfc044bd954eec158f4e7d80e0f86f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/deepseek3.rs: FileTooLong \u2014 954 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 454 over it, 1.91\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":"mistralrs-core/src/models/deepseek3.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"069e08da57d88673ae4679fede0f18bca1afb80c8a3577efccc2d9cb10a68c8f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MistralRsForServerBuilder: TooManyMethods \u2014 57 methods. The bar is 30 methods; this is 27 over it, 1.90\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":"mistralrs-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84fecac0ee49be6bfe7ac95e4eb97764d65b95b439a6e9b615f0aa87159352a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Engine.new: MethodTooLong \u2014 new runs 190 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 90 over it, 1.90\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":"mistralrs-core/src/engine/mod.rs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c4259928005ddb750e26c6e8bfbfc3a249216165607dcd9b18609b12150d055"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Model.prepare_inputs_labels_for_multimodal: MethodTooLong \u2014 prepare_inputs_labels_for_multimodal runs 190 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 90 over it, 1.90\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":"mistralrs-core/src/vision_models/llava/llava_next.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd0ce0acf929a0217897f2561ae185fb52fdcaa121e40aeff62436857234e35"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Qwen4ExpTextModel: ClassTooLong \u2014 759 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 26 methods, 3 blocks, lines 199-1156. The bar is 400 significant lines; this is 359 over it, 1.90\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":"mistralrs-core/src/vision_models/qwen4_exp/text.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"2343c3015d13c15709b5128f59c7cfd2f3bd8dee4b90f2a21882ae27ea31f14f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gdn/backend.rs: FileTooLong \u2014 946 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 446 over it, 1.89\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":"mistralrs-core/src/gdn/backend.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"66966366d42874be28f0682ac3651607b3b4e81b7e84fea081973b3d5c5c1938"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gemma3n/vision.rs: FileTooLong \u2014 945 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 445 over it, 1.89\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":"mistralrs-core/src/vision_models/gemma3n/vision.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5ae8fc9048085552ca67ba0f7dfff295ccbc2ff5deb4529fdcce55733e1b3b2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_cli::commands::serve::convert_to_model_selected: FunctionTooLong \u2014 mistralrs_cli::commands::serve::convert_to_model_selected runs 189 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 89 over it, 1.89\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":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a2ab629ee4353a7ddfb4b25807e5f6cb04bb8fc85e0bb7d38e120511826bd2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Mistral3ImageProcessor.process_inputs: MethodTooLong \u2014 process_inputs runs 189 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 89 over it, 1.89\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":"mistralrs-core/src/vision_models/mistral3/inputs_processor.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"b863d36073224f0e2fd8ca5f8b8f98936abc82cd3a5b77186d3372aae65bfaab"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::lora::dynamic::moe_cuda::cuda::launch_routed_lora_grouped: FunctionTooLong \u2014 mistralrs_quant::lora::dynamic::moe_cuda::cuda::launch_routed_lora_grouped runs 189 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 89 over it, 1.89\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":"mistralrs-quant/src/lora/dynamic/moe_cuda.rs"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"11496b2ae4429e54bdbf612917f611b933ed6e9ccaac7a9d34adf63a774db555"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::metal_kernels::call_flash_attn_ext_bf16_dk512: FunctionTooLong \u2014 mistralrs_quant::metal_kernels::call_flash_attn_ext_bf16_dk512 runs 189 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 89 over it, 1.89\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":4285}}}],"partialFingerprints":{"codehealthFindingId/v1":"570f5fd744b6bd61a69dd8c64cf5c368ca6f29dcd5bfe3af5b6347fd7ed5d1fc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/hunyuan_v1_moe.rs: FileTooLong \u2014 944 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 444 over it, 1.89\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":"mistralrs-core/src/models/hunyuan_v1_moe.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a4b0df604597b17dfe7293dcb21f6d82eddeee92313db42f30466304ebf492"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Llama4ImageProcessor.process_inputs: MethodTooLong \u2014 process_inputs runs 188 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 88 over it, 1.88\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":"mistralrs-core/src/vision_models/llama4/inputs_processor.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"df79bfcd60d0f7296a5759b3b5bcf341858a96473c80eceb6f74647e8991c03e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::gguf::cuda::indexed_moe_forward_fused_q8_1_input: FunctionTooLong \u2014 mistralrs_quant::gguf::cuda::indexed_moe_forward_fused_q8_1_input runs 188 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 88 over it, 1.88\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":"mistralrs-quant/src/gguf/cuda.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d7f428450cbf4ddb413e940e415b135f615f98c9cf313b6bce0d9a5e392aeb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen2_5VLImageProcessor.prepare_for_paged_prompt_planning: MethodTooLong \u2014 prepare_for_paged_prompt_planning runs 187 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 87 over it, 1.87\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":"mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b0c0fbb1565198491ea0e03137da454da011bb86caa2c6c3a1808dce30527c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen2VLImageProcessor.prepare_for_paged_prompt_planning: MethodTooLong \u2014 prepare_for_paged_prompt_planning runs 187 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 87 over it, 1.87\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":"mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde4d4620ab698dfab39030f1c6d3ce9426c156465a252396eb158d9ae650d95"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: engine/add_request.rs: FileTooLong \u2014 934 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 94% of them inside a single declaration: Engine (77-1228). The bar is 500 significant lines; this is 434 over it, 1.87\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":"mistralrs-core/src/engine/add_request.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5ac463f30d7ac63cc41105cca44dff46af6dc583089b86a150402f63323c138"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GatedDeltaNet: ClassTooLong \u2014 741 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 29 methods, 2 blocks, lines 185-1064. The bar is 400 significant lines; this is 341 over it, 1.85\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":"mistralrs-core/src/gdn/layer.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"1504683cc436588472a92bb98d535f567f72ce9b0df73db6606a2d259e4bf80a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::cutile::nvfp4_matmul::launch_dense: FunctionTooLong \u2014 mistralrs_quant::cutile::nvfp4_matmul::launch_dense runs 185 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 85 over it, 1.85\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":"mistralrs-quant/src/cutile/nvfp4_matmul.rs"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"88c1d18f9c493e902ab16074c32531822e4a35cab768b0fb6eb3e0505f07328b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: qwen4_exp/text.rs: FileTooLong \u2014 915 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 83% of them inside a single declaration: Qwen4ExpTextModel (3 blocks, 199-1156). The bar is 500 significant lines; this is 415 over it, 1.83\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":"mistralrs-core/src/vision_models/qwen4_exp/text.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f454eccd3daa396b8f318d1cd95b2d9ee1921d9ff0066aacce77815cc403d9e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GraniteMoeHybrid.new_inner: MethodTooLong \u2014 new_inner runs 183 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 83 over it, 1.83\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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":1940}}}],"partialFingerprints":{"codehealthFindingId/v1":"827833c643ea4ff37b937902904cafe5ea8ecb83c0150a22311675726ac6e6fa"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MistralRsForServerBuilder: ClassTooLong \u2014 730 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 57 methods, 3 blocks, lines 178-1332. The bar is 400 significant lines; this is 330 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":"mistralrs-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cf9b9ae3e6a9e3664c575a5478071fd3b56e1ea49be284c15d192b479932c0d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: muse_glimmer/inputs_processor.rs: FileTooLong \u2014 912 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 412 over it, 1.82\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":"mistralrs-core/src/vision_models/muse_glimmer/inputs_processor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f766e8a4df332619e7562467eee190260403d9f2991d9bbad2809412dfee08e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dynamic/moe_cuda.rs: FileTooLong \u2014 911 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 69% of them inside a single declaration: RoutedLoraAdapterWeight (3 blocks, 362-1131). The bar is 500 significant lines; this is 411 over it, 1.82\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":"mistralrs-quant/src/lora/dynamic/moe_cuda.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9401dcc9d589ace14e8dacd6f114ca917921cb2f91d88b7eb6a2137fc2a4b5be"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::cuda::gdn::speculative_conv_checkpoints_cuda: FunctionTooLong \u2014 mistralrs_core::cuda::gdn::speculative_conv_checkpoints_cuda runs 182 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":3510}}}],"partialFingerprints":{"codehealthFindingId/v1":"4826af5a794eaf5974ee462e0839161fbe5325c0a1b2159c05f667ad425074a4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::paged_attention::calculate_cache_config: FunctionTooLong \u2014 mistralrs_core::paged_attention::calculate_cache_config runs 182 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/paged_attention/mod.rs"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"536067cfdb83e837aa52b1f27501473e155ac1f99ba7c02813600090535c914c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Idefics2.forward_inner: MethodTooLong \u2014 forward_inner runs 182 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"def5af7044268c4d62f35417bf07f96fbc3eb2763c8e7b6d3988720615eb9d25"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/glm4_moe_lite.rs: FileTooLong \u2014 909 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 409 over it, 1.82\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":"mistralrs-core/src/models/glm4_moe_lite.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b815a84c4ecc98125cce178ac57be8146f7fee0f2b2cd71167c9c4efb3f7fb94"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/messages.rs: FileTooLong \u2014 908 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 408 over it, 1.82\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":"mistralrs/src/messages.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecc579cdb7ef67766a5a7999d39854e1669f8221304d46930481abcc1e971fc0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/deepseek2.rs: FileTooLong \u2014 907 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 407 over it, 1.81\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"21885303239d550be8aa28ce7b3e1c806ef27d6ca98167ad38b71e4ca2f2fe00"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MultimodalPipeline.try_cuda_decode_graph_forward: MethodTooLong \u2014 try_cuda_decode_graph_forward runs 180 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 80 over it, 1.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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2129}}}],"partialFingerprints":{"codehealthFindingId/v1":"e537f62ce60a1b6bfb1f5131b948ba1706ef73483f703984885c5189cac150a5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MultimodalPipeline.capture_cuda_decode_graph_step: MethodTooLong \u2014 capture_cuda_decode_graph_step runs 179 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 79 over it, 1.79\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2549}}}],"partialFingerprints":{"codehealthFindingId/v1":"55494da630f496ca2867e5693c6467dd0239092c15915123d12f509f05bbe695"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::pipeline::normal::build_normal_pipeline: FunctionTooLong \u2014 mistralrs_core::pipeline::normal::build_normal_pipeline runs 179 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 79 over it, 1.79\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":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8bec0a86276cef21435a3a7275683bf8c2a7a9e91a99eca6965c39e767926f1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::speculative::paged_rows::make_paged_rows_metadata: FunctionTooLong \u2014 mistralrs_core::speculative::paged_rows::make_paged_rows_metadata runs 179 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 79 over it, 1.79\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":"mistralrs-core/src/speculative/paged_rows.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1deb3bd97d7070b5607b4141b7a30132424121aa9b057c5a6953d5fb009cf73"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gguf/normal_registry.rs: FileTooLong \u2014 890 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 390 over it, 1.78\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":"mistralrs-core/src/gguf/normal_registry.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56507b9461971f4d48836a4bfbc5aaf494399311aa999de0a4fdf0672d0c77b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelWeights.from_ggml: MethodTooLong \u2014 from_ggml runs 178 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 78 over it, 1.78\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":"mistralrs-core/src/xlora_models/quantized_llama.rs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec4c06602dc7dd850eaa3eac42f61bdb0c468573ba1b419195ce4828b57acf25"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gdn/layer.rs: FileTooLong \u2014 887 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 84% of them inside a single declaration: GatedDeltaNet (2 blocks, 185-1064). The bar is 500 significant lines; this is 387 over it, 1.77\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":"mistralrs-core/src/gdn/layer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"378ec84ff48f90c6accde1113029407f7da9959d7fb0742dc29b8e18c1b5977b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/flint.rs: FileTooLong \u2014 885 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 385 over it, 1.77\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8140d9bac616178aedc0129dd82e0bafbf8c85a8e74960d63c788760367636a9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Attention.forward: MethodTooLong \u2014 forward runs 177 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/models/glm4_moe_lite.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ac8cd6daf1acca49b0b921098ad1890824c07f3d97d9210a7a8292393b2306f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_paged_attn::cuda::backend::cache::copy_blocks: FunctionTooLong \u2014 mistralrs_paged_attn::cuda::backend::cache::copy_blocks runs 177 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-paged-attn/src/cuda/backend/cache.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e484d4d43106e6b50f107d43d73b859fa3f4daa33f8ae84042367a0669505c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: llama4/text.rs: FileTooLong \u2014 881 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 381 over it, 1.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":"mistralrs-core/src/vision_models/llama4/text.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c95f9ffe1e7f7753d685ff88b5e7c9d7992771761303a48881c64357259639e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Attention.forward: MethodTooLong \u2014 forward runs 175 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 75 over it, 1.75\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef07ecb2cb5caa4a2580146e73cacbf2da57a11b023f35f6807b822acfdb6b11"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Attention.forward: MethodTooLong \u2014 forward runs 175 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 75 over it, 1.75\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":"mistralrs-core/src/models/deepseek3.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"99240446bfb96e94ce600136f75272159882eaa300b8913f07bc8b5050d081ec"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen2_5VLModel.forward: MethodTooLong \u2014 forward runs 175 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 75 over it, 1.75\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":"mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad291e2b3e97ffe1df90d823d9520564f76fe7fa6f1fbc059f8b4be82d812b4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/model.rs: FileTooLong \u2014 873 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 95% of them inside a single declaration: Model (2 blocks, 80-1319). The bar is 500 significant lines; this is 373 over it, 1.75\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":"mistralrs/src/model.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d60b525bd50c2be5329366a340c2003ae46c842e2e7b236c755287a13ed41c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: qwen3_vl/mod.rs: FileTooLong \u2014 870 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 370 over it, 1.74\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":"mistralrs-core/src/vision_models/qwen3_vl/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"88b062a9ec5756962c032a2940e9566a3e9f6923a1631d3ebf98237aaf74c819"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen2VLModel.forward: MethodTooLong \u2014 forward runs 174 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 74 over it, 1.74\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":"mistralrs-core/src/vision_models/qwen2vl/mod.rs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"b496a3a11b1491adbf8076430be8ffbb4ff4196f9b5c02034ee732b1c084e97d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: llama4/inputs_processor.rs: FileTooLong \u2014 867 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 72% of them inside a single declaration: Llama4ImageProcessor (6 blocks, 53-1124). The bar is 500 significant lines; this is 367 over it, 1.73\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":"mistralrs-core/src/vision_models/llama4/inputs_processor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dafad1bddf7dde3b89be46be21f2439e4d22e092b8e514c19697315286962f2e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MuseGlimmerImageProcessor.process_inputs: MethodTooLong \u2014 process_inputs runs 173 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 73 over it, 1.73\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":"mistralrs-core/src/vision_models/muse_glimmer/inputs_processor.rs"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b87fd392c982a750715d435cb82333f370e4ca2a59a254b39b1b1037293c0d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_paged_attn::cuda::backend::gather_kv::gather_kv_cache: FunctionTooLong \u2014 mistralrs_paged_attn::cuda::backend::gather_kv::gather_kv_cache runs 173 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 73 over it, 1.73\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":"mistralrs-paged-attn/src/cuda/backend/gather_kv.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b4835a602b714bc1320dd359a08462319544a83bb7beb9041b158ec5f4e3c15"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::cuda::gdn::speculative_transition_commit_batched_cuda: FunctionTooLong \u2014 mistralrs_core::cuda::gdn::speculative_transition_commit_batched_cuda runs 172 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 72 over it, 1.72\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":4974}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3aabe9f908689730c4e03240ec57c9c6070c958c4ba9f93714029dd2b8616a7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MambaLayer.forward_full: MethodTooLong \u2014 forward_full runs 172 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 72 over it, 1.72\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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"67324049b564f4069d3fc564227c0fddffe05b8860e0a5599f48d5b8565f0555"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::cutile::fp8_w8a8::launch: FunctionTooLong \u2014 mistralrs_quant::cutile::fp8_w8a8::launch runs 172 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 72 over it, 1.72\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":"mistralrs-quant/src/cutile/fp8_w8a8.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f98232d725be9266b9cc121d1fba5045db6830833e7d1212e08475b1a24040"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: XLoraClassifier.new: MethodTooLong \u2014 new runs 171 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 71 over it, 1.71\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":"mistralrs-core/src/xlora_models/classifier.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f3e383a35d1a22fc9cc21f365f79d7c7c21a56705de1b5e006193ad144507f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/toml_selector.rs: FileTooLong \u2014 851 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 351 over it, 1.70\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":"mistralrs-core/src/toml_selector.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6dae52f181b629361552c7e4c35d26a46b70733d97270ed97c8962fc617210f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RequestBuilder: TooManyMethods \u2014 51 methods. The bar is 30 methods; this is 21 over it, 1.70\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":"mistralrs/src/messages.rs"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c185bcefbe62dd3554f0b94836594a90e9049efbeba4dc97b4ab389031286ce"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::pipeline::inputs_processor::text_models_inputs_processor::make_completion_chunk: FunctionTooLong \u2014 mistralrs_core::pipeline::inputs_processor::text_models_inputs_processor::make_completion_chunk runs 169 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 69 over it, 1.69\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":"mistralrs-core/src/pipeline/inputs_processor.rs"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"41885a5e647bf2069ee159a5cea03da2ba1284eef6e0c74541cf908ccad9b33e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HqqLayer.dequantize_cuda: MethodTooLong \u2014 dequantize_cuda runs 168 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 68 over it, 1.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":"mistralrs-quant/src/hqq/mod.rs"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"013e41eea5a02250aa806e8752a891340c0bcf99f56821ca18e63193c9d90b06"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs::model_builder_trait::build_gguf_pipeline: FunctionTooLong \u2014 mistralrs::model_builder_trait::build_gguf_pipeline runs 168 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 68 over it, 1.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":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":1044}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3ec1819333476d01b70cc2ffdf8bf1bd57ddd9cc1c78aa9781bd19f951acd8e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Sdpa.run_attention_noflash: MethodTooLong \u2014 run_attention_noflash runs 167 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 67 over it, 1.67\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":"mistralrs-core/src/attention/mod.rs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a16430d77607ba41f699e00131a2d7035117679a879093d7e40dfb8eecfa8ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mllama/text.rs: FileTooLong \u2014 834 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 334 over it, 1.67\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":"mistralrs-core/src/vision_models/mllama/text.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95cb9733e5218e2fa9b8870f5499d967f13879d454fd2554f9fd17c39b91578f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::pipeline::isq::write_uqff_type: FunctionTooLong \u2014 mistralrs_core::pipeline::isq::write_uqff_type runs 166 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 66 over it, 1.66\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":"mistralrs-core/src/pipeline/isq.rs"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ad1bcc7d8ee2e51101a3282018ae58a3ccc4d53bd41719dad50519e202cd3d6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DecoderLayer.new: MethodTooLong \u2014 new runs 166 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 66 over it, 1.66\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":"mistralrs-core/src/vision_models/gemma4/text.rs"},"region":{"startLine":952}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fc607da3696b5709aa16ba7e949a643ac8f3eab72e989bf6f92942b8a93654f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_paged_attn::cuda::backend::mla::concat_and_cache_mla: FunctionTooLong \u2014 mistralrs_paged_attn::cuda::backend::mla::concat_and_cache_mla runs 166 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 66 over it, 1.66\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":"mistralrs-paged-attn/src/cuda/backend/mla.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e936121238d41132f5df04dd438467ec51003adb64bb1c9aed4586373bc8a4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::metal_kernels::call_multi_block_sort: FunctionTooLong \u2014 mistralrs_quant::metal_kernels::call_multi_block_sort runs 166 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 66 over it, 1.66\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":2798}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cd141d281e2d9f75c7eaeb029d235de38a9a44bd979a09067da33e197206249"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_cli::commands::quantize::convert_to_model_selected: FunctionTooLong \u2014 mistralrs_cli::commands::quantize::convert_to_model_selected runs 165 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-cli/src/commands/quantize.rs"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b896166c7372bb014636874bd7ba6f71691b350be47cd456a9e61c636f639d0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/gpt_oss.rs: FileTooLong \u2014 824 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 324 over it, 1.65\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":"mistralrs-core/src/models/gpt_oss.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"638f46ebdcceefc0d1ab2c060be088a1d9de72f13aac959675bd1540ba8be642"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cutile/fused_moe.rs: FileTooLong \u2014 820 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 320 over it, 1.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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"078aa7d18359fe37cf9e889df20f76192bbdc198c99c470e7d1967fa9a829790"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MistralRs.new: MethodTooLong \u2014 new runs 164 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 64 over it, 1.64\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":"mistralrs-core/src/lib.rs"},"region":{"startLine":1557}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca172e035df2e7d5ea5425759000820823774c600ff50f2003cbd5f91907ea4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GgufModelBuilder: TooManyMethods \u2014 49 methods. The bar is 30 methods; this is 19 over it, 1.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":"mistralrs/src/gguf.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c70bea765f532deafea99847308f2696c29214152f3ec69659f8bedc8af8b7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: voxtral/mod.rs: FileTooLong \u2014 815 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 315 over it, 1.63\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":"mistralrs-core/src/vision_models/voxtral/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5ea8226a6ab8369997cb104c18d7f5ff4b9f05467302e71765710fade71e46"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: xlora_models/quantized_llama.rs: FileTooLong \u2014 815 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 75% of them inside a single declaration: ModelWeights (5 blocks, 251-942). The bar is 500 significant lines; this is 315 over it, 1.63\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":"mistralrs-core/src/xlora_models/quantized_llama.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a008de12dd23f4da01ec49d991a304ebc7a4860e9f7b386783c916396d5620b0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::mxfp4::metal_ops::mxfp4_indexed_moe_gemm: FunctionTooLong \u2014 mistralrs_quant::mxfp4::metal_ops::mxfp4_indexed_moe_gemm runs 163 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 63 over it, 1.63\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":"mistralrs-quant/src/mxfp4/metal_ops.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"d033ff7579932cd7a75112dd2827d5289699db13ed70a813308730a1b110a382"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gemma3/text.rs: FileTooLong \u2014 813 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 313 over it, 1.63\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":"mistralrs-core/src/vision_models/gemma3/text.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7105460036db7c7eb2fc2c40c1d99aece9d03b38d1a83d3f0b6470262d29fd4f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: loaders/activation_memory.rs: FileTooLong \u2014 811 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 311 over it, 1.62\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":"mistralrs-core/src/pipeline/loaders/activation_memory.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"32342922d338c5018dfc8c8f5282b8697bea6472e037fd0ae7133fe305e4f1f6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CudaGraphCaptureMemory.shape: MethodTooLong \u2014 shape runs 162 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 62 over it, 1.62\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":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"c336f8a6486fe8cad5404814ded6bac5ec5ccf277154426f6c707e173e254dab"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::tuning::auto_tune: FunctionTooLong \u2014 mistralrs_core::tuning::auto_tune runs 162 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 62 over it, 1.62\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":"mistralrs-core/src/tuning.rs"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"62f04b5cc18414f040313c061b93e3002fa323d4a98c822a3916ead6eef5c752"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Attention.new: MethodTooLong \u2014 new runs 162 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 62 over it, 1.62\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":"mistralrs-core/src/vision_models/gemma4/text.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd5468123929c454cea4acf8fc92b356ddeac9bbfd4f9df8781f8cf137345075"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::cutile::nvfp4_glu::launch: FunctionTooLong \u2014 mistralrs_quant::cutile::nvfp4_glu::launch runs 162 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 62 over it, 1.62\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":"mistralrs-quant/src/cutile/nvfp4_glu.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"f161530db8bb50fd54fdfb6b1ad87d714c80e60ed55f10b09fc561a29e16abe1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::distributed::prepare_distributed_mapper: FunctionTooLong \u2014 mistralrs_core::distributed::prepare_distributed_mapper runs 161 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 61 over it, 1.61\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":"mistralrs-core/src/distributed.rs"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a126008228e25634188d1992e8a31ec1aef7929f3831b61206bf06a10b2d9ea"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_paged_attn::cuda::backend::fa3::fa3_prepare_paged_metadata: FunctionTooLong \u2014 mistralrs_paged_attn::cuda::backend::fa3::fa3_prepare_paged_metadata runs 161 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 61 over it, 1.61\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":"mistralrs-paged-attn/src/cuda/backend/fa3.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"b154c19e03b0fe3e50117b0afd1a51ff17a2b44c634ca07d5f8d54e4adc27c9e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BitWise.cuda_fwd: MethodTooLong \u2014 cuda_fwd runs 161 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 61 over it, 1.61\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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"243dc59bbec33e85e39f243249227ee4043c4bf780a90dc236eb9c3fb441a4b2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/glm4_moe.rs: FileTooLong \u2014 804 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 304 over it, 1.61\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":"mistralrs-core/src/models/glm4_moe.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b7f3cac5f79ace876f209389ad8e45f4fb689eb5ef83b66efef151e506ffe8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: paged_attention/mod.rs: FileTooLong \u2014 803 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 303 over it, 1.61\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":"mistralrs-core/src/paged_attention/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce19aa0653f514d354da13e21d993f48da1a8d3aa22787cdc678a70578b7659e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mllama/inputs_processor.rs: FileTooLong \u2014 803 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 76% of them inside a single declaration: MLlamaImageProcessor (4 blocks, 41-1100). The bar is 500 significant lines; this is 303 over it, 1.61\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":"mistralrs-core/src/vision_models/mllama/inputs_processor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b4eafaf547f41fd327f00f252602c4430e1b88e5102cd71503729531956492"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/model_loader.rs: FileTooLong \u2014 801 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 301 over it, 1.60\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":"mistralrs-core/src/model_loader.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa702ec8b3b01fc8a004fd9ab06dee1a5a7fb9b437d8298e64297d9c96648a1f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: minicpmo/inputs_processor.rs: FileTooLong \u2014 799 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 76% of them inside a single declaration: MiniCpmOImageProcessor (4 blocks, 73-1059). The bar is 500 significant lines; this is 299 over it, 1.60\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":"mistralrs-core/src/vision_models/minicpmo/inputs_processor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1ab1b5ce182a90d7233d9899bb73a5b283bee0647dcded979c03cc622a60513"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: qwen3_5_moe/text.rs: FileTooLong \u2014 796 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 296 over it, 1.59\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":"mistralrs-core/src/vision_models/qwen3_5_moe/text.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39fc0cd13a44bdb23efcc16c5af0cdf6f02b0e73e9c7da14a2c820be4241de15"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NormalPipeline.try_cuda_decode_graph_forward: MethodTooLong \u2014 try_cuda_decode_graph_forward runs 159 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":1886}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc450f1594985e77a9091bc63f7da61e8de60f6aae44e4356f0a2752249f69d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Phi4MMInputsProcessor.process_image_batch: MethodTooLong \u2014 process_image_batch runs 159 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/vision_models/phi4/inputs_processor.rs"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7e35d28b0d8a66d5e5d3966c733aa55a7f643d92e546245c611e75f68ed7cd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_server_core::responses::parse_openresponses_request: FunctionTooLong \u2014 mistralrs_server_core::responses::parse_openresponses_request runs 159 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-server-core/src/responses.rs"},"region":{"startLine":1825}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c90280cb03c744614b87142ec3fe27d20aa1c2ce00c2dbf4c70758561c76c50"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: xlora_models/mixtral.rs: FileTooLong \u2014 790 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 290 over it, 1.58\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":"mistralrs-core/src/xlora_models/mixtral.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad6914337f5eff52e6279d9ebded5873f30969ef292b370a99fbef40e6cc8a39"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::speculative::hybrid_state::replay_gdn_prefixes: FunctionTooLong \u2014 mistralrs_core::speculative::hybrid_state::replay_gdn_prefixes runs 158 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\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":"mistralrs-core/src/speculative/hybrid_state.rs"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b75684e56ffc6281aa0bc5db461bc69a31fb6a3515d7511286a3a86847db61a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TextModel.forward_embeds: MethodTooLong \u2014 forward_embeds runs 158 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\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":"mistralrs-core/src/vision_models/gemma3n/text.rs"},"region":{"startLine":1743}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b96203f74daf5beb108868d686681973a179f0ab93d2304cf64e58772a95c8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: QsaAttention.forward_paged: MethodTooLong \u2014 forward_paged runs 158 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\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":"mistralrs-core/src/vision_models/qwen4_exp/qsa.rs"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"d171a2df2398e220ed9f50437d2c76b0f10f09ad0dcc97f3678a57fa1fad820e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_macros::generate_tool_impl: FunctionTooLong \u2014 mistralrs_macros::generate_tool_impl runs 158 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\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":"mistralrs-macros/src/lib.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fec3edb2d1c85f0116096ed0c2c940ac5e920fa1c6c07d05b3176c0de546030"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::gguf::fast_mmq::grouped_pair_packed: FunctionTooLong \u2014 mistralrs_quant::gguf::fast_mmq::grouped_pair_packed runs 158 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\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":"mistralrs-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":1303}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac933e79fd856994388e178e534eef0605544712e57aa673cacb3800ceb170d8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: embedding/storage.rs: FileTooLong \u2014 785 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 285 over it, 1.57\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":"mistralrs-quant/src/embedding/storage.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f61955ae01a833557f1838f9ca2dddbc77df49e2e0534ca69d538813e7b8a1d5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::attention::backends::cpu::full::compute_tiled_qblock: FunctionTooLong \u2014 mistralrs_core::attention::backends::cpu::full::compute_tiled_qblock runs 157 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/attention/backends/cpu/full.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c5d34ded2e9790126100abff06df216f5013de1bb08ec4b6dd386276a73781d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::cutile::fp8_w8a16::launch: FunctionTooLong \u2014 mistralrs_quant::cutile::fp8_w8a16::launch runs 157 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c28937ca332355baf18b814febf8756647501e149851ea1da07210aad09b2f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RoutedLoraAdapterWeight: ClassTooLong \u2014 627 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 2 methods, 3 blocks, lines 362-1131. The bar is 400 significant lines; this is 227 over it, 1.57\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":"mistralrs-quant/src/lora/dynamic/moe_cuda.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e97fad132ee999d45a5374bac5a945a3d191564ed79cca3cbecc74b6b629a06"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Llama4ImageProcessor: ClassTooLong \u2014 625 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 10 methods, 6 blocks, lines 53-1124. The bar is 400 significant lines; this is 225 over it, 1.56\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":"mistralrs-core/src/vision_models/llama4/inputs_processor.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a0557bac1666c5dd14364e5765caf7f432e85d1ab4c4a42aacb6fca405ea31"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ImageEmbedding.new: MethodTooLong \u2014 new runs 156 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 56 over it, 1.56\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":"mistralrs-core/src/vision_models/phi4/image_embedding.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"56d97a6c1dd2934a8871dfc5c70446da39a386570fa92f5ecebdc97e945a426f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_server_core::openapi_doc::get_openapi_doc: FunctionTooLong \u2014 mistralrs_server_core::openapi_doc::get_openapi_doc runs 156 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 56 over it, 1.56\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":"mistralrs-server-core/src/openapi_doc.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"3351dfec319dec4ba158c32d57541fd01c4c327c232eb7f1870e43c245f8f8e8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cutile/gdn_prefill.rs: FileTooLong \u2014 775 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 275 over it, 1.55\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":"mistralrs-quant/src/cutile/gdn_prefill.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05fa81b69c1a0fde5644794ea3f26f81100de25abc7797ab304a88258d21a5f0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::pipeline::isq_flow::online::requantize_from_source: FunctionTooLong \u2014 mistralrs_core::pipeline::isq_flow::online::requantize_from_source runs 155 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/pipeline/isq_flow/online.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"e470b75ac22cd28875346b55d114077a78784af8b7c938cecbc36c023e7f5368"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::pipeline::paths::get_chat_template: FunctionTooLong \u2014 mistralrs_core::pipeline::paths::get_chat_template runs 155 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/pipeline/paths.rs"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cf70dddfbb791c2ccaae18eb586e7b34039ee04f0592e3cae344b5f163efb81"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Idefics3Model.forward_inner: MethodTooLong \u2014 forward_inner runs 155 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/vision_models/idefics3/mod.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a2a1355367e064c066834d5d3379d1f36e813587b69604679d84262405e7072"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GptqLayer.gptq_gemm: MethodTooLong \u2014 gptq_gemm runs 155 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-quant/src/gptq/gptq_cuda.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"034f23414662a4cc2c9b204476eb49fd7cd1a7a08b3e932c862758f1c6745b9a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: idefics3/inputs_processor.rs: FileTooLong \u2014 771 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 271 over it, 1.54\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":"mistralrs-core/src/vision_models/idefics3/inputs_processor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3962ef8add205918402d66a4639c449897bb5c1ab9947afbf7c40acc609ef6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Gemma3nLoader: ClassTooLong \u2014 616 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 0 methods, 3 blocks, lines 5636-6563. The bar is 400 significant lines; this is 216 over it, 1.54\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":5625}}}],"partialFingerprints":{"codehealthFindingId/v1":"d018a84b55da0ca6e532347f532438408c4283533560f828e385648b72047485"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen3_5Model.dflash_propose: MethodTooLong \u2014 dflash_propose runs 154 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 54 over it, 1.54\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":"mistralrs-core/src/vision_models/qwen3_5/speculative.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2043b0afed93a7d3df3685e241c32bf36042e45c6a6010d2f60e2488f98570"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Gemma3nAudioAttention.forward: MethodTooLong \u2014 forward runs 153 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 53 over it, 1.53\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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"9be19a6ac71e460dc5dc77308e21fbcfe372a94f10bfd117cf19d6221ecd59c9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::cutile::tune::tune: FunctionTooLong \u2014 mistralrs_quant::cutile::tune::tune runs 153 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 53 over it, 1.53\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":"mistralrs-quant/src/cutile/tune.rs"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"b77e06eebb1d5f5574d42ecf405e10c417c1427beebd4a5e853dc00e2ea68aee"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs::model_builder_trait::build_auto_pipeline: FunctionTooLong \u2014 mistralrs::model_builder_trait::build_auto_pipeline runs 153 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 53 over it, 1.53\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":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":1476}}}],"partialFingerprints":{"codehealthFindingId/v1":"232d8b81e46f4272b629fd716c9c736729ce2c78f9fb02a3fd666a0cb43e1d68"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ModelWeights: ClassTooLong \u2014 611 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 2 methods, 5 blocks, lines 251-942. The bar is 400 significant lines; this is 211 over it, 1.53\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":"mistralrs-core/src/xlora_models/quantized_llama.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"feaf6414cbd6342b9046a2b86f9a0a9b8938ebc2e9cb31321df860aefc0d61b0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: distributed/mod.rs: FileTooLong \u2014 763 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 263 over it, 1.53\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":"mistralrs-quant/src/distributed/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65416ae6ecf82b430fc1a250cb9f556a99885bff9ffd6a98a7bed928fa0fd3d4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MLlamaImageProcessor: ClassTooLong \u2014 610 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 9 methods, 4 blocks, lines 41-1100. The bar is 400 significant lines; this is 210 over it, 1.53\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":"mistralrs-core/src/vision_models/mllama/inputs_processor.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"48237e905b81b4a83faed6711f4d45bc285f4b02c11727168b768a2f8ad51d05"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cutile/qsa.rs: FileTooLong \u2014 758 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 258 over it, 1.52\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":"mistralrs-quant/src/cutile/qsa.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58622c3883afbef0eb892b6fdc627a04f84da5f29ec46e6223d761a02eaea928"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MiniCpmOImageProcessor: ClassTooLong \u2014 606 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 12 methods, 4 blocks, lines 73-1059. The bar is 400 significant lines; this is 206 over it, 1.52\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":"mistralrs-core/src/vision_models/minicpmo/inputs_processor.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e5eb7cf0f57315e23ae027dbce438dfd66820d30b88f821404c1f7f21b5a9b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TextModel: ClassTooLong \u2014 605 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 7 methods, 4 blocks, lines 1224-2055. The bar is 400 significant lines; this is 205 over it, 1.51\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":"mistralrs-core/src/vision_models/gemma3n/text.rs"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef8394fe159d39e8e3444f962eef7863f94a7f5b8ed505c0146f00854623f9ca"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen4ExpModel.forward: MethodTooLong \u2014 forward runs 151 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/vision_models/qwen4_exp/mod.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"3028741e89185bf6fbabe249e6e860bf8234c16dd33c9149d397e945383e9a7b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Model.new_inner: MethodTooLong \u2014 new_inner runs 150 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\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":"mistralrs-core/src/models/lfm3.rs"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6c20a95d3e509fede8be19425658362007fcc7cf05086aca70afa4d2eb8b9f0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GGUFLoader.load_native_normal: MethodTooLong \u2014 load_native_normal runs 150 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\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":"mistralrs-core/src/pipeline/gguf.rs"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"68aa7342f553d8b97e9a76375414bc7e472aef3361b17cfa1007bf873913539f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MultimodalPipeline.precapture_cuda_decode_graphs_impl: MethodTooLong \u2014 precapture_cuda_decode_graphs_impl runs 150 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2360}}}],"partialFingerprints":{"codehealthFindingId/v1":"44403245c8a53b27eaddd893e1816159a18f159e41e7d857f019dd68f24e4695"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::gguf::fast_mmvq::fused_glu: FunctionTooLong \u2014 mistralrs_quant::gguf::fast_mmvq::fused_glu runs 150 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\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":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"812c49bdac5260241778f2ae21805442230bc4f5e513f91767fbec7e72901d68"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: flashinfer/metadata.rs: FileTooLong \u2014 746 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). 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":"mistralrs-core/src/flashinfer/metadata.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62863370ae9a08b3f13881ab90180e92083f47594c89812678cb524e7ae4566a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gguf/normal_bindings.rs: FileTooLong \u2014 746 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). 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":"mistralrs-core/src/gguf/normal_bindings.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"942e824227d5f0cb684e260595f7ba835ad05f04e29dd71b10cb39cfa84ee613"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::cutile::nvfp4_matmul::prepare_gather_with: FunctionTooLong \u2014 mistralrs_quant::cutile::nvfp4_matmul::prepare_gather_with runs 149 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\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":"mistralrs-quant/src/cutile/nvfp4_matmul.rs"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"335a6574b12bacb7badece0791b32e2dd68476e24dc59b75ce9344888c167a57"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::mxfp4::ops::mxfp4_matmul: FunctionTooLong \u2014 mistralrs_quant::mxfp4::ops::mxfp4_matmul runs 149 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\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":"mistralrs-quant/src/mxfp4/ops.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7d212f01ed42c68f0189852d596b6a4f00daa6cc12298ea57b4ddfc264335a0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: UnquantLinear.apply_isq: MethodTooLong \u2014 apply_isq runs 149 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\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":"mistralrs-quant/src/unquantized/mod.rs"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"4904c2271f897b848f88681d95d87cf5b0a23a388e344215d8af5e929cab95a6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MXFP4Layer: ClassTooLong \u2014 593 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 13 methods, 5 blocks, lines 25-901. The bar is 400 significant lines; this is 193 over it, 1.48\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":"mistralrs-quant/src/mxfp4/mod.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e4e1ed0752e0848ba3710c484aab62e1c1c96c45a8c556efebe7a12dcf5a45"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: metal/gdn.rs: FileTooLong \u2014 741 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 241 over it, 1.48\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":"mistralrs-core/src/metal/gdn.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ce147cb4e2498f0425bd91d64cbcd2f7931b3957798db53c15102d6f4df701f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gemma4/mtp.rs: FileTooLong \u2014 735 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 235 over it, 1.47\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":"mistralrs-core/src/vision_models/gemma4/mtp.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c6a6e40592fdfd982162e0fcc3523ed571455fdd1f386cb9b8f26d6cc4a4670"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelWeights.from_gguf: MethodTooLong \u2014 from_gguf runs 147 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\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":"mistralrs-core/src/xlora_models/quantized_phi3.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a0020129e04e377bd93a690b3a861f9640d4f3013454049d693f092a5aa378"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Sampler: TooManyMethods \u2014 44 methods. The bar is 30 methods; this is 14 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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f7f1f10a9529238843e10f1d7e0b37c3385198b02aba41f18672777dc6210c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: TextConfig: TooManyFields \u2014 44 stored fields beside 15 methods. The bar is 30 stored fields; this is 14 over it, 1.47\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/qwen4_exp/config.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8ef61ea9a9c5a82aa7dd417caddbf7e24a1847ce2acbaf61a28e15d818c37f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: xlora_models/gemma2.rs: FileTooLong \u2014 733 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 233 over it, 1.47\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":"mistralrs-core/src/xlora_models/gemma2.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02566bdac1aec79b19609e85094a0399d2816f212cc503935001b617abcfb5c2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: backend/mla.rs: FileTooLong \u2014 732 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 232 over it, 1.46\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":"mistralrs-paged-attn/src/cuda/backend/mla.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"07bd4fb70562aff7478f08a21671266e13650aab4b4d1a2a44e796a1824e2d7f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ImageEmbedding: ClassTooLong \u2014 584 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 5 methods, 2 blocks, lines 102-839. The bar is 400 significant lines; this is 184 over it, 1.46\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":"mistralrs-core/src/vision_models/phi4/image_embedding.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"69b4256d3e8cfa82aa253b272cdca0513966ec5cb5075725ca4935f2e7af411d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/skills.rs: FileTooLong \u2014 730 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 230 over it, 1.46\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":"mistralrs-server-core/src/skills.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"01887605ddf2feeeaebd5a1ec544733c87ae563d326137d19c544db609f80c81"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_cli::commands::run::interactive::print_agentic_progress: FunctionTooLong \u2014 mistralrs_cli::commands::run::interactive::print_agentic_progress runs 146 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd2957f9291793e8b069acbf09586f6fd40873e7b38d2b195de21636ca91ce5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::speculative::verifier::submit_sparse_rejection_group: FunctionTooLong \u2014 mistralrs_core::speculative::verifier::submit_sparse_rejection_group runs 146 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\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":"mistralrs-core/src/speculative/verifier.rs"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"0305facfe5daaf356fb78eb2fa14012e7fcc7c0aeebf9cf3d4078278e1aaa372"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HqqLayer: ClassTooLong \u2014 577 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 13 methods, 4 blocks, lines 585-1355. The bar is 400 significant lines; this is 177 over it, 1.44\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":"mistralrs-quant/src/hqq/mod.rs"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"618afa288bac2a211b7cebc32df93f708d20529342af0eccc3614ee680dc8073"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_cli::commands::run::interactive::text_interactive_mode: FunctionTooLong \u2014 mistralrs_cli::commands::run::interactive::text_interactive_mode runs 144 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad5f6c06c26dd07f10ec8312db127a8b133e218e0a46354792b40f94e437aee"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Gemma4ImageProcessor.prepare_for_paged_prompt_planning: MethodTooLong \u2014 prepare_for_paged_prompt_planning runs 144 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\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":"mistralrs-core/src/vision_models/gemma4/inputs_processor.rs"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e784e158e5ae4af0b7ffeca9507ab790686f1018a5ea699bdb84542a58b590b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::cutile::fused_moe_fp8::grouped_gemm_fp8: FunctionTooLong \u2014 mistralrs_quant::cutile::fused_moe_fp8::grouped_gemm_fp8 runs 144 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\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":"mistralrs-quant/src/cutile/fused_moe_fp8.rs"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a86f9dd8484fcc01bc4950dcca9bac304cdaaa6e0e0591164475d9ba6a34c32"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_server_core::responses_types::items::input_item_schema: FunctionTooLong \u2014 mistralrs_server_core::responses_types::items::input_item_schema runs 144 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\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":"mistralrs-server-core/src/responses_types/items.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5383b9261d975f94912f799a8a83949260e87282505bee9b3b9d40cb68a1f76"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: GgufModelBuilder: TooManyFields \u2014 43 stored fields beside 49 methods. The bar is 30 stored fields; this is 13 over it, 1.43\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs/src/gguf.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc2ba460005859eca89f27c8ab13efb70ec998fb33b05fe0c5bfd569c9c1fcd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: ChatCompletionRequest: TooManyFields \u2014 43 stored fields beside 3 methods. The bar is 30 stored fields; this is 13 over it, 1.43\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-pyo3/src/requests.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f791ea38ad41963bb642d7d014788049d3ea0f0dbcb5251ab13959d5bb683c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: State.forward: MethodTooLong \u2014 forward runs 143 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\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":"mistralrs-quant/src/nvfp4/cutlass.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ed51c4db85a8343fe5453ef0b90bcd99a25cba917ed403dd6842ce652e4c63"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/metrics.rs: FileTooLong \u2014 714 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 214 over it, 1.43\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":"mistralrs-server-core/src/metrics.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a931719c0c1deea603e6e0d30ca10db4fefc9422a224996f5a17de4ecc82b1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::gguf::normal_bindings::bind_block_tensor: FunctionTooLong \u2014 mistralrs_core::gguf::normal_bindings::bind_block_tensor runs 142 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\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":"mistralrs-core/src/gguf/normal_bindings.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60f2d61099310802d7a3fc4e172c2e61d9658be6dee83c5a5132d12c48f4280"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lfm3_d1/prompt.rs: FileTooLong \u2014 707 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 207 over it, 1.41\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":"mistralrs-core/src/vision_models/lfm3_d1/prompt.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3813eeaadfb1a7dd91a16020554cd37f114d9c2f30447cf52f105ef7f5b690ac"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Lfm2VlImageProcessor: ClassTooLong \u2014 563 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 17 methods, 4 blocks, lines 50-855. The bar is 400 significant lines; this is 163 over it, 1.41\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":"mistralrs-core/src/vision_models/lfm2_vl/inputs_processor.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cea3ee4be2567399b8d08d57d73ce7a8785f420814436ac948fcfc28ff6060a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gguf/packed_affine.rs: FileTooLong \u2014 703 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 203 over it, 1.41\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":"mistralrs-quant/src/gguf/packed_affine.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05feaf1c538a5dec9f8ea5274b82c797efbce646f5bc339de8b0f11c8120403f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pipeline/embedding.rs: FileTooLong \u2014 701 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 70% of them inside a single declaration: EmbeddingLoader (2 blocks, 72-756). The bar is 500 significant lines; this is 201 over it, 1.40\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":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92089045039aad5ad891c51dc021d298e7040852664622785ee20fe116af18ab"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_cli::commands::doctor::run_doctor: FunctionTooLong \u2014 mistralrs_cli::commands::doctor::run_doctor runs 140 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-cli/src/commands/doctor.rs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c579aa01294611b8575581a38889accffb9f0f1dc4f20124e98f67efc0ed437"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::gguf::fast_mmvq::plain: FunctionTooLong \u2014 mistralrs_quant::gguf::fast_mmvq::plain runs 140 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"96ccd4d699d7016c6eda4ab5d2721a90b8e19d6528d801a057863310bf4fd977"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: ChatCompletionRequest: TooManyFields \u2014 42 stored fields. The bar is 30 stored fields; this is 12 over it, 1.40\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/openai.rs"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a6a14f39b12ea0b6e549dfbb30936cdd37b9f26b10f39dcde1ebd61b223f0a5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: ResponsesCreateRequest: TooManyFields \u2014 42 stored fields. The bar is 30 stored fields; this is 12 over it, 1.40\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/openai.rs"},"region":{"startLine":1876}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea26c50760f00bbb92e6068d2b8768ba112d31f569b62985bded8233f7f837c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: OpenResponsesCreateRequest: TooManyFields \u2014 42 stored fields. The bar is 30 stored fields; this is 12 over it, 1.40\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/responses.rs"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69de1abe0541582099288ba663a190b45472356d5a4a55226cb2af0ab462f59"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: backend/paged_attention.rs: FileTooLong \u2014 697 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 197 over it, 1.39\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":"mistralrs-paged-attn/src/metal/backend/paged_attention.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43930567475a609c92737f613cb35c482a8400ae9537f5a03bd722b8f3e4695"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::cuda::gdn::speculative_state_commit_cuda: FunctionTooLong \u2014 mistralrs_core::cuda::gdn::speculative_state_commit_cuda runs 139 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":3308}}}],"partialFingerprints":{"codehealthFindingId/v1":"33b94e2826e232be78590c50cd67a22291de93a7470716e27d824149408d1e69"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Gemma4Loader.non_mapped_size_in_bytes: MethodTooLong \u2014 non_mapped_size_in_bytes runs 139 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":9704}}}],"partialFingerprints":{"codehealthFindingId/v1":"5873acb22a936ee123f68fee2b27214c56775f9755608894a1846e36e71a935a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_paged_attn::metal::kernels::call_paged_attention_v2: FunctionTooLong \u2014 mistralrs_paged_attn::metal::kernels::call_paged_attention_v2 runs 139 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\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":"mistralrs-paged-attn/src/metal/kernels/mod.rs"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff8ae1cc57575ed2f0314122a180e73fb57d725b4fdb83361071e196a2c1c4f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ShardedSafeTensors.get: MethodTooLong \u2014 get runs 139 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\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":"mistralrs-quant/src/safetensors.rs"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"5073e89a455d35f002f4b3a42d5bd0f6f046329e09844c339047765992f81cd5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/qwen3_moe.rs: FileTooLong \u2014 690 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 190 over it, 1.38\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":"mistralrs-core/src/models/qwen3_moe.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"797f1ada03cdb9f760738d25a876b99179f0b7680b6942450a3cef552480cf5d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Model.new_inner: MethodTooLong \u2014 new_inner runs 138 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/models/mistral.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd520cbba0b5ce6b39199133a62b18a29346b0b5c2fbee2285b250051bbcff7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::vision_models::gemma3n::vision::gemma3n_mobilenet_def: FunctionTooLong \u2014 mistralrs_core::vision_models::gemma3n::vision::gemma3n_mobilenet_def runs 138 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/vision_models/gemma3n/vision.rs"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e75b3a30d8e87c79942117286ad8e528137278887cfba0b0c8cfdbf9fab7d9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_paged_attn::cuda::backend::paged_attention::update_cache: FunctionTooLong \u2014 mistralrs_paged_attn::cuda::backend::paged_attention::update_cache runs 138 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"86f9b39cf99faf678d2d3a049d3c7356529c0121f4d85eaf4788626da9bc1781"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::gguf::fast_mmq::grouped: FunctionTooLong \u2014 mistralrs_quant::gguf::fast_mmq::grouped runs 138 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ebc8f42580c69cad68af376b44186624f53c7b567c3922a6b6f09eafdfaa71"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gemma4/vision.rs: FileTooLong \u2014 689 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 189 over it, 1.38\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":"mistralrs-core/src/vision_models/gemma4/vision.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0665b63b1bf8e504c9e18c55753f895d891b3ef80d97f6b4c7da046098374a42"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: xlora_models/gemma.rs: FileTooLong \u2014 688 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 188 over it, 1.38\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7b438c251c26425f83c3e5edf52906c189776bf66e61ec66c26342d92b81e8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: xlora_models/mistral.rs: FileTooLong \u2014 687 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 187 over it, 1.37\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":"mistralrs-core/src/xlora_models/mistral.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9428061b863a01dfeb4209aaf264a18aff3e5d760a3cb6720446e0f659bc97"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lora_adapters.rs: FileTooLong \u2014 685 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 185 over it, 1.37\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":"mistralrs-server-core/src/lora_adapters.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"736d1c2c6835a5872bba7f0d689d6bd5ff515cb77fa58fb9b21c4fbff08a5d05"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_cli::commands::run::interactive::oneshot_multimodal: FunctionTooLong \u2014 mistralrs_cli::commands::run::interactive::oneshot_multimodal runs 137 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc81e0353a9d666309d378c2a5028eb322d7085bbbe7480e2e6dbb9832963d0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::cutile::fp8_gemm::launch: FunctionTooLong \u2014 mistralrs_quant::cutile::fp8_gemm::launch runs 137 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-quant/src/cutile/fp8_gemm.rs"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a26aeaed18c932c7b7d42765119499affd0f3cd671891ed217ce251d822d811"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RecurrentStatePool: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 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":"mistralrs-core/src/kv_cache/hybrid_cache.rs"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd3d00cab4f560e28756ae01aa44fb3c4398f5ccef8aa749e0630dff71effb5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: mistralrs_core::pipeline::hf: TooManyFunctions \u2014 41 free functions. The bar is 30 free functions; this is 11 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":"mistralrs-core/src/pipeline/hf.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"54796bb06581bcc1fda5f72ed8f766b6e6b9a0627b42d5a9bf0c034e03d96f9a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/flash.rs: FileTooLong \u2014 681 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 181 over it, 1.36\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":"mistralrs-flash-attn/src/flash.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a979f80377d65d7c1ece4557fe827c85f6be6281793462068db2d65722c36a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: embedding/mod.rs: FileTooLong \u2014 680 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 180 over it, 1.36\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":"mistralrs-quant/src/embedding/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e36a2ff2019ea3d68f65d1467c2d6b5f0cb6ca82732442ff656027eec8b8ac"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cutile/tune.rs: FileTooLong \u2014 679 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 179 over it, 1.36\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":"mistralrs-quant/src/cutile/tune.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d05869553d88b21941b0c759135a854f908a4dae485f3185a247e6350b1e0d15"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: qwen3_5/speculative.rs: FileTooLong \u2014 678 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 87% of them inside a single declaration: Qwen3_5Model (3 blocks, 127-916). The bar is 500 significant lines; this is 178 over it, 1.36\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":"mistralrs-core/src/vision_models/qwen3_5/speculative.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d971cd4aab53d784deaec47806fdd2f63ac1c86b8bf3c58dcf64b043ac5705c6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cuda/qwen4_exp.rs: FileTooLong \u2014 677 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 177 over it, 1.35\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":"mistralrs-core/src/cuda/qwen4_exp.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4fc4f9f8e95b633da70d3fb224fe7b0ef93fe3593d59f9162bf85ee9bd7e561"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lfm2_vl/inputs_processor.rs: FileTooLong \u2014 675 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 83% of them inside a single declaration: Lfm2VlImageProcessor (4 blocks, 50-855). The bar is 500 significant lines; this is 175 over it, 1.35\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":"mistralrs-core/src/vision_models/lfm2_vl/inputs_processor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"30f89503cdcc715a2cfda7ccb6375eb7607980c24c32d1985d7464bb9c01ebe7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::engine::cuda_memory::maintain_device: FunctionTooLong \u2014 mistralrs_core::engine::cuda_memory::maintain_device runs 135 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/engine/cuda_memory.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"00847d201f3c0c4c94151078248f860389a7334800b9a125e34229ef3aa6c082"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Gemma4AudioAttention.forward: MethodTooLong \u2014 forward runs 135 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/vision_models/gemma4/audio.rs"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dafffee01c5cdd131684bb00a3fa8fb0bb2a9566a6961aa93b2d39b990c73be"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VoxtralInputsProcessor.process_inputs: MethodTooLong \u2014 process_inputs runs 135 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/vision_models/voxtral/inputs_processor.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d3d3d7c34e74e196e8ee50f7102bce846a6ec05a915903f04d28957c083a492"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_paged_attn::metal::backend::gather_kv::gather_kv_cache: FunctionTooLong \u2014 mistralrs_paged_attn::metal::backend::gather_kv::gather_kv_cache runs 135 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-paged-attn/src/metal/backend/gather_kv.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"22396ff9c93a5bc7e1c63b3d9aa77f476d8e8cbc6bbaaacf3980fe5ce9623d99"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: xlora_models/starcoder2.rs: FileTooLong \u2014 672 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 172 over it, 1.34\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":"mistralrs-core/src/xlora_models/starcoder2.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d07512a8c795246b4e8360ae178cb6c345914b6a4fb8db58574f2a6dff81f5a4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MuseGlimmerImageProcessor: ClassTooLong \u2014 537 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 10 methods, 4 blocks, lines 101-1129. The bar is 400 significant lines; this is 137 over it, 1.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":"mistralrs-core/src/vision_models/muse_glimmer/inputs_processor.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"a672d6732769c67934f8bbed32d1e12f303b2dfb4e456d9efe94c9db7270407a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: QsaAttention: ClassTooLong \u2014 536 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 8 methods, 2 blocks, lines 78-687. The bar is 400 significant lines; this is 136 over it, 1.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":"mistralrs-core/src/vision_models/qwen4_exp/qsa.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"8592712fe75edd482174ed238bbb22049a5bf4c24bfb097f6391c8c439cff31c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/qwen2.rs: FileTooLong \u2014 670 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 170 over it, 1.34\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":"mistralrs-core/src/models/qwen2.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e0f6d7a99698d0e64ff47246aea5021ce773280eccf3334782371797253396"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MistralRs.create_engine_instance: MethodTooLong \u2014 create_engine_instance runs 134 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\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":"mistralrs-core/src/lib.rs"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"9366808d5107266ffcad08754a70f858e2232557814bac2b616403a67a6349e3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CudaDecodeGraphMetadataBuffers.new: MethodTooLong \u2014 new runs 134 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\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":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":1506}}}],"partialFingerprints":{"codehealthFindingId/v1":"66da03bbe572e23ca3b89f72a580bac0bb38b6eb11666b7ca35fd6f5354cbdc1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DFlashCudaGraphState.run: MethodTooLong \u2014 run runs 134 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\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":"mistralrs-core/src/speculative/dflash.rs"},"region":{"startLine":1865}}}],"partialFingerprints":{"codehealthFindingId/v1":"0212369f2dcc682b01c7def6484de6d42fdbf1f38ad7beda8f595f6911c0de6a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TextModel.new: MethodTooLong \u2014 new runs 134 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\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":"mistralrs-core/src/vision_models/gemma3/text.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a60d94e13bc53371386337cddca767f39a475c8d1e043ca4119b63f6eaca114"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::gptq::gptq_cuda::gptq_linear: FunctionTooLong \u2014 mistralrs_quant::gptq::gptq_cuda::gptq_linear runs 134 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\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":"mistralrs-quant/src/gptq/gptq_cuda.rs"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa426a8add7eb273200f3ee51a0158a14135d1cb2c3a2b8905af13fd10b471d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gemma3/inputs_processor.rs: FileTooLong \u2014 669 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 72% of them inside a single declaration: Gemma3ImageProcessor (4 blocks, 43-883). The bar is 500 significant lines; this is 169 over it, 1.34\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":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"23020211bf4ab2935bc5b84d54fdce0fb9c0f1d141f93bad00f9ebea3141902e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DFlashDraftModel: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\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":"mistralrs-core/src/speculative/dflash.rs"},"region":{"startLine":1285}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe7da46a2df07be723fbd6ae4ef8e6857e0af40b67f2bcbd6d2988d5dc12f0b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: ModelBuilder: TooManyFields \u2014 40 stored fields beside 10 methods. The bar is 30 stored fields; this is 10 over it, 1.33\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs/src/auto_model.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"03c472b05799d2123d520a4a7cb74c8b142c613fe69e9253446916956917d012"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: xlora_models/llama.rs: FileTooLong \u2014 666 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 166 over it, 1.33\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":"mistralrs-core/src/xlora_models/llama.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cde3afc129b3c3478008a78e3f8e3ef1bb47be09ed8ab537327192597b012cb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/mistral.rs: FileTooLong \u2014 665 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 165 over it, 1.33\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":"mistralrs-core/src/models/mistral.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7aa8b2324e60333a4a99f3c8199d76b3717ebf2292962c8243d8a9999580d69"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::cuda::moe::moe_gemm: FunctionTooLong \u2014 mistralrs_core::cuda::moe::moe_gemm runs 133 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\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":"mistralrs-core/src/cuda/moe.rs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0eb0c30fc0a6f4bdc8c5a7bf710b61b87c328c44013807a90fb89fcbc2d65b2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MistralRs.init_external_tool_callbacks: MethodTooLong \u2014 init_external_tool_callbacks runs 133 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\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":"mistralrs-core/src/lib.rs"},"region":{"startLine":1378}}}],"partialFingerprints":{"codehealthFindingId/v1":"854e1970f37e141a47f9b498be080444ff8d4303f5114709fb2b49c06e2aff43"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Model.new_inner: MethodTooLong \u2014 new_inner runs 133 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\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":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"b59b45202673836558a60297d309e4088f59c689c0557e2b5852ff9b5ecde397"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BlockwiseFP8Linear.apply_isq: MethodTooLong \u2014 apply_isq runs 133 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\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":"mistralrs-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6c2d5d306a4788aa84ccfa6cf606048071d6d6a270b80915d77455bb09b1600"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GgufWeightSource: ClassTooLong \u2014 531 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 22 methods, 4 blocks, lines 291-977. The bar is 400 significant lines; this is 131 over it, 1.33\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":"mistralrs-quant/src/gguf/weight_source.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"385da5852f54f0c853335a46fa3807d3173b4978a9b94c261e164d8e40cbe118"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/gemma2.rs: FileTooLong \u2014 660 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 160 over it, 1.32\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":"mistralrs-core/src/models/gemma2.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba62dda0636a86a4189790ddf1ef7e19d95858dfe180a87b0cd9c96f3467db0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/glm4.rs: FileTooLong \u2014 660 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 160 over it, 1.32\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":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e81bfdefa50f65c75cc13d8cffae7b21107f0d37a880f01efe23ce03b8ad76"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Model.new: MethodTooLong \u2014 new runs 132 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/models/gpt_oss.rs"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"c94995a23f5a6865732e2c12e4bb14ad7a654806bd182dd34d7e749ac47b3bc4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::pipeline::chat_template::apply_chat_template_to: FunctionTooLong \u2014 mistralrs_core::pipeline::chat_template::apply_chat_template_to runs 132 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/pipeline/chat_template.rs"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"0614302f9d627900e24082069dbe21d9e5f15e2ab59b5529ec7f437de72d8cc6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::vision_models::diffusion_gemma::generation::generate_canvas: FunctionTooLong \u2014 mistralrs_core::vision_models::diffusion_gemma::generation::generate_canvas runs 132 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/vision_models/diffusion_gemma/generation.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f10424ac44c808d2e19aae5f1cb11bcb6c2bcc92aee6b1e97f7129b5a7e8d0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: speculative/driver.rs: FileTooLong \u2014 659 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 159 over it, 1.32\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":"mistralrs-core/src/speculative/driver.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"052ae8b99ec1b1604bf6009d993c5f42b5e2d6a8187c9dbb1c21e4584fe70045"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/safetensors.rs: FileTooLong \u2014 659 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 159 over it, 1.32\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":"mistralrs-quant/src/safetensors.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c8f393d8cfea5b1e40d3d84d552a4af658928d4d94829c8ff55674db50f323b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PerTensorFP8Linear: ClassTooLong \u2014 526 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 12 methods, 4 blocks, lines 17-810. The bar is 400 significant lines; this is 126 over it, 1.32\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":"mistralrs-quant/src/pertensor_fp8/mod.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"d87993c499631039b6092654898670afd0d131c105a527dfc5cea040a3b9f0eb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: paged_attention/block_pool.rs: FileTooLong \u2014 656 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 156 over it, 1.31\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":"mistralrs-core/src/paged_attention/block_pool.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa009cfac649d06c1dd70dda596f149513124406a20e35e026bfcaf7095a147"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: args/mod.rs: FileTooLong \u2014 655 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 155 over it, 1.31\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":"mistralrs-cli/src/args/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1f285c695a9b45a0f49af23404aa27a1c4a217dc71b90f549a128094e96bd6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Llama4Model.forward: MethodTooLong \u2014 forward runs 131 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/vision_models/llama4/mod.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"573784a51c18d833e85ff83233ce4180b907e999a8e99fe7eea427cea744389b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FullAttention.forward: MethodTooLong \u2014 forward runs 131 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0016a65fe7d49837c8f1f76bfcd4de3471caf7c2f74524bad99cf220f3f9875"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Model.new: MethodTooLong \u2014 new runs 131 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/xlora_models/gemma2.rs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf25a2805029bc8ac926938758ce97282a428e4896e70a0ab2beab3bf4f15e5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BlockwiseFP8Linear.forward_raw: MethodTooLong \u2014 forward_raw runs 131 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd7ea395e4f66890c1b0f33c5e959d54ed99c7de24f4047ab398da96b5942e5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/qwen3.rs: FileTooLong \u2014 653 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 153 over it, 1.31\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":"mistralrs-core/src/models/qwen3.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"885825389fc420be1079d0343b4b2089a320e0376de73a4e0931298942506b94"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lfm3_omni/generation.rs: FileTooLong \u2014 652 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 152 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":"mistralrs-core/src/vision_models/lfm3_omni/generation.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"064ab5436a16a8a8fd2a0eff2c16531e4c94a05dfee8990100c011685765e051"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cutile/qsa_decode.rs: FileTooLong \u2014 652 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 152 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":"mistralrs-quant/src/cutile/qsa_decode.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce4c1867fa9b0e19471983ac36e4c3eadc38be8a11ed6dc96efd568655e416fe"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: TextModelBuilder: TooManyFields \u2014 39 stored fields beside 10 methods. The bar is 30 stored fields; this is 9 over it, 1.30\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs/src/text_model.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d5df32e9f8ab7c6a4fa8da8a4a2444f04adbf4dbbeb3f5522499d2eb0c9488"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gguf/qwen_multimodal_bindings.rs: FileTooLong \u2014 650 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). 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":"mistralrs-core/src/gguf/qwen_multimodal_bindings.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fb88a9e960f878079ed8f92593fb949e64c3b9d4de464bf8e196f78b5830101"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_cli::commands::run::run_interactive: FunctionTooLong \u2014 mistralrs_cli::commands::run::run_interactive runs 130 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\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":"mistralrs-cli/src/commands/run/mod.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cf7b4d3a2a74d2bc414d7dc20f12596b84a11f9d2c3ccb88139aa33e1196e95"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_cli::commands::serve::run_server: FunctionTooLong \u2014 mistralrs_cli::commands::serve::run_server runs 130 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\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":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"58347527a94913ef1ac6208e2446e79eb599a0b217b6c0b8bae900cdac9e11d7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::cuda::gdn::launch_deferred_state_cuda: FunctionTooLong \u2014 mistralrs_core::cuda::gdn::launch_deferred_state_cuda runs 130 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":4780}}}],"partialFingerprints":{"codehealthFindingId/v1":"88339ad4d5144b5a6dd192bcb77a447a79f73ef014effb1c2f546f99d74f02df"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: XLoraModel.new: MethodTooLong \u2014 new runs 130 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5c9aee1d9d50dfa0e30a2894a9c9d949b8c6239f7cebe2d701bcbcb16cde45"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: XLoraModel.new: MethodTooLong \u2014 new runs 130 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\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":"mistralrs-core/src/xlora_models/mistral.rs"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe0a11d8b825f763ba82c8a3c4da26cb5d0fd5d4e1a35ecb7b873222f6f43b4f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_server_core::video::decode_video_ffmpeg: FunctionTooLong \u2014 mistralrs_server_core::video::decode_video_ffmpeg runs 130 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\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":"mistralrs-server-core/src/video.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e8c4652a572eb97b6be6a4fbf8f088035ee0b8f0566b479c980a2019e8392e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/prefix_cacher.rs: FileTooLong \u2014 649 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 76% of them inside a single declaration: PrefixCacheManagerV2 (3 blocks, 178-918). The bar is 500 significant lines; this is 149 over it, 1.30\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":"mistralrs-core/src/prefix_cacher.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7376c4acec392f3218880b311652d21c29d84fc9cadac37249f4eee363d772bf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: phi4/image_embedding.rs: FileTooLong \u2014 648 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 90% of them inside a single declaration: ImageEmbedding (2 blocks, 102-839). The bar is 500 significant lines; this is 148 over it, 1.30\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":"mistralrs-core/src/vision_models/phi4/image_embedding.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"73de8534dbeaf3c5d65ad1165c56b3db0f7ebb6fcfc548d7711b4887d72f6b4c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: xlora_models/phi2.rs: FileTooLong \u2014 647 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 147 over it, 1.29\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":"mistralrs-core/src/xlora_models/phi2.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d1a276d45bc4f5c1b3fba915c4a3976217190eb9c9be8d9e7f77c76a9d1460"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::pipeline::isq::gguf_imatrix_names: FunctionTooLong \u2014 mistralrs_core::pipeline::isq::gguf_imatrix_names runs 129 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\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":"mistralrs-core/src/pipeline/isq.rs"},"region":{"startLine":1405}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb7f7c40700b2bfd190b09d92fedc0edaa69517959f7da12188599ced945f5e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TextModel.forward_embeds: MethodTooLong \u2014 forward_embeds runs 129 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\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":"mistralrs-core/src/vision_models/gemma3/text.rs"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf28dfdabaf4382b702d91bff95f22c0b1d9314cab79dab8120c75bdf6fde77"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Phi4MMInputsProcessor.prepare_prompt_plans: MethodTooLong \u2014 prepare_prompt_plans runs 129 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\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":"mistralrs-core/src/vision_models/phi4/inputs_processor.rs"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f5cdacb40d5688aaf2074a30b165a748c4b71efe95ebffd3c1b23fde2384c6b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs::model_builder_trait::build_multimodal_pipeline: FunctionTooLong \u2014 mistralrs::model_builder_trait::build_multimodal_pipeline runs 129 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\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":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"a21f20e73120b847ea8dbe284b8b6228ae0bf7e03f74169c617a6a83e6f499fb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/hunyuan_v1_dense.rs: FileTooLong \u2014 643 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 143 over it, 1.29\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":"mistralrs-core/src/models/hunyuan_v1_dense.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d7afa08783ac90f88f2b16fd26be94c4b9c478a8cfc42b9f63607469474c4b7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ImageEmbedding: ClassTooLong \u2014 513 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 4 methods, 2 blocks, lines 497-1182. The bar is 400 significant lines; this is 113 over it, 1.28\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":"mistralrs-core/src/vision_models/phi3/mod.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbe8434b6e6df650094770c73ffda656bda490e8e1d4485cd9782a7d40df169c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: xlora_models/phi3.rs: FileTooLong \u2014 641 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 141 over it, 1.28\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":"mistralrs-core/src/xlora_models/phi3.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71f0d04636fac4ee53626f1c1abfaa25851c20fe7237dd68d0b4015a2547c9a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cutile/fp8_w8a8.rs: FileTooLong \u2014 641 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 141 over it, 1.28\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":"mistralrs-quant/src/cutile/fp8_w8a8.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e9d79a3434ecb48d1875aa76681f5a27f56c3253328f09c644b53a56e58f66"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ImageEmbedding.new: MethodTooLong \u2014 new runs 128 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\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":"mistralrs-core/src/vision_models/phi3/mod.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6783892973994768ef26ed0bb7787d5801f29e3f14d9007469edfc470d840b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Phi4MMInputsProcessor.preprocess: MethodTooLong \u2014 preprocess runs 128 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\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":"mistralrs-core/src/vision_models/phi4/inputs_processor.rs"},"region":{"startLine":1561}}}],"partialFingerprints":{"codehealthFindingId/v1":"090bd9ad659429b567e20ea41363236c15b146857eb75be131300f6962919534"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: XLoraModel.new: MethodTooLong \u2014 new runs 128 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\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":"mistralrs-core/src/xlora_models/mixtral.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4dfdfa2aa0e5c0e9c8286d20d0fb2750e318d6c3e24a9a16b92372a80f9ddb1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::blockwise_fp8::ops::fp8_indexed_moe_gemm: FunctionTooLong \u2014 mistralrs_quant::blockwise_fp8::ops::fp8_indexed_moe_gemm runs 128 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1172}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a6f31b86741cc0cf42a4dbd3424a2bd3c721e07962457a3c629767cd446be3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PerTensorFP8Linear.apply_isq: MethodTooLong \u2014 apply_isq runs 128 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\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":"mistralrs-quant/src/pertensor_fp8/mod.rs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"a504cf10e54eb7714866e6abf5d3d0bbe1203f2dbc081f146dc9417dd6ff8ea1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: llava_llm/mistral.rs: FileTooLong \u2014 635 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 135 over it, 1.27\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":"mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d9fb6ba542a4c7889db851aab24f1564e84bc92bb7c23f2d355645963decb9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: loader/expert.rs: FileTooLong \u2014 635 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 135 over it, 1.27\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":"mistralrs-quant/src/lora/dynamic/loader/expert.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62dcc3c516de7bb3744bd59c862131fb63ab3698e5a4b044b80b98e39dd63aa7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::cuda::gdn::fused_decode_recurrence_cuda_impl: FunctionTooLong \u2014 mistralrs_core::cuda::gdn::fused_decode_recurrence_cuda_impl runs 127 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":3123}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b85b6a68893b29d1255a7b69c1443e413fdbedd0bd63d0de774af6e7ca103b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::mla::forward::mla_decode_forward: FunctionTooLong \u2014 mistralrs_core::mla::forward::mla_decode_forward runs 127 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\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":"mistralrs-core/src/mla/forward.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"39819910619d9ba357c0a1f71b5470431ef3827ab6985e2fdea11b3370dc91cf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Model.forward: MethodTooLong \u2014 forward runs 127 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b7ccf3d373850770753e27111a2c9304873e43f7357e5d627a97ed34b22609"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Gemma3nImageProcessor.process_inputs: MethodTooLong \u2014 process_inputs runs 127 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\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":"mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"18299fc5bc657195e25faa312d5258c9d57096b048f861a6bca2226a26773dda"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: XLoraLlama.new: MethodTooLong \u2014 new runs 127 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\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":"mistralrs-core/src/xlora_models/llama.rs"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c43fcf87e370601a780637e3d4b65c88f8c9e640fa3816a8d3022e800cbddf6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ManagedEmbedding.prepare_mapped: MethodTooLong \u2014 prepare_mapped runs 127 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\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":"mistralrs-quant/src/embedding/storage.rs"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"e96f9f85da0f1a305539dc0050cffc7fd5ed40f37d6f02dc327b6c98f0234b42"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: muse_glimmer/text.rs: FileTooLong \u2014 634 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 134 over it, 1.27\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":"mistralrs-core/src/vision_models/muse_glimmer/text.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2fd6e5e011ea97d2b5bebbb37a18108d84ea4d1abae2b3d8eee901c8d5a780b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: MultimodalModelBuilder: TooManyFields \u2014 38 stored fields beside 9 methods. The bar is 30 stored fields; this is 8 over it, 1.27\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs/src/multimodal_model.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d054ced7d0ea2ed1b2ea766a6a83ccf0f543469580e83faf830494ee1b4850"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: AnthropicMessagesRequest: TooManyFields \u2014 38 stored fields beside 2 methods. The bar is 30 stored fields; this is 8 over it, 1.27\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/anthropic.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b56bfa83243714922aaf24d20b03156608723aa8a1fb9c9993aec75256fed9d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: responses_types/items.rs: FileTooLong \u2014 631 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 131 over it, 1.26\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":"mistralrs-server-core/src/responses_types/items.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9be619585f73120ae1d76a32e450b55a296b768280dac833b0321970cd7a4a7e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GraniteMoeHybrid: ClassTooLong \u2014 504 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 4 methods, 5 blocks, lines 1901-2579. The bar is 400 significant lines; this is 104 over it, 1.26\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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":1901}}}],"partialFingerprints":{"codehealthFindingId/v1":"02aacc49d6e72520b5190eb64cc243b349de90fd71e7d488e8eed4154724587e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::cuda::gdn::prepare_recurrence_inputs_cuda_typed: FunctionTooLong \u2014 mistralrs_core::cuda::gdn::prepare_recurrence_inputs_cuda_typed runs 126 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":1946}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc7c5dad83dfa6792a6292ec91291b0fe08cbcc96f88b2f2a83a38878e603fc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GGUFLoader.infer_multimodal_asset_paths: MethodTooLong \u2014 infer_multimodal_asset_paths runs 126 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/pipeline/gguf.rs"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af331c95fb98d1cd77a3cb93f571b1b1fe7eb228835b8032362b06d049cc40b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::pipeline::isq_flow::plan::resolve_and_install_isq_plan: FunctionTooLong \u2014 mistralrs_core::pipeline::isq_flow::plan::resolve_and_install_isq_plan runs 126 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/pipeline/isq_flow/plan.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba988a35a3121a57d5b9d2b45e1f9c104b9edbd664a45348b6168e289b2f735"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PackedAffine.new: MethodTooLong \u2014 new runs 126 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-quant/src/gguf/packed_affine.rs"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe47322e55432b406617ef9cd75e2b8d34056c87a08e7567484d3772c64f45a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: idefics2/idefics2_input_processor.rs: FileTooLong \u2014 629 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 129 over it, 1.26\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":"mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f026e71f14e21a045dc4b220508cd983b65ec53b35c4c9b245bdd75fdf08373c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: qwen4_exp/qsa.rs: FileTooLong \u2014 629 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 85% of them inside a single declaration: QsaAttention (2 blocks, 78-687). The bar is 500 significant lines; this is 129 over it, 1.26\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":"mistralrs-core/src/vision_models/qwen4_exp/qsa.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d28290c8467fcbe7e48b3cbecc8178cd135c30693ea749aafc5de992d206e6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pipeline/amoe.rs: FileTooLong \u2014 627 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 67% of them inside a single declaration: AnyMoePipeline (8 blocks, 48-777). The bar is 500 significant lines; this is 127 over it, 1.25\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":"mistralrs-core/src/pipeline/amoe.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c87cbfbfed83609b91cdc679ef0ebf192e4459f528af88ea5b3339e3bb1082"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::cuda::gdn::causal_conv1d_cuda: FunctionTooLong \u2014 mistralrs_core::cuda::gdn::causal_conv1d_cuda runs 125 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":1709}}}],"partialFingerprints":{"codehealthFindingId/v1":"00cc87e663c31dca61dbd513fcfca2be8a68a3bd3af1a443bd71be402bac4127"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NormalLoaderType.arch_metadata: MethodTooLong \u2014 arch_metadata runs 125 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\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":"mistralrs-core/src/model_metadata.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c68bed555e75dc97b55857a6e6a46fda30621fcb973c6c287346e78a1d4b4e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CublasLTBatchMatmulF8Scalar.fwd_f8e4m3_scalar: MethodTooLong \u2014 fwd_f8e4m3_scalar runs 125 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\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":"mistralrs-quant/src/cublaslt/api.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"22fd35838c720c7b28884fa47667908f0483d53bf8ee9a33989565585e2ce44f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GgufMatMul: ClassTooLong \u2014 499 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 18 methods, 4 blocks, lines 64-877. The bar is 400 significant lines; this is 99 over it, 1.25\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":"mistralrs-quant/src/gguf/mod.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"90db1960dd4c35c8021ee037338eca5d0eae59fad45a6482f59d37bb8f13ce76"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: backend/paged_prefill.rs: FileTooLong \u2014 623 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 123 over it, 1.25\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":"mistralrs-paged-attn/src/metal/backend/paged_prefill.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4039fa4e661793f4a731fe0a88a602e84b6b8d522488dc6eb7224792940d517d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mistral3/inputs_processor.rs: FileTooLong \u2014 622 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 74% of them inside a single declaration: Mistral3ImageProcessor (4 blocks, 81-792). The bar is 500 significant lines; this is 122 over it, 1.24\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":"mistralrs-core/src/vision_models/mistral3/inputs_processor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4206b36b8f7a4867d5d7bb117bdae355eecb81eecb39060c5dafca857d3349a5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cutile/mxfp8_gemm.rs: FileTooLong \u2014 622 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 122 over it, 1.24\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":"mistralrs-quant/src/cutile/mxfp8_gemm.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed37cf6fbae42e22da47f975a20cf761e401e9c4af33e1c1f9c3927fd83e576a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pertensor_fp8/mod.rs: FileTooLong \u2014 621 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 85% of them inside a single declaration: PerTensorFP8Linear (4 blocks, 17-810). The bar is 500 significant lines; this is 121 over it, 1.24\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":"mistralrs-quant/src/pertensor_fp8/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d19678a90f3cc4d41e96d3ce862905fa87bc5bcca948cdd6a5b2c6ef0c55ca11"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GGMLLoader.load_model_from_path: MethodTooLong \u2014 load_model_from_path runs 124 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\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":"mistralrs-core/src/pipeline/ggml.rs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a254b09597900cd753737a24a70855ec034f271df7d1e2c47a2d8634297d33e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::pipeline::sampling::sample_sequence: FunctionTooLong \u2014 mistralrs_core::pipeline::sampling::sample_sequence runs 124 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\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":"mistralrs-core/src/pipeline/sampling.rs"},"region":{"startLine":1450}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aac23b70dafd3b36e91ba8087d817d6debec3818e6b50103fb55dde913991e1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Model.new: MethodTooLong \u2014 new runs 124 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\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":"mistralrs-core/src/xlora_models/starcoder2.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8469955a854f42f5d6e652435ed98a37e25d79160ff9948caa3d660a3b380bb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_paged_attn::cuda::backend::flashinfer::reshape_and_cache_flashinfer: FunctionTooLong \u2014 mistralrs_paged_attn::cuda::backend::flashinfer::reshape_and_cache_flashinfer runs 124 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\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":"mistralrs-paged-attn/src/cuda/backend/flashinfer.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e15a5dd9d5411492d12ac779c5a813a6d7e4d81db4ee96dc1507cdbf16f4c4b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PrefixCacheManagerV2: ClassTooLong \u2014 495 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 21 methods, 3 blocks, lines 178-918. The bar is 400 significant lines; this is 95 over it, 1.24\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":"mistralrs-core/src/prefix_cacher.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68684713912bca6e6c1c28d2acf4e923e10e4729cfce362fd014442c269a8b1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dynamic/expert.rs: FileTooLong \u2014 618 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 118 over it, 1.24\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":"mistralrs-quant/src/lora/dynamic/expert.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8749a69d82fddbe4ce880c09924b8cac5f273095ebcd398dfefff7f528db824"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: qwen3_vl_moe/text.rs: FileTooLong \u2014 617 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 117 over it, 1.23\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":"mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92d045272375ee0f7dd5989344adbe1ffc263cc5edef24fc81a5f24930a625a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: adapter/runtime.rs: FileTooLong \u2014 616 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 116 over it, 1.23\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":"mistralrs-core/src/adapter/runtime.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e97a9ac3f238b12e6673e89b97f54322cdfc38a1517c8828f2bba70c0cf8ac"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Attention: ClassTooLong \u2014 492 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 4 methods, 3 blocks, lines 290-897. The bar is 400 significant lines; this is 92 over it, 1.23\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":"mistralrs-core/src/vision_models/gemma4/text.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"4247530c69b327ee9beb229fd800808a2a10cc4de74b0dac0b71b48df926cdf1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::cuda::gdn::launch_recurrence: FunctionTooLong \u2014 mistralrs_core::cuda::gdn::launch_recurrence runs 123 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":1371}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c3f135249f3dff5e14c8c55a9d87620bee1d8f57fc038b4f2cc5b05a3f0effd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::engine::tool_dispatch::execute_search: FunctionTooLong \u2014 mistralrs_core::engine::tool_dispatch::execute_search runs 123 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\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":"mistralrs-core/src/engine/tool_dispatch.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"32340d63be8f39e2ae3d1723c7efdc2c74249b0e6d932889140f3c3bb0a0420b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MultimodalLoaderType.arch_metadata: MethodTooLong \u2014 arch_metadata runs 123 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\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":"mistralrs-core/src/model_metadata.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eae8fb81e948730cd5e3e6c9977d72661d3c90458ac7a974bdbeeb73b5b5f0b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PrefixCacheManagerV2.search_for_matching_cache: MethodTooLong \u2014 search_for_matching_cache runs 123 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\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":"mistralrs-core/src/prefix_cacher.rs"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"705216db2017b518d6b7e64e1b22eaeb8af29b4834c277711a9cf4fa7b0e8aef"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs::model_builder_trait::build_text_pipeline: FunctionTooLong \u2014 mistralrs::model_builder_trait::build_text_pipeline runs 123 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\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":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc36839caa04abcabd62522a79c2c56aa480e4d838edb80d49bbd5f8e3dd68fc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gguf/mod.rs: FileTooLong \u2014 614 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 81% of them inside a single declaration: GgufMatMul (4 blocks, 64-877). The bar is 500 significant lines; this is 114 over it, 1.23\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":"mistralrs-quant/src/gguf/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"368451a73ebbeaf31450263097bbef9c4a6f524fbddf9e64a7094cb1527914d0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EmbeddingLoader: ClassTooLong \u2014 491 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 0 methods, 2 blocks, lines 72-756. The bar is 400 significant lines; this is 91 over it, 1.23\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":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c365daaafdec03301851f0de8dbaffcd5eb9d416ca9f8458d608d5820757625"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RequestBuilder: ClassTooLong \u2014 490 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 51 methods, 6 blocks, lines 571-1346. The bar is 400 significant lines; this is 90 over it, 1.23\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":"mistralrs/src/messages.rs"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"9301b17d96883f39ac41a7b6ca466dd1acb7e689606912f99ce0aefbad3803a4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cpu/avx.rs: FileTooLong \u2014 612 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 34 free functions. The bar is 500 significant lines; this is 112 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":"mistralrs-core/src/attention/backends/cpu/avx.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a65fbb1573042f4172fdf7a564d2405f7b81c19b0335deeda470e87c487f6b21"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::vision_models::lfm3_d1::readout::answer_codes: FunctionTooLong \u2014 mistralrs_core::vision_models::lfm3_d1::readout::answer_codes runs 122 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\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":"mistralrs-core/src/vision_models/lfm3_d1/readout.rs"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9dea92b22ffcac692ebf9f74f398891e478c3ab80de05bb895243bacc476643"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::metal_kernels::call_afq_qmm: FunctionTooLong \u2014 mistralrs_quant::metal_kernels::call_afq_qmm runs 122 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":1298}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0baccaf1accd21b80044cde61df23d8a74f86fe9d251c458a0d4c6cff23d355"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::metal_kernels::call_scan: FunctionTooLong \u2014 mistralrs_quant::metal_kernels::call_scan runs 122 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":2089}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb3b5af9119e5e48e62ebf9bc4e37bd7441e99778d28518438d5f33408f6ea2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::mxfp4::metal_ops::mxfp4_matmul: FunctionTooLong \u2014 mistralrs_quant::mxfp4::metal_ops::mxfp4_matmul runs 122 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\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":"mistralrs-quant/src/mxfp4/metal_ops.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e088aeb2eaee8f3e617527a946547a17fc0184caff918f214102c77b1629e1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mxfp4/mod.rs: FileTooLong \u2014 609 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 97% of them inside a single declaration: MXFP4Layer (5 blocks, 25-901). The bar is 500 significant lines; this is 109 over it, 1.22\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":"mistralrs-quant/src/mxfp4/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f877d92e23d6ca08fadf3d74ae19576a33c5474681389a051b86e0b6f908bbcc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AfqLayer: ClassTooLong \u2014 487 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 9 methods, 5 blocks, lines 79-736. The bar is 400 significant lines; this is 87 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":"mistralrs-quant/src/afq/mod.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cfb967163e09009fb6af72ff7fcea3f471626d70488334e50e7c0a2696066e6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pipeline/chat_template.rs: FileTooLong \u2014 608 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 108 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":"mistralrs-core/src/pipeline/chat_template.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4900be559956759506e5890f528f524587822cb276efa9cad8f0795cf106c97"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gemma3n/inputs_processor.rs: FileTooLong \u2014 608 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 67% of them inside a single declaration: Gemma3nImageProcessor (5 blocks, 36-801). The bar is 500 significant lines; this is 108 over it, 1.22\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":"mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6df936aad2455e2899797e49887f12f683ac344f56308a533bf83d412cf1b1ef"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/starcoder2.rs: FileTooLong \u2014 607 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 107 over it, 1.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":"mistralrs-core/src/models/starcoder2.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"daeef2a2b25d1953fdbe6c74bcfe2bc9536d608517814b5df5f14580ad4fa357"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Qwen2VLModel: ClassTooLong \u2014 484 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 4 methods, 4 blocks, lines 47-671. The bar is 400 significant lines; this is 84 over it, 1.21\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":"mistralrs-core/src/vision_models/qwen2vl/mod.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"a50c80113257011e9e542c0e18dbf1bcb585eac5e1a3cd8e42b79a4b9178ad25"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatStore.generateAssistant: MethodTooLong \u2014 generateAssistant 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":"mistralrs-cli/webui/src/lib/stores/chat.svelte.ts"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fcdc1120050771861d3adbe7c3b0c5243ebeac2d5a7f4fd2c077ba536af7da8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::metal::gdn::causal_conv1d_metal_impl: FunctionTooLong \u2014 mistralrs_core::metal::gdn::causal_conv1d_metal_impl runs 121 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/metal/gdn.rs"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"dca78c8ae8e9d68a31db4b65ba10f522a01758020ac0d8a1f8f9e3f0facf34d1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Glm4MoeLite.new: MethodTooLong \u2014 new runs 121 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/models/glm4_moe_lite.rs"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"585cd837259e0ae829aca96d7aef32a71f396781c9d8ec07c7b42a0f183f7c5f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Model.forward_hidden: MethodTooLong \u2014 forward_hidden runs 121 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/models/lfm3.rs"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a773ae5218e10af4857ea4fb6c7626d993e3b07c185d0389da7ada6ac2763c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CudaDecodeGraphState.replay: MethodTooLong \u2014 replay runs 121 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":2347}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe2a38a2e49acb2613259e7272539cf4c128e9f528c032450ffd39369d9e04b6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Lfm2VlImageProcessor.process_inputs: MethodTooLong \u2014 process_inputs runs 121 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/vision_models/lfm2_vl/inputs_processor.rs"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b4b113ad4364ba597c342a2aa032e41215fa58ca5686e230993a3b400c6ed8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Model.new: MethodTooLong \u2014 new runs 121 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/xlora_models/phi2.rs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"43fc26c4c0eb8c3ac703cf530c2b231d6d638b39c871170b4f1b6dfc9dda008e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Gemma3ImageProcessor: ClassTooLong \u2014 482 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 2 methods, 4 blocks, lines 43-883. The bar is 400 significant lines; this is 82 over it, 1.21\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":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"443b38597dfb6295d490e7d8d75aba56f35439e1ee1cbba9130a210f57c91861"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/phi2.rs: FileTooLong \u2014 601 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 101 over it, 1.20\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":"mistralrs-core/src/models/phi2.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15f53edc1005a724a882f880afb4e945c1a360efbcac10495d7c60163f2fd34d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: muse_glimmer/vision.rs: FileTooLong \u2014 601 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 101 over it, 1.20\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":"mistralrs-core/src/vision_models/muse_glimmer/vision.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b493e3139e1a5ac8669b367a319b6afacf8a1791db5b8d0eb519cc90b7ac248"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Runner: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"8091cc47f824787528d7a2f0728e8156f7fad9c87d51429932c2f4330aaf4de0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PagedAttentionScheduler.select_prompt_batch: MethodTooLong \u2014 select_prompt_batch runs 120 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\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":"mistralrs-core/src/paged_attention/scheduler.rs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"329f9a6262c63ab7d95d8bc5b3f9938aecba3042bde6f21c25987f49b20d7577"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Sequence.new_waiting: MethodTooLong \u2014 new_waiting runs 120 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\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":"mistralrs-core/src/sequence.rs"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"001b3ea374e440162e1d0bda476cfc8971cd98e6688f0e60fbd48b48925ae58e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DFlashDraftModel.run_draft_layers: MethodTooLong \u2014 run_draft_layers runs 120 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\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":"mistralrs-core/src/speculative/dflash.rs"},"region":{"startLine":3378}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a13a98254c23a7caa9a496bd97b94a00c3812575aa22fe300521ef1bd24b52"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::metal_kernels::call_copy_gpu_inplace: FunctionTooLong \u2014 mistralrs_quant::metal_kernels::call_copy_gpu_inplace runs 120 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":2457}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c3ab84c4b9f2b3429355f136a6abf8dd4348fe6a0e2c146eefdc436afb4d1e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FlashAttnSinksMetal.metal_fwd: MethodTooLong \u2014 metal_fwd runs 120 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":2225}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bde882da6db599e8689918ecf1484ddced6a16da311fb8c24c46b3cb019f5ea"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/smollm3.rs: FileTooLong \u2014 599 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 99 over it, 1.20\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":"mistralrs-core/src/models/smollm3.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aeadff8d23873574ede7ccb6f8d45e04ff85688069c0db91077a4cb6d8bed06"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/phi3_5_moe.rs: FileTooLong \u2014 597 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 97 over it, 1.19\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":"mistralrs-core/src/models/phi3_5_moe.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45e797b2eb0ed15153150e29e11635d47501a009d20825ae7c81a2650747a25"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: llava_llm/llama.rs: FileTooLong \u2014 596 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 96 over it, 1.19\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":"mistralrs-core/src/vision_models/llava/llava_llm/llama.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1d0776dc7f4f7abdc8f9ca5ba5d6b150682b974a23437706b508e5e64b1f900"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Lfm3OmniModel: ClassTooLong \u2014 476 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 3 methods, 4 blocks, lines 156-736. The bar is 400 significant lines; this is 76 over it, 1.19\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":"mistralrs-core/src/vision_models/lfm3_omni/mod.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"2af1e7eba4b4ab9485e6c03e00d4bd55e0c8b80e61ab5c554e98deeb564b363d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::gguf::qwen4exp::synthesize_config: FunctionTooLong \u2014 mistralrs_core::gguf::qwen4exp::synthesize_config runs 119 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/gguf/qwen4exp.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb19a452e6a0c0699a03797660ff95bc6234ec510f82cdab7f02c96ebd897d3f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: QLoraLinear.new: MethodTooLong \u2014 new runs 119 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/lora/qloralinear.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e19310dfe5fb9b9c5a2495337819da82f349f4c608f3f66c8c90a2b262e3953"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DeepSeekV2.new: MethodTooLong \u2014 new runs 119 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"94de33f842fe9c3e4ea46996f6bcaa47ae4a27a4eb56580a2cd62234cc3aa781"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DeepSeekV3.new: MethodTooLong \u2014 new runs 119 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/models/deepseek3.rs"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"703d869b2a8d7161d1f16668050228b3ba0ff2f7e920b39d88d394d7ad9a7dac"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GraniteMoeHybrid.forward: MethodTooLong \u2014 forward runs 119 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":2180}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc636deeb9cf174a4a20db3b3f3ed7c9bc34f5b6fac914aa9aef58da40e0c73d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Model.new_inner: MethodTooLong \u2014 new_inner runs 119 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/models/hunyuan_v1_moe.rs"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"2273f4af1d8d98c0f09c353c84f69ea9ca2e68291cfa45de5f82578c054d750d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BuiltinMtpProposer.propose: MethodTooLong \u2014 propose runs 119 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/speculative/builtin_mtp.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"742c6d93a073e946c6c40bc910559ea414bde45df18b70d99616859b2ef28ce6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Attention.forward: MethodTooLong \u2014 forward runs 119 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/vision_models/gemma3n/text.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ebb56ca69ca5e41c3f034a7cc0647f55dd57edf81b7735bc86b8cda3f5e09d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Llama4ImageProcessor.preprocess: MethodTooLong \u2014 preprocess runs 119 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/vision_models/llama4/inputs_processor.rs"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"88051ca4199784b2551ea1c24c85f9e0de5339c9cff78f646494842466dcdd67"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_paged_attn::cuda::backend::flashinfer::gather_kv_cache_flashinfer: FunctionTooLong \u2014 mistralrs_paged_attn::cuda::backend::flashinfer::gather_kv_cache_flashinfer runs 119 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-paged-attn/src/cuda/backend/flashinfer.rs"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa704f924bc74cb0acbdfa28c9a3087f189935ef8373b6c25e1be0c83a20abf7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_server_core::responses::convert_input_items_to_messages: FunctionTooLong \u2014 mistralrs_server_core::responses::convert_input_items_to_messages runs 119 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-server-core/src/responses.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d9a44c6b84a71c024e839e28078849812e4e4020e14beee78895e13590c0253"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: phi3/phi3_inputs_processor.rs: FileTooLong \u2014 594 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 73% of them inside a single declaration: Phi3InputsProcessor (4 blocks, 38-772). The bar is 500 significant lines; this is 94 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":"mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aff67558ed9a1cacaf8f99071c5b0d5d39324a8e79bb16a23e293f4c79f843b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MambaLayer: ClassTooLong \u2014 474 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 7 methods, 2 blocks, lines 787-1395. The bar is 400 significant lines; this is 74 over it, 1.19\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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0502f452b86db2d8248c28b41e8814473d592427200dbfd6ca6490d5a181759"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: t5/mod.rs: FileTooLong \u2014 591 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 91 over it, 1.18\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":"mistralrs-core/src/diffusion_models/t5/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d71a753d036f116b84149854352bdaa19fb9ebf03d7fdd604e55e20e624f573"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatStore: ClassTooLong \u2014 472 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 72 over it, 1.18\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":"mistralrs-cli/webui/src/lib/stores/chat.svelte.ts"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2288aa941e3a18313715d69a847bec562ebaba6f24ee16c800b431a2afcf595"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/phi3.rs: FileTooLong \u2014 590 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 90 over it, 1.18\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":"mistralrs-core/src/models/phi3.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ded2e6ffc6dfd8cc634a0e089072e5a87f2cc5a187f8a4ba3618f2a05d20652"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MLlamaVisionModel.forward: MethodTooLong \u2014 forward runs 118 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\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":"mistralrs-core/src/vision_models/mllama/vision.rs"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc2dba8d345a3a016390f086b5304dd7f2fc7c53deb118d4b50f21ba2636997"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VoxtralModel.new: MethodTooLong \u2014 new runs 118 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\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":"mistralrs-core/src/vision_models/voxtral/mod.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"606ebc2f2cd91979d30bf6ed4fcd4e27b7cdf5a695f278b14a06c7d4dcc40a66"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OpenResponsesStreamer: ClassTooLong \u2014 469 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 6 methods, 3 blocks, lines 962-1622. The bar is 400 significant lines; this is 69 over it, 1.17\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":"mistralrs-server-core/src/responses.rs"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5e83b09e5baef3e12860c43a4472b724c24a6ba19694060c45f538e252e256"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lfm3_omni/mod.rs: FileTooLong \u2014 586 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 81% of them inside a single declaration: Lfm3OmniModel (4 blocks, 156-736). The bar is 500 significant lines; this is 86 over it, 1.17\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":"mistralrs-core/src/vision_models/lfm3_omni/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf369b1206c75d472686886451ddd0b0af60562f916ca967c7d9227dd671eabb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/client.rs: FileTooLong \u2014 586 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 62% of them inside a single declaration: McpClient (3 blocks, 200-1174). The bar is 500 significant lines; this is 86 over it, 1.17\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":"mistralrs-mcp/src/client.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f32c95fe7bf04a3fc5d2deca5606202b964c8703e168887f7ef68720e41ac25b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: flux/model.rs: FileTooLong \u2014 585 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 85 over it, 1.17\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":"mistralrs-core/src/diffusion_models/flux/model.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c96e212543ac55e1793d4b2868c8b9ff49dc104296c6a04b67a7b95f2f356631"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/llama.rs: FileTooLong \u2014 585 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 85 over it, 1.17\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":"mistralrs-core/src/models/llama.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a9301353a0330533921c0472c72b74a05a00f1a9dbfe998f1de19c14d433a2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: experts/backends.rs: FileTooLong \u2014 585 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 85 over it, 1.17\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":"mistralrs-core/src/moe/experts/backends.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"226139b300e06d54ee38dd5d8bbff0e2ac7180cdfe296fd5a1f051151fd97ccb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: llava/llava_next_inputs_processor.rs: FileTooLong \u2014 585 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 73% of them inside a single declaration: LLaVANextInputProcessor (4 blocks, 68-735). The bar is 500 significant lines; this is 85 over it, 1.17\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":"mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"304412a3aee3f95b2fc67495a7ca0e983449dd01f02bad4fece86658ffa1564b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::model_loader::get_auto_device_map_params: FunctionTooLong \u2014 mistralrs_core::model_loader::get_auto_device_map_params runs 117 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/model_loader.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"803c10bbc663ef9f4f7f7a6bf41fae7ac3d2017e9d4297908315647797cf7056"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Model.new_inner: MethodTooLong \u2014 new_inner runs 117 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/models/qwen3_moe.rs"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"e069c4f0040e2761db595ecfc2cceaec2d04ec7c848a765064bee1a04f955c47"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SmolLm3.new_inner: MethodTooLong \u2014 new_inner runs 117 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/models/smollm3.rs"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75e49f9e8e4e8865fd288317f364c61ad0ec80ee5752f2decb9616b1b2fd09b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NormalPipeline.capture_cuda_decode_graph_step: MethodTooLong \u2014 capture_cuda_decode_graph_step runs 117 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":2185}}}],"partialFingerprints":{"codehealthFindingId/v1":"42f498b868c6af984fccea74a0286d4d324879e842590a4677c0bf8233698b47"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PagedSpeculativeCacheAccess.make_verify_input_metadata: MethodTooLong \u2014 make_verify_input_metadata runs 117 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/speculative/cache.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7ff5599c11f89f652a6be36abce187d7b293aec6e9ce4e161c883c315c35d5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::lora::dynamic::moe_cuda::cuda::launch_routed_lora_direct: FunctionTooLong \u2014 mistralrs_quant::lora::dynamic::moe_cuda::cuda::launch_routed_lora_direct runs 117 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-quant/src/lora/dynamic/moe_cuda.rs"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"4073b5c91ce1d928667d845d82500a23f1e708d68235df3ae9f8bfe5c62c4ec0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MistralRsForServerBuilder.build_single_model: MethodTooLong \u2014 build_single_model runs 117 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"55faa3e414b8ff84a8963ae7b0f04c9a33d1e08a6d0b43de469bac093c4320d2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: MistralRsForServerBuilder: TooManyFields \u2014 35 stored fields beside 57 methods. The bar is 30 stored fields; this is 5 over it, 1.17\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"678970d3a60fcd467377c82c734447ad4324b1d631637245e8abfc5f321e0028"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PagedAttentionScheduler: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\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":"mistralrs-core/src/paged_attention/scheduler.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4fcb4aaf0d6badab6a6531c73ce03fd9650bbda2167c6f89583a7f9cfb7ddec"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: FlashAttnKargs: TooManyFields \u2014 35 stored fields. The bar is 30 stored fields; this is 5 over it, 1.17\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":4224}}}],"partialFingerprints":{"codehealthFindingId/v1":"57bd2852296410137c72ad22d937e9894fd534221f84cb1737bbcf2826fb91ca"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_cli::commands::config::run_serve_config: FunctionTooLong \u2014 mistralrs_cli::commands::config::run_serve_config runs 116 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-cli/src/commands/config.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a6a8ab73a9748154435a221314b0aea62db56d471d2f7bf201ae22b23bc329"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::cuda::dflash_context::pack_taps: FunctionTooLong \u2014 mistralrs_core::cuda::dflash_context::pack_taps runs 116 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/cuda/dflash_context.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"55853be83946a70f7e2c04d24576709295bbb756b962dec646e01c49a6dff615"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Model.new_inner: MethodTooLong \u2014 new_inner runs 116 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/models/hunyuan_v1_dense.rs"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"259e328494e01b8e94fdc46e2414f250afe71fa312317896e3e31822f9399283"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Model.new: MethodTooLong \u2014 new runs 116 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/models/phi3_5_moe.rs"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30d7a72e6bc38891138f54940ec7af60236fd54d5d06533d3d02a100ccd37f3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CudaDecodeGraphMetadataBuffers.copy_from: MethodTooLong \u2014 copy_from runs 116 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":1662}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee772f03ffb0214346b79500ef95e4fad2a8ec5c539a9c4e367428ac1fe0d43"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::embedding::cuda::gather: FunctionTooLong \u2014 mistralrs_quant::embedding::cuda::gather runs 116 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-quant/src/embedding/cuda.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"b88695d04d4bed74259db22d3c53f9307d2c428e87d72aa8d6d7f9564bb2ccfe"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::lora::dynamic::loader::expert::load_expert_site: FunctionTooLong \u2014 mistralrs_quant::lora::dynamic::loader::expert::load_expert_site runs 116 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-quant/src/lora/dynamic/loader/expert.rs"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"e222642e927b88ffa47ec7864b7f81093a4f64cae286eb384ee1b3faea7904af"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ManagedEmbedding: ClassTooLong \u2014 463 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 14 methods, 2 blocks, lines 363-951. The bar is 400 significant lines; this is 63 over it, 1.16\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":"mistralrs-quant/src/embedding/storage.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab5cbaeff2b43a69833094a90240507268dd7e5200ac84384d3577aa242b15a3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TextModel: ClassTooLong \u2014 463 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 5 methods, 5 blocks, lines 407-1022. The bar is 400 significant lines; this is 63 over it, 1.16\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":"mistralrs-core/src/vision_models/gemma3/text.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3a6ab44a9cee21cd0dee343e6480ad31505ef16a871b86acc5ba08a6268b1d5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: stores/chat.svelte.ts: FileTooLong \u2014 577 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: ChatStore (133-792). The bar is 500 significant lines; this is 77 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":"mistralrs-cli/webui/src/lib/stores/chat.svelte.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"331f594847eb682f6fa4f0d1e5ad4d45af569d71ea4cc5e35182aca440f39bb8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Mistral3ImageProcessor: ClassTooLong \u2014 460 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 5 methods, 4 blocks, lines 81-792. The bar is 400 significant lines; this is 60 over it, 1.15\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":"mistralrs-core/src/vision_models/mistral3/inputs_processor.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"c00ead1e4f5b00bd03368fea2689ee0a5314b328ff98c47ec40e43e586db16ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_cli::commands::tune::run_tune: FunctionTooLong \u2014 mistralrs_cli::commands::tune::run_tune runs 115 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\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":"mistralrs-cli/src/commands/tune.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"a22ae3d4e30abdc1e7ba49549b244a9fa706206ddb812021e8cf5a946ba1da98"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_cli::main: FunctionTooLong \u2014 mistralrs_cli::main runs 115 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\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":"mistralrs-cli/src/main.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"059ebc8a046ea48cadb261d87e329d063945989768588f529e9ced1800fff826"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Model.new: MethodTooLong \u2014 new runs 115 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a3c98c4d20a366bee93503d81823b1f3372e2aaaeded371b9dae4a5bf926bc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::cutile::fused_moe::cutile_grouped_gemm_inner: FunctionTooLong \u2014 mistralrs_quant::cutile::fused_moe::cutile_grouped_gemm_inner runs 115 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ea5f20bf0ac5ab8d66b5644e3154b0b74a07c8d5b0f3cb671e50db520abe5b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::gguf::fast_mmq::grouped_from_glu: FunctionTooLong \u2014 mistralrs_quant::gguf::fast_mmq::grouped_from_glu runs 115 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\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":"mistralrs-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":1045}}}],"partialFingerprints":{"codehealthFindingId/v1":"2148d826cb479ee11458ffb0f4293e9cec43821d3ed6940891efa3f38e2fbc93"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MarlinMatMul.cuda_fwd_t: MethodTooLong \u2014 cuda_fwd_t runs 115 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\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":"mistralrs-quant/src/gptq/marlin_backend.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"be91d98cc2275613e3485933c16801c9df46e62e9f6efc8c53850b0fa0b734e8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pipeline/paths.rs: FileTooLong \u2014 574 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 74 over it, 1.15\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":"mistralrs-core/src/pipeline/paths.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"61fbf6d745a29fd4c8b749a0f9921bf91f14a755cf9f77884097693264ab556b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: backend/paged_attention.rs: FileTooLong \u2014 571 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 71 over it, 1.14\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":"mistralrs-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d95d096d41f29afc23469494431d9726487825c8d7e7e4f4e84e7919159d9b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: UnquantLinear: ClassTooLong \u2014 456 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 4 methods, 4 blocks, lines 18-698. The bar is 400 significant lines; this is 56 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":"mistralrs-quant/src/unquantized/mod.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d8608646bc31b558d388e197f7782a720c124d909533a14471449cec0c53553"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Idefics3ImageProcessor: ClassTooLong \u2014 456 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 1 methods, 4 blocks, lines 42-1028. The bar is 400 significant lines; this is 56 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":"mistralrs-core/src/vision_models/idefics3/inputs_processor.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c880a0eb22f4039269f8157da555b62b339124b635b5b24031dc33f3c56d2e5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Attention.new: MethodTooLong \u2014 new runs 114 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2e774b7b9072525f8db916738ffc61caacbe5e6e0c0e6eaf458d3eeb9cecaee"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Attention.new: MethodTooLong \u2014 new runs 114 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\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":"mistralrs-core/src/models/deepseek3.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"5063231b5f02cefbdcc3520f4cb81a0d17bba9ff46a72598054e7c0b0bf9d4b6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Model.new_inner: MethodTooLong \u2014 new_inner runs 114 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\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":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ead371163a7b362d60fd1d3c1d33b9198bdc14a3336b7238533fd0ffadd792"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Model.new: MethodTooLong \u2014 new runs 114 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\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":"mistralrs-core/src/models/phi3.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a138243d5b2c0a7d226ff6f30d5ce93ca2a8a952bee7c0336d27cd7c7f1b86"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::paged_attention::plan::metal_decode_workspace: FunctionTooLong \u2014 mistralrs_core::paged_attention::plan::metal_decode_workspace runs 114 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\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":"mistralrs-core/src/paged_attention/plan.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b60eba904fe215d6abc125f9fdf7110d3b33ddc22532145594f496e64ac06d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GGUFLoader.load_native_multimodal: MethodTooLong \u2014 load_native_multimodal runs 114 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\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":"mistralrs-core/src/pipeline/gguf.rs"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd501461d2e77c0ab7a7281d76cf5e582db80a722771cb00f9335c9c66c25624"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DiaPipeline.generate: MethodTooLong \u2014 generate runs 114 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\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":"mistralrs-core/src/speech_models/dia/mod.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7fd59023f73ff7f67096eea3dfdc0a0a09a7e70fbb77f1b13f7b22d2af0f194"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Lfm3OmniModel.forward: MethodTooLong \u2014 forward runs 114 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\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":"mistralrs-core/src/vision_models/lfm3_omni/mod.rs"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"7270387ec21cdb9f6fdfb71efcfad8cca5fd0bb7fc1c716302caa61eaf4f7bfe"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FlashAttn.cuda_fwd_t: MethodTooLong \u2014 cuda_fwd_t runs 114 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\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":"mistralrs-flash-attn/src/flash.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"8317b40ea0f63275bf1de501f3764c1da5072fd86a9bb389c32dfad87d553cf3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Runner.send_chat_completion_request: MethodTooLong \u2014 send_chat_completion_request runs 114 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":1580}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa75d254c3b960bd5354bae09458e986d70bce13d72cbee1c5dd68cdaac50461"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: qwen3_vl/vision.rs: FileTooLong \u2014 569 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 69 over it, 1.14\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":"mistralrs-core/src/vision_models/qwen3_vl/vision.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0f00d5d22f1586bca384721e420f5c2b689d2738580404a1c98dc88a3b1113"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Gemma4Loader: ClassTooLong \u2014 454 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 0 methods, 4 blocks, lines 9344-9956. The bar is 400 significant lines; this is 54 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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":9344}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb93baaec12075bc542259cd1f81a56d58cbc7fcef48297136a6ba468bd74228"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: commands/quantize.rs: FileTooLong \u2014 567 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 67 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":"mistralrs-cli/src/commands/quantize.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"75de516e222a4609f8498304396349f7e230e1346f40ce5ecb92216e270e702b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/request.rs: FileTooLong \u2014 567 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 67 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":"mistralrs-core/src/request.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a242070abb1004abfd458d4ce03edf33eb175a23e85cd4a26ae788c6c14538ca"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: File: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\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":"mistralrs-core/src/files/mod.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"96ff362141eff6dde75f2d6642fd9291d64c04dc5f83fde489d263b84f655607"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ShardedVarBuilder: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\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":"mistralrs-quant/src/uqff/mod.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1bff8b5434112058dc484725a62707c0615c900fd790c2d1c1a3bd934fae047"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Gemma4TextConfig: TooManyFields \u2014 34 stored fields beside 5 methods. The bar is 30 stored fields; this is 4 over it, 1.13\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/gemma4/config.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b5346af4958c84f5c3d3f94b38ec39bae166f84eb02ffb2739f39d47ba1674"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Config: TooManyFields \u2014 34 stored fields beside 4 methods. The bar is 30 stored fields; this is 4 over it, 1.13\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/hunyuan_v1_moe.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"8918aa968424173c387a2380f322625ea5134c147ce600f1db1ac92fddae53b8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cuda/ffi.rs: FileTooLong \u2014 566 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). 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":"mistralrs-paged-attn/src/cuda/ffi.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"104e4b1afcf4b272982f735bab17103c9393225adceb6e563a1d29f8660d14fe"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::gdn::backend::recurrence_cuda_from_convolved: FunctionTooLong \u2014 mistralrs_core::gdn::backend::recurrence_cuda_from_convolved runs 113 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/gdn/backend.rs"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"a488c9c5d88c11719fabb4cbd96a8e26b7579b0bf9651d3387632f1fc73d84c1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MLlamaTextModel.new: MethodTooLong \u2014 new runs 113 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/vision_models/mllama/text.rs"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1746b27ebd47dbc532501d57e9864a711a3f8af4bf9682f23f2bd3af4adca74"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Model.new: MethodTooLong \u2014 new runs 113 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/xlora_models/phi3.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbdfccf5ae7f15565ddc5a42f94153927dcc3f69890a75554d92184f01790669"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_paged_attn::metal::kernels::call_paged_attention_v1: FunctionTooLong \u2014 mistralrs_paged_attn::metal::kernels::call_paged_attention_v1 runs 113 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-paged-attn/src/metal/kernels/mod.rs"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c21cb11ac5f156147df2fa70718916cf6a2d28cc779d5629ae80aea0ab24a89"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ReplicatedLayer.new_layers_matformer_indices: MethodTooLong \u2014 new_layers_matformer_indices runs 113 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":1560}}}],"partialFingerprints":{"codehealthFindingId/v1":"563186e3f224e8c3f605352c342f0c0633ded95af064b31b2b5253ae83f31897"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cpu/neon.rs: FileTooLong \u2014 564 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 64 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":"mistralrs-core/src/attention/backends/cpu/neon.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f073c5618dce1287affa5df25184a8e6be7286950397d9c3e41b38e245887c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: loaders/embedding_loaders.rs: FileTooLong \u2014 563 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 63 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":"mistralrs-core/src/pipeline/loaders/embedding_loaders.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a87fdafbc9e5f383642081b4c193aaba737e5ae70a06913363b46d43ba3bad15"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mllama/vision.rs: FileTooLong \u2014 563 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 63 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":"mistralrs-core/src/vision_models/mllama/vision.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e1929276df7cd57a864aa6abc5a04fd8b162b6b2628967e3d2f06960357331"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/gemma.rs: FileTooLong \u2014 562 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 62 over it, 1.12\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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"25115fd5a7c8c4258ba9a51af497334e1645b53dab947eca6f5aae747b01d294"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: streaming.streamChatCompletion: FunctionTooLong \u2014 streamChatCompletion 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":"mistralrs-cli/webui/src/lib/services/streaming.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe8a6bf38fe42f8048b1d0c33f82e6be10c152bc0a9009606c2d2f2eed46d1b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Llama.new_inner: MethodTooLong \u2014 new_inner runs 112 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/models/llama.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c5cb084e51103dbc2d55019c3573080c77ff0dd70013fdb927f31c81dda0157"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DecisionPlan.read_span: MethodTooLong \u2014 read_span runs 112 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/vision_models/lfm3_d1/readout.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"51daed3296244bb20a52affa1780da9db65b2765c385301d77ebbfa6751558d8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_server_core::embeddings::embeddings: FunctionTooLong \u2014 mistralrs_server_core::embeddings::embeddings runs 112 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-server-core/src/embeddings.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"03fed6fd4ad4f9c5cb5987f6eb3425203beaf8b1e8e09ab6c3b8e491755f07ff"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_server_core::metrics::observe_http: FunctionTooLong \u2014 mistralrs_server_core::metrics::observe_http runs 112 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-server-core/src/metrics.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"826184dc4d986ab120ca9e8e1f7f18786a630451e47e7081fc1ed204dd6600f3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_server_core::mistralrs_server_router_builder::init_router: FunctionTooLong \u2014 mistralrs_server_core::mistralrs_server_router_builder::init_router runs 112 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-server-core/src/mistralrs_server_router_builder.rs"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"a61b8daa5973dc7e6497b57648e2e7291785a3d939c8bbe7d56ad91bd53e65e9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cutile/fp8_w8a16.rs: FileTooLong \u2014 559 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 59 over it, 1.12\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":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7970d0194aac8adb54e97ecfae84eeeef2cdfe4b00c168d63e9c50365fcc2d2e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: afq/mod.rs: FileTooLong \u2014 558 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 87% of them inside a single declaration: AfqLayer (5 blocks, 79-736). The bar is 500 significant lines; this is 58 over it, 1.12\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":"mistralrs-quant/src/afq/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be50663fdeabce1edd27d1a077afa48f7d8516aa81f97316b3905b5a191eca7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handlers/api.rs: FileTooLong \u2014 557 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 57 over it, 1.11\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":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"157698ba1d913ba31216eae553f57fcdf78d76e4fe9de9de2b7a831f70c7eed6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: quant/gguf_discovery.rs: FileTooLong \u2014 556 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 56 over it, 1.11\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":"mistralrs-cli/src/commands/quant/gguf_discovery.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02bd85628180e8dfed7ba92392e42bcf4a6fe54fe9cc993611e7a1e69f390eca"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: llava/llava_inputs_processor.rs: FileTooLong \u2014 556 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 80% of them inside a single declaration: LLaVAInputProcessor (4 blocks, 66-705). The bar is 500 significant lines; this is 56 over it, 1.11\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":"mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d6539ced93fd2a8d13fdd1a194e7c1c80641f8332296fad8224875c8e18d312"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Model.new_inner: MethodTooLong \u2014 new_inner runs 111 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\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":"mistralrs-core/src/models/qwen3.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"88679e41e2ede6f4960ff3566151b90d64bd76d35cb83cea8a42ef9f74e23cdf"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::pipeline::sampling::try_sample_batch_cuda: FunctionTooLong \u2014 mistralrs_core::pipeline::sampling::try_sample_batch_cuda runs 111 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\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":"mistralrs-core/src/pipeline/sampling.rs"},"region":{"startLine":1298}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5c459fce31e32f98595cbb1483b910c4ebd89f9f70fd2686f5e7a1f518316cf"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_paged_attn::metal::backend::cache::swap_blocks: FunctionTooLong \u2014 mistralrs_paged_attn::metal::backend::cache::swap_blocks runs 111 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\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":"mistralrs-paged-attn/src/metal/backend/cache.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf817ff3e7966ac22522b9f2448ad4ea8459f0672be122e171a0e47eb6435e6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::gguf::weight_source::infer_binding_shape: FunctionTooLong \u2014 mistralrs_quant::gguf::weight_source::infer_binding_shape runs 111 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\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":"mistralrs-quant/src/gguf/weight_source.rs"},"region":{"startLine":1193}}}],"partialFingerprints":{"codehealthFindingId/v1":"258a4743e4b30c682a5a1f17e1e1f86cebb1e64d6df598f0f4710f3f9e698f3a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_server_core::responses_types::content::input_content_schema: FunctionTooLong \u2014 mistralrs_server_core::responses_types::content::input_content_schema runs 111 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\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":"mistralrs-server-core/src/responses_types/content.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f29ebbf1148eeefa9b7bb1b014e63d96630d6197b99002d0f46d583ae24040f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lfm3_d1/parsing.rs: FileTooLong \u2014 554 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 54 over it, 1.11\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":"mistralrs-core/src/vision_models/lfm3_d1/parsing.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"32eebf16569dac48713d516d3e5c78a0d8f2defbda515622270ab0ff16891d4f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LLaVAInputProcessor: ClassTooLong \u2014 443 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 1 methods, 4 blocks, lines 66-705. The bar is 400 significant lines; this is 43 over it, 1.11\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":"mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"570dd406bff34fcc607685840bee649153ea4df7c6ce1e43e06b5a870c3379eb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Qwen3_5MoeModel: ClassTooLong \u2014 441 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 2 methods, 5 blocks, lines 42-585. The bar is 400 significant lines; this is 41 over it, 1.10\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":"mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed0ff2c2d7144fad294a617dc3e9429d9cc1a94a52e0a657148e9907d5634c9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/distributed.rs: FileTooLong \u2014 551 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 51 over it, 1.10\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":"mistralrs-core/src/distributed.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5214981567c29c729ad880c5cd32eabcda40edf3efb05b2ec4adccabf65bf119"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_code_exec::tools::build_execute_python_tool: FunctionTooLong \u2014 mistralrs_code_exec::tools::build_execute_python_tool runs 110 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\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":"mistralrs-code-exec/src/tools.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdea33d9f1f8e724d894ccc5f0b93c66db14e5976700d366cef66d6cf364664b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Model.forward_embeds: MethodTooLong \u2014 forward_embeds runs 110 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\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":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":1172}}}],"partialFingerprints":{"codehealthFindingId/v1":"015f827820d8a09edae80cd43fa743fc274a001418db196e2e9e71ef4f4d43c0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Llama4ImageProcessor.prepare_sequence: MethodTooLong \u2014 prepare_sequence runs 110 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\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":"mistralrs-core/src/vision_models/llama4/inputs_processor.rs"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e0be5bfbadddc19ac0d0b56fa89db778044ad9809959e6861efbeed35e0be6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen3_5MoeTextModel.forward_embeds: MethodTooLong \u2014 forward_embeds runs 110 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\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":"mistralrs-core/src/vision_models/qwen3_5_moe/text.rs"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"6918ababf3f7f0a1f60821900dbf83f2f0e4f2235bac4cd58f239a235ef51aeb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::rotary::metal_apply_rotary_qk: FunctionTooLong \u2014 mistralrs_quant::rotary::metal_apply_rotary_qk runs 110 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\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":"mistralrs-quant/src/rotary/mod.rs"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"95368bb1125e0f9330f68b623715551fa3b0aee9e1550e451dcc598a77025fa6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Fa3Fp8DecodeParams: TooManyFields \u2014 33 stored fields. The bar is 30 stored fields; this is 3 over it, 1.10\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/cuda/ffi.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f3a5c7e21d902bd900dade6b71ad7db101f7905bf1961a9088f493f8fec1cf6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: qwen2vl/mod.rs: FileTooLong \u2014 549 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 88% of them inside a single declaration: Qwen2VLModel (4 blocks, 47-671). The bar is 500 significant lines; this is 49 over it, 1.10\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":"mistralrs-core/src/vision_models/qwen2vl/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"93d9bbfcf5e26c055fe4786011b3aa0e3fb0ba9156f8c1fd6a38375bbc0563d0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: backend/flashinfer.rs: FileTooLong \u2014 546 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 46 over it, 1.09\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":"mistralrs-paged-attn/src/cuda/backend/flashinfer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3327ebd0131058938f0fea5c7fd53ee3d459f949d6b728522f722f50520f3db6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Qwen3VLModel: ClassTooLong \u2014 436 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 2 methods, 4 blocks, lines 41-1124. 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":"mistralrs-core/src/vision_models/qwen3_vl/mod.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aed32c51c8e73c3c19e292ad4d1faecdc44a9ea8db930ca95fcb5c7e8042994"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Qwen3VLMoEModel: ClassTooLong \u2014 436 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 2 methods, 4 blocks, lines 41-568. 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":"mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c4abfb5e1eb79c2102c61e459fdf59db1b66d88b491d20e079d515d8a09e451"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Sdpa.run_attention: MethodTooLong \u2014 run_attention runs 109 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/attention/mod.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eef7265d0eb5ff3d2f6bc265af871dedcd5b07b44ba1038ced6afe07b228703"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::cuda::gdn::try_gdn_extract_ragged_conv_state_cuda: FunctionTooLong \u2014 mistralrs_core::cuda::gdn::try_gdn_extract_ragged_conv_state_cuda runs 109 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":1168}}}],"partialFingerprints":{"codehealthFindingId/v1":"3430a944ede3d98f3f73857d39fd8f2cdbdb231de84197e2700f19638e26a628"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NormalCacheManager.clone_in_cache: MethodTooLong \u2014 clone_in_cache runs 109 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/kv_cache/mod.rs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a2cf821d58ae6c2b1d2a47eb212d0797d4cfca20eb468b42c3eb31ef0b3c75"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::afq::group::qkv: FunctionTooLong \u2014 mistralrs_quant::afq::group::qkv runs 109 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-quant/src/afq/group.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b74aeef4741198c69fa6c09d3b72be17ee208bd9e8c5e6db31894c5358f6869"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::metal_kernels::call_flash_attn_ext_vec_bf16_dk512: FunctionTooLong \u2014 mistralrs_quant::metal_kernels::call_flash_attn_ext_vec_bf16_dk512 runs 109 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":5040}}}],"partialFingerprints":{"codehealthFindingId/v1":"df1d2b90efcc8072d8bee8d0b68563621abbafbc35b1528d05c28d84ee8d58b5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Nvfp4Layer.load_shape: MethodTooLong \u2014 load_shape runs 109 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-quant/src/nvfp4/mod.rs"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"29fd3ae2164fefd694d7a1d31dc1741673b4d4970c1c04c39ca161f049d62e62"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/diagnostics.rs: FileTooLong \u2014 544 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 44 over it, 1.09\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":"mistralrs-core/src/diagnostics.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c407111b66feefb11e8e298e908e7619e5756c6f26750a3ad975730b337444e5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Phi3InputsProcessor: ClassTooLong \u2014 435 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 3 methods, 4 blocks, lines 38-772. The bar is 400 significant lines; this is 35 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":"mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a8ee0c6947109564c3d4b32999bef842fea5bef7407a8f5811f3fb1b623cbb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::cuda::gdn::pending_transition_publish_batched_cuda: FunctionTooLong \u2014 mistralrs_core::cuda::gdn::pending_transition_publish_batched_cuda runs 108 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":5493}}}],"partialFingerprints":{"codehealthFindingId/v1":"9104ef8482199bb43217531d1eee8a2fa6f1c034629ba7d0f1a17678b7a8c97f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Model.new: MethodTooLong \u2014 new runs 108 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/models/qwen2.rs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"81322aff7d15e62a7b395fc4fe865dd8753053a6da91bfddedad1f3b91da5a62"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Model.new: MethodTooLong \u2014 new runs 108 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/models/starcoder2.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"09555445b9840e34ecb4238510c5f9a2422c4dd82c2c9c253cf6cc5dfe73b443"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DFlashDraftModel.precapture_cuda_graphs: MethodTooLong \u2014 precapture_cuda_graphs runs 108 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/speculative/dflash.rs"},"region":{"startLine":2459}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18b22c53bef89c8fbf94e34285ac0eae84903489b973448c0dabc103cc4233d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::gguf::fast_mmvq::try_dense_pair: FunctionTooLong \u2014 mistralrs_quant::gguf::fast_mmvq::try_dense_pair runs 108 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"29660a5d639eb19179350fef9ebba12ef9b69acd98247614fddb36e276079f3c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::metal_kernels::call_single_block_sort: FunctionTooLong \u2014 mistralrs_quant::metal_kernels::call_single_block_sort runs 108 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":2652}}}],"partialFingerprints":{"codehealthFindingId/v1":"523ebd956fa983881433eef8f8707300af8b7793a0aa4d53585cbb575daab950"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::nvfp4::portable::launch: FunctionTooLong \u2014 mistralrs_quant::nvfp4::portable::launch runs 108 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-quant/src/nvfp4/portable.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"49654395334811e5ef156b67ae945234370b561709da23995570606832c0c063"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ColumnParallelLayer: ClassTooLong \u2014 431 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 11 methods, 5 blocks, lines 775-1348. The bar is 400 significant lines; this is 31 over it, 1.08\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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"f48fd168ef1d55ddc211a5335169062aebca02a8ec8d91e2b73b83f9da8fa2ea"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Qwen3_5Model: ClassTooLong \u2014 431 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 10 methods, 4 blocks, lines 46-570. The bar is 400 significant lines; this is 31 over it, 1.08\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":"mistralrs-core/src/vision_models/qwen3_5/mod.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"47eb77d64f0efc4f42ebe1ab6556e6c06a0f10c7c269f23d40094069f99be5f3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: phi4/mod.rs: FileTooLong \u2014 536 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 36 over it, 1.07\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":"mistralrs-core/src/vision_models/phi4/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad90103ec5553b6d64e592844af70f6f78ab22a39e87288a65b2e7f30ac19ed"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::gdn::backend::decode_recurrence_cpu_from_convolved: FunctionTooLong \u2014 mistralrs_core::gdn::backend::decode_recurrence_cpu_from_convolved runs 107 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/gdn/backend.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0cfb0f26f64e70516d27ac2eec25cb494c792a4c85cfa871f335c4e95672ac9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Model.new: MethodTooLong \u2014 new runs 107 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/models/mixtral.rs"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b45aacc2a95fb3f994374b7b51d29d995c1c3f1df30f47bc3f17a7409dbdeb5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::pipeline::loaders::activation_memory::prefix_prefill_workspace: FunctionTooLong \u2014 mistralrs_core::pipeline::loaders::activation_memory::prefix_prefill_workspace runs 107 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/pipeline/loaders/activation_memory.rs"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c29f87bd168dd3abb31f4b82f78e1126cc816220a5130363257599d2363b00d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::speculative::driver::propose_and_stage_batch: FunctionTooLong \u2014 mistralrs_core::speculative::driver::propose_and_stage_batch runs 107 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/speculative/driver.rs"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c8b6e86156584c9aa878ebb8cba4399df0de4f8a8f1b2963cd6a7cfda49c929"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Attention.forward: MethodTooLong \u2014 forward runs 107 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/vision_models/gemma3/text.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"7072483883d901b2d85b9f42cf8c7e7d96b67a76dd4045e74accb304b4da0486"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen2VLModel.compute_rope_index: MethodTooLong \u2014 compute_rope_index runs 107 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/vision_models/qwen2vl/mod.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"5286259f38b9f92ff36eef1ec605ccfee1d817c6814bbb18bfe8e9d91a2d2129"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_paged_attn::metal::kernels::call_paged_decode_gqa: FunctionTooLong \u2014 mistralrs_paged_attn::metal::kernels::call_paged_decode_gqa runs 107 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-paged-attn/src/metal/kernels/mod.rs"},"region":{"startLine":1284}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b8fac3c832e34c31562304f160d1711546919090e0126ea41594749d8b700c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::nvfp4::decode::forward: FunctionTooLong \u2014 mistralrs_quant::nvfp4::decode::forward runs 107 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-quant/src/nvfp4/decode.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb3b2a093d2f9cb8ff73992c20172ffad199724ead7223c4ee1703c91ce65a23"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: flashinfer/mod.rs: FileTooLong \u2014 534 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 34 over it, 1.07\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":"mistralrs-core/src/flashinfer/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49991b60043e41770401642dddaf78705cf9c5f7c82fd77c1312745273dcf057"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Model: ClassTooLong \u2014 427 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 10 methods, 4 blocks, lines 871-1419. The bar is 400 significant lines; this is 27 over it, 1.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":"mistralrs-core/src/models/lfm3.rs"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba72eb1c0ce42a3862e36e4e6932f63b063c8de71348bcd5c358de357eb194d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChatStore: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.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":"mistralrs-cli/webui/src/lib/stores/chat.svelte.ts"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b893e2778f3d8e2f28ecf35f2b026cb43db5025c8c9e2ba723413085bfcde92"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BlockPool: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.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":"mistralrs-core/src/paged_attention/block_pool.rs"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"905ffc7b9357edcbbbc3e083356bb75738b85b4af8659fc323123a69a125f37e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: NormalRequest: TooManyFields \u2014 32 stored fields beside 8 methods. The bar is 30 stored fields; this is 2 over it, 1.07\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/request.rs"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d66e54e36ce30111cadf674dd61efd310d2d8d135cb738d15c7531f888fbe38"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Model: ClassTooLong \u2014 425 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 2 methods, 5 blocks, lines 707-1259. The bar is 400 significant lines; this is 25 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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84bb3fea5a5d5cc92a4e8b5a74fd557192a4c8eebe2a01bcd39b94e8eeab506"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LLaVANextInputProcessor: ClassTooLong \u2014 425 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 1 methods, 4 blocks, lines 68-735. The bar is 400 significant lines; this is 25 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":"mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a898403e71534089dfc2ba2b5e6176d1daa44e50bd125a78ecc858309b3478"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gguf/gguf_tokenizer.rs: FileTooLong \u2014 530 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 30 over it, 1.06\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":"mistralrs-core/src/gguf/gguf_tokenizer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40eeebe8eb643a9d5399ffe39b4bcc3f88f3216f3982d51fd37907422c45e4c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::cuda::gdn::rmsnorm_gated_quantized_cuda: FunctionTooLong \u2014 mistralrs_core::cuda::gdn::rmsnorm_gated_quantized_cuda runs 106 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":6042}}}],"partialFingerprints":{"codehealthFindingId/v1":"491af56a6c2f467f5003ecd0366d08d52c165f2570458e2b48aed4d6566c1f87"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::gguf::normal_config::build_granite: FunctionTooLong \u2014 mistralrs_core::gguf::normal_config::build_granite runs 106 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\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":"mistralrs-core/src/gguf/normal_config.rs"},"region":{"startLine":1623}}}],"partialFingerprints":{"codehealthFindingId/v1":"55bd6c897abbed8e49df31c1366846ea7c94b02917cb78a3c6f2421cf9173fe3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Model.new: MethodTooLong \u2014 new runs 106 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\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":"mistralrs-core/src/models/gemma2.rs"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f2c0bd3d31b9fef20bc3f08345907d22cdb8c2eca2330cf2417a4e67112c77"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen2_5VLTextModel.new: MethodTooLong \u2014 new runs 106 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\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":"mistralrs-core/src/vision_models/qwen2_5_vl/text.rs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a53dc060b72ee110775f655eeeebb00cdf38013d62a2f608bfc243862e7371a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen2VLTextModel.new: MethodTooLong \u2014 new runs 106 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\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":"mistralrs-core/src/vision_models/qwen2vl/text.rs"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e96afe0941fbcdc89ba5305bd2b8bc054b0b1bb3ef9f1b1662197032f2bc13"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: QsaAttention.load: MethodTooLong \u2014 load runs 106 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\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":"mistralrs-core/src/vision_models/qwen4_exp/qsa.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a8666f7e13531751b56283dc4fd19901c424bf5d9f76b430faf2b587e0296d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::lora::dynamic::expert::add_expert_delta_reference: FunctionTooLong \u2014 mistralrs_quant::lora::dynamic::expert::add_expert_delta_reference runs 106 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\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":"mistralrs-quant/src/lora/dynamic/expert.rs"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c62243c80bdbc6e72d485500dd6cd01684308691d972e2fa3e68f86ebf33f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: qwen3_vl/text.rs: FileTooLong \u2014 528 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 28 over it, 1.06\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":"mistralrs-core/src/vision_models/qwen3_vl/text.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe7d5cf726bff37e478e33e2e1e5d378ab487e8a26d53937d4ceadd58b808e2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Attention.new: MethodTooLong \u2014 new runs 105 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/models/glm4_moe_lite.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f9d743656942a2508e33afad0b1ec0493c0b9ed73227db336eee97f5bf8ac16"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MultimodalPipeline.forward_step: MethodTooLong \u2014 forward_step runs 105 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2933}}}],"partialFingerprints":{"codehealthFindingId/v1":"32b8e3d1a93c5db88c5b1201376191bb31592dcd61a9b81caadb2ecf084385e5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_paged_attn::metal::backend::paged_attention::reshape_and_cache: FunctionTooLong \u2014 mistralrs_paged_attn::metal::backend::paged_attention::reshape_and_cache runs 105 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-paged-attn/src/metal/backend/paged_attention.rs"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f656c2e1099f5beefc67b89f29cd07e047c3375f6ccc2c58f7fb874c967563"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::fp8_config::compressed_tensors_spec: FunctionTooLong \u2014 mistralrs_quant::fp8_config::compressed_tensors_spec runs 105 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-quant/src/fp8_config.rs"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"667821ece73f5c1e7ccd28a250da218b2ea4bc4e279749f9a3c585be94f408d8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: xlora_models/quantized_phi3.rs: FileTooLong \u2014 524 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 61% of them inside a single declaration: ModelWeights (4 blocks, 222-607). The bar is 500 significant lines; this is 24 over it, 1.05\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":"mistralrs-core/src/xlora_models/quantized_phi3.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1676fab5c5cfc9f3821cb204af810a2cfc8b6e586d2733743dccdfc9b762ee00"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AnyMoePipeline: ClassTooLong \u2014 419 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 1 methods, 8 blocks, lines 48-777. The bar is 400 significant lines; this is 19 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":"mistralrs-core/src/pipeline/amoe.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"22cf157ea4c806b2562649fbb50c7b17d183a3797ff74c6f57d422f313175b60"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/mixtral.rs: FileTooLong \u2014 523 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 23 over it, 1.05\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":"mistralrs-core/src/models/mixtral.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7d8edee4f916906e7cc31c249aa1bfffe365c8b2735b4b9d9d1b647a7642e4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: qwen4_exp/ple.rs: FileTooLong \u2014 522 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 22 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":"mistralrs-core/src/vision_models/qwen4_exp/ple.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65ee626d99c27905ab895268b0c0fd53f30fc4c14c8f640a7a44c2dde80f10ca"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Glm4Moe.new: MethodTooLong \u2014 new runs 104 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 4 over it, 1.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":"mistralrs-core/src/models/glm4_moe.rs"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e7b99e261b4a61e8320b397031d8e3dc7cacadef945a4498393b0c14e1ede68"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::pipeline::isq::write_uqff_artifacts: FunctionTooLong \u2014 mistralrs_core::pipeline::isq::write_uqff_artifacts runs 104 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 4 over it, 1.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":"mistralrs-core/src/pipeline/isq.rs"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"c05166ad0924a33c65b16b3d70d02ad213d5bba97b6909f89e19b1974ff0f1fd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Attention.new: MethodTooLong \u2014 new runs 104 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 4 over it, 1.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":"mistralrs-core/src/vision_models/gemma3n/text.rs"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c9be233c9f5674424786c24cd5761a346c8eedd888002ef6531f4d923b583c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FullAttention.load_with: MethodTooLong \u2014 load_with runs 104 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 4 over it, 1.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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca02de13d73428c9fe7b7fc9a4ea643d5133a7be991078473abe405cc5eeaaa6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::blockwise_fp8::ops::fp8_blockwise_matmul: FunctionTooLong \u2014 mistralrs_quant::blockwise_fp8::ops::fp8_blockwise_matmul runs 104 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 4 over it, 1.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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef48cd3c1d8e4acf568124e97df1bf3b48bf73fa78a8eda9c3bdad7499ed3594"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/gguf_metadata.rs: FileTooLong \u2014 518 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 69% of them inside a single declaration: GgufDeviceMapLoaderInner (2 blocks, 245-685). The bar is 500 significant lines; this is 18 over it, 1.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":"mistralrs-core/src/utils/gguf_metadata.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae435d69fe1fdd8f3159d19e08e7ef5e8dcd85b3411fded839dfbfd83c29876d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: backend/fa3.rs: FileTooLong \u2014 518 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 18 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":"mistralrs-paged-attn/src/cuda/backend/fa3.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c92bd5948b480676a29cd1e23bedb5882ea74eae7788064e80a3d7d402d68e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Qwen3_5MoeLoader: ClassTooLong \u2014 414 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 0 methods, 3 blocks, lines 7919-8451. The bar is 400 significant lines; this is 14 over it, 1.04\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":7910}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a482e75c235a7fa7caa738d7552228a79cca867e67bfb306e1cb43f236b8586"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: ConformerEncoderConfig: TooManyFields \u2014 31 stored fields beside 1 method. The bar is 30 stored fields; this is 1 over it, 1.03\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/conformer/config.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"39ec17f36ba40dc90213f487fbe15ba105973e81e9647f0e0e6c1ce706cb2f8c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CodeExecutionManager.get_tool_callbacks: MethodTooLong \u2014 get_tool_callbacks runs 103 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\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":"mistralrs-code-exec/src/lib.rs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"7819572e72205a3324d055124bc753eb53c2e8946ed3f69b34cdefb56e01c528"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Engine.continue_cuda_decode_batch: MethodTooLong \u2014 continue_cuda_decode_batch runs 103 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\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":"mistralrs-core/src/engine/mod.rs"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"531a5322dd4449b002fbd00a481429ff8e6632323ff2af7900d3a0db17b9e67d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::gguf::gemma3_config::validate_text_config: FunctionTooLong \u2014 mistralrs_core::gguf::gemma3_config::validate_text_config runs 103 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\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":"mistralrs-core/src/gguf/gemma3_config.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3a35d1e29f1b22e21e8f7e4a658fcfdba45910961d1677074ef2661f668221"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NormalCacheManager.set_none_cache: MethodTooLong \u2014 set_none_cache runs 103 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\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":"mistralrs-core/src/kv_cache/mod.rs"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"be7edd0e869169ae8b037d8cd024935434d79455cba1563f7756a8828771d8e6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Model.new: MethodTooLong \u2014 new runs 103 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"c14d865ea2b28c936431bd63c3fc308d56f281249f5d8578907bbe3ae39dd531"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::paged_attention::cache_allocation::allocate_cache: FunctionTooLong \u2014 mistralrs_core::paged_attention::cache_allocation::allocate_cache runs 103 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\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":"mistralrs-core/src/paged_attention/cache_allocation.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9c8fe5fe4b4405cf6b392c17a4a25831bf83eddd6b545643072252265f388dd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NormalPipeline.forward_step: MethodTooLong \u2014 forward_step runs 103 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\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":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":2540}}}],"partialFingerprints":{"codehealthFindingId/v1":"6535a43cf0bff3f6d4892b6aadc2effd956e04bb5b8c99b03526d560c53c8ee8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Attention.forward_canvas: MethodTooLong \u2014 forward_canvas runs 103 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\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":"mistralrs-core/src/vision_models/gemma4/text.rs"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff42dab1aef8173c9e4c49324f083e3f5c52d74dc1f0cb233353f284c6a6a08"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TextModel.new_inner: MethodTooLong \u2014 new_inner runs 103 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\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":"mistralrs-core/src/vision_models/llama4/text.rs"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a67b973d49901556183edf6a5cf402b059164c68a32077841605adec37fc7ca"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TextModel.new: MethodTooLong \u2014 new runs 103 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\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":"mistralrs-core/src/vision_models/muse_glimmer/text.rs"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"5609195175a3a056bb4ce02ed41c7569a36044e3dd085b2733ae99fc0905fae9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VisualEncoder.encode: MethodTooLong \u2014 encode runs 103 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\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":"mistralrs-core/src/vision_models/qwen3_vl/mod.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa37204abdf48a127fdf138a7fa9093db2e1f40f428b00f0f1a6945e32c46e5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::rotary::cuda::launch_rotary: FunctionTooLong \u2014 mistralrs_quant::rotary::cuda::launch_rotary runs 103 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\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":"mistralrs-quant/src/rotary/mod.rs"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a1074d7013143ba3eaeaa104dfbb7a90c880000b1b9539b648c75224d87c4ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/handlers.rs: FileTooLong \u2014 514 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 14 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":"mistralrs-server-core/src/handlers.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd02470dffb651bdda2dd6a08cbc24d1344a02fb3692082c9237e3555ea7d34f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Gemma3nImageProcessor: ClassTooLong \u2014 410 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 6 methods, 5 blocks, lines 36-801. The bar is 400 significant lines; this is 10 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":"mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"61343fb5de504639be1f9a0d4f1ded790dbbf159058d0d6a2fc4d8ccd825ff1b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ModelSelected: ClassTooLong \u2014 409 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 0 methods. The bar is 400 significant lines; this is 9 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":"mistralrs-core/src/model_selected.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"0368cff9dc63045a3314deae9bbd5a567cc0dec3d2268d0112be2bf434fb2582"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mla/forward.rs: FileTooLong \u2014 511 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 11 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":"mistralrs-core/src/mla/forward.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b20975a5e14a7d5be605320d997022bd82b2498699760bb94974b450e2bc9f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: paged_attention/cache_engine.rs: FileTooLong \u2014 510 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 69% of them inside a single declaration: CacheEngine (2 blocks, 154-632). The bar is 500 significant lines; this is 10 over it, 1.02\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":"mistralrs-core/src/paged_attention/cache_engine.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d547f12d154eed07f338329ea569f2f309fc5960814d14234b52955a76089392"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FlashInferGdnSm90Launch.cuda_fwd: MethodTooLong \u2014 cuda_fwd runs 102 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":2211}}}],"partialFingerprints":{"codehealthFindingId/v1":"10dfac01144b4f57281e91daf0cc2fa3ec8de3c840e941329a68b9ff9387332f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MambaLayer.forward_cached: MethodTooLong \u2014 forward_cached runs 102 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c33bcea2820a1b0c18fba714b31211256c03a4410d4fc5965f6c893076287b4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Model.new: MethodTooLong \u2014 new runs 102 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/models/phi2.rs"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"977be95f62a4be6dd696ce61194142d120d5da25ea4b87b7cdbfef5d4ff1ca89"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Gemma4Model.new: MethodTooLong \u2014 new runs 102 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/vision_models/gemma4/mod.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c820a1146ba9747d611c1f4296d6eaff246f12b9d02dd982089c28c3e87ad2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dia/model.rs: FileTooLong \u2014 508 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). 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":"mistralrs-core/src/speech_models/dia/model.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"14c139637dc587d317f397feab82694d09772fbcafc8339800d7a22431f23282"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cutile/nvfp4.rs: FileTooLong \u2014 508 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). 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":"mistralrs-quant/src/cutile/nvfp4.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fe89c1b6b4f6cf6ca8adddb9a52e72d816210f7fe357478260457e2d422c018"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mxfp8/mod.rs: FileTooLong \u2014 507 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 7 over it, 1.01\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":"mistralrs-quant/src/mxfp8/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1891110a88e8a64646d8b038d3ba80b73148d0c182faa7d0d8e702f92f081ae7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gguf/multimodal_bindings.rs: FileTooLong \u2014 505 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 5 over it, 1.01\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":"mistralrs-core/src/gguf/multimodal_bindings.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"074c1300a14cebaf12e18f0cf1a89cb7a9ba475f0ef037ae218390983ce28d64"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Attention.new: MethodTooLong \u2014 new runs 101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"507c32b0bbf0d35c8185b021943ff50a1b17d347921e9480c7dfa904683b0911"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DecisionPrompt.plan: MethodTooLong \u2014 plan runs 101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/vision_models/lfm3_d1/prompt.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ed019a32d12c6e1353eca4a774667054baed548356b396694f708704996365"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Model.new: MethodTooLong \u2014 new runs 101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/vision_models/phi3/mod.rs"},"region":{"startLine":1203}}}],"partialFingerprints":{"codehealthFindingId/v1":"015465fdb68596447bb8fdae603433aa822164220d0e35d30fc4ca61fe248567"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen3VLMoETextModel.new: MethodTooLong \u2014 new runs 101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"9662cabc41f95187749e2d0ae689bf945168a84d80300201bae0ba5eef2bf9c5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::blockwise_fp8::ops::fp8_blockwise_quantize: FunctionTooLong \u2014 mistralrs_quant::blockwise_fp8::ops::fp8_blockwise_quantize runs 101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e3e5bea285a7de81758f17936466e59f1909f04f4c007d33e3c53c489767385"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::cutile::qsa_decode::launch: FunctionTooLong \u2014 mistralrs_quant::cutile::qsa_decode::launch runs 101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-quant/src/cutile/qsa_decode.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"86950e0444a1f131352577a5d96e06a189ac37d34e22688c001564cf1f031dcc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Nvfp4Layer.from_normalized_parts: MethodTooLong \u2014 from_normalized_parts runs 101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"mistralrs-quant/src/nvfp4/mod.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"11eaad3250bb5671ad921e68508ce646774ed543ec1407ba6ec08ccde9961d7f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: llama4/vision.rs: FileTooLong \u2014 502 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 2 over it, 1.00\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":"mistralrs-core/src/vision_models/llama4/vision.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f67bc65da0c5a3946a0896558c88e5c71c4178620cfaa5ef138e2cb748cffc8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Model: ClassTooLong \u2014 401 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 5 methods, 5 blocks, lines 124-649. The bar is 400 significant lines; this is 1 over it, 1.00\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":"mistralrs-core/src/vision_models/llava/llava_next.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"7379919f6a6172d394cc7e4141ff759b1a4a689b95d35a4d52749883044e7fda"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: blockwise_fp8/deepgemm.rs: FileTooLong \u2014 501 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1 over it, 1.00\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":"mistralrs-quant/src/blockwise_fp8/deepgemm.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe06c668901bc2c62e939bd611f8d2a4b28de94baab1d54eb3c0d3ef8ebec230"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: distributed/packing.rs: FileTooLong \u2014 501 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1 over it, 1.00\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":"mistralrs-quant/src/distributed/packing.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b44b28b19950280cd96315433603261f3d8d3a22ec0bed4fc4ff34fab00841e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (25 members, 30 shared lines): mistralrs-core/src/models/flint.rs:347-454 | mistralrs-core/src/models/gemma2.rs:208-297 | mistralrs-core/src/models/glm4.rs:209-296 | mistralrs-core/src/models/glm4_moe.rs:272-361 | mistralrs-core/src/models/gpt_oss.rs:248-326 | mistralrs-core/src/models/granite.rs:1538-1622 | mistralrs-core/src/models/hunyuan_v1_dense.rs:191-272 | mistralrs-core/src/models/hunyuan_v1_moe.rs:374-458 | mistralrs-core/src/models/llama.rs:75-157 | mistralrs-core/src/models/mistral.rs:206-297 | mistralrs-core/src/models/mixtral.rs:151-233 | mistralrs-core/src/models/phi3_5_moe.rs:178-263 | mistralrs-core/src/models/qwen2.rs:240-327 | mistralrs-core/src/models/qwen3.rs:192-282 | mistralrs-core/src/models/qwen3_moe.rs:195-285 | mistralrs-core/src/models/qwen3_next.rs:272-378 | mistralrs-core/src/models/smollm3.rs:90-174 | mistralrs-core/src/models/starcoder2.rs:227-309 | mistralrs-core/src/vision_models/muse_glimmer/text.rs:226-322 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:194-294 | mistralrs-core/src/vision_models/qwen2vl/text.rs:195-295 | mistralrs-core/src/vision_models/qwen3_5/text.rs:280-427 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:189-285 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:194-287 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:300-390 \u2014 These 25 members are variants of one another: a block of 30 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 25 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 25 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc2ccd4faae89493af89f7ef71fef74af954ecb1f18430134bf4c5a131c37c16"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (24 members, 26 shared lines): mistralrs-core/src/models/flint.rs:347-454 | mistralrs-core/src/models/gemma.rs:167-249 | mistralrs-core/src/models/gemma2.rs:208-297 | mistralrs-core/src/models/glm4.rs:209-296 | mistralrs-core/src/models/glm4_moe.rs:272-361 | mistralrs-core/src/models/gpt_oss.rs:248-326 | mistralrs-core/src/models/hunyuan_v1_dense.rs:191-272 | mistralrs-core/src/models/hunyuan_v1_moe.rs:374-458 | mistralrs-core/src/models/lfm2.rs:481-564 | mistralrs-core/src/models/mistral.rs:206-297 | mistralrs-core/src/models/mixtral.rs:151-233 | mistralrs-core/src/models/phi2.rs:254-347 | mistralrs-core/src/models/phi3_5_moe.rs:178-263 | mistralrs-core/src/models/qwen2.rs:240-327 | mistralrs-core/src/models/qwen3.rs:192-282 | mistralrs-core/src/models/qwen3_moe.rs:195-285 | mistralrs-core/src/models/starcoder2.rs:227-309 | mistralrs-core/src/vision_models/gemma3/text.rs:182-302 | mistralrs-core/src/vision_models/mllama/text.rs:158-247 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:194-294 | mistralrs-core/src/vision_models/qwen2vl/text.rs:195-295 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:194-287 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:300-390 | mistralrs-core/src/vision_models/voxtral/mod.rs:126-208 \u2014 These 24 members are variants of one another: a block of 26 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 24 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 24 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d140433d9032d79e006131b2a6b883933c98263af661d6e56efad8630c5746"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (24 members, 23 shared lines): mistralrs-core/src/models/flint.rs:347-454 | mistralrs-core/src/models/gemma.rs:167-249 | mistralrs-core/src/models/gemma2.rs:208-297 | mistralrs-core/src/models/glm4.rs:209-296 | mistralrs-core/src/models/glm4_moe.rs:272-361 | mistralrs-core/src/models/gpt_oss.rs:248-326 | mistralrs-core/src/models/hunyuan_v1_dense.rs:191-272 | mistralrs-core/src/models/hunyuan_v1_moe.rs:374-458 | mistralrs-core/src/models/mistral.rs:206-297 | mistralrs-core/src/models/mixtral.rs:151-233 | mistralrs-core/src/models/phi2.rs:254-347 | mistralrs-core/src/models/phi3.rs:143-236 | mistralrs-core/src/models/phi3_5_moe.rs:178-263 | mistralrs-core/src/models/qwen2.rs:240-327 | mistralrs-core/src/models/qwen3.rs:192-282 | mistralrs-core/src/models/qwen3_moe.rs:195-285 | mistralrs-core/src/models/qwen3_next.rs:272-378 | mistralrs-core/src/models/starcoder2.rs:227-309 | mistralrs-core/src/vision_models/phi3/mod.rs:235-327 | mistralrs-core/src/vision_models/phi4/mod.rs:104-196 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:189-285 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:194-287 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:300-390 | mistralrs-core/src/vision_models/voxtral/mod.rs:126-208 \u2014 These 24 members are variants of one another: a block of 23 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 24 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 24 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35bcaf3c5f26283220933ff22feaa45bc44d074361e7972b43cbcbef6c33b46"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (24 members, 23 shared lines): mistralrs-core/src/models/flint.rs:347-454 | mistralrs-core/src/models/gemma.rs:167-249 | mistralrs-core/src/models/gemma2.rs:208-297 | mistralrs-core/src/models/glm4.rs:209-296 | mistralrs-core/src/models/glm4_moe.rs:272-361 | mistralrs-core/src/models/gpt_oss.rs:248-326 | mistralrs-core/src/models/hunyuan_v1_dense.rs:191-272 | mistralrs-core/src/models/hunyuan_v1_moe.rs:374-458 | mistralrs-core/src/models/mistral.rs:206-297 | mistralrs-core/src/models/mixtral.rs:151-233 | mistralrs-core/src/models/phi2.rs:254-347 | mistralrs-core/src/models/phi3.rs:143-236 | mistralrs-core/src/models/phi3_5_moe.rs:178-263 | mistralrs-core/src/models/qwen2.rs:240-327 | mistralrs-core/src/models/qwen3.rs:192-282 | mistralrs-core/src/models/qwen3_moe.rs:195-285 | mistralrs-core/src/models/starcoder2.rs:227-309 | mistralrs-core/src/vision_models/phi3/mod.rs:235-327 | mistralrs-core/src/vision_models/phi4/mod.rs:104-196 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:194-294 | mistralrs-core/src/vision_models/qwen2vl/text.rs:195-295 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:194-287 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:300-390 | mistralrs-core/src/vision_models/voxtral/mod.rs:126-208 \u2014 These 24 members are variants of one another: a block of 23 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 24 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 24 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f79400f9ae732c83c884d1bf42dcfb70d4f31f5af3664218025470c255370da"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (23 members, 23 shared lines): mistralrs-core/src/models/flint.rs:347-454 | mistralrs-core/src/models/gemma2.rs:208-297 | mistralrs-core/src/models/glm4.rs:209-296 | mistralrs-core/src/models/glm4_moe.rs:272-361 | mistralrs-core/src/models/gpt_oss.rs:248-326 | mistralrs-core/src/models/granite.rs:1538-1622 | mistralrs-core/src/models/hunyuan_v1_dense.rs:191-272 | mistralrs-core/src/models/hunyuan_v1_moe.rs:374-458 | mistralrs-core/src/models/llama.rs:75-157 | mistralrs-core/src/models/mistral.rs:206-297 | mistralrs-core/src/models/mixtral.rs:151-233 | mistralrs-core/src/models/phi3_5_moe.rs:178-263 | mistralrs-core/src/models/qwen2.rs:240-327 | mistralrs-core/src/models/qwen3.rs:192-282 | mistralrs-core/src/models/qwen3_moe.rs:195-285 | mistralrs-core/src/models/smollm3.rs:90-174 | mistralrs-core/src/models/starcoder2.rs:227-309 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:58-132 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:227-306 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:194-294 | mistralrs-core/src/vision_models/qwen2vl/text.rs:195-295 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:194-287 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:300-390 \u2014 These 23 members are variants of one another: a block of 23 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 23 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 23 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"52f524d52acb45ea0acb59c1d096ff9eec0256aa51cb4b7597e45c52ab8ceb8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (20 members, 22 shared lines): mistralrs-core/src/models/flint.rs:347-454 | mistralrs-core/src/models/gemma.rs:167-249 | mistralrs-core/src/models/gemma2.rs:208-297 | mistralrs-core/src/models/gpt_oss.rs:248-326 | mistralrs-core/src/models/hunyuan_v1_dense.rs:191-272 | mistralrs-core/src/models/hunyuan_v1_moe.rs:374-458 | mistralrs-core/src/models/llama.rs:75-157 | mistralrs-core/src/models/mistral.rs:206-297 | mistralrs-core/src/models/mixtral.rs:151-233 | mistralrs-core/src/models/phi2.rs:254-347 | mistralrs-core/src/models/phi3_5_moe.rs:178-263 | mistralrs-core/src/models/qwen2.rs:240-327 | mistralrs-core/src/models/qwen3.rs:192-282 | mistralrs-core/src/models/qwen3_moe.rs:195-285 | mistralrs-core/src/models/qwen3_next.rs:272-378 | mistralrs-core/src/models/smollm3.rs:90-174 | mistralrs-core/src/models/starcoder2.rs:227-309 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:58-132 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:227-306 | mistralrs-core/src/vision_models/voxtral/mod.rs:126-208 \u2014 These 20 members are variants of one another: a block of 22 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 20 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 20 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e1676301c303d60a88e4a769120a22b4cb799ca0489fbfa8fed68eb760a7ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (19 members, 28 shared lines): mistralrs-core/src/models/flint.rs:347-454 | mistralrs-core/src/models/gemma.rs:167-249 | mistralrs-core/src/models/gemma2.rs:208-297 | mistralrs-core/src/models/gpt_oss.rs:248-326 | mistralrs-core/src/models/hunyuan_v1_dense.rs:191-272 | mistralrs-core/src/models/hunyuan_v1_moe.rs:374-458 | mistralrs-core/src/models/lfm2.rs:481-564 | mistralrs-core/src/models/lfm3.rs:485-540 | mistralrs-core/src/models/llama.rs:75-157 | mistralrs-core/src/models/mistral.rs:206-297 | mistralrs-core/src/models/mixtral.rs:151-233 | mistralrs-core/src/models/phi2.rs:254-347 | mistralrs-core/src/models/qwen2.rs:240-327 | mistralrs-core/src/models/qwen3.rs:192-282 | mistralrs-core/src/models/qwen3_moe.rs:195-285 | mistralrs-core/src/models/qwen3_next.rs:272-378 | mistralrs-core/src/models/smollm3.rs:90-174 | mistralrs-core/src/models/starcoder2.rs:227-309 | mistralrs-core/src/vision_models/voxtral/mod.rs:126-208 \u2014 These 19 members are variants of one another: a block of 28 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 19 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 19 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b6b8cb216a6b56154e669e7fd3e8d71d1373c8d9be63b08871ff2750bc3246"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (18 members, 26 shared lines): mistralrs-core/src/models/flint.rs:347-454 | mistralrs-core/src/models/gemma.rs:167-249 | mistralrs-core/src/models/gemma2.rs:208-297 | mistralrs-core/src/models/gpt_oss.rs:248-326 | mistralrs-core/src/models/hunyuan_v1_dense.rs:191-272 | mistralrs-core/src/models/hunyuan_v1_moe.rs:374-458 | mistralrs-core/src/models/lfm2.rs:481-564 | mistralrs-core/src/models/mistral.rs:206-297 | mistralrs-core/src/models/mixtral.rs:151-233 | mistralrs-core/src/models/phi2.rs:254-347 | mistralrs-core/src/models/phi3_5_moe.rs:178-263 | mistralrs-core/src/models/qwen2.rs:240-327 | mistralrs-core/src/models/qwen3.rs:192-282 | mistralrs-core/src/models/qwen3_moe.rs:195-285 | mistralrs-core/src/models/qwen3_next.rs:272-378 | mistralrs-core/src/models/starcoder2.rs:227-309 | mistralrs-core/src/vision_models/mllama/text.rs:158-247 | mistralrs-core/src/vision_models/voxtral/mod.rs:126-208 \u2014 These 18 members are variants of one another: a block of 26 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 18 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 18 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"488a1f85ce8764d68943c3ce11c97908c3f5cc5e7a860a2c3de32732552e48de"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (18 members, 22 shared lines): mistralrs-core/src/models/flint.rs:347-454 | mistralrs-core/src/models/gemma2.rs:208-297 | mistralrs-core/src/models/gpt_oss.rs:248-326 | mistralrs-core/src/models/hunyuan_v1_dense.rs:191-272 | mistralrs-core/src/models/hunyuan_v1_moe.rs:374-458 | mistralrs-core/src/models/llama.rs:75-157 | mistralrs-core/src/models/mistral.rs:206-297 | mistralrs-core/src/models/mixtral.rs:151-233 | mistralrs-core/src/models/phi3.rs:143-236 | mistralrs-core/src/models/phi3_5_moe.rs:178-263 | mistralrs-core/src/models/qwen2.rs:240-327 | mistralrs-core/src/models/qwen3.rs:192-282 | mistralrs-core/src/models/qwen3_moe.rs:195-285 | mistralrs-core/src/models/qwen3_next.rs:272-378 | mistralrs-core/src/models/smollm3.rs:90-174 | mistralrs-core/src/models/starcoder2.rs:227-309 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:58-132 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:227-306 \u2014 These 18 members are variants of one another: a block of 22 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 18 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 18 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d3d1dc26d1a6aa2b8a45686373227036dfa6cc92743f9e62af4c3220893b694"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (17 members, 31 shared lines): mistralrs-core/src/models/flint.rs:347-454 | mistralrs-core/src/models/glm4.rs:209-296 | mistralrs-core/src/models/glm4_moe.rs:272-361 | mistralrs-core/src/models/gpt_oss.rs:248-326 | mistralrs-core/src/models/granite.rs:1538-1622 | mistralrs-core/src/models/hunyuan_v1_dense.rs:191-272 | mistralrs-core/src/models/hunyuan_v1_moe.rs:374-458 | mistralrs-core/src/models/llama.rs:75-157 | mistralrs-core/src/models/mistral.rs:206-297 | mistralrs-core/src/models/mixtral.rs:151-233 | mistralrs-core/src/models/phi3_5_moe.rs:178-263 | mistralrs-core/src/models/qwen3.rs:192-282 | mistralrs-core/src/models/qwen3_moe.rs:195-285 | mistralrs-core/src/models/qwen3_next.rs:272-378 | mistralrs-core/src/models/smollm3.rs:90-174 | mistralrs-core/src/models/starcoder2.rs:227-309 | mistralrs-core/src/vision_models/llama4/text.rs:426-528 \u2014 These 17 members are variants of one another: a block of 31 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 17 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 17 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"377564545ee1796553679d018e4286287c69316036e1e5022d77660976892b4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (16 members, 25 shared lines): mistralrs-core/src/models/flint.rs:347-454 | mistralrs-core/src/models/gemma.rs:167-249 | mistralrs-core/src/models/gpt_oss.rs:248-326 | mistralrs-core/src/models/hunyuan_v1_dense.rs:191-272 | mistralrs-core/src/models/hunyuan_v1_moe.rs:374-458 | mistralrs-core/src/models/mistral.rs:206-297 | mistralrs-core/src/models/mixtral.rs:151-233 | mistralrs-core/src/models/phi2.rs:254-347 | mistralrs-core/src/models/phi3_5_moe.rs:178-263 | mistralrs-core/src/models/qwen3.rs:192-282 | mistralrs-core/src/models/qwen3_moe.rs:195-285 | mistralrs-core/src/models/qwen3_next.rs:272-378 | mistralrs-core/src/models/starcoder2.rs:227-309 | mistralrs-core/src/vision_models/gemma3/text.rs:182-302 | mistralrs-core/src/vision_models/mllama/text.rs:158-247 | mistralrs-core/src/vision_models/voxtral/mod.rs:126-208 \u2014 These 16 members are variants of one another: a block of 25 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 16 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 16 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"341dbb7978f345e62c71e5cd1458fc489d8e7b9a158d197f997aec593b3a229c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 33 shared lines): mistralrs-core/src/models/gemma.rs:585-676 | mistralrs-core/src/models/gemma2.rs:702-793 | mistralrs-core/src/models/glm4.rs:704-795 | mistralrs-core/src/models/hunyuan_v1_dense.rs:672-763 | mistralrs-core/src/models/mistral.rs:713-804 | mistralrs-core/src/models/phi2.rs:661-744 | mistralrs-core/src/models/phi3.rs:656-739 | mistralrs-core/src/models/qwen2.rs:716-807 | mistralrs-core/src/models/qwen3.rs:690-781 | mistralrs-core/src/models/starcoder2.rs:652-735 | mistralrs-core/src/vision_models/gemma3/text.rs:927-1018 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:669-763 | mistralrs-core/src/vision_models/phi3/mod.rs:1492-1574 \u2014 These 13 members are variants of one another: a block of 33 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 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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef9d7e2bff59490b4311f62bd495a8ec8abb5e655b28fb5263a5249bc3ae9fa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 24 shared lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1515-1550 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1822-1857 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2122-2157 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2527-2574 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2897-2931 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3250-3285 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3592-3627 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4320-4354 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5108-5144 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:809-844 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1253-1288 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2180-2215 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5790-5825 \u2014 These 13 members are variants of one another: a block of 24 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 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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1515}}}],"partialFingerprints":{"codehealthFindingId/v1":"66236c7a757a5c5e4cfd0da11db91a71d560dbbf27cc97002e20ffd4084650f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 54 shared lines): mistralrs-core/src/models/gemma.rs:585-676 | mistralrs-core/src/models/gemma2.rs:702-793 | mistralrs-core/src/models/glm4.rs:704-795 | mistralrs-core/src/models/hunyuan_v1_dense.rs:672-763 | mistralrs-core/src/models/mistral.rs:713-804 | mistralrs-core/src/models/qwen2.rs:716-807 | mistralrs-core/src/models/qwen3.rs:690-781 | mistralrs-core/src/vision_models/gemma3/text.rs:927-1018 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:669-763 | mistralrs-core/src/vision_models/muse_glimmer/text.rs:683-769 \u2014 These 10 members are variants of one another: a block of 54 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 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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"05774d687b99e9a13fd445be0bdd7728cb8dcb97316861cc0390828258acf50e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 31 shared lines): mistralrs-core/src/models/deepseek2.rs:813-948 | mistralrs-core/src/models/deepseek3.rs:876-1011 | mistralrs-core/src/models/glm4_moe.rs:713-827 | mistralrs-core/src/models/glm4_moe_lite.rs:823-964 | mistralrs-core/src/models/mixtral.rs:405-520 | mistralrs-core/src/vision_models/gemma3/text.rs:432-581 | mistralrs-core/src/vision_models/phi3/mod.rs:1209-1317 | mistralrs-core/src/vision_models/phi4/mod.rs:330-438 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:399-515 | mistralrs-core/src/vision_models/qwen2vl/text.rs:400-517 \u2014 These 10 members are variants of one another: a block of 31 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 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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda9ccf118806ff67c5eeb6ace6a829ad279d8d27f073ebfccaaa82d1228ec97"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 40 shared lines): mistralrs-core/src/xlora_models/gemma.rs:633-692 | mistralrs-core/src/xlora_models/gemma2.rs:684-743 | mistralrs-core/src/xlora_models/llama.rs:459-518 | mistralrs-core/src/xlora_models/mistral.rs:629-688 | mistralrs-core/src/xlora_models/mixtral.rs:759-818 | mistralrs-core/src/xlora_models/phi2.rs:599-658 | mistralrs-core/src/xlora_models/quantized_llama.rs:849-908 | mistralrs-core/src/xlora_models/quantized_phi3.rs:514-573 | mistralrs-core/src/xlora_models/starcoder2.rs:614-673 \u2014 These 9 members are variants of one another: a block of 40 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 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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fecf948157abf15b28f1d0a444422ea3d99efb615840a827b8709fd2751b3d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 32 shared lines): mistralrs-core/src/models/glm4.rs:209-296 | mistralrs-core/src/models/glm4_moe.rs:272-361 | mistralrs-core/src/vision_models/phi3/mod.rs:235-327 | mistralrs-core/src/vision_models/phi4/mod.rs:104-196 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:194-294 | mistralrs-core/src/vision_models/qwen2vl/text.rs:195-295 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:189-285 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:194-287 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:300-390 \u2014 These 9 members are variants of one another: a block of 32 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 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":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f73ca3f7dfe70988845edd2bbc7772f617cbb149361bd299a02518c1279764"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 22 shared lines): mistralrs-core/src/models/glm4.rs:209-296 | mistralrs-core/src/models/glm4_moe.rs:272-361 | mistralrs-core/src/models/granite.rs:1538-1622 | mistralrs-core/src/vision_models/phi3/mod.rs:235-327 | mistralrs-core/src/vision_models/phi4/mod.rs:104-196 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:194-294 | mistralrs-core/src/vision_models/qwen2vl/text.rs:195-295 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:194-287 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:300-390 \u2014 These 9 members are variants of one another: a block of 22 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 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":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd06e07782c99440c01aeda3a260ae6166c748d19cabc126ec221b2224ea29c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 17 shared lines): mistralrs-core/src/models/deepseek2.rs:950-977 | mistralrs-core/src/models/deepseek3.rs:1013-1040 | mistralrs-core/src/models/glm4_moe.rs:829-855 | mistralrs-core/src/models/glm4_moe_lite.rs:966-992 | mistralrs-core/src/models/mixtral.rs:526-556 | mistralrs-core/src/models/phi2.rs:542-569 | mistralrs-core/src/models/phi3.rs:534-565 | mistralrs-core/src/models/phi3_5_moe.rs:607-638 | mistralrs-core/src/models/starcoder2.rs:527-557 \u2014 These 9 members are variants of one another: a block of 17 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 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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"642d5178e07b386e19f73a9134086f52bd3cb4d4ece60643f2f485d1d8a1648d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 37 shared lines): mistralrs-core/src/models/flint.rs:774-900 | mistralrs-core/src/models/glm4.rs:439-564 | mistralrs-core/src/models/hunyuan_v1_dense.rs:392-522 | mistralrs-core/src/models/hunyuan_v1_moe.rs:882-1016 | mistralrs-core/src/models/mistral.rs:414-565 | mistralrs-core/src/models/qwen3.rs:402-523 | mistralrs-core/src/models/qwen3_moe.rs:576-703 \u2014 These 7 members are variants of one another: a block of 37 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 7 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 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a3f0b90e8d1a1a514a42285c321260621361a3bf394d6a12096dab7847ed22"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 35 shared lines): mistralrs-core/src/models/glm4.rs:439-564 | mistralrs-core/src/models/hunyuan_v1_dense.rs:392-522 | mistralrs-core/src/models/hunyuan_v1_moe.rs:882-1016 | mistralrs-core/src/models/mistral.rs:414-565 | mistralrs-core/src/models/mixtral.rs:405-520 | mistralrs-core/src/models/qwen2.rs:432-549 | mistralrs-core/src/models/qwen3.rs:402-523 \u2014 These 7 members are variants of one another: a block of 35 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 7 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 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"2490f723c03025ee8ed2b79ac29d55a00dcb9a8c0cdd1d9422c58242009970a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 32 shared lines): mistralrs-core/src/models/glm4.rs:439-564 | mistralrs-core/src/models/hunyuan_v1_dense.rs:392-522 | mistralrs-core/src/models/hunyuan_v1_moe.rs:882-1016 | mistralrs-core/src/models/llama.rs:345-468 | mistralrs-core/src/models/mistral.rs:414-565 | mistralrs-core/src/models/qwen3.rs:402-523 | mistralrs-core/src/vision_models/llama4/text.rs:794-905 \u2014 These 7 members are variants of one another: a block of 32 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 7 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 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"b66be5fbd10dec9d9172364998001ed70fbe5269276e3785afe29f6333ffec92"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 28 shared lines): mistralrs-core/src/xlora_models/gemma.rs:232-298 | mistralrs-core/src/xlora_models/gemma2.rs:237-305 | mistralrs-core/src/xlora_models/llama.rs:55-115 | mistralrs-core/src/xlora_models/mistral.rs:222-294 | mistralrs-core/src/xlora_models/mixtral.rs:135-207 | mistralrs-core/src/xlora_models/phi2.rs:217-288 | mistralrs-core/src/xlora_models/starcoder2.rs:209-283 \u2014 These 7 members are variants of one another: a block of 28 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 7 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 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"172ad0e9b7e27cd88de34395192c9ea51300a020909d29d24012e4bad4fdb390"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 39 shared lines): mistralrs-core/src/models/glm4.rs:209-296 | mistralrs-core/src/models/glm4_moe.rs:272-361 | mistralrs-core/src/models/granite.rs:1538-1622 | mistralrs-core/src/vision_models/phi3/mod.rs:235-327 | mistralrs-core/src/vision_models/phi4/mod.rs:104-196 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:189-285 \u2014 These 6 members are variants of one another: a block of 39 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 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":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"6afc7f5672d918471fc805db0a0211abd04ede5a2ba57e7e70a3b5771e0a177b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 32 shared lines): mistralrs-core/src/models/mixtral.rs:405-520 | mistralrs-core/src/models/qwen2.rs:432-549 | mistralrs-core/src/vision_models/phi3/mod.rs:1209-1317 | mistralrs-core/src/vision_models/phi4/mod.rs:330-438 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:399-515 | mistralrs-core/src/vision_models/qwen2vl/text.rs:400-517 \u2014 These 6 members are variants of one another: a block of 32 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 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":"mistralrs-core/src/models/mixtral.rs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19a95371ba141556b58c5f409b99611b41972cd80c0350af35660adb9932807"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 29 shared lines): mistralrs-core/src/models/deepseek2.rs:813-948 | mistralrs-core/src/models/deepseek3.rs:876-1011 | mistralrs-core/src/models/glm4_moe.rs:713-827 | mistralrs-core/src/models/glm4_moe_lite.rs:823-964 | mistralrs-core/src/models/mixtral.rs:405-520 | mistralrs-core/src/models/phi3.rs:407-532 \u2014 These 6 members are variants of one another: a block of 29 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 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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad61b6f2c95b64147ee65f7b2c21d203c942d14fc70c4b99a01d8d22c7d233b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 28 shared lines): mistralrs-core/src/models/gemma.rs:346-456 | mistralrs-core/src/models/gemma2.rs:419-532 | mistralrs-core/src/models/mixtral.rs:405-520 | mistralrs-core/src/models/phi2.rs:430-540 | mistralrs-core/src/models/phi3.rs:407-532 | mistralrs-core/src/models/phi3_5_moe.rs:479-605 \u2014 These 6 members are variants of one another: a block of 28 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 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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"1039237a688087f55c1a2cc58f076e12a2b21dca66c2b560dc9c4da9c4ba023a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 28 shared lines): mistralrs-core/src/models/glm4.rs:439-564 | mistralrs-core/src/models/glm4_moe.rs:713-827 | mistralrs-core/src/models/hunyuan_v1_dense.rs:392-522 | mistralrs-core/src/models/hunyuan_v1_moe.rs:882-1016 | mistralrs-core/src/models/qwen3.rs:402-523 | mistralrs-core/src/models/qwen3_moe.rs:576-703 \u2014 These 6 members are variants of one another: a block of 28 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 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":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6313194dd74ed4254d01915eeae5bd602f91d670c5d4766e417468f76bb5cd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 23 shared lines): mistralrs-core/src/embedding_models/qwen3_embedding.rs:235-269 | mistralrs-core/src/models/llama.rs:271-303 | mistralrs-core/src/models/mistral.rs:318-350 | mistralrs-core/src/models/qwen2.rs:349-382 | mistralrs-core/src/models/qwen3.rs:303-338 | mistralrs-core/src/models/smollm3.rs:287-319 \u2014 These 6 members are variants of one another: a block of 23 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 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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"48cc716dfc35854c61b33a078d380c1f397c3fbf635df14b7cf2c3067443702c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 40 shared lines): mistralrs-core/src/embedding_models/embedding_gemma.rs:111-197 | mistralrs-core/src/models/gemma.rs:91-158 | mistralrs-core/src/models/gemma2.rs:124-198 | mistralrs-core/src/vision_models/gemma3/text.rs:86-170 | mistralrs-core/src/vision_models/gemma3n/text.rs:314-414 \u2014 These 5 members are variants of one another: a block of 40 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":"mistralrs-core/src/embedding_models/embedding_gemma.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1239cf535f53962fc00921f390bc0e1d08ed04e2a249365c4fc8aff215fcc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 31 shared lines): mistralrs-core/src/models/gemma.rs:346-456 | mistralrs-core/src/models/gemma2.rs:419-532 | mistralrs-core/src/models/phi2.rs:430-540 | mistralrs-core/src/models/phi3_5_moe.rs:479-605 | mistralrs-core/src/models/starcoder2.rs:404-521 \u2014 These 5 members are variants of one another: a block of 31 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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"518a12c346d4d4a95e22b447d622bb558a2bbb4decc14bd7a3f40b94d0caed97"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 31 shared lines): mistralrs-core/src/models/gemma.rs:346-456 | mistralrs-core/src/models/gemma2.rs:419-532 | mistralrs-core/src/models/glm4.rs:439-564 | mistralrs-core/src/models/mixtral.rs:405-520 | mistralrs-core/src/models/qwen3.rs:402-523 \u2014 These 5 members are variants of one another: a block of 31 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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc49de9ad2bc53b61d97090498e8ee91a958460e078d51a7e7e0ae2cf5ab7135"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 31 shared lines): mistralrs-core/src/models/glm4.rs:439-564 | mistralrs-core/src/models/mixtral.rs:405-520 | mistralrs-core/src/models/qwen2.rs:432-549 | mistralrs-core/src/models/qwen3.rs:402-523 | mistralrs-core/src/models/qwen3_moe.rs:576-703 \u2014 These 5 members are variants of one another: a block of 31 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":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f92046f9d24e8b5f3f751e30c333b95a5aebb41f6611ca5ef25a4904fe4b4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 30 shared lines): mistralrs-core/src/vision_models/qwen3_5/mod.rs:136-435 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:119-420 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:671-1001 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:117-447 | mistralrs-core/src/vision_models/qwen4_exp/mod.rs:243-407 \u2014 These 5 members are variants of one another: a block of 30 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":"mistralrs-core/src/vision_models/qwen3_5/mod.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d8691a104f6372f42a430e44be78e78acb568a3254e27dab01cc57148f6dc78"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 29 shared lines): mistralrs-core/src/models/gemma.rs:346-456 | mistralrs-core/src/models/gemma2.rs:419-532 | mistralrs-core/src/vision_models/gemma3/text.rs:432-581 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:391-500 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:511-621 \u2014 These 5 members are variants of one another: a block of 29 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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b749c3f7db81c3c023511a8d9c2fc9518f16754998ef1be24bc85b732f2530b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 28 shared lines): mistralrs-core/src/embedding_models/qwen3_embedding.rs:328-421 | mistralrs-core/src/models/glm4.rs:439-564 | mistralrs-core/src/models/hunyuan_v1_dense.rs:392-522 | mistralrs-core/src/models/hunyuan_v1_moe.rs:882-1016 | mistralrs-core/src/models/qwen3.rs:402-523 \u2014 These 5 members are variants of one another: a block of 28 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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"5831d9c418146b51a65b0806ad118477439dd0086c4aecf7c7e0d96f775be49e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 28 shared lines): mistralrs-core/src/models/gemma.rs:346-456 | mistralrs-core/src/models/gemma2.rs:419-532 | mistralrs-core/src/models/mixtral.rs:405-520 | mistralrs-core/src/models/qwen2.rs:432-549 | mistralrs-core/src/models/starcoder2.rs:404-521 \u2014 These 5 members are variants of one another: a block of 28 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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03c4868b51608a5ac07735e07ee1404e705b2d5cfd3aa88c661e2b7f5111446"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 28 shared lines): mistralrs-core/src/models/mixtral.rs:405-520 | mistralrs-core/src/models/phi3.rs:407-532 | mistralrs-core/src/models/qwen2.rs:432-549 | mistralrs-core/src/vision_models/phi3/mod.rs:1209-1317 | mistralrs-core/src/vision_models/phi4/mod.rs:330-438 \u2014 These 5 members are variants of one another: a block of 28 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":"mistralrs-core/src/models/mixtral.rs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a70dc5908fbe419543b0d4af8854aea1ac194f193199ef0c446aefab7d016f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 27 shared lines): mistralrs-core/src/xlora_models/gemma.rs:576-619 | mistralrs-core/src/xlora_models/mistral.rs:570-615 | mistralrs-core/src/xlora_models/mixtral.rs:700-745 | mistralrs-core/src/xlora_models/phi3.rs:521-568 | mistralrs-core/src/xlora_models/starcoder2.rs:553-600 \u2014 These 5 members are variants of one another: a block of 27 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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"0589af953bd38ad4be5483edd9d39932f945d97fa895219cf392224440e844b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 27 shared lines): mistralrs-core/src/xlora_models/gemma.rs:576-619 | mistralrs-core/src/xlora_models/mistral.rs:570-615 | mistralrs-core/src/xlora_models/mixtral.rs:700-745 | mistralrs-core/src/xlora_models/phi2.rs:543-585 | mistralrs-core/src/xlora_models/starcoder2.rs:553-600 \u2014 These 5 members are variants of one another: a block of 27 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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0e417dbad206e9e4d31c7855e3224bf0ec54c60ceb945cdfeffea92e587f77"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 26 shared lines): mistralrs-core/src/models/mixtral.rs:405-520 | mistralrs-core/src/models/qwen2.rs:432-549 | mistralrs-core/src/models/qwen3.rs:402-523 | mistralrs-core/src/models/qwen3_moe.rs:576-703 | mistralrs-core/src/models/starcoder2.rs:404-521 \u2014 These 5 members are variants of one another: a block of 26 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":"mistralrs-core/src/models/mixtral.rs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbda98e17e8ce4ad8a4b76455c22c2787f2ff1dcf7106a0ef127a3ac96e021fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 24 shared lines): mistralrs-core/src/embedding_models/qwen3_embedding.rs:93-171 | mistralrs-core/src/models/qwen3.rs:104-183 | mistralrs-core/src/models/qwen3_moe.rs:107-186 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:106-183 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:212-289 \u2014 These 5 members are variants of one another: a block of 24 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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2533f0b89851af3ee4992ca53a19c817bd5bf272769b98352aa66141b73d9a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 24 shared lines): mistralrs-core/src/embedding_models/qwen3_embedding.rs:93-171 | mistralrs-core/src/models/glm4.rs:126-199 | mistralrs-core/src/models/glm4_moe.rs:177-263 | mistralrs-core/src/models/qwen3.rs:104-183 | mistralrs-core/src/models/qwen3_moe.rs:107-186 \u2014 These 5 members are variants of one another: a block of 24 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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2d12549eaa0144f382c8550be997a2956b8b1b9c470d71988519e9fc5b54f19"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 18 shared lines): mistralrs-core/src/xlora_models/mistral.rs:570-615 | mistralrs-core/src/xlora_models/mixtral.rs:700-745 | mistralrs-core/src/xlora_models/phi2.rs:543-585 | mistralrs-core/src/xlora_models/phi3.rs:521-568 | mistralrs-core/src/xlora_models/starcoder2.rs:553-600 \u2014 These 5 members are variants of one another: a block of 18 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":"mistralrs-core/src/xlora_models/mistral.rs"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"af44a5e0b590c584e153fc75f590eb56567b143b857069b38c871b0a9a2dcebb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 12 shared lines): mistralrs-quant/src/metal_kernels/mod.rs:474-498 | mistralrs-quant/src/metal_kernels/mod.rs:512-544 | mistralrs-quant/src/metal_kernels/mod.rs:558-590 | mistralrs-quant/src/metal_kernels/mod.rs:604-636 | mistralrs-quant/src/metal_kernels/mod.rs:649-676 \u2014 These 5 members are variants of one another: a block of 12 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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"f828d9e46c042c13368b1fca8240741486e137cb682bbb138a95583119da75f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 183 shared lines): mistralrs-core/src/vision_models/qwen3_5/mod.rs:136-435 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:119-420 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:671-1001 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:117-447 \u2014 These 4 members are variants of one another: a block of 183 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":"mistralrs-core/src/vision_models/qwen3_5/mod.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"413c55d88a439b3ab009dd6fcdce8c5f144d94aefd4e5d262fbc342e9a16ccbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 42 shared lines): mistralrs-core/src/xlora_models/mistral.rs:222-294 | mistralrs-core/src/xlora_models/mixtral.rs:135-207 | mistralrs-core/src/xlora_models/phi3.rs:113-182 | mistralrs-core/src/xlora_models/starcoder2.rs:209-283 \u2014 These 4 members are variants of one another: a block of 42 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":"mistralrs-core/src/xlora_models/mistral.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"00bf9ac3c87cd34f20fdeeb54ed20cf709cac078e938032eb8302abebd670b1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 41 shared lines): mistralrs-core/src/models/deepseek2.rs:718-770 | mistralrs-core/src/models/deepseek3.rs:781-833 | mistralrs-core/src/models/glm4_moe.rs:618-670 | mistralrs-core/src/models/glm4_moe_lite.rs:727-780 \u2014 These 4 members are variants of one another: a block of 41 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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6da5b45dd5ed90143aca675e4d4d56fe9f7846951bfefde6374fbe77c530065"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 36 shared lines): mistralrs-core/src/xlora_models/gemma.rs:232-298 | mistralrs-core/src/xlora_models/mistral.rs:222-294 | mistralrs-core/src/xlora_models/mixtral.rs:135-207 | mistralrs-core/src/xlora_models/phi3.rs:113-182 \u2014 These 4 members are variants of one another: a block of 36 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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e89a547911d626f8b62599d7a979ed1c26a78ef3d120fac921d4b66109bedf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 35 shared lines): mistralrs-cli/src/ui/handlers/api.rs:169-216 | mistralrs-cli/src/ui/handlers/api.rs:221-268 | mistralrs-cli/src/ui/handlers/api.rs:273-320 | mistralrs-cli/src/ui/handlers/api.rs:325-376 \u2014 These 4 members are variants of one another: a block of 35 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":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"2854618106b27ba862fcbedef0c49ee0008a9947cf073f25008b583db959bd72"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 34 shared lines): mistralrs-core/src/models/flint.rs:230-338 | mistralrs-core/src/models/glm4_moe.rs:177-263 | mistralrs-core/src/models/hunyuan_v1_dense.rs:108-182 | mistralrs-core/src/models/hunyuan_v1_moe.rs:285-365 \u2014 These 4 members are variants of one another: a block of 34 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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"dea376526a083ced661fee0e31cc9d69d23c6ca0652e08b4716ab6f219406b2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 30 shared lines): mistralrs-core/src/vision_models/qwen3_5/mod.rs:72-115 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:60-98 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:613-650 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:59-96 \u2014 These 4 members are variants of one another: a block of 30 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":"mistralrs-core/src/vision_models/qwen3_5/mod.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"abd60a8a575da97ac3885b93c06b9d2d68e7c98aef892140a855efb8cd10bc64"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 29 shared lines): mistralrs-core/src/models/mixtral.rs:405-520 | mistralrs-core/src/vision_models/phi3/mod.rs:1209-1317 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:391-500 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:511-621 \u2014 These 4 members are variants of one another: a block of 29 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":"mistralrs-core/src/models/mixtral.rs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c1695e994192afc495d5ca95837627dfab14d804592ac47e63dfebc6e4acbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 27 shared lines): mistralrs-core/src/models/gemma.rs:346-456 | mistralrs-core/src/models/gemma2.rs:419-532 | mistralrs-core/src/models/glm4_moe.rs:713-827 | mistralrs-core/src/models/mixtral.rs:405-520 \u2014 These 4 members are variants of one another: a block of 27 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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4499593d261857c1a118ba33b626a0e1d9ea7a7ab710bf6de4ae93e2cf5f7cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 22 shared lines): mistralrs-core/src/embedding_models/embedding_gemma.rs:274-320 | mistralrs-core/src/models/gemma2.rs:320-365 | mistralrs-core/src/vision_models/gemma3/text.rs:326-373 | mistralrs-core/src/xlora_models/gemma2.rs:330-382 \u2014 These 4 members are variants of one another: a block of 22 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":"mistralrs-core/src/embedding_models/embedding_gemma.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f909e5e7f543ebe4636cfa84f6a1ac5e115575889be7f2d923329edf2939810"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 20 shared lines): mistralrs-core/src/models/deepseek2.rs:517-594 | mistralrs-core/src/models/deepseek3.rs:530-646 | mistralrs-core/src/models/glm4_moe.rs:451-499 | mistralrs-core/src/models/glm4_moe_lite.rs:548-603 \u2014 These 4 members are variants of one another: a block of 20 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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ea276b362340c4fe8bb05a5b77eab1fff5a7272f48a0d2ae4005a80d8d8394"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 19 shared lines): mistralrs-core/src/models/glm4_moe.rs:859-897 | mistralrs-core/src/models/glm4_moe.rs:899-942 | mistralrs-core/src/models/glm4_moe_lite.rs:996-1037 | mistralrs-core/src/models/glm4_moe_lite.rs:1039-1093 \u2014 These 4 members are variants of one another: a block of 19 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":"mistralrs-core/src/models/glm4_moe.rs"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"3898d2f2ea79da6982e0e2d241900c1bd0f4da340b3d09dfcfd859635b6af4da"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 18 shared lines): mistralrs-core/src/xlora_models/gemma2.rs:608-670 | mistralrs-core/src/xlora_models/phi2.rs:543-585 | mistralrs-core/src/xlora_models/quantized_llama.rs:775-835 | mistralrs-core/src/xlora_models/quantized_phi3.rs:437-500 \u2014 These 4 members are variants of one another: a block of 18 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":"mistralrs-core/src/xlora_models/gemma2.rs"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd92dc3fa063e589584c8e4307bbfcdec18bf0886b4e32be2faaad4bfe1af37"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 17 shared lines): mistralrs-core/src/xlora_models/phi2.rs:543-585 | mistralrs-core/src/xlora_models/quantized_llama.rs:775-835 | mistralrs-core/src/xlora_models/quantized_phi3.rs:437-500 | mistralrs-core/src/xlora_models/starcoder2.rs:553-600 \u2014 These 4 members are variants of one another: a block of 17 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":"mistralrs-core/src/xlora_models/phi2.rs"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"9da856fd42c7bd95248b2251c07e88265e993132b6b02f8e3ca500c29b2f0239"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 436 shared lines): mistralrs-core/src/vision_models/grid_processor.rs:1153-1825 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:366-973 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:932-1538 \u2014 These 3 members are variants of one another: a block of 436 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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1153}}}],"partialFingerprints":{"codehealthFindingId/v1":"a43dcf13ca50a26a9a84baa40e6199ce5a9fab717dcbed89cf3a6457a2a89751"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 163 shared lines): mistralrs-core/src/models/deepseek2.rs:294-489 | mistralrs-core/src/models/deepseek3.rs:295-490 | mistralrs-core/src/models/glm4_moe_lite.rs:255-454 \u2014 These 3 members are variants of one another: a block of 163 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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9e8a7ed30e1000ad7a0a42561400972575e7c22cc7b45774d7c351216dad64"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 128 shared lines): mistralrs-core/src/vision_models/grid_processor.rs:891-1137 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:125-350 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:691-916 \u2014 These 3 members are variants of one another: a block of 128 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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae927817d9928270ef709c093d9e23a9a37060a7b109d7d7a47944fbede3855"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 68 shared lines): mistralrs-paged-attn/src/cuda/backend/mla.rs:16-224 | mistralrs-paged-attn/src/cuda/backend/mla.rs:240-641 | mistralrs-paged-attn/src/cuda/backend/mla.rs:649-897 \u2014 These 3 members are variants of one another: a block of 68 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":"mistralrs-paged-attn/src/cuda/backend/mla.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"f59db67d01950f348afe94b89a6964205104ccda55a792d8172a01923361fa4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 65 shared lines): mistralrs-core/src/vision_models/grid_processor.rs:1933-2052 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1022-1117 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1587-1682 \u2014 These 3 members are variants of one another: a block of 65 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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1933}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5eca104b0cd116727aba0b0c25579563cc50fe2f1d77169c1a75fa07e547cbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 58 shared lines): mistralrs-core/src/layers.rs:1120-1225 | mistralrs-core/src/layers.rs:1232-1315 | mistralrs-core/src/layers.rs:1479-1584 \u2014 These 3 members are variants of one another: a block of 58 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":"mistralrs-core/src/layers.rs"},"region":{"startLine":1120}}}],"partialFingerprints":{"codehealthFindingId/v1":"c81576d25317fcbb3e2766fbb603bd948b7f2b0cbfa953229e81cd5067375d9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 41 shared lines): mistralrs-core/src/ops.rs:4401-4578 | mistralrs-core/src/ops.rs:4586-4729 | mistralrs-core/src/ops.rs:5345-5574 \u2014 These 3 members are variants of one another: a block of 41 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":"mistralrs-core/src/ops.rs"},"region":{"startLine":4401}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4589b2555093085e68853b0f9a710cffff399dd3b2016fc28d28f032dd6858a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 32 shared lines): mistralrs-quant/src/gemv/mod.rs:337-398 | mistralrs-quant/src/gemv/mod.rs:411-469 | mistralrs-quant/src/gemv/mod.rs:482-540 \u2014 These 3 members are variants of one another: a block of 32 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":"mistralrs-quant/src/gemv/mod.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"c55a42d1e0589f83c19c23d5390829620c81aa9c5f865a70e60eeefac8327b50"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 25 shared lines): mistralrs-core/src/vision_models/grid_processor.rs:2066-2163 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1131-1197 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1696-1762 \u2014 These 3 members are variants of one another: a block of 25 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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":2066}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab06191606833bc7071780b579cea900555a39cd2116395b84dade519c630cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 25 shared lines): mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:319-358 | mistralrs-core/src/vision_models/qwen2vl/text.rs:320-359 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:308-340 \u2014 These 3 members are variants of one another: a block of 25 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":"mistralrs-core/src/vision_models/qwen2_5_vl/text.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"1836d3265b05f37c9eca5bc55db079206dfd7a68e823333cd9c8366893c88f9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 19 shared lines): mistralrs-core/src/models/phi3.rs:339-363 | mistralrs-core/src/vision_models/phi3/mod.rs:430-454 | mistralrs-core/src/vision_models/phi4/mod.rs:259-284 \u2014 These 3 members are variants of one another: a block of 19 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":"mistralrs-core/src/models/phi3.rs"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd43b2f10d494ba8a22dd31522e5355c2715e4ea4d5049415c75f3818bd98f88"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 17 shared lines): mistralrs-core/src/models/quantized_llama.rs:79-134 | mistralrs-core/src/xlora_models/quantized_llama.rs:199-248 | mistralrs-core/src/xlora_models/quantized_phi3.rs:153-219 \u2014 These 3 members are variants of one another: a block of 17 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":"mistralrs-core/src/models/quantized_llama.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3a7eeeba7b6565c3470c7c07bbca249b54947ea088b9b13e4ff944bd448e5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 12 shared lines): mistralrs-quant/src/metal_kernels/mod.rs:4077-4100 | mistralrs-quant/src/metal_kernels/mod.rs:4112-4135 | mistralrs-quant/src/metal_kernels/mod.rs:4149-4175 \u2014 These 3 members are variants of one another: a block of 12 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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":4077}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a2b68d919a9366976919c4082e98926093735596e4721c248d122844d972c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 9 shared lines): mistralrs-quant/src/gguf/fast_mmvq.rs:391-581 | mistralrs-quant/src/gguf/fast_mmvq.rs:832-1032 | mistralrs-quant/src/gguf/fast_mmvq.rs:1056-1323 \u2014 These 3 members are variants of one another: a block of 9 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":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed55913cf0449bb50519ab764ac2958f1a44e0f29139f63a35c26ad38a77d572"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (200 shared lines): mistralrs-core/src/model_loader.rs:292-931 | mistralrs-core/src/toml_selector.rs:811-1248 \u2014 These two members are variants of one another: 200 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":"mistralrs-core/src/model_loader.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"4839fe01f1d869775b244caf6110711a5bcc76ba1b0109e5416e72de833b41e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (177 shared lines): mistralrs-core/src/vision_models/qwen3_5/text.rs:811-1078 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:543-782 \u2014 These two members are variants of one another: 177 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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ad2385d9b3832d1503d285737551e05974430446b9b2406632b8c0d08818e8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (145 shared lines): mistralrs-core/src/pipeline/multimodal.rs:2132-2358 | mistralrs-core/src/pipeline/normal.rs:1889-2086 \u2014 These two members are variants of one another: 145 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2132}}}],"partialFingerprints":{"codehealthFindingId/v1":"7415d5873224318e7f0f2d3a5ff70206559fe9514cf58fc35be58d0eabbb091d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (114 shared lines): mistralrs-quant/src/afq/ops.rs:2108-2585 | mistralrs-quant/src/afq/ops.rs:2596-3197 \u2014 These two members are variants of one another: 114 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":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":2108}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeea9ad59f01ad01cb1dbf664f84879e673524a55424f427c3782c4bcb895e65"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (106 shared lines): mistralrs-cli/src/commands/run/interactive.rs:873-1056 | mistralrs-cli/src/commands/run/interactive.rs:1533-1853 \u2014 These two members are variants of one another: 106 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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c357a93b706885a28dceeb045ec9f29b999504452196fd4ca245f1c6ff5e2fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (101 shared lines): mistralrs-quant/src/mxfp4/ops.rs:21-214 | mistralrs-quant/src/mxfp4/ops.rs:319-586 \u2014 These two members are variants of one another: 101 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":"mistralrs-quant/src/mxfp4/ops.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e1ec8aa01e5b4a39de7a2c5e191daad05d6908b65ea2c675841488b6286f594"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (99 shared lines): mistralrs-core/src/ops.rs:556-710 | mistralrs-core/src/ops.rs:718-850 \u2014 These two members are variants of one another: 99 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":"mistralrs-core/src/ops.rs"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd312b4b01ac8ab9c346f10088b0187e87396a6f16a3421a249e384fb2c7051e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (96 shared lines): mistralrs-core/src/pipeline/multimodal.rs:2556-2758 | mistralrs-core/src/pipeline/normal.rs:2192-2322 \u2014 These two members are variants of one another: 96 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2556}}}],"partialFingerprints":{"codehealthFindingId/v1":"09cf59d467a0c8d0208b7d16d0cb5d59805df4ca2a5eac85bfefa26bf823c5e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (95 shared lines): mistralrs-core/src/xlora_models/quantized_llama.rs:274-459 | mistralrs-core/src/xlora_models/quantized_llama.rs:474-761 \u2014 These two members are variants of one another: 95 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":"mistralrs-core/src/xlora_models/quantized_llama.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"3739cad7bd9f5c59fca4b7f28d58dc6e26fb5b6c4e2ec0f69c96e83e8e8490b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (87 shared lines): mistralrs-core/src/vision_models/idefics2/mod.rs:1154-1380 | mistralrs-core/src/vision_models/idefics3/mod.rs:123-317 \u2014 These two members are variants of one another: 87 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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc178dfa033a19f327c6dd35bdc79c7d588673d127522700881b6bf6c7dfc79"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (85 shared lines): mistralrs-core/src/vision_models/gemma3n/audio.rs:587-844 | mistralrs-core/src/vision_models/gemma4/audio.rs:643-812 \u2014 These two members are variants of one another: 85 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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c8deadf4ace7940e8d9734341fd8a560a2cde67cd24a9be64b35ab38b23a736"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (85 shared lines): mistralrs-core/src/vision_models/phi3/mod.rs:532-679 | mistralrs-core/src/vision_models/phi4/image_embedding.rs:130-311 \u2014 These two members are variants of one another: 85 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":"mistralrs-core/src/vision_models/phi3/mod.rs"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9f50990c2fcc9a007e1fc9d36c6a5a053c5f32466c83adcd358bc53c79917e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (84 shared lines): mistralrs-quant/src/blockwise_fp8/ops.rs:1015-1162 | mistralrs-quant/src/blockwise_fp8/ops.rs:1178-1358 \u2014 These two members are variants of one another: 84 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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbbe4d78dfacf6a3b61515fe3795643cef026ed05916faaf862682038edacef1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (80 shared lines): mistralrs-core/src/models/lfm2.rs:1177-1307 | mistralrs-core/src/models/lfm3.rs:1175-1321 \u2014 These two members are variants of one another: 80 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":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"f946fff240cf2f20b80f13c74e340d36507e3a3a46d174eacb0a2136e944bd9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (80 shared lines): mistralrs-quant/src/cutile/nvfp4_gemv.rs:62-148 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:166-252 \u2014 These two members are variants of one another: 80 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":"mistralrs-quant/src/cutile/nvfp4_gemv.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"397936905e2d501568947451377e272ec4a1dd0333c4e0dd603dba3ef50ec11a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (77 shared lines): mistralrs-quant/src/cutile/fp8_w8a16.rs:397-599 | mistralrs-quant/src/cutile/fp8_w8a8.rs:455-667 \u2014 These two members are variants of one another: 77 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":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2351751d3c0558d68a865201c6be96962cf33d6f410bc94d5003d0a89123516"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (73 shared lines): mistralrs-core/src/models/lfm2.rs:1009-1161 | mistralrs-core/src/models/lfm3.rs:911-1084 \u2014 These two members are variants of one another: 73 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":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"524030a1dd4c8e49c0764938c2e309c2c07901ec0bc4e7c20dc3d13a86cc5070"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (73 shared lines): mistralrs-core/src/vision_models/gemma3n/audio.rs:292-408 | mistralrs-core/src/vision_models/gemma4/audio.rs:113-203 \u2014 These two members are variants of one another: 73 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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"a042dd822d06a575a306fde26176dbe505dc2d712ca976051bca486efeb537da"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (70 shared lines): mistralrs-quant/src/metal_kernels/mod.rs:4304-4507 | mistralrs-quant/src/metal_kernels/mod.rs:5057-5163 \u2014 These two members are variants of one another: 70 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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":4304}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb998602ad9e46b48aaad8efbf659bab4cb1428363724480ab315b6b2d8a99a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (69 shared lines): mistralrs-cli/src/commands/run/interactive.rs:1874-1991 | mistralrs-cli/src/commands/run/interactive.rs:2000-2119 \u2014 These two members are variants of one another: 69 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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1874}}}],"partialFingerprints":{"codehealthFindingId/v1":"05fc27c7af910a1bb6f5fac4f57384af38551c1f0d0e58efcbd877c2dd34242f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (65 shared lines): mistralrs-core/src/ops.rs:2008-2118 | mistralrs-core/src/ops.rs:2125-2275 \u2014 These two members are variants of one another: 65 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":"mistralrs-core/src/ops.rs"},"region":{"startLine":2008}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d60dc6f96ac09a4c9acfd2f362e2973150432b7deec3ad3e1f329b8c3cb50e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (65 shared lines): mistralrs-quant/src/cutile/fused_moe.rs:463-592 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:882-1035 \u2014 These two members are variants of one another: 65 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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99f27d6a4fb6b444b13ebae85b40197cd5d11eb0a859b12a9c5457d05d7603c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (63 shared lines): mistralrs-quant/src/blockwise_fp8/ops.rs:509-612 | mistralrs-quant/src/blockwise_fp8/ops.rs:632-775 \u2014 These two members are variants of one another: 63 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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9cd62d1a5768764d4b999d41a623173546f059bda04e758f119ba8777e74c37"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (58 shared lines): mistralrs-pyo3/src/lib.rs:1860-1964 | mistralrs-pyo3/src/lib.rs:2350-2454 \u2014 These two members are variants of one another: 58 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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":1860}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91cd22dd9a53359e38f34d1519866c6dc6837aa4283be71ddf85a0c9da77813"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (57 shared lines): mistralrs-quant/src/cutile/nvfp4_matmul.rs:606-831 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1114-1372 \u2014 These two members are variants of one another: 57 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":"mistralrs-quant/src/cutile/nvfp4_matmul.rs"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e98a644f618299a3989949797d9b3de69ec6c40a9548d276aab45e68cf60812"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (55 shared lines): mistralrs-quant/src/metal_kernels/mod.rs:3909-3971 | mistralrs-quant/src/metal_kernels/mod.rs:4000-4061 \u2014 These two members are variants of one another: 55 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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":3909}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb4f29f883236f3284b21b21a599faf27a48d4af0e1c3182ebef56b1d25da6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (54 shared lines): mistralrs-quant/src/cublaslt/api.rs:54-228 | mistralrs-quant/src/cublaslt/api.rs:366-456 \u2014 These two members are variants of one another: 54 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":"mistralrs-quant/src/cublaslt/api.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9c909d742690b6caa49a3ebb46bf337ad4896f376f495b2e9b3c82585a412c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (50 shared lines): mistralrs-core/src/xlora_models/mixtral.rs:354-421 | mistralrs-core/src/xlora_models/quantized_llama.rs:94-168 \u2014 These two members are variants of one another: 50 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":"mistralrs-core/src/xlora_models/mixtral.rs"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"1840a5043ea2848deae81f77137b2bc76af671db0ea3eeecbd35f30f4f4f08a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (50 shared lines): mistralrs-quant/src/cublaslt/matmul.rs:407-515 | mistralrs-quant/src/cublaslt/matmul.rs:531-612 \u2014 These two members are variants of one another: 50 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":"mistralrs-quant/src/cublaslt/matmul.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c651fad3ce433d50c716cd178acb3ac0fc1a080abc31bea53c0c3c447f820a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (49 shared lines): mistralrs-core/src/cuda/gdn.rs:5229-5466 | mistralrs-core/src/cuda/gdn.rs:5495-5621 \u2014 These two members are variants of one another: 49 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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":5229}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1fde00fb5432aaebbdcd5a5311421ce09a464800eae434e2956835ed945686"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (48 shared lines): mistralrs-core/src/vision_models/grid_processor.rs:574-633 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:360-419 \u2014 These two members are variants of one another: 48 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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"c52a4ab7a457f57371f0ebb358bbc9450bab9ca07790e284897af51f552dfd6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (47 shared lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7804-7870 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8326-8408 \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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":7804}}}],"partialFingerprints":{"codehealthFindingId/v1":"879573b93af2577a194eea5c25c783540680967f1cc1b53276071ff066d11f14"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (47 shared lines): mistralrs-core/src/moe/experts/mod.rs:108-189 | mistralrs-core/src/moe/experts/mod.rs:200-260 \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":"mistralrs-core/src/moe/experts/mod.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca9dcdc436524d7ec39b92d060d5bc4f1fbf887cef0fadfa6f67985fd079c0bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (46 shared lines): mistralrs-paged-attn/src/metal/kernels/mod.rs:425-484 | mistralrs-paged-attn/src/metal/kernels/mod.rs:814-879 \u2014 These two members are variants of one another: 46 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":"mistralrs-paged-attn/src/metal/kernels/mod.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"65eaf5cc5017b448bda5c36843ed477b0ed1d20d25839bc5c2a8c9cf5d2a1f11"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (46 shared lines): mistralrs-quant/src/cutile/fp8_w8a16.rs:652-727 | mistralrs-quant/src/cutile/fp8_w8a8.rs:743-836 \u2014 These two members are variants of one another: 46 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":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"52896eddde16c63aef623c136b86890167a7bcbd7db48665c2dd95a3c0a91881"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (43 shared lines): mistralrs-core/src/vision_models/grid_processor.rs:489-538 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:272-321 \u2014 These two members are variants of one another: 43 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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"39f6bfbf2a9cfeec9fc012ff47e68f51190f98467a4be8df68125198ab1199d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (41 shared lines): mistralrs-server-core/src/anthropic.rs:1852-1941 | mistralrs-server-core/src/chat_completion.rs:1195-1313 \u2014 These two members are variants of one another: 41 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":"mistralrs-server-core/src/anthropic.rs"},"region":{"startLine":1852}}}],"partialFingerprints":{"codehealthFindingId/v1":"a88d490df9805a428ddc26bbf410d6ab1986999410631887383f11a5eadf697d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (37 shared lines): mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:78-232 | mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:558-699 \u2014 These two members are variants of one another: 37 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":"mistralrs-paged-attn/src/cuda/backend/flashinfer.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"3014344897640c3768549319166a64be198fca0f5d904d2c31f694899e11d28f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (36 shared lines): mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:25-122 | mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:164-291 \u2014 These two members are variants of one another: 36 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":"mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b238baabcbe5362123606470b0b3e07e4622325536bffa65234fdd89f3dc5da"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (36 shared lines): mistralrs-quant/src/blockwise_fp8/ops.rs:778-890 | mistralrs-quant/src/blockwise_fp8/ops.rs:893-1001 \u2014 These two members are variants of one another: 36 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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"7998141e6bb181bf5f40f6f3ac2e2d4f68b0e1247da6a51eed7179ff06073dc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (35 shared lines): mistralrs-quant/src/utils/ops.rs:44-93 | mistralrs-quant/src/utils/ops.rs:690-743 \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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"e09ecc3805f8467dea8b3b2ea10c80f8cb974e9d42af0ee3cfa1a522052d3807"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (35 shared lines): mistralrs-quant/src/blockwise_fp8/deepgemm.rs:574-668 | mistralrs-quant/src/blockwise_fp8/ops.rs:1992-2098 \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":"mistralrs-quant/src/blockwise_fp8/deepgemm.rs"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b960b16b365cc0c4ab05f89dd931ff4c28ac22eb4ee49d30ecadf3fc23a6d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (33 shared lines): mistralrs-quant/src/distributed/layers.rs:528-614 | mistralrs-quant/src/distributed/layers.rs:919-1010 \u2014 These two members are variants of one another: 33 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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"f20afe39d7804d74e278cf4338b72137fcfdb27bb42f972fd932d3420d47eae5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (33 shared lines): mistralrs/src/model.rs:384-454 | mistralrs/src/model.rs:472-541 \u2014 These two members are variants of one another: 33 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":"mistralrs/src/model.rs"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"198c22370817b7d165e2d062e839d06800aed600abc93ed5b920a685e6841339"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (32 shared lines): mistralrs-quant/src/distributed/mod.rs:550-659 | mistralrs-quant/src/distributed/mod.rs:696-808 \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":"mistralrs-quant/src/distributed/mod.rs"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d04f748526962318319198b584a95ae5dd27c1ea686a571c2459fc1067241e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (32 shared lines): mistralrs-core/src/models/qwen3_next.rs:628-701 | mistralrs-core/src/vision_models/qwen3_5/packed_gdn.rs:122-176 \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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c4ce45c7f1e57578685375421834fe1b272ac6a849da6705df42a6ffa829f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (32 shared lines): mistralrs-quant/src/utils/ops.rs:2001-2111 | mistralrs-quant/src/utils/ops.rs:2798-2909 \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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":2001}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec4472fa6c2df31b6d90c3e7415f7e25775bb9d203933f6501ac455c0e04c30"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (30 shared lines): mistralrs-quant/src/gguf/cuda.rs:672-719 | mistralrs-quant/src/gguf/cuda.rs:735-779 \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":"mistralrs-quant/src/gguf/cuda.rs"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f29fb64be040e08daa08b7672c97fc5febe801f1900ee3e2c766a2c9ad44ccf"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (22 shared lines): mistralrs-quant/src/cutile/nvfp4_matmul.rs:118-173 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:200-308 \u2014 These two members are variants of one another: 22 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":"mistralrs-quant/src/cutile/nvfp4_matmul.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a4fb4c7052be2201ed9a53f9566bd022deecb960d340ca27ebbbfab9f56340c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): mistralrs-core/src/models/lfm3.rs:542-572 | mistralrs-core/src/models/qwen3.rs:192-282 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"mistralrs-core/src/models/lfm3.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b291b0a4906de7846bffb9d87576b01872c99f99ccb2e2e870813fa1bb54b15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): mistralrs-core/src/models/lfm3.rs:542-572 | mistralrs-core/src/models/qwen3_moe.rs:195-285 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"mistralrs-core/src/models/lfm3.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8e7808d13b258e6961ad784158545d80ed2a166e4e66f8f726f6e68069b473"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): mistralrs-core/src/models/lfm3.rs:542-572 | mistralrs-core/src/vision_models/gemma3/text.rs:182-302 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"mistralrs-core/src/models/lfm3.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"88fe85515453844608d73065ca2c3a0ea793363f85c8c16771cae2ba208128ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): mistralrs-core/src/models/lfm3.rs:542-572 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:194-287 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"mistralrs-core/src/models/lfm3.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"487658b67b4e4760263a22415b69438c665157f5b1b7c5e6b0056198c41119a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): mistralrs-core/src/models/lfm3.rs:542-572 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:300-390 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"mistralrs-core/src/models/lfm3.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad1661d1118473b0f7be22aba4e2a4b088177cd3ae140fda95e19f2108baebc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): mistralrs-pyo3/src/lib.rs:1291-1576 | mistralrs-server-core/src/mistralrs_for_server_builder.rs:1364-1400 \u2014 These two members are one piece of code written twice and then edited apart: 32 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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":1291}}}],"partialFingerprints":{"codehealthFindingId/v1":"77769a34965215de6a6fa55e5cdff2a3520ddd016414b2c5c58093d1f9dab993"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): mistralrs-core/src/models/granite.rs:1455-1501 | mistralrs-core/src/models/granite.rs:1745-1787 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":1455}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3774fc2a341c6c72a71c30129bef3441cb87294edd031c3f2cd3b476d41f02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): mistralrs-quant/src/metal_kernels/mod.rs:3442-3483 | mistralrs-quant/src/metal_kernels/mod.rs:3571-3612 \u2014 These two members are one piece of code written twice and then edited apart: 38 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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":3442}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceacb22237cd3a091fa3c5da274ab9f16bcf12293df67823059ee11b86da18d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): mistralrs-core/src/models/lfm3.rs:542-572 | mistralrs-core/src/models/phi3.rs:143-236 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"mistralrs-core/src/models/lfm3.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f3ed251c839fe1dd7fd88f0bdbaab6cd5d4d25970512650e418842555c362f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): mistralrs-core/src/models/lfm3.rs:542-572 | mistralrs-core/src/vision_models/phi3/mod.rs:235-327 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"mistralrs-core/src/models/lfm3.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"481c832051ee631bf0549e521c9b5183030bc6c6344e5b25e3179a9293a6437b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): mistralrs-core/src/models/lfm3.rs:542-572 | mistralrs-core/src/vision_models/phi4/mod.rs:104-196 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"mistralrs-core/src/models/lfm3.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"5116f8731a5c0110251acb4cde280e78ccc93d631c54ee1898b00e70fabb9615"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): mistralrs-core/src/models/lfm3.rs:542-572 | mistralrs-core/src/vision_models/voxtral/encoder.rs:79-123 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"mistralrs-core/src/models/lfm3.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e34aed9e15a92a3478a9eab86abb35e4f1bcf88a0d6467eb57709aa410a999"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): mistralrs-core/src/models/lfm3.rs:542-572 | mistralrs-core/src/vision_models/voxtral/mod.rs:126-208 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"mistralrs-core/src/models/lfm3.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b3dfa80edc61a80c5ba1ceaf56d66a86c5fd979e642f1ae01026fe1beddf00"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): mistralrs-core/src/models/lfm3.rs:542-572 | mistralrs-core/src/xlora_models/gemma.rs:232-298 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"mistralrs-core/src/models/lfm3.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd90dd152879853b93e2f0122ab7f77210ae581f3c336947e21887464613e56e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): mistralrs-core/src/models/lfm3.rs:542-572 | mistralrs-core/src/xlora_models/gemma2.rs:237-305 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"mistralrs-core/src/models/lfm3.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca263c55b589e17f87f8e7b65d6882e9c4a67415d9b35d5ccbb58bc1565ab491"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): mistralrs-core/src/models/lfm3.rs:542-572 | mistralrs-core/src/xlora_models/mistral.rs:222-294 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"mistralrs-core/src/models/lfm3.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"253f74f83ba0c79523cd16cd9cede1a0ccf6d1c98e8df30b32b812f821d68bbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): mistralrs-core/src/models/lfm3.rs:542-572 | mistralrs-core/src/xlora_models/mixtral.rs:135-207 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"mistralrs-core/src/models/lfm3.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"54fd77f4f04eff3fb4dd93026c184e297976ec7f93a791a2eec54e4344fcaeae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): mistralrs-core/src/models/lfm3.rs:542-572 | mistralrs-core/src/xlora_models/phi2.rs:217-288 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"mistralrs-core/src/models/lfm3.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a0a532339ea7a557f43dbe789cbe940ca28be1de4e7b4958b4676741b0dc288"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): mistralrs-core/src/models/lfm3.rs:542-572 | mistralrs-core/src/xlora_models/phi3.rs:113-182 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"mistralrs-core/src/models/lfm3.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb8839a5c5ffbb184463fb8d4cf2371150d14941ee6decdf6144bab238520d55"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): mistralrs-core/src/models/lfm3.rs:542-572 | mistralrs-core/src/xlora_models/starcoder2.rs:209-283 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"mistralrs-core/src/models/lfm3.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"78675fef25fdcd67e18b98ad8b193f56e913532fb243da8b4d6000dc785eb466"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): mistralrs-quant/src/metal_kernels/mod.rs:3378-3416 | mistralrs-quant/src/metal_kernels/mod.rs:3506-3544 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":3378}}}],"partialFingerprints":{"codehealthFindingId/v1":"da016b43e2b4cc28f5dea3850c36d337fb65043d2f0bdbdedf68fd0f9b9e6357"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): mistralrs-quant/src/safetensors.rs:372-390 | mistralrs-quant/src/safetensors.rs:412-447 \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":"mistralrs-quant/src/safetensors.rs"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b506b41c12ca9fb05d120d257a27b7cecdceccc01d4eba7e6537f43ece1734"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): mistralrs-quant/src/metal_kernels/mod.rs:1322-1448 | mistralrs-quant/src/metal_kernels/mod.rs:1493-1540 \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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":1322}}}],"partialFingerprints":{"codehealthFindingId/v1":"44419e9d97e06ee2286c3b625f8f0acfc91e51763bde5c2915e7cb02ed122047"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): mistralrs-core/src/vision_models/idefics3/vision.rs:242-269 | mistralrs-core/src/vision_models/siglip.rs:246-267 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"mistralrs-core/src/vision_models/idefics3/vision.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"d782cc1c5ce7adf9afd2d21a945b0f3a92bdab31e097c2151c1bf8440a998174"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): mistralrs-core/src/tools/parsers/gemma4.rs:286-326 | mistralrs-core/src/tools/parsers/gemma4.rs:329-360 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"mistralrs-core/src/tools/parsers/gemma4.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"beff4c2650fd6a87ab3cb413edde2fed63365ed456b7b3846870c5f9ec92cd57"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): mistralrs-quant/src/metal_kernels/mod.rs:1737-1774 | mistralrs-quant/src/metal_kernels/mod.rs:2660-2795 \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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":1737}}}],"partialFingerprints":{"codehealthFindingId/v1":"3501d8109a65df3e5a529b237fa85b17c2bad3ac5f6190c8574e3bf840e5c16f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (27 members, 50\u002B identical tokens): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1062-1127 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2819-2889 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3865-3966 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4243-4312 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4637-4711 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5039-5100 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5451-5529 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:778-801 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1222-1245 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1466-1489 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1693-1716 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1913-1936 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2149-2172 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2846-2869 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3143-3165 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3476-3498 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3739-3761 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3951-3973 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4200-4222 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4431-4453 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4703-4725 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5015-5037 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5298-5320 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5759-5782 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6005-6028 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6268-6291 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6557-6580 \u2014 These 27 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 27 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 27 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1062}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f29c4539aac9b16c79aba06a16c2f39882db9479968c71609e8cfe84cb8684b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (22 members, 50\u002B identical tokens): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:434-447 | mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:637-650 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1275-1288 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1656-1669 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1964-1977 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2687-2700 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4115-4128 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4488-4501 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4893-4906 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5706-5740 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9513-9533 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:10759-10774 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:709-722 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:935-948 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1156-1169 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2057-2074 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2308-2321 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3666-3679 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3887-3898 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4100-4121 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5205-5223 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5693-5706 \u2014 These 22 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 22 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 22 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/embedding_loaders.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"772d5bc34a55580e29b9bc11936eff5549968e23840ac3773bd5df068e6faf8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (14 members, 50\u002B identical tokens): mistralrs-core/src/models/deepseek2.rs:950-977 | mistralrs-core/src/models/deepseek3.rs:1013-1040 | mistralrs-core/src/models/flint.rs:920-977 | mistralrs-core/src/models/gemma.rs:462-490 | mistralrs-core/src/models/glm4.rs:580-607 | mistralrs-core/src/models/glm4_moe.rs:829-855 | mistralrs-core/src/models/glm4_moe_lite.rs:966-992 | mistralrs-core/src/models/hunyuan_v1_dense.rs:542-569 | mistralrs-core/src/models/hunyuan_v1_moe.rs:1036-1063 | mistralrs-core/src/models/mistral.rs:590-618 | mistralrs-core/src/models/mixtral.rs:526-556 | mistralrs-core/src/models/phi2.rs:542-569 | mistralrs-core/src/models/qwen3.rs:543-571 | mistralrs-core/src/models/qwen3_moe.rs:723-752 \u2014 These 14 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 14 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 14 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e1aa892f78595b577555531b377b7cd5643ce0c686e84fe049e4a935fd91fda"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (12 members, 50\u002B identical tokens): mistralrs-core/src/models/flint.rs:739-750 | mistralrs-core/src/models/gemma.rs:311-322 | mistralrs-core/src/models/gpt_oss.rs:681-693 | mistralrs-core/src/models/hunyuan_v1_dense.rs:338-349 | mistralrs-core/src/models/hunyuan_v1_moe.rs:828-839 | mistralrs-core/src/models/mistral.rs:359-370 | mistralrs-core/src/models/mixtral.rs:368-381 | mistralrs-core/src/models/phi3.rs:372-383 | mistralrs-core/src/models/qwen3.rs:347-358 | mistralrs-core/src/models/qwen3_moe.rs:521-532 | mistralrs-core/src/vision_models/phi3/mod.rs:463-474 | mistralrs-core/src/vision_models/phi4/mod.rs:293-304 \u2014 These 12 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 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa3a39152bafca8eb6b76a6bbe184cdca18c12176e1bcbde2d393ee75e899d54"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (11 members, 50\u002B identical tokens): mistralrs-core/src/cuda/dflash_context.rs:263-379 | mistralrs-core/src/cuda/speculative_rejection.rs:474-630 | mistralrs-core/src/ops.rs:1045-1271 | mistralrs-core/src/ops.rs:1287-1478 | mistralrs-core/src/ops.rs:1499-1707 | mistralrs-core/src/ops.rs:1712-2002 | mistralrs-core/src/ops.rs:4121-4187 | mistralrs-core/src/ops.rs:4272-4392 | mistralrs-core/src/ops.rs:5596-5898 | mistralrs-core/src/ops.rs:6025-6343 | mistralrs-core/src/ops.rs:6361-6661 \u2014 These 11 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 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/cuda/dflash_context.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca4a60b831be445aff19bff2109653aebb7ea812852aebd9df8bdf92b74f9227"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (11 members, 50\u002B identical tokens): mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:396-690 | mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs:323-458 | mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:423-670 | mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:436-712 | mistralrs-core/src/vision_models/llama4/inputs_processor.rs:406-613 | mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:268-481 | mistralrs-core/src/vision_models/mllama/inputs_processor.rs:334-663 | mistralrs-core/src/vision_models/muse_glimmer/inputs_processor.rs:918-1102 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:366-973 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:932-1538 | mistralrs-core/src/vision_models/voxtral/inputs_processor.rs:209-363 \u2014 These 11 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 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c9d0eb10897a03a1d5d80e493d6558cd1037683215fe330e331e5557bf0cfd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): mistralrs-core/src/metal/gdn.rs:161-237 | mistralrs-core/src/metal/gdn.rs:272-342 | mistralrs-core/src/metal/gdn.rs:374-431 | mistralrs-core/src/metal/gdn.rs:491-582 | mistralrs-core/src/metal/gdn.rs:586-633 | mistralrs-core/src/metal/gdn.rs:646-698 | mistralrs-core/src/metal/gdn.rs:753-908 | mistralrs-core/src/metal/gdn.rs:937-1002 | mistralrs-core/src/metal/ssm.rs:132-212 \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":"mistralrs-core/src/metal/gdn.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3119cf5e0de4ab2858844365422dbce033595bf23b1efda18e1eb1b4d2380af"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): mistralrs-core/src/models/flint.rs:593-615 | mistralrs-core/src/models/gpt_oss.rs:513-615 | mistralrs-core/src/models/lfm2.rs:327-360 | mistralrs-core/src/models/phi3_5_moe.rs:362-378 | mistralrs-core/src/models/qwen3_moe.rs:399-426 | mistralrs-core/src/models/qwen3_next.rs:470-507 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:374-409 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:138-165 | mistralrs-core/src/vision_models/qwen4_exp/text.rs:152-178 \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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"1579fc8ee5e60831a81ad6ee516bf1cda0750823d38f5a64d4fcd04e5e449722"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): mistralrs-core/src/xlora_models/gemma.rs:425-564 | mistralrs-core/src/xlora_models/gemma2.rs:456-596 | mistralrs-core/src/xlora_models/llama.rs:530-667 | mistralrs-core/src/xlora_models/mistral.rs:421-558 | mistralrs-core/src/xlora_models/mixtral.rs:551-688 | mistralrs-core/src/xlora_models/phi2.rs:402-531 | mistralrs-core/src/xlora_models/phi3.rs:388-508 | mistralrs-core/src/xlora_models/starcoder2.rs:410-541 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"d24d32d136d30d88bc7de9a3fa9fb0a1e6364217b020a6c0a863f7b79928aae3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): mistralrs-core/src/models/flint.rs:471-505 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:219-252 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:42-76 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:46-79 | mistralrs-core/src/vision_models/qwen2vl/text.rs:47-80 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:34-67 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:40-74 \u2014 These 7 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 7 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 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fc276e6d99d0d201131517e36a9e9ff255dae468ec2b2c56b110213a9b48672"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:414-458 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:570-614 | mistralrs-core/src/vision_models/qwen3_5/mod.rs:455-499 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:463-507 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:1025-1069 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:469-513 | mistralrs-core/src/vision_models/qwen4_exp/mod.rs:440-484 \u2014 These 7 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 7 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 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa505e3ec29be59a86cf271d3f3f86c45dee3be3d3929f122abb48da5dd07ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): mistralrs-quant/src/cutile/fused_moe.rs:58-414 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:73-448 | mistralrs-quant/src/cutile/gdn_prefill.rs:234-435 | mistralrs-quant/src/cutile/qsa.rs:49-258 | mistralrs-quant/src/cutile/qsa.rs:281-545 | mistralrs-quant/src/cutile/qsa_decode.rs:59-397 | mistralrs-quant/src/cutile/routed_lora.rs:99-489 \u2014 These 7 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 7 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 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7f1dd639c37e0c4af3f9932e02c5bfe02fa96f6264db5009a352a6bb3aa5e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): mistralrs-core/src/pipeline/diffusion.rs:99-192 | mistralrs-core/src/pipeline/embedding.rs:218-747 | mistralrs-core/src/pipeline/gguf.rs:1236-1473 | mistralrs-core/src/pipeline/multimodal.rs:535-1720 | mistralrs-core/src/pipeline/normal.rs:668-1593 | mistralrs-core/src/pipeline/speech.rs:202-295 \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":"mistralrs-core/src/pipeline/diffusion.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"45bc277e219e2cf478ee12551c7c8a6e0825668c5a3379e2eecf341834ec413e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): mistralrs-quant/src/bitsandbytes/op.rs:417-494 | mistralrs-quant/src/hqq/hqq_op.rs:68-106 | mistralrs-quant/src/hqq/hqq_op.rs:177-217 | mistralrs-quant/src/hqq/hqq_op.rs:290-330 | mistralrs-quant/src/hqq/hqq_op.rs:407-447 | mistralrs-quant/src/hqq/hqq_op.rs:526-566 \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":"mistralrs-quant/src/bitsandbytes/op.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d9d00b51ec0a91ff9063d6314935578b71c39265f44c0cf28fd17e8f68b531a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): mistralrs/src/model_builder_trait.rs:530-603 | mistralrs/src/model_builder_trait.rs:608-682 | mistralrs/src/model_builder_trait.rs:734-880 | mistralrs/src/model_builder_trait.rs:886-1040 | mistralrs/src/model_builder_trait.rs:1046-1243 | mistralrs/src/model_builder_trait.rs:1478-1659 \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":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"e723376945d50cd47eb49fae572c1ac5ea5b8d6440f8c9b4c72b88560622c9b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): mistralrs-core/src/gguf/base_model.rs:138-151 | mistralrs-core/src/gguf/multimodal_binding_utils.rs:108-124 | mistralrs-core/src/gguf/normal_bindings.rs:950-963 | mistralrs-core/src/gguf/qwen_multimodal_bindings.rs:302-318 | mistralrs-quant/src/gguf/archive.rs:1382-1398 \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":"mistralrs-core/src/gguf/base_model.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8100f2f69e68b11b28ed4c9bdd2c80b72962ec23145233e3e9734a7868298b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): mistralrs-core/src/gguf/gemma3_bindings.rs:172-215 | mistralrs-core/src/gguf/idefics3_bindings.rs:41-84 | mistralrs-core/src/gguf/lfm2_vl_bindings.rs:69-119 | mistralrs-core/src/gguf/llama4_bindings.rs:170-242 | mistralrs-core/src/gguf/muse_glimmer_bindings.rs:114-154 \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":"mistralrs-core/src/gguf/gemma3_bindings.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"2966966e8acc69b690b410d2f82447ab88cd470cd1c22f4bade56e48638e2393"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): mistralrs-core/src/ops.rs:2125-2275 | mistralrs-core/src/ops.rs:3870-3990 | mistralrs-core/src/ops.rs:3997-4114 | mistralrs-flash-attn/src/flash.rs:34-224 | mistralrs-flash-attn/src/flash.rs:482-832 \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":"mistralrs-core/src/ops.rs"},"region":{"startLine":2125}}}],"partialFingerprints":{"codehealthFindingId/v1":"10091f2e6ebcda5b6fb816a0139d8f26d952405799e00cdbc4fdc2b1afb095fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1390-1507 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3170-3242 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3519-3584 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3865-3966 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4637-4711 \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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1390}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a2119d73bb5939488bcd56612697210bebae2e357d470468d634817c98745d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2744-2775 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6721-6753 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7163-7195 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7640-7668 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8162-8190 \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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":2744}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6c75c0a1c46f68f59e5a4cab706172e036e42aede7871d6ac243755e567a95"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2781-2810 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6759-6788 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7201-7230 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7674-7701 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8196-8223 \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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":2781}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8eaecbe57da304a3038315cd14f20f7d89adfbf33373abd50979dd71cdec9b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4243-4312 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6797-6886 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7239-7328 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7710-7796 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8232-8318 \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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":4243}}}],"partialFingerprints":{"codehealthFindingId/v1":"084b6bbde6752ae8eecf7f12277d22326db588d72d23fb05853760b9936d6bc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): mistralrs-core/src/vision_models/diffusion_gemma/mod.rs:257-299 | mistralrs-core/src/vision_models/gemma3/mod.rs:118-193 | mistralrs-core/src/vision_models/gemma4/mod.rs:360-891 | mistralrs-core/src/vision_models/lfm2_vl/mod.rs:193-230 | mistralrs-core/src/vision_models/mistral3/mod.rs:238-335 \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":"mistralrs-core/src/vision_models/diffusion_gemma/mod.rs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f76985a2fef591eea3e70d0f7e5866337f31960981d400cf77bbd665daba24"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): mistralrs-core/src/vision_models/idefics2/mod.rs:509-518 | mistralrs-core/src/vision_models/idefics2/mod.rs:864-873 | mistralrs-core/src/vision_models/idefics3/vision.rs:305-314 | mistralrs-core/src/vision_models/lfm2_vl/vision.rs:239-246 | mistralrs-core/src/vision_models/siglip.rs:316-325 \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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"e422dd20b2906e7f25781778e8db8786813b441e8a2d0578e2d2fd8284efe181"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): mistralrs-quant/src/cutile/fp8_gemm.rs:466-495 | mistralrs-quant/src/cutile/fp8_w8a16.rs:616-648 | mistralrs-quant/src/cutile/fp8_w8a8.rs:684-739 | mistralrs-quant/src/cutile/fused_moe.rs:790-847 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:706-764 \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":"mistralrs-quant/src/cutile/fp8_gemm.rs"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ac867c2336212762176b8850a3dea3463a685fa83f9f7d17449841753049e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): mistralrs-quant/src/hqq/hqq_op.rs:36-58 | mistralrs-quant/src/hqq/hqq_op.rs:143-167 | mistralrs-quant/src/hqq/hqq_op.rs:256-280 | mistralrs-quant/src/hqq/hqq_op.rs:373-397 | mistralrs-quant/src/hqq/hqq_op.rs:492-516 \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":"mistralrs-quant/src/hqq/hqq_op.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e08d631f72c954e67b46a6a736516f266061098df2f980fedfd3fe88bb27a3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): mistralrs-quant/src/metal_kernels/mod.rs:1580-1622 | mistralrs-quant/src/metal_kernels/mod.rs:1650-1701 | mistralrs-quant/src/metal_kernels/mod.rs:2808-3032 | mistralrs-quant/src/metal_kernels/mod.rs:4759-4799 | mistralrs-quant/src/metal_kernels/mod.rs:4830-4870 \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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":1580}}}],"partialFingerprints":{"codehealthFindingId/v1":"71979708bba56c0a114e47e10799ab17194bf063a0969b0ce094c412e664393c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-cli/src/commands/config.rs:38-201 | mistralrs-cli/src/commands/config.rs:203-316 | mistralrs-cli/src/commands/run/mod.rs:41-191 | mistralrs-cli/src/commands/serve.rs:45-221 \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":"mistralrs-cli/src/commands/config.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb18a2d8f70703accbc80ac586266aa328e8a4d1f92c3cb954120e43d14be5b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-core/src/distributed.rs:174-218 | mistralrs-core/src/distributed.rs:220-264 | mistralrs-core/src/distributed.rs:266-304 | mistralrs-core/src/distributed.rs:306-344 \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":"mistralrs-core/src/distributed.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e2de9551eab577ba1a7e8ed73ed08d1e3a0fb560c486b3b636003e71aeb5e11"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-core/src/models/deepseek2.rs:615-663 | mistralrs-core/src/models/deepseek3.rs:678-726 | mistralrs-core/src/models/glm4_moe.rs:520-566 | mistralrs-core/src/models/glm4_moe_lite.rs:624-672 \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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b197cb2a29c7c3126c73b9425fefb03285593c6f46b0a5697e42f0f02fbf1ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-core/src/models/deepseek2.rs:665-682 | mistralrs-core/src/models/deepseek3.rs:728-745 | mistralrs-core/src/models/glm4_moe.rs:568-582 | mistralrs-core/src/models/glm4_moe_lite.rs:674-691 \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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"31417e27fadc67b72c8c2591e0e99ff41bfcb67de0a29e04c04139ed89f96914"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-core/src/models/deepseek2.rs:779-790 | mistralrs-core/src/models/deepseek3.rs:842-853 | mistralrs-core/src/models/glm4_moe.rs:679-690 | mistralrs-core/src/models/glm4_moe_lite.rs:789-800 \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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"88dd0cc6872046d8864b6f6dc5c5a2761f13faadd413551512df0056502c36d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-core/src/models/granite.rs:648-678 | mistralrs-core/src/models/lfm2.rs:589-620 | mistralrs-core/src/models/qwen3_next.rs:539-571 | mistralrs-core/src/vision_models/qwen3_5/packed_gdn.rs:20-50 \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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"6159bdddc924d3e9e20f5a64a8e4316fe082f1faa92869b63d09a5407ba6ff4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-core/src/models/granite.rs:1630-1694 | mistralrs-core/src/models/llama.rs:165-231 | mistralrs-core/src/models/smollm3.rs:182-248 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:139-204 \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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":1630}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b3c08647f5495aaccca884824da9d5ab7c2c82fd03b44532d48351fe49ce0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-core/src/models/llama.rs:519-530 | mistralrs-core/src/models/smollm3.rs:538-549 | mistralrs-core/src/vision_models/llama4/text.rs:1018-1029 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:505-516 \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":"mistralrs-core/src/models/llama.rs"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe3cf3cc5e4898f6a56e098e9ec54fcac715e3baf333bc4bb63a105e70bfb7d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-core/src/models/phi3.rs:534-565 | mistralrs-core/src/models/phi3_5_moe.rs:607-638 | mistralrs-core/src/vision_models/phi3/mod.rs:1327-1367 | mistralrs-core/src/vision_models/phi4/mod.rs:456-529 \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":"mistralrs-core/src/models/phi3.rs"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e8942f7400bd586bd5d8e509bfb968a3104d55f2d32b9b782f236b4ebf0665"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-core/src/models/qwen3_next.rs:968-1129 | mistralrs-core/src/vision_models/qwen3_5/text.rs:1367-1710 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:799-934 | mistralrs-core/src/vision_models/qwen4_exp/text.rs:817-1116 \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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b2b9d5cc982769014c239853b7e35b6634a4a9181a5f884d095bfa21d9c614d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-core/src/pipeline/cuda_graph.rs:3861-3871 | mistralrs-core/src/pipeline/cuda_graph.rs:3879-3889 | mistralrs-core/src/pipeline/cuda_graph.rs:3898-3908 | mistralrs-core/src/pipeline/cuda_graph.rs:3917-3927 \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":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":3861}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e749eb18ac0e407cfa80851cb1239a11c2cca17ca4e295e2b884c4d22e6fd8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:64-85 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:338-359 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:10386-10406 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:193-214 \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":"mistralrs-core/src/pipeline/loaders/embedding_loaders.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"47b345d326c0162107c76617d26707d8c69e1e6a8ce359a8f1b7cc5ba3e72fa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:729-740 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1864-1875 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2556-2567 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4382-4393 \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":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"774b80ab7ff6e91d9595b68d87b808cc2317622870a4792a262045543dfbe7cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2998-3061 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3331-3394 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4572-4630 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4891-4947 \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":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":2998}}}],"partialFingerprints":{"codehealthFindingId/v1":"62633d05402fe842bfb7ddf8648b86e21e6774ceb820e7fea416d6f056c0725e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3173-3254 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3506-3587 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4733-4814 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5045-5125 \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":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":3173}}}],"partialFingerprints":{"codehealthFindingId/v1":"f86c4ff005cc36acc39d089eaa4be997854854b3b935cce378aa05a450fc924e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-core/src/sampler.rs:1168-1195 | mistralrs-core/src/sampler.rs:1204-1275 | mistralrs-core/src/sampler.rs:1654-1744 | mistralrs-core/src/sampler.rs:1863-1890 \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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":1168}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc458965fd9b4b33bb61740bcebabde3b4fd1d3990c5cf64840e01b88432098"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:396-690 | mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:1039-1699 | mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:436-712 | mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:268-481 \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":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b66eff2fa2ae1cc58ca4c9f2899558a5b148da6b9920bc591fbc7d06e0b19ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-core/src/vision_models/grid_processor.rs:1844-1874 | mistralrs-core/src/vision_models/grid_processor.rs:1884-1923 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:984-1013 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1549-1578 \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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1844}}}],"partialFingerprints":{"codehealthFindingId/v1":"d86ee863b5789355ef4c6eae4cb7140281a3c9220a57ae51fff2b61a86f778f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:222-264 | mistralrs-core/src/vision_models/llama4/inputs_processor.rs:226-265 | mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:181-202 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:137-158 \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":"mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"26f8025ad246d82484fd1f295461dc4b88e64a177997b214e40983f668306a57"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-core/src/vision_models/idefics2/mod.rs:686-704 | mistralrs-core/src/vision_models/idefics3/vision.rs:505-523 | mistralrs-core/src/vision_models/lfm2_vl/vision.rs:384-400 | mistralrs-core/src/vision_models/siglip.rs:528-546 \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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc226e141f7caee909870506805497eaefa7fc58358a559b4299f53fd8d38a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:287-630 | mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:323-648 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:296-567 | mistralrs-core/src/vision_models/phi4/inputs_processor.rs:343-572 \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":"mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e8ce3eb7c0fef0fd740cab568672594d5d2ed98d57fbbc2a36784ecc7956f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:243-307 | mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:323-648 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:224-280 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:296-567 \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":"mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec1640aa7f41e10c9d292e6f8c3a0b5d76909726e4725c5ccddb7e0ec45d598"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:471-488 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:627-644 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:1082-1099 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:526-543 \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":"mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"750aa0b19e5075bb2c67a60d8a3d5983639cf0fcffe818aa4bd2fc08a5c945b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-core/src/xlora_models/gemma.rs:152-219 | mistralrs-core/src/xlora_models/mistral.rs:146-209 | mistralrs-core/src/xlora_models/mixtral.rs:59-122 | mistralrs-core/src/xlora_models/phi3.rs:58-99 \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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e96bcb9a2c96bd885c2ef9121d1ba71c35f2cf7143020868ec75a78653ca9e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:62-93 | mistralrs-quant/src/gguf/cuda.rs:118-145 | mistralrs-quant/src/gguf/fast_mmq.rs:385-409 | mistralrs-quant/src/gguf/fast_mmvq.rs:118-144 \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":"mistralrs-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"d73390b96356bb5cadcb4f165cf36361213e9be36ae7e0c1e438223b49a83ebe"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-quant/src/afq/ops.rs:133-220 | mistralrs-quant/src/afq/ops.rs:230-314 | mistralrs-quant/src/afq/ops.rs:345-608 | mistralrs-quant/src/afq/ops.rs:769-874 \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":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d33feb9ae83db5ba96ae6bfa31c56b03f5c939def8742f54052ede458882f79"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-quant/src/blockwise_fp8/mma.rs:109-156 | mistralrs-quant/src/blockwise_fp8/ops.rs:778-890 | mistralrs-quant/src/blockwise_fp8/ops.rs:1593-1688 | mistralrs-quant/src/cutile/nvfp4_glu.rs:280-477 \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":"mistralrs-quant/src/blockwise_fp8/mma.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3304d5e92fd3e18b4ff9f298eb5c666932b8cc2e4defc129e0d108e4cff8c43"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-quant/src/cutile/fp8_gemm.rs:61-100 | mistralrs-quant/src/cutile/fp8_w8a16.rs:52-85 | mistralrs-quant/src/cutile/fp8_w8a16.rs:100-132 | mistralrs-quant/src/cutile/fp8_w8a8.rs:53-90 \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":"mistralrs-quant/src/cutile/fp8_gemm.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"14010f30d8a8bce6849f22a3216c3dd5cd2c70ba87e0f50b9306ebf4142bdc6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-quant/src/distributed/layers.rs:404-517 | mistralrs-quant/src/distributed/layers.rs:805-892 | mistralrs-quant/src/distributed/layers.rs:1403-1472 | mistralrs-quant/src/distributed/layers.rs:1568-1702 \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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"da0dd9ec467ca1f18a045f517ec1a68fc5642557890e4ae6b8e5fddabc737f2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-quant/src/gguf/fast_mmq.rs:569-676 | mistralrs-quant/src/gguf/fast_mmq.rs:683-800 | mistralrs-quant/src/gguf/fast_mmq.rs:865-1028 | mistralrs-quant/src/gguf/fast_mmq.rs:1314-1503 \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":"mistralrs-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e5b656feefa030cf5e4db3faa82ba724c253fc413f59e5fb89a31161c184f7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-quant/src/hqq/hqq_op.rs:118-128 | mistralrs-quant/src/hqq/hqq_op.rs:229-241 | mistralrs-quant/src/hqq/hqq_op.rs:342-358 | mistralrs-quant/src/hqq/hqq_op.rs:459-477 \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":"mistralrs-quant/src/hqq/hqq_op.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"2440c8bdff57f65b670a1e0fc98f761faa75a989505e5204db8b567a3b9ddaea"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-quant/src/metal_kernels/mod.rs:3119-3141 | mistralrs-quant/src/metal_kernels/mod.rs:3152-3174 | mistralrs-quant/src/metal_kernels/mod.rs:3185-3207 | mistralrs-quant/src/metal_kernels/mod.rs:3218-3240 \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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":3119}}}],"partialFingerprints":{"codehealthFindingId/v1":"be503cd4b4d91f293589b63aee7bb83f2adc5bcc367b5ce5e0a6323a6dd4e25a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-server-core/src/chat_completion.rs:1425-1454 | mistralrs-server-core/src/completions.rs:437-466 | mistralrs-server-core/src/image_generation.rs:166-194 | mistralrs-server-core/src/speech_generation.rs:377-449 \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":"mistralrs-server-core/src/chat_completion.rs"},"region":{"startLine":1425}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1c4695b99091d7b5c1577983c1fcbf9843a8471e11b8332545b144b103f5f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-server-core/src/responses_types/content.rs:235-381 | mistralrs-server-core/src/responses_types/content.rs:506-563 | mistralrs-server-core/src/responses_types/items.rs:181-368 | mistralrs-server-core/src/responses_types/items.rs:482-771 \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":"mistralrs-server-core/src/responses_types/content.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"100615d2d92b92b655d1267717c76659ce94753ab3c2e3a830d164c5d7899ad2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (189 corresponding lines): mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:187-376 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:344-532 \u2014 These two members are one piece of code written twice and then edited apart: 189 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":"mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7072d6d1555c3e7b17baae84445788c089d2619ced33d635a81f9a7c819f038"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (232 corresponding lines): mistralrs-core/src/models/granite.rs:1947-2178 | mistralrs-core/src/models/qwen3_next.rs:729-962 \u2014 These two members are one piece of code written twice and then edited apart: 232 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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":1947}}}],"partialFingerprints":{"codehealthFindingId/v1":"289504b9b6dd727e73d8fda3028183a9a7cb985ebdad41982b7aaea651fb838f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (126 corresponding lines): mistralrs-core/src/attention/backends/metal_flash_attn.rs:17-142 | mistralrs-core/src/attention/backends/metal_flash_attn.rs:152-284 \u2014 These two members are one piece of code written twice and then edited apart: 126 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":"mistralrs-core/src/attention/backends/metal_flash_attn.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf2b8ba4943ef776426d0a858983cf3a3b235f3997f79462c88f6d2c5f51793c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (96 corresponding lines): mistralrs-quant/src/rotary/mod.rs:575-670 | mistralrs-quant/src/rotary/mod.rs:680-802 \u2014 These two members are one piece of code written twice and then edited apart: 96 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":"mistralrs-quant/src/rotary/mod.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"667cd06d7a2ae36fc124e42f88d1fc7dcc709f833582ec570bb408683a66e0c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (98 corresponding lines): mistralrs-paged-attn/src/metal/kernels/mod.rs:521-618 | mistralrs-paged-attn/src/metal/kernels/mod.rs:658-784 \u2014 These two members are one piece of code written twice and then edited apart: 98 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":"mistralrs-paged-attn/src/metal/kernels/mod.rs"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"41126b777f75da9f70dd6c15fc5791cd114f6b74d1dead685f57d40092273110"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (124 corresponding lines): mistralrs-core/src/models/llama.rs:345-468 | mistralrs-core/src/models/smollm3.rs:361-491 \u2014 These two members are one piece of code written twice and then edited apart: 124 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":"mistralrs-core/src/models/llama.rs"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d0ce52d8f6b10e9f734ca8cbc711e2731fff0558fac5083cfef14b57610d197"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (83 corresponding lines): releases/v0.9.5/scripts/plot_results.py:61-143 | releases/v0.9.5/scripts/plot_results.py:147-255 \u2014 These two members are one piece of code written twice and then edited apart: 83 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":"releases/v0.9.5/scripts/plot_results.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ce4598517ac4bedfc0d2036ab023d1eef00ad328ef779b23cf2631f21c3560"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 80\u002B corresponding lines): mistralrs-core/src/vision_models/idefics2/mod.rs:327-406 | mistralrs-core/src/vision_models/idefics3/vision.rs:139-218 | mistralrs-core/src/vision_models/siglip.rs:135-222 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 80 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba1cc95d50aaba8c7db2657f6c6e28f7a016281ba9f2e0b49dfb5a81c89b478"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (125 corresponding lines): mistralrs-core/src/pipeline/multimodal.rs:2937-3062 | mistralrs-core/src/pipeline/normal.rs:2544-2668 \u2014 These two members are one piece of code written twice and then edited apart: 125 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2937}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c91287470bd588046f3e53e42ec2a04ef3155729bc01f468b285532c64723e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 101\u002B corresponding lines): mistralrs-core/src/cuda/gdn.rs:938-1046 | mistralrs-core/src/cuda/gdn.rs:1058-1158 | mistralrs-core/src/cuda/gdn.rs:1170-1292 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 101 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"6351169945454b3756f55c93604b56ce58a141fdb420fcf9693ee6836be6e964"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (113 corresponding lines): mistralrs-quant/src/utils/ops.rs:1591-1714 | mistralrs-quant/src/utils/ops.rs:1733-1845 \u2014 These two members are one piece of code written twice and then edited apart: 113 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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":1591}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed1db33ecd35e9208e27d6b29cc89e8a7ab059edf2063875fca37fe3583fd742"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 92\u002B corresponding lines): mistralrs-core/src/models/llama.rs:612-703 | mistralrs-core/src/models/smollm3.rs:631-722 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:625-719 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 92 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/llama.rs"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9bc8699995d3071e588e6a70d2125918d5b38b9ff0f3dc6faae74b5fbad962"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (74 corresponding lines): mistralrs-core/src/lora/loralinear.rs:174-247 | mistralrs-core/src/lora/qloralinear.rs:219-296 \u2014 These two members are one piece of code written twice and then edited apart: 74 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":"mistralrs-core/src/lora/loralinear.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"64aa71beac42bac9e7cc1a7337c7ea43b697c9e4ce0bbf172578ebf524654313"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (94 corresponding lines): mistralrs-core/src/kv_cache/mod.rs:1393-1486 | mistralrs-core/src/kv_cache/mod.rs:1494-1594 \u2014 These two members are one piece of code written twice and then edited apart: 94 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":"mistralrs-core/src/kv_cache/mod.rs"},"region":{"startLine":1393}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b61f1b9ff783bc789c622780b9e41023c4675435e3d3d21d1b2419546219772"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (70 corresponding lines): mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:97-166 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:120-189 \u2014 These two members are one piece of code written twice and then edited apart: 70 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":"mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"b38bd8621dc45cbebe9425f81e5af10a2747553cc8cb8b20c3b332ca7d4dfb74"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (94 corresponding lines): mistralrs-mcp/src/client.rs:420-513 | mistralrs-mcp/src/client.rs:568-668 \u2014 These two members are one piece of code written twice and then edited apart: 94 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":"mistralrs-mcp/src/client.rs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"76cfd5fc6b6236e66968d9eba5b26fc61fa281a8077902767b29cdcfe7ea9a50"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): mistralrs-quant/src/gguf/fast_mmvq.rs:242-278 | mistralrs-quant/src/gguf/fast_mmvq.rs:284-320 \u2014 These two members are one piece of code written twice and then edited apart: 37 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":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe99878f415fd86187108be6f4e57d733a6a78a4f1315b64abca31d9fe542fe8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (79 corresponding lines): mistralrs-core/src/vision_models/gemma3n/audio.rs:432-538 | mistralrs-core/src/vision_models/gemma4/audio.rs:527-605 \u2014 These two members are one piece of code written twice and then edited apart: 79 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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"58a8f4d234d29143246315708d77c0db196291988f426e498367bae72593b92a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (92 corresponding lines): mistralrs-core/src/vision_models/qwen3_5/config.rs:266-357 | mistralrs-core/src/vision_models/qwen3_5_moe/config.rs:71-172 \u2014 These two members are one piece of code written twice and then edited apart: 92 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":"mistralrs-core/src/vision_models/qwen3_5/config.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"898bd587f9a67ff2f45e7678e2fc55c7b2b6919827ddceffbfe4e44b486108bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (55 corresponding lines): mistralrs-core/src/layers.rs:912-975 | mistralrs-core/src/layers.rs:2245-2299 \u2014 These two members are one piece of code written twice and then edited apart: 55 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":"mistralrs-core/src/layers.rs"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bcbeb943b9a8be1d2caa9ade1dd4dc54aa92eea64d8dc80ed1b91d94871dcb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): mistralrs-core/src/models/deepseek2.rs:1021-1074 | mistralrs-core/src/models/deepseek3.rs:1085-1139 \u2014 These two members are one piece of code written twice and then edited apart: 54 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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb67bdecae8489af5d33ee10c044f43b9479bf97903a115d3180ab448f46c9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (78 corresponding lines): mistralrs-core/src/moe/experts/backends.rs:872-949 | mistralrs-core/src/moe/experts/backends.rs:951-1037 \u2014 These two members are one piece of code written twice and then edited apart: 78 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":"mistralrs-core/src/moe/experts/backends.rs"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7f635c99dba5615a74edc315e10bea025912bfc53660339fb9d3ce3b4150829"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (82 corresponding lines): mistralrs-core/src/pipeline/multimodal.rs:3432-3513 | mistralrs-core/src/pipeline/normal.rs:2860-2949 \u2014 These two members are one piece of code written twice and then edited apart: 82 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":3432}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ffd8fc98db722cb0c3d8985fc5cfe3d66ac8f209e7a529fe30273dbe0f935cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): mistralrs-core/src/vision_models/idefics2/mod.rs:455-507 | mistralrs-core/src/vision_models/idefics2/mod.rs:806-862 \u2014 These two members are one piece of code written twice and then edited apart: 53 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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"b96a18471ebf63995f0114e684f7fbff27ebddfa3961593c5a9037c539f0d1b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (79 corresponding lines): mistralrs-quant/src/utils/ops.rs:855-937 | mistralrs-quant/src/utils/ops.rs:962-1040 \u2014 These two members are one piece of code written twice and then edited apart: 79 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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"50878125b5ccc059c1060eeebfa8cfdf5c027143dfabcda797ff34c544fb8694"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): mistralrs-quant/src/lib.rs:2631-2690 | mistralrs-quant/src/lib.rs:2697-2757 \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":"mistralrs-quant/src/lib.rs"},"region":{"startLine":2631}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b75e9cb7f62ba4218900b33ca5de01f62bc154f9e1d635a1b26d4a3bd3df51f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (55 corresponding lines): mistralrs-quant/src/cutile/fused_moe.rs:924-978 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:1121-1180 \u2014 These two members are one piece of code written twice and then edited apart: 55 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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce1b8a9da671321130d09f2f1bff3768739dffaaf59e753080a15f138c4eee2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): mistralrs-quant/src/gguf/cuda.rs:1243-1294 | mistralrs-quant/src/gguf/cuda.rs:1308-1354 \u2014 These two members are one piece of code written twice and then edited apart: 47 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":"mistralrs-quant/src/gguf/cuda.rs"},"region":{"startLine":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f6ac90b368dad2126315c301ffc9083325593156e998427d202c88c57a3106"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (65 corresponding lines): mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:207-271 | mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:104-186 \u2014 These two members are one piece of code written twice and then edited apart: 65 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":"mistralrs-core/src/vision_models/idefics3/inputs_processor.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"f70dc7f5e98cc53f1a704941c99d8a560a5846088a80fd03bae30f3493653104"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 51\u002B corresponding lines): mistralrs-pyo3/src/util.rs:201-251 | mistralrs-pyo3/src/util.rs:255-305 | mistralrs-pyo3/src/util.rs:315-375 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 51 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-pyo3/src/util.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fde2d8274a8b9bd6718b91072601509ffbe4e748b9e1923d6be4e561681a3b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (68 corresponding lines): mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:801-882 | mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs:733-800 \u2014 These two members are one piece of code written twice and then edited apart: 68 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":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"a28e76561ae32d299ba4f22634267d8263fe8ac049c41f2d90273715a5ba7c54"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): mistralrs-core/src/vision_models/gemma3/text.rs:777-836 | mistralrs-core/src/vision_models/gemma4/text.rs:2449-2496 \u2014 These two members are one piece of code written twice and then edited apart: 48 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":"mistralrs-core/src/vision_models/gemma3/text.rs"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"9223ec9a30eb115bbf42b60e34c2601645ca719601d082a920b8548738d3526b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:645-704 | mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:663-734 \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":"mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da94f53649c89ba529266072e6539a3fd08e7dc1cad63a0be65933716c5a044"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): mistralrs-quant/src/gguf/fast_mmq.rs:433-488 | mistralrs-quant/src/gguf/fast_mmq.rs:516-566 \u2014 These two members are one piece of code written twice and then edited apart: 51 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":"mistralrs-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dbcf497ca4d83fe99245fb66c2aeed3ad806cc7436506d79f0fa5052f200245"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (64 corresponding lines): mistralrs-quant/src/scalar_fp8/ops.rs:59-126 | mistralrs-quant/src/scalar_fp8/ops.rs:222-285 \u2014 These two members are one piece of code written twice and then edited apart: 64 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":"mistralrs-quant/src/scalar_fp8/ops.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bfce9af7ecc5ab0d65559cd37b3930e36501a6a51523435c4e4cc9f62fc475d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (61 corresponding lines): mistralrs-pyo3/src/lib.rs:1984-2044 | mistralrs-pyo3/src/lib.rs:2056-2120 \u2014 These two members are one piece of code written twice and then edited apart: 61 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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":1984}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc3767353e6e4d0d2114f00f880bac3212b5900782af584db12552fa7b3bf3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): mistralrs-core/src/vision_models/grid_processor.rs:783-831 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:481-554 \u2014 These two members are one piece of code written twice and then edited apart: 49 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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"87799f666a97292a97ea0e508c877714c5b63ab34b381a91608da729208cd6f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 66\u002B corresponding lines): mistralrs-core/src/models/lfm2.rs:407-472 | mistralrs-core/src/models/lfm3.rs:394-476 | mistralrs-core/src/models/phi2.rs:171-245 | mistralrs-core/src/models/qwen3_next.rs:194-263 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:99-178 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 66 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"11103f18a13c4573cda7731c63d1c94a9b679e7c6053132cc50073691122f67f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): mistralrs-quant/src/distributed/layers.rs:1082-1141 | mistralrs-quant/src/distributed/layers.rs:1495-1557 \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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"be03701f1e9f387220d959efadc1a38b445930b832555df408eee94fe76995d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): mistralrs-core/src/embedding_models/embedding_gemma.rs:207-251 | mistralrs-core/src/embedding_models/qwen3_embedding.rs:180-215 \u2014 These two members are one piece of code written twice and then edited apart: 36 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":"mistralrs-core/src/embedding_models/embedding_gemma.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"05db8bb46b412003287138c977588b9687f68535deb7d48b2741f7c79f764782"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): mistralrs-core/src/models/gemma2.rs:538-596 | mistralrs-core/src/models/qwen2.rs:572-617 \u2014 These two members are one piece of code written twice and then edited apart: 46 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":"mistralrs-core/src/models/gemma2.rs"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9ba44648728661486ce23bc9145ba28086b7b7d91cb87d4ebff01cecf0105b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): mistralrs-core/src/vision_models/gemma3n/audio_processing.rs:263-311 | mistralrs-core/src/vision_models/gemma4/audio_processing.rs:384-417 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"mistralrs-core/src/vision_models/gemma3n/audio_processing.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e78e0d92f139d1b62574470623e2b560178881b557106ee1ea298ae7511c66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): mistralrs-core/src/diffusion_models/clip/text.rs:124-166 | mistralrs-core/src/vision_models/clip.rs:161-197 \u2014 These two members are one piece of code written twice and then edited apart: 37 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":"mistralrs-core/src/diffusion_models/clip/text.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd8f46bc433c27ddaf55eea92564e825c61dc4ed8df5353ed83ce939fd4a5eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 63\u002B corresponding lines): mistralrs-core/src/xlora_models/gemma2.rs:148-223 | mistralrs-core/src/xlora_models/llama.rs:129-191 | mistralrs-core/src/xlora_models/phi2.rs:134-204 | mistralrs-core/src/xlora_models/starcoder2.rs:127-196 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 63 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/xlora_models/gemma2.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3c03648ddb317a8433f12b7990bd4d194ed18b0963a88a30817da8202c4f1f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): mistralrs-core/src/layers.rs:1643-1679 | mistralrs-core/src/layers.rs:1954-1990 \u2014 These two members are one piece of code written twice and then edited apart: 37 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":"mistralrs-core/src/layers.rs"},"region":{"startLine":1643}}}],"partialFingerprints":{"codehealthFindingId/v1":"a502a5ea8b0b974fb24c29f2377bdf5bcb176268ed2518c34dc0547d09d22346"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (67 corresponding lines): mistralrs-core/src/models/mistral.rs:130-197 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:150-216 \u2014 These two members are one piece of code written twice and then edited apart: 67 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":"mistralrs-core/src/models/mistral.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab41b5793ce108a870bc5dddeda8f917fed7c1607a9daca1c609c713c7d7bdc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): mistralrs-core/src/diffusion_models/t5/mod.rs:495-532 | mistralrs-core/src/diffusion_models/t5/mod.rs:569-606 \u2014 These two members are one piece of code written twice and then edited apart: 38 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":"mistralrs-core/src/diffusion_models/t5/mod.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"18aa17f3f14973261441d145eab054d8a3f0c14a8c3fcb6f552062a5d8f1b6c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): mistralrs-core/src/ops.rs:885-924 | mistralrs-core/src/ops.rs:969-1006 \u2014 These two members are one piece of code written twice and then edited apart: 38 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":"mistralrs-core/src/ops.rs"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"6baf657f5ca734c11414523f777f50671942dab2f188441f8cc35ccb47461905"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 45\u002B corresponding lines): mistralrs-core/src/models/qwen3_next.rs:1135-1182 | mistralrs-core/src/vision_models/qwen3_5/text.rs:1741-1785 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:965-1011 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 45 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":1135}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f3ebf8cc99f6702e556e78722af53cb261ced9fd90d560dbae69252c163544c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 67\u002B corresponding lines): mistralrs-core/src/models/qwen2.rs:164-230 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:121-187 | mistralrs-core/src/vision_models/qwen2vl/text.rs:122-188 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 67 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/qwen2.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"74d8fd96bc2952104a9de46c9c8d74faa2251dccc5cc3a2d1c49996e6e51189c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9877-9935 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:10966-11015 \u2014 These two members are one piece of code written twice and then edited apart: 50 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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":9877}}}],"partialFingerprints":{"codehealthFindingId/v1":"1900e865ae855ef7596e025265e78e8a0e92a9cd4fe4c2c3cd8d6fc7571eab72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): mistralrs-core/src/flashinfer/metadata.rs:105-167 | mistralrs-core/src/speculative/paged_rows.rs:272-317 \u2014 These two members are one piece of code written twice and then edited apart: 46 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":"mistralrs-core/src/flashinfer/metadata.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca9b5bf8a4fd2a01d4a08789cf40e44c609289e405c89a195fdff4070e74253"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:235-280 | mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:500-545 \u2014 These two members are one piece of code written twice and then edited apart: 46 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":"mistralrs-core/src/vision_models/gemma4/inputs_processor.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c98e3f61286775cab02c82b7c7b1b99bdc64f31b10dbeddd44917f7dcda325b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 38\u002B corresponding lines): mistralrs-core/src/pipeline/cuda_graph.rs:3598-3635 | mistralrs-core/src/pipeline/cuda_graph.rs:3643-3680 | mistralrs-core/src/pipeline/cuda_graph.rs:3688-3725 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 38 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":3598}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0a5b5ba300a2ea94240ab92f3e4048871a403b852f628121629871eb5bce354"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): mistralrs/src/model_builder_trait.rs:1249-1306 | mistralrs/src/model_builder_trait.rs:1312-1373 \u2014 These two members are one piece of code written twice and then edited apart: 58 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":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":1249}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0b24b7cb2e035ac62b46755bfc374ead9eb505019d68660338aebca8eb1c0a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): mistralrs-quant/src/cutile/fused_moe.rs:982-1031 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:1056-1115 \u2014 These two members are one piece of code written twice and then edited apart: 50 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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c79689adcfd887159dfa02128f441cc4c4bbb9f322e81f541a47c58eb805d72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): mistralrs/src/gguf_lora_model.rs:32-80 | mistralrs/src/gguf_xlora_model.rs:40-90 \u2014 These two members are one piece of code written twice and then edited apart: 49 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":"mistralrs/src/gguf_lora_model.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc434fc2edb56c0ea74b4441a6021843489f82db7da39324f9dc69f2d113fed1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): mistralrs-core/src/metal/gdn.rs:47-82 | mistralrs-core/src/metal/ssm.rs:37-72 \u2014 These two members are one piece of code written twice and then edited apart: 36 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":"mistralrs-core/src/metal/gdn.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf754ae470da3d0e6877776ba5dc694697c03a32d73a8c7b529d6c8f9b25184"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (68 corresponding lines): mistralrs-core/src/models/phi3_5_moe.rs:102-169 | mistralrs-core/src/vision_models/muse_glimmer/text.rs:144-219 \u2014 These two members are one piece of code written twice and then edited apart: 68 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":"mistralrs-core/src/models/phi3_5_moe.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"26403e40805b998d376e121feaf0798d2e66dd403d1718089f2ad713140ba472"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): mistralrs-core/src/speech_models/dia/audio.rs:23-59 | mistralrs-core/src/speech_models/dia/audio.rs:130-163 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"mistralrs-core/src/speech_models/dia/audio.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b9852c508d526c56ebf18ab66e7da79c300ecbb8acfdca466b8abbedf80cf8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): mistralrs-core/src/vision_models/llava/llava15.rs:182-231 | mistralrs-core/src/vision_models/llava/llava_next.rs:142-195 \u2014 These two members are one piece of code written twice and then edited apart: 50 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":"mistralrs-core/src/vision_models/llava/llava15.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"6437f9a25948a29a12f6ccfffc0515c97fea5f7f7608fb9be6022888a401ea70"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): mistralrs-quant/src/rotary/mod.rs:16-51 | mistralrs-quant/src/rotary/mod.rs:217-267 \u2014 These two members are one piece of code written twice and then edited apart: 36 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":"mistralrs-quant/src/rotary/mod.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"c302c120dcac7e6202b7759f6eacb95e3899811507526bfa27a212eec4f67bfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): mistralrs-core/src/attention/backends/cpu/avx.rs:33-64 | mistralrs-core/src/attention/backends/cpu/avx.rs:276-323 \u2014 These two members are one piece of code written twice and then edited apart: 32 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":"mistralrs-core/src/attention/backends/cpu/avx.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f59e5131eb10eef915d67c0447fe1bac9a50f77a14d4e397ea5453c511be99c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 53\u002B corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5537-5589 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7336-7398 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5328-5384 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 53 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":5537}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebbd748a1796b8d6bd92afc265a0e4966de3f6d914e8c4b7d3c184fedd3d22d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): mistralrs-core/src/vision_models/llama4/vision.rs:163-211 | mistralrs-core/src/vision_models/mllama/vision.rs:195-230 \u2014 These two members are one piece of code written twice and then edited apart: 36 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":"mistralrs-core/src/vision_models/llama4/vision.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"819f056482200ae68fd6859ac40ef533abd85fc16babfb1a5c35acaedb9e718c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): mistralrs-quant/src/cutile/fused_moe.rs:669-702 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:584-615 \u2014 These two members are one piece of code written twice and then edited apart: 32 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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"d59e04b29727100efa15623468ff18ddf97ee7bd421f848eedf6dd8eb8444d2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): mistralrs-core/src/vision_models/qwen3_vl/text.rs:516-548 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:637-669 \u2014 These two members are one piece of code written twice and then edited apart: 33 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":"mistralrs-core/src/vision_models/qwen3_vl/text.rs"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3657b0f2ce5578d44963257e93cd17bdfc0f4b3767666d4c5a3e7be9b59362"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 41\u002B corresponding lines): mistralrs-quant/src/metal_kernels/mod.rs:4523-4568 | mistralrs-quant/src/metal_kernels/mod.rs:4585-4627 | mistralrs-quant/src/metal_kernels/mod.rs:5186-5226 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 41 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":4523}}}],"partialFingerprints":{"codehealthFindingId/v1":"a25bbcf7acd4303f7db2c8dfa27a89d5924820c786a4e6dc90ccfe273992981b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): mistralrs-core/src/lora/mod.rs:156-196 | mistralrs-core/src/lora/mod.rs:208-248 \u2014 These two members are one piece of code written twice and then edited apart: 41 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":"mistralrs-core/src/lora/mod.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"858807dcdff85b29229e9193025da2fee977d7bcb49fff31d5bb22c6dc3092b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): mistralrs-core/src/models/deepseek2.rs:981-1019 | mistralrs-core/src/models/deepseek3.rs:1044-1083 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"416b82687a385f7e079efad6386e4d2469557346a4cf9892f5638c9b2ba2b1cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 34\u002B corresponding lines): mistralrs-quant/src/moe/cuda.rs:222-255 | mistralrs-quant/src/moe/cuda.rs:258-291 | mistralrs-quant/src/moe/cuda.rs:298-332 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 34 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/moe/cuda.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"7565f586ecbb1f17bd81871507cacf35f77c90c590707b2147332b43d6b0ba07"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): mistralrs-core/src/vision_models/qwen3_5/speculative.rs:598-641 | mistralrs-core/src/vision_models/qwen4_exp/speculative.rs:102-142 \u2014 These two members are one piece of code written twice and then edited apart: 41 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":"mistralrs-core/src/vision_models/qwen3_5/speculative.rs"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"fecc01c0beb1bf65e68f1e87a9c78b1de0af004d59d0c83ba5355946d8dd7126"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): mistralrs-core/src/pipeline/loaders/lfm3.rs:196-234 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:7105-7152 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"mistralrs-core/src/pipeline/loaders/lfm3.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"686dcec703b5198701bec4eebecd4130e140099f4adbcc39b68221b5566af320"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): mistralrs-core/src/vision_models/gemma3n/text.rs:1688-1741 | mistralrs-core/src/vision_models/gemma4/text.rs:2019-2070 \u2014 These two members are one piece of code written twice and then edited apart: 52 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":"mistralrs-core/src/vision_models/gemma3n/text.rs"},"region":{"startLine":1688}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce6a632fcb53868c3e9177cc283ffda85a7ddac8a434f5b62373534216562f2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:528-557 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:537-569 \u2014 These two members are one piece of code written twice and then edited apart: 30 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":"mistralrs-core/src/vision_models/llava/llava_llm/llama.rs"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"2224d1df3319fb5bbf7eaeef722fa7127532663a535097b15ceb1cf4c9820a65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): mistralrs-core/src/vision_models/gemma3n/mod.rs:205-250 | mistralrs-core/src/vision_models/gemma3n/mod.rs:297-331 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"mistralrs-core/src/vision_models/gemma3n/mod.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"35609935b5ec21d48145d060269aa74f7deb648a5a6151acd48de6538e0f65f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): mistralrs-server-core/src/image_generation.rs:56-109 | mistralrs-server-core/src/speech_generation.rs:190-239 \u2014 These two members are one piece of code written twice and then edited apart: 50 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":"mistralrs-server-core/src/image_generation.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc8e09c5a3260e95ec19485060c5d082866012f5b02a286e46330ac647df5e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): mistralrs-quant/src/gguf/cuda.rs:84-112 | mistralrs-quant/src/gguf/cuda.rs:151-178 \u2014 These two members are one piece of code written twice and then edited apart: 28 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":"mistralrs-quant/src/gguf/cuda.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"435267fca7fd4b9ebac3dd80edd67825c4065599a8b677888cf55cf7ce63ed10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7595-7634 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8111-8156 \u2014 These two members are one piece of code written twice and then edited apart: 40 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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":7595}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b5b0d6e3c7d71f3fa6357b6289fe7e503f541d8d536c65a998f4e66a9ddba3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 30\u002B corresponding lines): mistralrs-core/src/pipeline/embedding.rs:177-206 | mistralrs-core/src/pipeline/multimodal.rs:487-523 | mistralrs-core/src/pipeline/normal.rs:621-656 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 30 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"463735d094e519b18abde85cfb97dcacaa3cb3af827647b6228d257ebd9f5248"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): mistralrs-core/src/models/lfm2.rs:1309-1341 | mistralrs-core/src/models/lfm3.rs:1323-1356 \u2014 These two members are one piece of code written twice and then edited apart: 33 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":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":1309}}}],"partialFingerprints":{"codehealthFindingId/v1":"db9df0dbd2f497f001fc8b409188e2370abdba607a00e300755dde5957593fa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): mistralrs-core/src/models/flint.rs:981-1017 | mistralrs-core/src/models/hunyuan_v1_moe.rs:1067-1092 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a10b5b84686a2bc0662be60873f4071aa13682b5ab22cc0d6377186e95c47bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4945-4986 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4992-5030 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":4945}}}],"partialFingerprints":{"codehealthFindingId/v1":"1214bd8c6f2224458ca02e609ef381a7331656181b24275f32de8fd8a994fb38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): mistralrs-core/src/cuda/speculative_rejection.rs:831-859 | mistralrs-core/src/cuda/speculative_rejection.rs:866-895 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"mistralrs-core/src/cuda/speculative_rejection.rs"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec076c21a4c758cf79f15eacba8819b83cb2b2cbc7cf92e5bdc2b75cbafff5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): mistralrs-pyo3/src/util.rs:148-168 | mistralrs-pyo3/src/util.rs:170-190 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"mistralrs-pyo3/src/util.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"1329468dc05b959b1873a6f8f77f86b9599496523a16955cd017bdd0911a364e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): mistralrs-core/src/gguf/normal_registry.rs:83-117 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:386-418 \u2014 These two members are one piece of code written twice and then edited apart: 33 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":"mistralrs-core/src/gguf/normal_registry.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb1da71cf5e531e6dc3b0d9f27b832578e50ef4e584eaadee19d9eafed6361b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 40\u002B corresponding lines): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:526-565 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4719-4764 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1026-1065 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2406-2445 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 40 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/embedding_loaders.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"8523c456b2b0a0c7971f7fe065b58bd7d3592e97aa816e6f941a523184fee0e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): mistralrs-core/src/sampler.rs:865-901 | mistralrs-core/src/sampler.rs:910-952 \u2014 These two members are one piece of code written twice and then edited apart: 37 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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"d652f8e8eb9729c8709c06854ff51f4f984005eed0b9db8e383efe4913fae72f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 44\u002B corresponding lines): mistralrs-core/src/models/flint.rs:687-730 | mistralrs-core/src/models/qwen3_moe.rs:466-512 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:412-461 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 44 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"7105f156dc03453913d3dfd739ae4b8486574fb7e322a71b27f76909b50149f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 33\u002B corresponding lines): mistralrs-core/src/vision_models/idefics3/vision.rs:271-303 | mistralrs-core/src/vision_models/lfm2_vl/vision.rs:205-237 | mistralrs-core/src/vision_models/siglip.rs:269-314 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 33 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/idefics3/vision.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb60058df81e44d9f6a3a062c129cce6491f6bf7a039759e44b9068ae429545b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): mistralrs-quant/src/mxfp8/cuda.rs:84-117 | mistralrs-quant/src/mxfp8/cuda.rs:169-206 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"mistralrs-quant/src/mxfp8/cuda.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd5bbe97d2e7901d23936e7d98a336017a23bc1078831dc01a63c90f87876d3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): mistralrs-core/src/attention/backends/cpu/neon.rs:306-356 | mistralrs-core/src/attention/backends/cpu/neon.rs:550-596 \u2014 These two members are one piece of code written twice and then edited apart: 47 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":"mistralrs-core/src/attention/backends/cpu/neon.rs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c9e51f65b61403112932382df83e179c65e1176fbc3ef0cddfdf7a7aab1da96"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): mistralrs-core/src/sampler.rs:1393-1440 | mistralrs-core/src/sampler.rs:1603-1646 \u2014 These two members are one piece of code written twice and then edited apart: 44 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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":1393}}}],"partialFingerprints":{"codehealthFindingId/v1":"9338ac7f6b25c4870357e0693229ea1b24fd6f1e774eb788d429f55a927949c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:728-767 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3769-3808 \u2014 These two members are one piece of code written twice and then edited apart: 40 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":"mistralrs-core/src/pipeline/loaders/embedding_loaders.rs"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f71b0cd853942c4d40004293808fc376172f17eac17b4d6b0bf0cb819391fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): mistralrs-core/src/tools/parsers/deepseek.rs:56-101 | mistralrs-core/src/tools/parsers/harmony.rs:12-53 \u2014 These two members are one piece of code written twice and then edited apart: 42 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":"mistralrs-core/src/tools/parsers/deepseek.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"914817b24f123be53e6c140abd79866e9e1433bdfd46d9a4acbe4bc099833d14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): mistralrs-core/src/vision_models/voxtral/encoder.rs:36-71 | mistralrs-core/src/vision_models/voxtral/mod.rs:63-117 \u2014 These two members are one piece of code written twice and then edited apart: 36 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":"mistralrs-core/src/vision_models/voxtral/encoder.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7bf2ae9568358329dabcdb49ee1f8ec58204f4f8d8d5160563c15874c8e597c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): mistralrs-quant/src/distributed/mod.rs:401-431 | mistralrs-quant/src/distributed/mod.rs:466-492 \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":"mistralrs-quant/src/distributed/mod.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"289fa735273dd0b403a51997bbc96dc90af461a7fbce2dfd4019c0dfdcbe3561"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): mistralrs-core/src/cuda/qwen4_exp.rs:438-465 | mistralrs-core/src/cuda/qwen4_exp.rs:479-505 \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":"mistralrs-core/src/cuda/qwen4_exp.rs"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9955eeadcd1f04b4318ac3a4d2363bf2b1bb091cd3b558567206a4017fc44c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): mistralrs-core/src/vision_models/gemma3n/audio.rs:1202-1232 | mistralrs-core/src/vision_models/gemma4/audio.rs:963-983 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"decb604823a18e53a1598f6d41477475db988c0ae764b5c0816aa66d9e326c65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): mistralrs-quant/src/lora/dynamic/loader/expert.rs:311-339 | mistralrs-quant/src/lora/dynamic/loader/expert.rs:341-367 \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":"mistralrs-quant/src/lora/dynamic/loader/expert.rs"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"e59b276b14f330617c94931d8d7a5b9bbd2a03bf82b42705314035fb2eb61a97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): mistralrs-core/src/layers.rs:2364-2387 | mistralrs-core/src/layers.rs:2462-2485 | mistralrs-core/src/layers.rs:2509-2532 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/layers.rs"},"region":{"startLine":2364}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee14e3b7d39cd6fe6fe3ca178ebb4651d2175f1b2e6a89edf1ba648e2cea9484"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): mistralrs-core/src/vision_models/idefics2/mod.rs:653-684 | mistralrs-core/src/vision_models/siglip.rs:484-522 \u2014 These two members are one piece of code written twice and then edited apart: 32 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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1315b358c8191530aeaa9f0338ece7b2099dbb6ea8990fe364fe6626bdb64d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 44\u002B corresponding lines): mistralrs-server-core/src/embeddings.rs:257-300 | mistralrs-server-core/src/embeddings.rs:307-350 | mistralrs/src/model.rs:656-713 | mistralrs/src/model.rs:737-793 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 44 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/embeddings.rs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4756814e7c6b7226665882a85a504ca1961fb05ccc0476e05fff8b9c5b681ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): mistralrs-quant/src/cutile/fp8_w8a16.rs:294-327 | mistralrs-quant/src/cutile/fp8_w8a8.rs:293-320 \u2014 These two members are one piece of code written twice and then edited apart: 28 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":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba6dc889182b22f2491ef54ba06871a861e3dd6c22b4bcf737dd66f4e4139c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): mistralrs/src/lora_model.rs:60-93 | mistralrs/src/xlora_model.rs:40-78 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"mistralrs/src/lora_model.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"26156f09d504e2b67af6719bc3d6786c0bf192b68d3deeaf79bab0b47c7b4b0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): mistralrs-core/src/vision_models/gemma3n/mod.rs:59-89 | mistralrs-core/src/vision_models/gemma3n/mod.rs:180-198 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"mistralrs-core/src/vision_models/gemma3n/mod.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"27008deb16e7112c8cfae476c385dd2c987d5cf50d145499943fb6095cdbe179"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): mistralrs-quant/src/afq/mod.rs:589-623 | mistralrs-quant/src/afq/mod.rs:632-672 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"mistralrs-quant/src/afq/mod.rs"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ca655ce09a89847540ee8628d26b061a2407e008048e86e33e4662a8708038"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): mistralrs-core/src/tools/parsers/atem.rs:286-314 | mistralrs-core/src/tools/parsers/atem.rs:334-363 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"mistralrs-core/src/tools/parsers/atem.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31286307675e6b6c3bd7599f9847114fe6ec9cd1f2e8d021cc2d49378dbf4d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): mistralrs-core/src/vision_models/llama4/vision.rs:116-161 | mistralrs-core/src/vision_models/mllama/vision.rs:147-192 \u2014 These two members are one piece of code written twice and then edited apart: 46 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":"mistralrs-core/src/vision_models/llama4/vision.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a207c92d11318b928625d85bde987531e49de0cfac7b9a6d15ca6fc6b93020"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): mistralrs-quant/src/lora/dynamic/registry.rs:328-367 | mistralrs-quant/src/lora/dynamic/registry.rs:375-415 \u2014 These two members are one piece of code written twice and then edited apart: 40 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":"mistralrs-quant/src/lora/dynamic/registry.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"330e9c1d5a706894b0d510603f560ac80cf34ed62dd454a343c9dddbae426934"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): mistralrs-paged-attn/src/metal/kernels/mod.rs:97-131 | mistralrs-quant/src/metal_kernels/mod.rs:94-129 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"mistralrs-paged-attn/src/metal/kernels/mod.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a7f8331cc2916b66b86dea188300e4379d537de7f69b8eb2e8868a205cb5224"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): mistralrs-core/src/gguf/normal_config.rs:1220-1252 | mistralrs-core/src/gguf/normal_config.rs:1324-1363 \u2014 These two members are one piece of code written twice and then edited apart: 33 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":"mistralrs-core/src/gguf/normal_config.rs"},"region":{"startLine":1220}}}],"partialFingerprints":{"codehealthFindingId/v1":"33dba012788a704ee80c6110a7b06f3546be51617a8e989076ff53988c66e253"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1724-1754 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2630-2663 \u2014 These two members are one piece of code written twice and then edited apart: 31 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":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":1724}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c48b0d3b976efa9c8e76777915f29b5487be77650b5eab152d1db7c959458ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 39\u002B corresponding lines): mistralrs-core/src/xlora_models/gemma.rs:56-98 | mistralrs-core/src/xlora_models/gemma2.rs:50-92 | mistralrs-core/src/xlora_models/llama.rs:240-278 | mistralrs-core/src/xlora_models/mistral.rs:52-91 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 39 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7c4eae5183d7081df9606450aea9445f28c8a87c992169eea46d54c9bdce420"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): mistralrs-core/src/attention/backends/cpu/neon.rs:366-391 | mistralrs-core/src/attention/backends/cpu/neon.rs:605-630 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"mistralrs-core/src/attention/backends/cpu/neon.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5544d7523dd8c86101ac7250e9f1224d29eb22e3f1003bca76af3aad14de8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6894-6934 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3981-4021 \u2014 These two members are one piece of code written twice and then edited apart: 41 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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":6894}}}],"partialFingerprints":{"codehealthFindingId/v1":"052bc6687a3278df3832eb25f3d71587d1dc431bee8f010139ab4fc4131956dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): mistralrs-vision/src/pad.rs:26-69 | mistralrs-vision/src/pad.rs:71-109 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"mistralrs-vision/src/pad.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0ab2cbc48ced9c55259b734c2927be353dcdb0e6ab3a7de39fabc80063ffa95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): mistralrs-core/src/models/glm4.rs:75-95 | mistralrs-core/src/models/glm4_moe.rs:104-122 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"bade5220f9a82198abb43fef40a10002a92cedf17963e3a50ac79d45d69d7c93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): mistralrs-quant/src/scalar_fp8/ops.rs:133-163 | mistralrs-quant/src/scalar_fp8/ops.rs:292-322 \u2014 These two members are one piece of code written twice and then edited apart: 31 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":"mistralrs-quant/src/scalar_fp8/ops.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"023235d34adbef0ca0d2c5c47c415d4a6aa4eb27c8adf77e9c0a3c5e0c423fdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): mistralrs-core/src/models/glm4.rs:319-369 | mistralrs-core/src/models/hunyuan_v1_dense.rs:293-329 \u2014 These two members are one piece of code written twice and then edited apart: 37 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":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"96e1c70b23fa7df22d92a2ac17a1f1ba7299f6f4a6330e1fdaee37dd541e93d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): mistralrs-core/src/layers.rs:877-900 | mistralrs-core/src/layers.rs:2039-2058 | mistralrs-core/src/layers.rs:2213-2236 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/layers.rs"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d6c1e51fca589bd268f7bf7e8adde7cd3c92f2aa8092d7f02ddb26c290cf8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): mistralrs-core/src/pipeline/ggml.rs:538-573 | mistralrs-core/src/pipeline/gguf.rs:1576-1619 \u2014 These two members are one piece of code written twice and then edited apart: 36 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":"mistralrs-core/src/pipeline/ggml.rs"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"5464815ee6569f4898a6f8b50566a5e29c599249a0c7e2daa15eb8781be8caf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): mistralrs-pyo3/src/util.rs:519-556 | mistralrs-server-core/src/video.rs:339-382 \u2014 These two members are one piece of code written twice and then edited apart: 38 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":"mistralrs-pyo3/src/util.rs"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"86109777edf7dcb1835ee550e458f1421f1040ac2e3c80000f8258827679e5fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 35\u002B corresponding lines): mistralrs-quant/src/utils/ops.rs:155-189 | mistralrs-quant/src/utils/ops.rs:755-790 | mistralrs-quant/src/utils/ops.rs:1520-1556 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 35 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"7424bb47c15c8f664cbd1a92dcd4968a7c12330a716ca6499a02866bba1bc2ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): mistralrs-quant/src/blockwise_fp8/deepgemm.rs:203-233 | mistralrs-quant/src/blockwise_fp8/ops.rs:1365-1393 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"mistralrs-quant/src/blockwise_fp8/deepgemm.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff7edeba0206870e28a01441535c11653ec9826688a12dba90b074fb27a9d5d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): mistralrs-core/src/layers.rs:3657-3710 | mistralrs-core/src/layers.rs:3720-3769 \u2014 These two members are one piece of code written twice and then edited apart: 50 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":"mistralrs-core/src/layers.rs"},"region":{"startLine":3657}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c16c1eb1e9ff8de19d4aeaee1160936df4163bea08bf241cb962ed7f1e8923b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): mistralrs-core/src/pipeline/multimodal.rs:2089-2113 | mistralrs-core/src/pipeline/normal.rs:2381-2410 \u2014 These two members are one piece of code written twice and then edited apart: 25 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2089}}}],"partialFingerprints":{"codehealthFindingId/v1":"2947738e3742416fcc975445e82dbeb85066f31759c6a54975d508f305eaa961"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): mistralrs-core/src/vision_models/idefics2/mod.rs:431-453 | mistralrs-core/src/vision_models/idefics2/mod.rs:776-799 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"1429646cf766dec5199a7d15163ebbe955632c78c39956442fc1a4412c5838a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): mistralrs-core/src/models/qwen3_moe.rs:363-397 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:102-136 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"mistralrs-core/src/models/qwen3_moe.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"08b3a69a3f263f5b845ca5706bd089b7ca254f8bb46b75542147a02e211c1855"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9565-9597 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:10794-10830 \u2014 These two members are one piece of code written twice and then edited apart: 33 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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":9565}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b428277329d420b939a503e82d02fb50335ac9b536e4a4399b126cebdf40ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): mistralrs-quant/src/distributed/mod.rs:973-989 | mistralrs-quant/src/distributed/mod.rs:1095-1109 \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":"mistralrs-quant/src/distributed/mod.rs"},"region":{"startLine":973}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b628f8316acb46fd49e6b6aa51bcc24744b49863867fb4f9e48ce8a57d4d61"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): mistralrs/src/auto_model.rs:97-141 | mistralrs/src/text_model.rs:127-169 \u2014 These two members are one piece of code written twice and then edited apart: 43 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":"mistralrs/src/auto_model.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c6de74b0ab549064e52973abb18e209a8fddd107e0acfce9e3b946d201d0a45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): mistralrs-core/src/layers.rs:3070-3089 | mistralrs-core/src/layers.rs:3203-3222 \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":"mistralrs-core/src/layers.rs"},"region":{"startLine":3070}}}],"partialFingerprints":{"codehealthFindingId/v1":"464c9fd8b686ea1d9b184faa9af5cd73201bcd917fbbbc8556669982314b2efe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:60-89 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:83-112 \u2014 These two members are one piece of code written twice and then edited apart: 30 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":"mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"0176b6685eeab12041b1523db88d7e63ad31b46355840fc2a3c1cfcafa1ab750"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): mistralrs-paged-attn/src/metal/kernels/mod.rs:159-177 | mistralrs-quant/src/metal_kernels/mod.rs:167-188 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"mistralrs-paged-attn/src/metal/kernels/mod.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"0012550aa4714aed98b92dd378e7e7bd0b2a2ec57e17bf2dc2ed5d94e4932c0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): mistralrs-core/src/vision_models/gemma3n/text.rs:1264-1287 | mistralrs-core/src/vision_models/gemma4/text.rs:1577-1604 \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":"mistralrs-core/src/vision_models/gemma3n/text.rs"},"region":{"startLine":1264}}}],"partialFingerprints":{"codehealthFindingId/v1":"329d780d963838a79201144c171c2c3f5e959ba0af5ba27bd2cd6977be6b96b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:610-632 | mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:59-79 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"mistralrs-core/src/vision_models/gemma4/inputs_processor.rs"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"98dd17e671c7b8e2ac424004151c9ba3d3b6079ee602dd897edde80361c44563"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): mistralrs-core/src/cuda/hyper_connection.rs:299-324 | mistralrs-core/src/cuda/hyper_connection.rs:326-354 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"mistralrs-core/src/cuda/hyper_connection.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad265057b36f961063d9f80d2d908ce614e669d0ec7e0f7b6ba2a2d2f9db977"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): mistralrs-core/src/vision_models/llava/llava_llm/mod.rs:38-51 | mistralrs-core/src/xlora_models/quantized_phi3.rs:241-254 \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":"mistralrs-core/src/vision_models/llava/llava_llm/mod.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"013b10bccca3cae27396f3e3a35f36d3b25e58ab423916e30b7c2bb8a30f3260"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): mistralrs-quant/src/utils/ops.rs:2918-2947 | mistralrs-quant/src/utils/ops.rs:3398-3428 \u2014 These two members are one piece of code written twice and then edited apart: 30 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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":2918}}}],"partialFingerprints":{"codehealthFindingId/v1":"b23295b7e259f19cea4be8585205c79e6c0bed64b3904b491057a473080eb572"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): mistralrs-core/src/models/phi3.rs:97-134 | mistralrs-core/src/vision_models/phi3/mod.rs:188-225 \u2014 These two members are one piece of code written twice and then edited apart: 38 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":"mistralrs-core/src/models/phi3.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ca5e509b509a29b0e8db5f9c60962a374f95e39815a73cbdd3dd4f8dcbfc9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 30\u002B corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1135-1164 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3974-4003 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1944-1975 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 30 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1135}}}],"partialFingerprints":{"codehealthFindingId/v1":"703ad03680560ebbe64579ecfaed1e6995b4b430352b2081724ecf8d2c85fbbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 26\u002B corresponding lines): mistralrs-quant/src/metal_kernels/mod.rs:281-306 | mistralrs-quant/src/metal_kernels/mod.rs:320-345 | mistralrs-quant/src/metal_kernels/mod.rs:359-384 | mistralrs-quant/src/metal_kernels/mod.rs:398-423 | mistralrs-quant/src/metal_kernels/mod.rs:437-462 | mistralrs-quant/src/metal_kernels/mod.rs:690-723 | mistralrs-quant/src/metal_kernels/mod.rs:737-770 | mistralrs-quant/src/metal_kernels/mod.rs:784-817 \u2014 These 8 members are one piece of code written 8 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 8 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f0b0b237fdc74093618f3eb0f0ca9c3c595fa1c7344e606a605aa46de66ee0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): mistralrs-core/src/kv_cache/hybrid_cache.rs:179-210 | mistralrs-core/src/kv_cache/hybrid_cache.rs:343-365 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"mistralrs-core/src/kv_cache/hybrid_cache.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e0fa124b33f0d4375765a0f70f3d95bd8e239600a30ceb57944348fe62953f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): mistralrs-core/src/kv_cache/mod.rs:1092-1124 | mistralrs-core/src/kv_cache/mod.rs:1131-1160 \u2014 These two members are one piece of code written twice and then edited apart: 30 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":"mistralrs-core/src/kv_cache/mod.rs"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8408cffea4accd6a82b3df64cde22b7de8bc01d6f07e20835d79c8c62caa75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): mistralrs-core/src/vision_models/llava/llava_next.rs:203-222 | mistralrs-core/src/vision_models/llava/utils.rs:65-81 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"mistralrs-core/src/vision_models/llava/llava_next.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"96951b931a88846aa18e35c21c6ad0b0e756f059630301fbb1bb1a85c3e6f8ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 25\u002B corresponding lines): mistralrs-core/src/models/qwen3.rs:575-599 | mistralrs-core/src/models/qwen3_moe.rs:756-783 | mistralrs-core/src/vision_models/gemma3/text.rs:840-870 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:599-624 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:720-749 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/qwen3.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f5036520333ff5d48925770e42e77fccf0626c12a04fd8fbcfa0c64eed83948"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): mistralrs-core/src/vision_models/qwen2_5_vl/config.rs:100-131 | mistralrs-core/src/vision_models/qwen2vl/config.rs:74-105 \u2014 These two members are one piece of code written twice and then edited apart: 32 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":"mistralrs-core/src/vision_models/qwen2_5_vl/config.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d154cb7ee94467f41ce90c781176c881bab49c32e9b15f06c1fd051f50046d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): mistralrs-core/src/models/mixtral.rs:324-359 | mistralrs-core/src/models/phi3_5_moe.rs:400-434 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"mistralrs-core/src/models/mixtral.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f99fa6ee89776869ab7734e9926029eb3e590063b4eea420a00f4fbe708a0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): mistralrs-core/src/cuda/speculative_rejection.rs:731-750 | mistralrs-core/src/cuda/speculative_rejection.rs:768-787 \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":"mistralrs-core/src/cuda/speculative_rejection.rs"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"823b0cbada7d25465ec5430cb871f1dc20bfbdefef80e5c80171d77b5e691f25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): mistralrs-quant/src/mxfp4/mod.rs:478-511 | mistralrs-quant/src/mxfp4/mod.rs:520-553 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"mistralrs-quant/src/mxfp4/mod.rs"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"95f5971eef2a7fc08c3aacfcfcd6bd4076ea91cd06f16555ad681338d8b0f883"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): mistralrs-core/src/pipeline/prompt_chunks.rs:52-81 | mistralrs-core/src/pipeline/prompt_chunks.rs:87-118 \u2014 These two members are one piece of code written twice and then edited apart: 30 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":"mistralrs-core/src/pipeline/prompt_chunks.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"771e975759ed0c983d954965f4ba89e54df91eac7dd04921ff129aa0f06ecb00"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): mistralrs-core/src/models/mixtral.rs:281-303 | mistralrs-core/src/vision_models/llama4/text.rs:589-617 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"mistralrs-core/src/models/mixtral.rs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"75aa8547ee49075f62d699bb56f570cbee05d8d5e58401504cbcd4d3b6d93f3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): mistralrs-core/src/pipeline/amoe.rs:116-147 | mistralrs-core/src/pipeline/amoe.rs:159-189 \u2014 These two members are one piece of code written twice and then edited apart: 31 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":"mistralrs-core/src/pipeline/amoe.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd6191a33565ef8a86183183d908825d35e1aefd89b51ed0a9c6d336c883e86"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): mistralrs-core/src/vision_models/qwen3_5/text.rs:1718-1737 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:942-961 \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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":1718}}}],"partialFingerprints":{"codehealthFindingId/v1":"d295f562cd808170916966dc15229150f7390e9e14644bdbb66ae1f1f92ba0ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:362-391 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:330-355 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d2a8c638900ae9c154d42afcaee0d086efccc1bb071e0de281e94ff3d591a99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:343-368 | mistralrs-core/src/vision_models/llama4/inputs_processor.rs:189-220 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e1bc78e57110ba8a6b549126a47d52a93a25669c88e2067365826ac89886f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): mistralrs-pyo3/src/lib.rs:2191-2217 | mistralrs-pyo3/src/lib.rs:2227-2249 | mistralrs-pyo3/src/lib.rs:2608-2629 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":2191}}}],"partialFingerprints":{"codehealthFindingId/v1":"da86b76c3ae768667e2049ec660de94868108b6bc7f57c52b613eb36794798eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): mistralrs-quant/src/metal_kernels/mod.rs:3255-3287 | mistralrs-quant/src/metal_kernels/mod.rs:3300-3329 \u2014 These two members are one piece of code written twice and then edited apart: 30 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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":3255}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d138fbdbdfab4abf03cd70a8bfafd93ae30c8c33de5994bc246671ce3b8a09"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): mistralrs-core/src/gdn/layer.rs:136-158 | mistralrs-core/src/gdn/layer.rs:160-183 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"mistralrs-core/src/gdn/layer.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"79591e10170f5c133ceaad12d46f00680886e2c8c11e597272cf4c211dbf1f8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): mistralrs-core/src/ops.rs:2756-2783 | mistralrs-core/src/ops.rs:2807-2829 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"mistralrs-core/src/ops.rs"},"region":{"startLine":2756}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67c04c84558808fd2de8ff9f98f75c663af4d320690b3d29c53547958e8e765"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): mistralrs-quant/src/afq/mod.rs:691-717 | mistralrs-quant/src/fp8/mod.rs:351-380 \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":"mistralrs-quant/src/afq/mod.rs"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"0551ef610d0b15f3abeaa3a80df243fb63a8dc501bf6b37f01aba8b7eb3fd078"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): mistralrs-core/src/pipeline/hf.rs:330-351 | mistralrs-quant/src/uqff/report.rs:871-893 \u2014 These two members are one piece of code written twice and then edited apart: 22 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":"mistralrs-core/src/pipeline/hf.rs"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35ead588176241b499b0faf59a7a795ee35029596eccb7490e7287bb0c3c032"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 32\u002B corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2707-2738 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3415-3448 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4135-4166 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 32 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":2707}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d7b9d80a9860fb0a4e2e41d6016df9dbcdb61ccb9948216e0bae811ec21c8e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): mistralrs-core/src/vision_models/phi3/mod.rs:1371-1390 | mistralrs-core/src/vision_models/phi4/mod.rs:633-652 \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":"mistralrs-core/src/vision_models/phi3/mod.rs"},"region":{"startLine":1371}}}],"partialFingerprints":{"codehealthFindingId/v1":"15207ba813e5299fadd585a78c47b8bd6d71a2d43c71a565de0e07a9e905cac4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:308-334 | mistralrs-core/src/vision_models/llama4/inputs_processor.rs:340-360 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c648e98016644d067f51464b2036dbd3ac343ad226e2288cc48ca44235c161a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): mistralrs-quant/src/cublaslt/mod.rs:145-176 | mistralrs-quant/src/cublaslt/mod.rs:201-229 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"mistralrs-quant/src/cublaslt/mod.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ff8c721f9aacf2b01a3036daa290c36b1f6d6c67d0daffb1067283e222a6cff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): mistralrs-core/src/paged_attention/block_hash.rs:237-263 | mistralrs-core/src/paged_attention/block_hash.rs:276-307 \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":"mistralrs-core/src/paged_attention/block_hash.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b78b5b579d173da3187758b3b7376273f58ee1b198608c2266da189d52a0588"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): mistralrs-core/src/layers.rs:3900-3926 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:275-298 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:100-124 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/layers.rs"},"region":{"startLine":3900}}}],"partialFingerprints":{"codehealthFindingId/v1":"43415d9baa13700911147714669bc5bad15a0e2a5c5274c4972cb3f3bc62dd13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2353-2385 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2391-2416 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":2353}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b188296add4f5d1616100cd69337ea1c224c4cb00cf57cbb3f7ec3661ae720d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): mistralrs-core/src/utils/memory_usage.rs:246-276 | mistralrs-core/src/utils/memory_usage.rs:338-361 \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":"mistralrs-core/src/utils/memory_usage.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb0a3de56aa58beae3f11b9029e0b8b16ff1d4457dd9a9c8de28cbad9d252c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 41\u002B corresponding lines): mistralrs-core/src/xlora_models/gemma.rs:321-361 | mistralrs-core/src/xlora_models/llama.rs:337-377 | mistralrs-core/src/xlora_models/mixtral.rs:444-484 | mistralrs-core/src/xlora_models/phi3.rs:282-322 | mistralrs-core/src/xlora_models/starcoder2.rs:306-346 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 41 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f44a9177204fb3b0435228a25c8d7d3f66b50ae8ff06c068c304dff62f0b20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): mistralrs-core/src/diffusion_models/clip/text.rs:97-116 | mistralrs-core/src/vision_models/clip.rs:134-153 \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":"mistralrs-core/src/diffusion_models/clip/text.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"d77a3bfebaf9e6cb5ebb3d0a3e519ebca9d35a720257fdfd8a41a3718a6e0e14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): mistralrs-core/src/lib.rs:857-880 | mistralrs-core/src/lib.rs:906-928 | mistralrs-core/src/lib.rs:1024-1044 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lib.rs"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf17a5914455a7ad5c3df149685566ecdade23e77cc7b2a3476903b0756d830"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): mistralrs-quant/src/f8q8/mod.rs:237-256 | mistralrs-quant/src/gguf/mod.rs:316-336 \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":"mistralrs-quant/src/f8q8/mod.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"c622aa76cd03f768ef004350b13dfbb768e309faf95036bff7d5ecfff07ef1f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 32\u002B corresponding lines): mistralrs/src/messages.rs:609-640 | mistralrs/src/messages.rs:644-675 | mistralrs/src/messages.rs:686-717 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 32 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs/src/messages.rs"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd601c28057546d7bc5a594b7a42309946beb7770c0d584f07b36c08ed5d32a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): mistralrs-core/src/vision_models/gemma3n/multimodal_embedding.rs:32-84 | mistralrs-core/src/vision_models/gemma4/vision.rs:493-521 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"mistralrs-core/src/vision_models/gemma3n/multimodal_embedding.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"310057bdfac75a947a58fbf42e391b0b62eb42a460e600a33a950077f72e6808"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 30\u002B corresponding lines): mistralrs-core/src/models/gpt_oss.rs:637-672 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:328-357 | mistralrs-core/src/vision_models/mllama/text.rs:271-308 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 30 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/gpt_oss.rs"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"70b6eb701accb4a99554ce69ddbb3a9eb5ca3ad257dc19b92e2dcdb7fcf5faa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): mistralrs-quant/src/lora/dynamic/expert.rs:592-623 | mistralrs-quant/src/lora/dynamic/expert.rs:631-664 \u2014 These two members are one piece of code written twice and then edited apart: 32 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":"mistralrs-quant/src/lora/dynamic/expert.rs"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3c7b04a4aff11c620115adc6bb9edf0b43a11b3e4eb7b175cb781985f77a2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): mistralrs-core/src/lib.rs:2181-2211 | mistralrs-core/src/lib.rs:2969-3005 \u2014 These two members are one piece of code written twice and then edited apart: 31 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":"mistralrs-core/src/lib.rs"},"region":{"startLine":2181}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eeb85b3cac06eb9d513bad8acdb611e5b1645ac1ce544eb201ca70e49418230"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): mistralrs-core/src/pipeline/hf.rs:654-672 | mistralrs-core/src/pipeline/hf.rs:678-696 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"mistralrs-core/src/pipeline/hf.rs"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"523a6a27667f83a2719427dd8f0ae1e2c5c9acaf695b5410e281ecb6d9fee551"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7525-7572 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8000-8062 \u2014 These two members are one piece of code written twice and then edited apart: 48 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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":7525}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b49ea81647f8f5ca06577ce83e9105911bfebbeda997406d674f2d26e1bb40f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): mistralrs-quant/src/utils/ops.rs:2404-2426 | mistralrs-quant/src/utils/ops.rs:2574-2597 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":2404}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fde325ee0173aa60241d2c69b130e3df1010b7f042fd07d5373c9c5d81c5b51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): mistralrs-core/src/matformer.rs:95-112 | mistralrs-core/src/matformer.rs:114-133 \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":"mistralrs-core/src/matformer.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c6d81501b3cd66dfd6fc9d467c57ec66f090e963be041abd2c115623111bda1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): mistralrs-pyo3/src/code_execution.rs:361-380 | mistralrs-pyo3/src/code_execution.rs:384-403 | mistralrs-pyo3/src/code_execution.rs:405-424 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-pyo3/src/code_execution.rs"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"c43c01fa5517c3c3d2c8512a7047a4404c8189ec070415238e9af2cc60b04713"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): mistralrs-core/src/gguf/normal_config.rs:1201-1218 | mistralrs-core/src/gguf/normal_config.rs:1391-1409 \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":"mistralrs-core/src/gguf/normal_config.rs"},"region":{"startLine":1201}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2c43e565c7ada7566d76c27e3d6abdbdcd1a6bc15f146d7ee169a39bd7a126"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): mistralrs-core/src/pipeline/cuda_graph.rs:2613-2631 | mistralrs-core/src/speculative/dflash.rs:1635-1653 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":2613}}}],"partialFingerprints":{"codehealthFindingId/v1":"f234af9eb5a54adbaea8c9b984de807370df09950aac90d9b9fb92c50de8c90c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 31\u002B corresponding lines): mistralrs-core/src/vision_models/idefics3/mod.rs:70-101 | mistralrs-core/src/vision_models/llama4/mod.rs:73-103 | mistralrs-core/src/vision_models/mistral3/mod.rs:183-214 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 31 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/idefics3/mod.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f620fdf036b55b899b8d276d15a6fd7b761d6c9ad98790aad234668ae17c64"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): mistralrs-core/src/vision_models/gemma3n/audio.rs:561-585 | mistralrs-core/src/vision_models/gemma4/audio.rs:626-641 \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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"369e6e59697a860564d58d65d9203a7dd7dbbf9ef68ffd927ecd1be0ce8a45ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9444-9474 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:10701-10728 \u2014 These two members are one piece of code written twice and then edited apart: 28 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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":9444}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e3b14ed469cd6604ab71c4a4ebe193eb5a32362657d710d42101e2e70c383db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5937-5967 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6495-6519 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6773-6795 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":5937}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d79382f39dcd4af9fee96c5d6f706d4ea7da740ab7209d11c38dfa9267b3f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): mistralrs-core/src/pipeline/multimodal.rs:2850-2864 | mistralrs-core/src/pipeline/normal.rs:2511-2526 \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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2850}}}],"partialFingerprints":{"codehealthFindingId/v1":"884e425938b06fd4c315655e195a130ecbd331c00d2e086b091e1fb35b89845f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): mistralrs-code-exec/src/tools.rs:144-186 | mistralrs-code-exec/src/tools.rs:330-372 \u2014 These two members are one piece of code written twice and then edited apart: 43 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":"mistralrs-code-exec/src/tools.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"f77060a141716d6b2a024e30cc3efc52c0fe780d7d6ba349999b99e07ecbb9a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): mistralrs-core/src/attention/backends/cpu/neon.rs:395-420 | mistralrs-core/src/attention/backends/cpu/neon.rs:632-657 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"mistralrs-core/src/attention/backends/cpu/neon.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"eafac28ad479ee9d353a54f938534acdd3d212e2dffee7e787efd9a60999ea77"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): mistralrs-core/src/paged_attention/layers/paged_attention.rs:471-486 | mistralrs-core/src/vision_models/mllama/text.rs:403-421 \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":"mistralrs-core/src/paged_attention/layers/paged_attention.rs"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e5262607285749f40a86339504680224d1242cb8dc66efa9dc9c4625ffc4477"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:721-745 | mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:752-769 \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":"mistralrs-core/src/vision_models/idefics3/inputs_processor.rs"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab11e27c6e291dd9c4ddc1af5f07ec920448924034f1e2253fbb29c4464c0d52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): mistralrs-quant/src/cutile/fp8_gemm.rs:181-192 | mistralrs-quant/src/cutile/fp8_w8a16.rs:259-270 | mistralrs-quant/src/cutile/fp8_w8a8.rs:264-274 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/fp8_gemm.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"b29dc8f5aecd6273ad0c6da147795140c3d81cfbe5c5f867ac3153a17fe72bca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): mistralrs-core/src/attention/backends/cpu/neon.rs:255-279 | mistralrs-core/src/attention/backends/cpu/neon.rs:498-524 \u2014 These two members are one piece of code written twice and then edited apart: 25 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":"mistralrs-core/src/attention/backends/cpu/neon.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"980ba9d0e10134c83b0868784d32c620b03932d5ed949d5aa5c5f4ea7e2e7186"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): mistralrs-core/src/gguf/normal_bindings.rs:455-475 | mistralrs-core/src/gguf/qwen_multimodal_bindings.rs:788-812 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"mistralrs-core/src/gguf/normal_bindings.rs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"89faebb904c5002f103b26f00e9817de4ad0f19c445e25b804b10fecc7d5db51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): mistralrs-core/src/xlora_models/phi2.rs:57-85 | mistralrs-core/src/xlora_models/starcoder2.rs:49-78 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"mistralrs-core/src/xlora_models/phi2.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"6785316d4e6791a9b848a62e5dd3a84a95ac8a7f0fcd3076b76e3448fd2a2235"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): mistralrs-quant/src/routed_gemv/cuda.rs:506-525 | mistralrs-quant/src/routed_gemv/cuda.rs:533-553 \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":"mistralrs-quant/src/routed_gemv/cuda.rs"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"952b4b2809d3e4950fa9a3ea8e7567eb90e9d02e2efd5021d906855789b23ef7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7877-7898 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9041-9064 \u2014 These two members are one piece of code written twice and then edited apart: 22 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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":7877}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a19ac76a6a449841c392735931e3d4d3d7d3d6e1b9b94543acf06e31aca86e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): mistralrs-core/src/speech_models/dia/dac.rs:97-115 | mistralrs-core/src/speech_models/dia/dac.rs:143-163 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"mistralrs-core/src/speech_models/dia/dac.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"829566986473ce9f7451577a0259f4b6d3880551e991a2d2fa199dd6e4a02cda"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): mistralrs-core/src/vision_models/grid_processor.rs:465-482 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:248-265 \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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf9efdefa6c269680d016eb2bd63e2535d17916f5e883da117d49b56f331beb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): mistralrs-server-core/src/responses.rs:2361-2379 | mistralrs-server-core/src/responses.rs:2434-2454 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"mistralrs-server-core/src/responses.rs"},"region":{"startLine":2361}}}],"partialFingerprints":{"codehealthFindingId/v1":"272973b8e4949a3c1b03b97ea36639285ceef6e9fef00de2771961e68bb40de1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:14-36 | mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:39-57 | mistralrs-paged-attn/src/metal/backend/mod.rs:50-68 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/cuda/backend/gather_kv.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2bcad75c3246c4eda39f3673330d4a7bca751aa7b7df767e88158f478fa0a11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:515-536 | mistralrs-paged-attn/src/metal/backend/paged_attention.rs:735-756 \u2014 These two members are one piece of code written twice and then edited apart: 22 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":"mistralrs-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"601c66c5f8683407c13f3188f44125421c51e69beff5f87b598978b5534b95b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): mistralrs-code-exec/src/lib.rs:311-337 | mistralrs-code-exec/src/shell.rs:334-351 \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":"mistralrs-code-exec/src/lib.rs"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"a232a96f0d26d4ffcf323ac2d554ff8e26f3f275bc9e41750acbd9dc2a49c285"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): mistralrs-core/src/attention/backends/cpu/avx.rs:250-267 | mistralrs-core/src/attention/backends/cpu/avx.rs:703-718 \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":"mistralrs-core/src/attention/backends/cpu/avx.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5748faf3e39da0e77337552ff5d96c31e6d2c3542d798b05ab7c1d4bdb5db2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): mistralrs-core/src/lib.rs:2607-2631 | mistralrs-core/src/lib.rs:2634-2656 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"mistralrs-core/src/lib.rs"},"region":{"startLine":2607}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ee5525a0caa6d5e963d8cba313ed51c8ccfa51192bcf0971364ff4c80aa5823"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): mistralrs-core/src/vision_models/gemma3n/audio_processing.rs:122-146 | mistralrs-core/src/vision_models/voxtral/audio_processing.rs:87-107 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"mistralrs-core/src/vision_models/gemma3n/audio_processing.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c7147302fb956e794b0d2be225a3f10dc1921533a47cd0375ce9439a85661b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): mistralrs-core/src/attention/backends/cpu/elem.rs:371-382 | mistralrs-core/src/attention/backends/cpu/elem.rs:401-415 \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":"mistralrs-core/src/attention/backends/cpu/elem.rs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"6349b4b0abf2357e45eb98012048d33a46b636ed3bc99503791b2b054cda32a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): mistralrs-core/src/models/granite.rs:1413-1426 | mistralrs-core/src/models/granite.rs:1433-1446 | mistralrs-core/src/models/granite.rs:1715-1733 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":1413}}}],"partialFingerprints":{"codehealthFindingId/v1":"790e2b3d1fcab18e60308aa194a7925098ef59c47fef4ef110cb1f053f6ffac7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): mistralrs-quant/src/build_support/cuda_headers.rs:9-28 | mistralrs-quant/src/build_support/deepgemm_jit_bundle.rs:9-25 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"mistralrs-quant/src/build_support/cuda_headers.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb6cb73f9d4f111a55dae2cf54bca43c5122232a3c21656ff6fd058886321f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): mistralrs-cli/src/ui/handlers/api.rs:399-410 | mistralrs-cli/src/ui/handlers/api.rs:420-436 \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":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"b70141708ccf8e6b598ec72db32dc75d10cde2eb537eac497cfdd1785e86066e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): mistralrs-core/src/models/phi2.rs:367-390 | mistralrs-core/src/models/starcoder2.rs:330-359 \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":"mistralrs-core/src/models/phi2.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ecfad81170097f014495d8f9fdee4118fadcb2e1b1c601c6737cc893a56969e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): mistralrs-sandbox/src/linux/namespaces.rs:81-95 | mistralrs-sandbox/src/linux/namespaces.rs:110-128 | mistralrs-sandbox/src/linux/seccomp.rs:93-111 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-sandbox/src/linux/namespaces.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"5488a367dc7fdb782ff364cf1872e2f0c8858350f2dfbbfd02a423f40fcbd197"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): mistralrs-core/src/ops.rs:2856-2877 | mistralrs-core/src/ops.rs:3360-3382 \u2014 These two members are one piece of code written twice and then edited apart: 22 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":"mistralrs-core/src/ops.rs"},"region":{"startLine":2856}}}],"partialFingerprints":{"codehealthFindingId/v1":"46bb228820b853dd8e48d5d4b4ffbd2bff37da0cb11f392c0894b45c5d6d7811"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): mistralrs-core/src/models/lfm2.rs:229-251 | mistralrs-core/src/models/lfm3.rs:330-365 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"73548002c935cae74786890bc5646ab2b56f83e80bf68bbe44562fec9bc715f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): mistralrs-core/src/vision_models/gemma3n/audio.rs:1034-1062 | mistralrs-core/src/vision_models/gemma3n/audio.rs:1092-1125 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":1034}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb0fc5966cae0db02cabd4609649ce6fa07b07a7569f503ed29a93f5c209d3b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2081-2111 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6202-6230 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":2081}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f57eb856eb103955a382cf8c178ef211f1db88b41c7685b84e3ceadd2efd6a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): mistralrs-core/src/gguf/normal_config.rs:1254-1264 | mistralrs-core/src/gguf/normal_config.rs:1379-1389 \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":"mistralrs-core/src/gguf/normal_config.rs"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"e261f3d51840e5f005e12f705ca44f86e336069a62e8575f88fd66ec633e6669"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): mistralrs-quant/src/afq/mod.rs:387-405 | mistralrs-quant/src/mxfp4/mod.rs:217-235 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"mistralrs-quant/src/afq/mod.rs"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a36465656523afe05ea0f06ea5bc6f3c0114f05bfbbec01597076aef75fd39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): mistralrs-core/src/models/qwen3_next.rs:606-620 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:436-457 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:465-483 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0575830cd89c06283395451fddf638b6ed85281e46021936e4b38fdbb755c22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): mistralrs-core/src/speech_models/dia/dac.rs:20-27 | mistralrs-core/src/speech_models/dia/dac.rs:36-47 \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":"mistralrs-core/src/speech_models/dia/dac.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b11b7737fb0961a6b5f0cf60b8173a77c764a518cd24f9cb02cc03a7957efb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 16\u002B corresponding lines): mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:201-223 | mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs:212-232 | mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:804-825 | mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:207-228 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:163-184 | mistralrs-core/src/vision_models/phi4/inputs_processor.rs:244-259 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"523fb8937f6d73cef65ac0424d84531648e47b2dddd1ae6d85c5ad2685d67c74"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): mistralrs-core/src/kv_cache/hybrid_cache.rs:1799-1821 | mistralrs-core/src/speculative/gdn_transitions.rs:164-180 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"mistralrs-core/src/kv_cache/hybrid_cache.rs"},"region":{"startLine":1799}}}],"partialFingerprints":{"codehealthFindingId/v1":"b94f76a29392854da1ddd2b6bd42f727828194e4c2cd639c7aad5e8faa125750"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): mistralrs-core/src/utils/progress.rs:87-110 | mistralrs-core/src/utils/progress.rs:184-207 \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":"mistralrs-core/src/utils/progress.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d156ebb15a27eac8310bd12e430c68401a9765ef03dd89aa9f815d884d0709c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): mistralrs-quant/src/afq/mod.rs:159-191 | mistralrs-quant/src/blockwise_fp8/mod.rs:481-514 \u2014 These two members are one piece of code written twice and then edited apart: 33 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":"mistralrs-quant/src/afq/mod.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"68126e4d2d434c5cd7e2315a80a1d4f203b50d0934dec5c1e2bd0abc1d24d5b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): mistralrs-code-exec/src/session.rs:202-214 | mistralrs-code-exec/src/shell.rs:413-425 \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":"mistralrs-code-exec/src/session.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9616f8ecbad5703eba69a746fb501bfb58832632ffae42cc3beed8a754e587c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): mistralrs-core/src/xlora_models/gemma.rs:374-396 | mistralrs-core/src/xlora_models/starcoder2.rs:359-381 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"d147ea540d33f03ad5135bef02767b4d94f434837183e61807b1d382c462484b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): mistralrs-server-core/src/skills.rs:853-864 | mistralrs-server-core/src/skills.rs:923-936 \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":"mistralrs-server-core/src/skills.rs"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"185c623222772870bf317b3a470ccd3a3582c232770a462fc36e3119aa9b4199"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): mistralrs-core/src/models/phi2.rs:124-142 | mistralrs-core/src/models/starcoder2.rs:106-124 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"mistralrs-core/src/models/phi2.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecf5c55d22caeb2843ab20590f7c26c879942da94b12ca20c8ad349af7f306f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1864-1881 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2164-2181 \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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1864}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c9a33b8d7c6a5f34be13e2d980adc0c36fd004d07581c26c77ac4008b598af4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): mistralrs-core/src/vision_models/lfm3_omni/audio.rs:328-343 | mistralrs-core/src/vision_models/lfm3_omni/generation.rs:347-362 \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":"mistralrs-core/src/vision_models/lfm3_omni/audio.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e79a2d15cfb7c41e3b2a7b54e2e2a8803bf812ba92d9787ae3156455aba9135"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): mistralrs-quant/src/gguf/cuda.rs:1296-1306 | mistralrs-quant/src/gguf/cuda.rs:1356-1366 \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":"mistralrs-quant/src/gguf/cuda.rs"},"region":{"startLine":1296}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d8a2c349fd07f552517bdb540ebd81b511f3c2429c5421eb3d870c5bfd4101"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): mistralrs-core/src/attention/backends/cpu/avx.rs:466-479 | mistralrs-core/src/attention/backends/cpu/avx.rs:721-734 \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":"mistralrs-core/src/attention/backends/cpu/avx.rs"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9e6d9a000a653525c7b833fcb8d07033d5a133d27a95c6895eda0f230310c61"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): mistralrs-core/src/gguf/multimodal_bindings.rs:314-333 | mistralrs-core/src/gguf/multimodal_bindings.rs:516-534 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"mistralrs-core/src/gguf/multimodal_bindings.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec650e1a97fc742ad6d33e5ecc48ee50479d1828aac4374c8bc8984495e35ca4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): mistralrs-core/src/vision_models/gemma3n/audio.rs:1064-1079 | mistralrs-core/src/vision_models/gemma4/audio.rs:846-858 \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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"94df43a1dc4ced3ef45ed1c1e520094b5939a080adf130a393b19d9383b8bd17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:232-251 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:203-223 \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":"mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"be2e12774f0bb38569052d1eafe9192c72390230463a71b5eb699ec459780904"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): mistralrs-quant/src/lib.rs:1001-1014 | mistralrs-quant/src/lib.rs:1016-1029 \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":"mistralrs-quant/src/lib.rs"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"f068983e2d9e0070dcd7cc34743c6005bb4d2948afb2ca577b70d9cb5c9faa46"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): mistralrs-code-exec/src/shell.rs:477-490 | mistralrs-server-core/src/skills.rs:673-686 \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":"mistralrs-code-exec/src/shell.rs"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"66bb08b842224b68913584d889377ed22a14e9353cfa46e6bc2c17bdc662c558"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): mistralrs-core/src/vision_models/lfm2_vl/inputs_processor.rs:622-644 | mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:232-252 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"mistralrs-core/src/vision_models/lfm2_vl/inputs_processor.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"c225033ee0500e283152203b22db1417805b96f84a7f5fdf60a7e7734a223cc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): mistralrs-cli/src/ui/handlers/api.rs:35-53 | mistralrs-cli/src/ui/handlers/api.rs:58-76 | mistralrs-cli/src/ui/handlers/api.rs:81-99 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d7722da2c728b2ec5a128528ef5cdab92827ecf008a20fb12d60dbd9c2850b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): mistralrs-core/src/attention/backends/sinks.rs:108-139 | mistralrs-quant/src/rotary/mod.rs:869-882 \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":"mistralrs-core/src/attention/backends/sinks.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea98e921b3a83cf85d12080d8e3665273f77f5a39e6239f841b6f8a4b7f11412"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): mistralrs-core/src/cuda/gdn.rs:426-437 | mistralrs-core/src/cuda/gdn.rs:567-578 \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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a4a16b18b66e4c8703750c3940d0f1727c8914a99568e05ae0e901cc6342efa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): mistralrs-core/src/pipeline/loaders/lfm3.rs:27-40 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5417-5430 \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":"mistralrs-core/src/pipeline/loaders/lfm3.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"f464165f52c282ecbf6f84ddec44f8dfcb02fa276eac390cb0f213d1cdbbb0d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): mistralrs-core/src/vision_models/gemma3n/audio.rs:1002-1021 | mistralrs-core/src/vision_models/gemma4/audio.rs:492-503 \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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8cbfe7c8ee360cf237713cf8824582615c43fb3467f2619450ae7237c557fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): mistralrs-server-core/src/openai.rs:57-79 | mistralrs-server-core/src/openai.rs:238-260 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"mistralrs-server-core/src/openai.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc7fc894c46b54ff33f23f4ab3d5ee156b232fab204888ef3f945fec15aff8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): mistralrs-core/src/gguf/normal_config.rs:503-527 | mistralrs-core/src/gguf/normal_config.rs:532-551 \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":"mistralrs-core/src/gguf/normal_config.rs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"59ac466f3a50b7b143f8392b8173d5fc572e3e1d5638ae80f93f4398f2140942"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): mistralrs-core/src/pipeline/multimodal.rs:2814-2833 | mistralrs-core/src/pipeline/normal.rs:2426-2445 \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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2814}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c97a088f0bfaa1b7f1e5347c90813fb37c2890c1d180e99dc34a07e525dbfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): mistralrs-core/src/vision_models/grid_processor.rs:540-558 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:326-344 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"e41346e96d5e8f270ac4e5e01e75433c36f4dc45d63e6974f50aa915018893ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): mistralrs-quant/src/cutile/qsa.rs:588-596 | mistralrs-quant/src/cutile/qsa_decode.rs:569-577 \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":"mistralrs-quant/src/cutile/qsa.rs"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf80ecf3ec6e81b882c8e3816022a7e7bda1d0f4ded195b59f77efd4ccdad3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): mistralrs-core/src/gguf/normal_config.rs:2580-2600 | mistralrs-core/src/gguf/normal_config.rs:2602-2617 \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":"mistralrs-core/src/gguf/normal_config.rs"},"region":{"startLine":2580}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c16674484299ea4834e4136f594a5c958fab2fc1c850dd5fd1052b3e4d21f46"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1706-1736 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1742-1770 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1706}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e387139abedbd25cfb6740e4dd4d7e1f93843e6e35ff1fcbeb72942e4271fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): mistralrs-core/src/vision_models/lfm2_vl/inputs_processor.rs:189-207 | mistralrs-core/src/vision_models/phi4/inputs_processor.rs:1415-1433 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"mistralrs-core/src/vision_models/lfm2_vl/inputs_processor.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"94f193a4b64eb218c56626f16d96c59ccb46afe8f91e0a0a44a6cd426012a2eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): mistralrs-core/src/diagnostics.rs:396-408 | mistralrs-quant/src/build_support/cuda_toolkit.rs:26-35 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"mistralrs-core/src/diagnostics.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"417a7aeae86354fb1e1af4c4ddea319c59da5b8ad354a3b6a9c949e26916d7dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): mistralrs-core/src/vision_models/lfm2_vl/mod.rs:35-58 | mistralrs-core/src/vision_models/lfm3_vl/mod.rs:48-73 \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":"mistralrs-core/src/vision_models/lfm2_vl/mod.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"662416628094d7f37e8978379e3dd9164a87feda837181fd5ec31b84639c5797"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): mistralrs-core/src/files/store.rs:133-143 | mistralrs-core/src/files/store.rs:146-156 \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":"mistralrs-core/src/files/store.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"88726d0cc3386828752dda9c4eab4d53263431847f22c140aa5bbcdf20c98eb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): mistralrs-core/src/kv_cache/hybrid_cache.rs:248-273 | mistralrs-core/src/kv_cache/hybrid_cache.rs:407-421 \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":"mistralrs-core/src/kv_cache/hybrid_cache.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a84075b062bcd8aaedf33b9e8045240dc6ca7a2c9e35d8da706d2f056c11898"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): mistralrs-core/src/pipeline/ggml.rs:137-152 | mistralrs-core/src/pipeline/gguf.rs:346-362 \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":"mistralrs-core/src/pipeline/ggml.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"578359164dd964fb4d07f2f0439e703900dff7371b30fc839716f4871b127f3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5400-5419 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5424-5442 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":5400}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b5cfd0477751b64f16da0bef34a03134d69f040b097eb0f65627e7710c6962a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6697-6715 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7135-7157 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":6697}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a955943e3e0958319f5b687831b42359f138f680d835c933b877cece41fa6a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9603-9627 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:10836-10857 \u2014 These two members are one piece of code written twice and then edited apart: 22 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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":9603}}}],"partialFingerprints":{"codehealthFindingId/v1":"89cada788eec76820fc5eb61ac8489937fa783c3e035813ae18aebc172b3f022"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): mistralrs-core/src/tools/parsers/deepseek.rs:37-54 | mistralrs-core/src/tools/parsers/harmony.rs:61-81 \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":"mistralrs-core/src/tools/parsers/deepseek.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc3ece1f1d1fc1d75b7bee4a2f6871913bb62849547c6fc8e678a3188d5f44c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:26-46 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:26-46 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"31da5697e21ae56689e2fd0d790aabf695c4d4af062f7dbb17cb761097d44a5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): mistralrs-quant/src/blockwise_fp8/deepgemm.rs:80-92 | mistralrs-quant/src/cutile/tune.rs:1008-1022 \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":"mistralrs-quant/src/blockwise_fp8/deepgemm.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f328591dfb1b43e6a35ff42375d4b8af8868b80a89e8a8192b21fb11a23df0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): mistralrs-quant/src/lora/dynamic/execution.rs:399-417 | mistralrs-quant/src/lora/dynamic/execution.rs:482-506 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"mistralrs-quant/src/lora/dynamic/execution.rs"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f9a576788ff59ea874ca5fe06d413d13cd4d8b14210cc6b6f47ff0ddd442404"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): mistralrs-core/src/response.rs:530-544 | mistralrs-core/src/response.rs:548-562 \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":"mistralrs-core/src/response.rs"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"caaf491024b33db553a84cf73f613a2e1c513c2bb5ece8cc69b5176186715632"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 15\u002B corresponding lines): mistralrs-core/src/attention/backends/cpu/avx.rs:13-30 | mistralrs-core/src/attention/backends/cpu/avx.rs:67-82 | mistralrs-core/src/attention/backends/cpu/avx.rs:85-99 | mistralrs-core/src/attention/backends/cpu/avx.rs:326-341 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/attention/backends/cpu/avx.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"12953103c97bf6d5ecd7655879499b15a6a591b87e5e34d81106fc1ff1447c42"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): mistralrs-core/src/gguf/normal_config.rs:1162-1174 | mistralrs-core/src/gguf/normal_config.rs:1609-1621 \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":"mistralrs-core/src/gguf/normal_config.rs"},"region":{"startLine":1162}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a823cfc30a93ba269a383ee55373f1da79fbf38abea61baad93358fcdb61cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5596-5613 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:11026-11043 \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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":5596}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0686bbcb34fc55afbe4ada074d6afd7e63bda51b174978cc3bee457368c9af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:10131-10149 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:10155-10172 \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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":10131}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ddacaf8e843c84b42da3ae21c4534869a9422b6ce6616cf3f6d798d73f15cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3261-3277 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3594-3610 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4821-4837 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":3261}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d4ed61c9b8ed5759ce3ae5a2536a62689103271466297d52636c55f2399fa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): mistralrs-core/src/vision_models/llava/llava15.rs:317-335 | mistralrs-core/src/vision_models/llava/llava_next.rs:516-536 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"mistralrs-core/src/vision_models/llava/llava15.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"7833baadb4fc202bc55ab01bb77ee5cb594b80b0014d1433eaac4a0920c98b52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): mistralrs-core/src/vision_models/qwen3_5/text.rs:1202-1220 | mistralrs-core/src/vision_models/qwen4_exp/text.rs:614-636 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a7699295b54d1fe4f18c904911cdcbc9a35ab6bbe346120261766c22a982655"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): mistralrs-core/src/vision_models/voxtral/encoder.rs:133-144 | mistralrs-core/src/vision_models/voxtral/mod.rs:224-233 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"mistralrs-core/src/vision_models/voxtral/encoder.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"3337a51a30556b8a7385a458d1a35e005ca3a9f0399a7d9da6ddafc522f5c36d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): mistralrs-core/src/diffusion_models/clip/text.rs:205-217 | mistralrs-core/src/vision_models/clip.rs:236-248 \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":"mistralrs-core/src/diffusion_models/clip/text.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96f638c36fb9c54f2bb00c7f833cce864ed137bdef512165597d74791f5634a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): mistralrs-core/src/gguf/normal_config.rs:1176-1190 | mistralrs-core/src/gguf/normal_config.rs:1307-1322 \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":"mistralrs-core/src/gguf/normal_config.rs"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"f777c48658a26704edea01e09c20c68b64a4eacc6e00fd66b237323ccf8499de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 17\u002B corresponding lines): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1762-1778 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4028-4044 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4291-4307 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6102-6118 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":1762}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcad5ed024a878cb86919476c9a95ad721e534288025fa6cfb9f9f0043e6c4e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): mistralrs-core/src/vision_models/idefics2/mod.rs:538-551 | mistralrs-core/src/vision_models/idefics2/mod.rs:736-750 \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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"552b83ac045b34938035e5d99e72cad961a87a8bf40a110dd145762338f8ac64"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 24\u002B corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:997-1023 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1325-1348 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3105-3128 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3454-3477 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3788-3814 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4172-4201 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"7797c114d0779f5005e24cb061efd56e6cd5954e4fc02cc6dfe89ec7c4d67639"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 25\u002B corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1029-1053 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1354-1381 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3134-3161 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3483-3510 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"08715e302c7c15d596432e07c33d88d48fed71b11f7c442af33615373b2586f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): mistralrs-core/src/pipeline/mod.rs:1210-1223 | mistralrs-quant/src/lora/dynamic/expert.rs:840-851 \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":"mistralrs-core/src/pipeline/mod.rs"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7847ee16f09a6010c091877573dac7ee5fe595e93218747b66f3ad45126599e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): mistralrs-quant/src/cublaslt/api.rs:480-491 | mistralrs-quant/src/cublaslt/api.rs:519-528 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"mistralrs-quant/src/cublaslt/api.rs"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3ea4fd70e32bc9445c9e710f7655c6bfcdc9fcbae97ee6bd9c4c1ec406f82ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): mistralrs-quant/src/distributed/layers.rs:727-744 | mistralrs-quant/src/distributed/layers.rs:1309-1322 \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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"66fcf462ed02f24b1e2d962588e10be392ab7b64342849cf51585cb0560f38c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): mistralrs-quant/src/distributed/mod.rs:437-453 | mistralrs-quant/src/distributed/mod.rs:494-507 \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":"mistralrs-quant/src/distributed/mod.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3aa4c3a9367bf1a935265b48d454d2e23c60d9a338fd14851622e1907e04db4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): mistralrs-core/src/adapter/runtime.rs:604-617 | mistralrs-core/src/adapter/runtime.rs:623-643 \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":"mistralrs-core/src/adapter/runtime.rs"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2b9e9dddc5d2e6ad17827031e6411590096555ece7c9b36c55b1d9d2e64b23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): mistralrs-core/src/attention/backends/cpu/full.rs:47-60 | mistralrs-core/src/attention/backends/cpu/full.rs:62-75 \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":"mistralrs-core/src/attention/backends/cpu/full.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3bcbcf54765e56abf9c09a5e8b4bb71ab0b06b1c982c05c0a4e143d2d8e6495"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): mistralrs-core/src/gguf/multimodal_bindings.rs:455-469 | mistralrs-core/src/gguf/multimodal_bindings.rs:540-558 \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":"mistralrs-core/src/gguf/multimodal_bindings.rs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"6673c20bb58a686e92dd0f43f993d8d408313ef425601bf8f0fc2c56a0d14afe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): mistralrs-core/src/pipeline/hf/client.rs:82-104 | mistralrs-core/src/pipeline/hf/client.rs:144-164 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"mistralrs-core/src/pipeline/hf/client.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"372e63da7a20524e44597ed45a3006230f2c87177026071d62d22a81d1b66d5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 17\u002B corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1171-1187 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5152-5169 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:851-867 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1983-1999 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2927-2943 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3815-3831 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d09f50782a704bfd48fa73bc13d8c3de3cdf36881071f127aef3e00a85efdd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): mistralrs-core/src/sampler.rs:1780-1797 | mistralrs-core/src/speculative/verifier.rs:1393-1410 \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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":1780}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cb08ecd95ee8540989f87a1ed5a67c6af54b848f002d71bbcbdc7ca9e38486d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): mistralrs-core/src/xlora_models/phi3.rs:242-259 | mistralrs-core/src/xlora_models/quantized_phi3.rs:100-112 \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":"mistralrs-core/src/xlora_models/phi3.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"858bebe5db7f5ae613869cc90bc742035d3b51b90b6db5f04a964d3bb70a6709"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): mistralrs-quant/src/bitsandbytes/mod.rs:203-227 | mistralrs-quant/src/mxfp4/mod.rs:63-85 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"mistralrs-quant/src/bitsandbytes/mod.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b23f4f70cc7514063fef308f056ae6782e3170431c601a90b4144978a0a6cd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): mistralrs-core/src/layers.rs:1629-1640 | mistralrs-core/src/layers.rs:1940-1951 \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":"mistralrs-core/src/layers.rs"},"region":{"startLine":1629}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5665490f8f70f1dbf6f402ac1e033f7272af4ee2e70931bb73c6608a511b82c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5561-5578 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6832-6854 \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":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":5561}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc0943f76b3f8d053c8756f0595a8afe0494ba92494689646f6a1bb620a8fc19"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): mistralrs-core/src/utils/unvarbuilder.rs:153-171 | mistralrs-core/src/utils/unvarbuilder.rs:183-201 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"mistralrs-core/src/utils/unvarbuilder.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9842aadd7599b7b7d877cc6c2d43ee5878e5489528522cba29e89eb909964d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): mistralrs-core/src/attention/backends/cpu/neon.rs:282-295 | mistralrs-core/src/attention/backends/cpu/neon.rs:527-539 \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":"mistralrs-core/src/attention/backends/cpu/neon.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"609a6ed140d6eba696f3933903715e1cd9f5111cfbede486f9f8c0fdd3538a8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): mistralrs-core/src/gdn/layer.rs:260-269 | mistralrs-core/src/gdn/layer.rs:275-285 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"mistralrs-core/src/gdn/layer.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eedbaf064388fd00cba03d1ecfd25b053ef01a6cb2fef4906343751cbf9381e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): mistralrs-core/src/gguf/gemma3_bindings.rs:129-167 | mistralrs-core/src/gguf/gemma3n_bindings.rs:231-280 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"mistralrs-core/src/gguf/gemma3_bindings.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac9fb24f9d4f125bb47712024e2fc3d18d106ad88b224809abf08193b93b09b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): mistralrs-core/src/lib.rs:952-967 | mistralrs-core/src/lib.rs:991-1006 | mistralrs-core/src/lib.rs:1061-1075 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lib.rs"},"region":{"startLine":952}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fcb3e522a22636477ce1a7b620247a4b01a392518168d0d9e18fd6abf27a5d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): mistralrs-core/src/pipeline/auto.rs:569-590 | mistralrs-core/src/pipeline/auto.rs:602-622 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"mistralrs-core/src/pipeline/auto.rs"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"69b9edab89485d851133e317a756d6d79000a21f89884a53fcf398351dea65cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): mistralrs-quant/src/embedding/storage.rs:983-996 | mistralrs-quant/src/gguf/archive.rs:672-689 | mistralrs-quant/src/safetensors.rs:24-37 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/embedding/storage.rs"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ed6faf28bfc441c9e166e9f2d28e33183adaa59933736f8b1c53824083f11db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): mistralrs-quant/src/gguf/fast_mmq.rs:814-826 | mistralrs-quant/src/gguf/fast_mmq.rs:834-846 \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":"mistralrs-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"df4d64de9acc249b9398dd54fb1a122fd5abbe1efb891e55508b5d3bbf0155d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): mistralrs-quant/src/mxfp4/mod.rs:872-889 | mistralrs-quant/src/unquantized/mod.rs:665-681 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"mistralrs-quant/src/mxfp4/mod.rs"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"273af60c675dbbb850a5f004187c90d9f556045dfdf06885473172eb22603934"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): mistralrs-core/src/cuda/speculative_rejection.rs:795-806 | mistralrs-core/src/cuda/speculative_rejection.rs:813-824 \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":"mistralrs-core/src/cuda/speculative_rejection.rs"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"e47b75a9a9642e92b7b7feb16803df42ac6250e9cbda6c3dbf0eff55f7ae3d89"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): mistralrs-core/src/models/granite.rs:2424-2441 | mistralrs-core/src/models/granite.rs:2442-2459 \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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":2424}}}],"partialFingerprints":{"codehealthFindingId/v1":"c002d3365cd5482b2f22fd1ab13a8c86c45db11a420357bb3ee664d70473ba54"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:266-281 | mistralrs-core/src/vision_models/llama4/inputs_processor.rs:303-318 \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":"mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b6f957b301ddd74324521ceb7fdef501441994e9631a10d3b6344489c4c6ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): mistralrs-core/src/vision_models/qwen3_5/text.rs:1271-1293 | mistralrs-core/src/vision_models/qwen4_exp/text.rs:549-577 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":1271}}}],"partialFingerprints":{"codehealthFindingId/v1":"0900d22cfb82588b4618f66eeb1fe9d8d80babfe9df1e70d5accac7334b29f25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:340-353 | mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:409-425 \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":"mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"58a7325f673955d0fa23fedddda14fcf504e9f5399c6358ce8882440bb88e18d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): mistralrs/src/model.rs:1001-1013 | mistralrs/src/model.rs:1142-1155 \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":"mistralrs/src/model.rs"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fda33453e489f0e2200f379d5ebf468aa34c5e8443e4b8865e8a19116b69635"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): mistralrs-cli/src/commands/uqff.rs:406-417 | mistralrs-cli/src/commands/uqff.rs:419-429 \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":"mistralrs-cli/src/commands/uqff.rs"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a855080f83984783d0915d46d6bc8ac2f5c12fc270825838d88e04634344afc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): mistralrs-core/src/gdn/layer.rs:643-658 | mistralrs-core/src/gdn/layer.rs:665-687 \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":"mistralrs-core/src/gdn/layer.rs"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a2a6ce87d2f893933061fd7b561f43afcf3359578c58d0d852a34b35e76e03"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): mistralrs-core/src/gguf/lfm3_vl_config.rs:258-273 | mistralrs-core/src/gguf/qwen4exp.rs:514-526 \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":"mistralrs-core/src/gguf/lfm3_vl_config.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"44dfec00457fdcdbc87892c2d2b02e8926d4a3b46fc717b7975839ace898b598"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): mistralrs-core/src/paged_attention/mod.rs:504-520 | mistralrs-core/src/paged_attention/mod.rs:526-540 \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":"mistralrs-core/src/paged_attention/mod.rs"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"a655b5cb107eb8c21008ed275b255a621756b65cf558867a2453e6f6b27d2600"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3686-3702 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5241-5260 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":3686}}}],"partialFingerprints":{"codehealthFindingId/v1":"7acd5479c10ae795a408fd8ec60de9ceb9330a654791181a24505943d5af7052"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): mistralrs-core/src/vision_models/lfm2_vl/mod.rs:234-248 | mistralrs-core/src/vision_models/lfm3_vl/mod.rs:317-330 \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":"mistralrs-core/src/vision_models/lfm2_vl/mod.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66ece33b7438c72fec0fc98b1a2d11a0699156156efdf5597553667946330ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): mistralrs-core/src/vision_models/muse_glimmer/config.rs:128-148 | mistralrs-core/src/vision_models/muse_glimmer/config.rs:246-266 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"mistralrs-core/src/vision_models/muse_glimmer/config.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"1340abc526136aacdccf354c6e5e75ca678df21c198f3b1d71ebe381cf09bf88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 23\u002B corresponding lines): mistralrs-core/src/xlora_models/gemma2.rs:396-425 | mistralrs-core/src/xlora_models/llama.rs:301-323 | mistralrs-core/src/xlora_models/mistral.rs:370-392 | mistralrs-core/src/xlora_models/mixtral.rs:497-522 | mistralrs-core/src/xlora_models/phi3.rs:336-359 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/xlora_models/gemma2.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"769c90a759e560be59e0d76ba8f9d65491fee00096d6e5aa4ec2e7bf0eb7babd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1001-1018 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2381-2398 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2605-2622 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60f9b2e9e5492c59cfc8f01ff0f4063570fe71320ed0d1528f60417c1ddffee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): mistralrs-core/src/pipeline/response.rs:111-132 | mistralrs-core/src/pipeline/response.rs:137-155 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"mistralrs-core/src/pipeline/response.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc0b26c370bacf1eea7ce817eebab6b69c0ee074a3795eec338c16a4897777b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): mistralrs-code-exec/src/tools.rs:374-398 | mistralrs-code-exec/src/tools.rs:400-421 \u2014 These two members are one piece of code written twice and then edited apart: 22 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":"mistralrs-code-exec/src/tools.rs"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"162dd2dfbee235c27b2b2b72139cd717201a9ebc2dbc1d425c865462dd20c589"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): mistralrs-core/src/models/glm4.rs:379-395 | mistralrs-core/src/vision_models/gemma4/vision.rs:530-546 | mistralrs-core/src/vision_models/muse_glimmer/text.rs:398-410 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96a3e9cf4d32b57a422a12d40f32e2ec970b7c1b65fe6762115a042d3b8054b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): mistralrs-core/src/models/phi2.rs:79-104 | mistralrs-core/src/models/starcoder2.rs:60-84 \u2014 These two members are one piece of code written twice and then edited apart: 25 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":"mistralrs-core/src/models/phi2.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b4799bd4dd32f11ee1bf00502a9a400415023a466ae4c8cedac5ca11e40cd00"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 17\u002B corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4777-4798 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6942-6959 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7406-7423 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1072-1088 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6651-6667 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":4777}}}],"partialFingerprints":{"codehealthFindingId/v1":"458e0b50c0ec2f52f184ec414691360b2a4af8f9048802ea284aedbc7d867ff0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): mistralrs-core/src/search/mod.rs:116-131 | mistralrs-core/src/search/mod.rs:135-148 \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":"mistralrs-core/src/search/mod.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"913fee0b1690525d26cbaadf56463049f823a5c68475d82f655a6aa703a2bd26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): mistralrs-core/src/sequence.rs:666-684 | mistralrs-core/src/sequence.rs:1337-1361 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"mistralrs-core/src/sequence.rs"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdeacb6dad4e4ed026e94f28b75d23b9cb3f95e0989e000037426b0893f321c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): mistralrs-core/src/vision_models/gemma3n/audio.rs:1127-1136 | mistralrs-core/src/vision_models/gemma4/audio.rs:900-911 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":1127}}}],"partialFingerprints":{"codehealthFindingId/v1":"4761cda765f9273810d9311529c41d243d9fb9cdb5c6d7f4c241883745ae5377"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): mistralrs-core/src/vision_models/mllama/text.rs:39-67 | mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:85-113 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"mistralrs-core/src/vision_models/mllama/text.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6e62e776aff315ec9197cba2828e6236dd02087a568a6bb8d81eaa14fef7847"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): mistralrs-core/src/layers.rs:2898-2917 | mistralrs-core/src/layers.rs:2969-2987 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"mistralrs-core/src/layers.rs"},"region":{"startLine":2898}}}],"partialFingerprints":{"codehealthFindingId/v1":"e50175dd311f3a6fce969fc48003236a2e028e85682de8d0244d1948d44ac1e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): mistralrs-core/src/mla/projection.rs:69-85 | mistralrs-core/src/mla/projection.rs:87-103 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"mistralrs-core/src/mla/projection.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2545b96771b883f4de737099e22f0ff3f910e60a93683b661ed9beef358182b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): mistralrs-core/src/pipeline/loaders/lfm3.rs:95-109 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6974-6993 \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":"mistralrs-core/src/pipeline/loaders/lfm3.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"507c0d4779b90cd46cccc0ef89be42b7f1d543e08825c36d3cc82e449033c915"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): mistralrs-core/src/sequence.rs:194-208 | mistralrs-core/src/sequence.rs:241-254 \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":"mistralrs-core/src/sequence.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e712d1b26903d07b6939b084eb3a94fc5bb8c66958e3ead23f17e526832ba16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): mistralrs-quant/src/f8q8/mod.rs:176-195 | mistralrs-quant/src/gguf/mod.rs:185-200 \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":"mistralrs-quant/src/f8q8/mod.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"43110c46a59fe0d6137b9ef508c058ccdfa4b57ed6d27782163c55e3d54b2ab2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): mistralrs-quant/src/gguf/mod.rs:468-487 | mistralrs-quant/src/gptq/gptq_cpu.rs:15-33 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"mistralrs-quant/src/gguf/mod.rs"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"3362ce2cac7ae842be563d27bb1a7052681cabe7c431c3cc0b7630f08c7b3302"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): mistralrs-server-core/src/files.rs:234-241 | mistralrs-server-core/src/files.rs:284-294 \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":"mistralrs-server-core/src/files.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45fcb2c3675ddc7cbfc08b4e975b66325102db3474101b61b0a0977ebffe05c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): mistralrs-server-core/src/openai.rs:138-151 | mistralrs-server-core/src/openai.rs:157-171 \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":"mistralrs-server-core/src/openai.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f895b4f1129811a735b2579314a05b7a71dd01c8c830af2021bfde3ae44164d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): mistralrs-core/src/vision_models/lfm3_omni/audio.rs:289-296 | mistralrs-core/src/vision_models/lfm3_omni/generation.rs:187-195 \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":"mistralrs-core/src/vision_models/lfm3_omni/audio.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"861c002ab1399c95b6c20cd4d8a1d641f1f82c3ce3064b5ba2c196abb546c3b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): mistralrs-core/src/pipeline/cuda_graph.rs:2945-2957 | mistralrs-core/src/pipeline/cuda_graph.rs:2990-3008 \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":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":2945}}}],"partialFingerprints":{"codehealthFindingId/v1":"92609c9796019ae0c4c4c0d98ee2e64663828998baeaf0b99e042a1d4fb6cc45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): mistralrs-core/src/speech_models/dia/model.rs:264-285 | mistralrs-core/src/vision_models/idefics2/mod.rs:910-923 \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":"mistralrs-core/src/speech_models/dia/model.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a46c8bea78da09420d2c2ff0bbee7dfc54e4718ca38a527e34b7ba766e41843"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:289-299 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:261-271 \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":"mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03fc52de8fbca0bf581f6be451a70ef12c81ba23590d90e58c174d629b18163"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): mistralrs-core/src/sampler.rs:419-431 | mistralrs-core/src/sampler.rs:505-517 \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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"af9381af2b3f91d38207a2f3cf1684f0fdddbd664e6e38f533b1ff9f96a5143a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): mistralrs-core/src/speculative/dflash.rs:2882-2892 | mistralrs-core/src/speculative/dflash.rs:2894-2906 \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":"mistralrs-core/src/speculative/dflash.rs"},"region":{"startLine":2882}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f81c9ad6caec98d396dfec5b4b3078af1e200e3d381b30f99ddc328f1908069"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): mistralrs-core/src/vision_models/idefics2/mod.rs:637-651 | mistralrs-core/src/vision_models/siglip.rs:453-467 \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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"519b6bd5936ae0dc4aadaa4b8361c37aa0d61b8aa2e50618ff871223324a94e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): mistralrs-core/src/vision_models/lfm3_omni/audio.rs:345-352 | mistralrs-core/src/vision_models/lfm3_omni/generation.rs:338-345 \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":"mistralrs-core/src/vision_models/lfm3_omni/audio.rs"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"28151362f80e8027e6270d35fda54b04ca26f6ac305b8119a8ba3f8bffc4dd31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): mistralrs-core/src/vision_models/muse_glimmer/vision.rs:472-479 | mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:266-273 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:238-245 | mistralrs-core/src/vision_models/qwen3_vl/vision.rs:302-309 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/muse_glimmer/vision.rs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd0df2ae14dbbb879c44a53808349780dc1a92b2486f736c14a5e98084b4654a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): mistralrs-core/src/engine/agentic_loop.rs:931-948 | mistralrs-core/src/engine/agentic_loop.rs:955-969 | mistralrs-core/src/engine/agentic_loop.rs:1091-1104 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/agentic_loop.rs"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"852b5e5a0f01b33b2edb53e69641fe910f453b19d833b0013fc2361cf16f6fb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): mistralrs-core/src/vision_models/idefics3/vision.rs:389-400 | mistralrs-core/src/vision_models/llama4/vision.rs:293-307 \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":"mistralrs-core/src/vision_models/idefics3/vision.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a4ea491e262aa63454585645829cbb0b45534ba517777b2cfa68ae63bf2b90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): mistralrs-quant/src/mxfp8/mod.rs:211-219 | mistralrs-quant/src/nvfp4/mod.rs:920-934 \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":"mistralrs-quant/src/mxfp8/mod.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8695b73b3928167cab8cb9985dd93cf3876f53468c14fe444cbb629470d6845"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): mistralrs-server-core/src/metrics.rs:620-643 | mistralrs-server-core/src/metrics.rs:645-666 \u2014 These two members are one piece of code written twice and then edited apart: 22 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":"mistralrs-server-core/src/metrics.rs"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d292de86fabfc0a0686b52948d4688d0abcabf154140f53d116fb9ac7c72a96"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): mistralrs-server-core/src/responses.rs:77-94 | mistralrs-server-core/src/responses_types/items.rs:25-38 | mistralrs-server-core/src/responses_types/items.rs:879-892 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/responses.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"108273d243bb58579f58385cab8bb839cf3eeeef86bc84ef667aef74cbc0b647"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): mistralrs-cli/src/commands/quantize.rs:200-213 | mistralrs-cli/src/commands/serve.rs:1116-1129 \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":"mistralrs-cli/src/commands/quantize.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6665b0948ebb37ff937dd815bf441d8ccf142ff64c553462f8db84943dafbbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): mistralrs-core/src/engine/agentic_loop.rs:208-214 | mistralrs-core/src/engine/agentic_loop.rs:239-245 \u2014 These two members are one piece of code written twice and then edited apart: 7 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":"mistralrs-core/src/engine/agentic_loop.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"1837c499022115d0b6595ab2b74813af693f2844fea2fea849e80074d66eeaaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): mistralrs-core/src/kv_cache/mod.rs:373-387 | mistralrs-core/src/kv_cache/mod.rs:389-403 \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":"mistralrs-core/src/kv_cache/mod.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa668215854687e192fa609b9dad0923722e0cf1dd08e67acab97d53a8e80f92"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 16\u002B corresponding lines): mistralrs-core/src/pipeline/loaders/lfm3.rs:241-261 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:10643-10658 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5132-5149 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6359-6376 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:7159-7175 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/lfm3.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e95e844355d01528e0b081c552bdfeccd394b4d035782911e5dc1ad865d34d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): mistralrs-core/src/sequence.rs:592-607 | mistralrs-core/src/sequence.rs:617-635 | mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:39-57 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/sequence.rs"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"00f7473103c6303c8d1051ecc49c5f305cc94b9de8f63be3139b6ebac2d4955d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): mistralrs-cli/src/commands/serve.rs:878-886 | mistralrs-cli/src/commands/serve.rs:890-898 \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":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"4864f3abc5e937808bf9e316fbedeccad9fe32bff8e1f7a3c40594daaf7a7b98"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): mistralrs-core/src/diffusion_models/clip/text.rs:284-298 | mistralrs-core/src/layers_masker.rs:131-151 | mistralrs-core/src/layers_masker.rs:297-313 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/diffusion_models/clip/text.rs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"04b486acf7207f7ece2a20e5def491775e617dbab5d892340869845ada2cf1cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): mistralrs-core/src/engine/admission.rs:112-126 | mistralrs-core/src/engine/admission.rs:128-138 \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":"mistralrs-core/src/engine/admission.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"c09be6ab7d88871699c0b19810de2060f294d7fb60667d10773f9be6728f28f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:280-290 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:173-183 \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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3c3f15930f929bcf0db26815a6d6ff21021a85ed736da1817f862db4539245"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1414-1428 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2794-2808 \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":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":1414}}}],"partialFingerprints":{"codehealthFindingId/v1":"52207f075cd97004ec43df73dcebf694753ab1fed45f80d379c8da53580d67ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): mistralrs-core/src/tools/parsers/liquid.rs:103-119 | mistralrs-core/src/tools/parsers/liquid.rs:203-219 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"mistralrs-core/src/tools/parsers/liquid.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b26565e827061dcb979dde9112be07c37c03cba9ac425171b6b05188c9a82a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): mistralrs-core/src/lib.rs:2486-2497 | mistralrs-core/src/lib.rs:2499-2511 | mistralrs-core/src/lib.rs:2513-2524 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lib.rs"},"region":{"startLine":2486}}}],"partialFingerprints":{"codehealthFindingId/v1":"98cdd0fccfdfe23111ac53308a16ab054f82baed8c551791af8e666ff5b623c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): mistralrs-core/src/models/qwen3_next.rs:1186-1198 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:523-535 \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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d3fee3e53b8b0b98a3436ffcb6297176bdecae4d20b1694d5377a76c241e8ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2014-2040 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2046-2070 \u2014 These two members are one piece of code written twice and then edited apart: 25 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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":2014}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6e293c6621ee12aa64834815155378a6b503daf9fdb86a8927a7fda4b8e7571"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:10255-10269 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6897-6910 \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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":10255}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6bb4fbd9c58526fe2d3c578188738d7fc9aaee421ff9e2a454f105eb7543a8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): mistralrs-core/src/sequence.rs:416-428 | mistralrs-core/src/sequence.rs:454-466 | mistralrs-core/src/sequence.rs:498-510 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/sequence.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9754569fb9e33060e20dc9c9deff475bf59c340e97dbc47570061959339f05c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): mistralrs-quant/src/distributed/layers.rs:761-769 | mistralrs-quant/src/distributed/layers.rs:1339-1347 \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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a3b95931af28f7b03cc0a410658731949b047ec78f1ebade363c805b9309b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): mistralrs-core/src/lib.rs:652-672 | mistralrs/src/gguf.rs:183-202 \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":"mistralrs-core/src/lib.rs"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf694b9b22a19486c6ceb6f4a3873bd7d7382a45ba0128f52434e61e0adfc154"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): mistralrs-core/src/models/gemma2.rs:375-393 | mistralrs-core/src/vision_models/gemma3/text.rs:385-404 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:351-368 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/gemma2.rs"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"b25c4ea9020d3ee0c170c2d8db88de2fbb107062a95556e1f68dec9566a4fed6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): mistralrs-core/src/sequence.rs:2101-2111 | mistralrs-core/src/sequence.rs:2133-2143 \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":"mistralrs-core/src/sequence.rs"},"region":{"startLine":2101}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f4b66bb1fec151b96af1fdb9243dfb604fbb97ee61b4847d6543af11e1da3a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): mistralrs-quant/src/utils/log.rs:12-23 | mistralrs-quant/src/utils/log.rs:25-36 | mistralrs-quant/src/utils/log.rs:38-49 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/utils/log.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb33147006697e6c4827c5ff2f84f18600fa95074ac6ac06714659ef3a5a01d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): mistralrs-server-core/src/anthropic.rs:1293-1310 | mistralrs-server-core/src/anthropic.rs:1312-1329 \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":"mistralrs-server-core/src/anthropic.rs"},"region":{"startLine":1293}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8dc4a378ab20101cc7504eb0e327555aae2bddaf16aa36d25184e23fab71385"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): mistralrs-core/src/layers.rs:657-663 | mistralrs-core/src/vision_models/gemma4/mtp.rs:417-424 \u2014 These two members are one piece of code written twice and then edited apart: 7 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":"mistralrs-core/src/layers.rs"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"435465008625dca3f13d3718e4ffe67c15a7cd4a88db99ab8928b153da7f7792"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): mistralrs-core/src/pipeline/cuda_graph.rs:1256-1265 | mistralrs-core/src/pipeline/cuda_graph.rs:1267-1276 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":1256}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e568106011089a707afc29dee1dca3b4df31fee46f14dae6bffd075ed46284"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): mistralrs-core/src/vision_models/gemma3n/audio.rs:240-250 | mistralrs-core/src/vision_models/gemma4/audio.rs:73-80 \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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbfbffb32f08ed2c7fefe0d8444a86365af30b680ff6ee12fe09f0d51c49c0ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): mistralrs-core/src/vision_models/qwen2vl/mod.rs:62-74 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:592-604 \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":"mistralrs-core/src/vision_models/qwen2vl/mod.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ced3bffbcc4c2aece142f539be6404da1c2d0fe31cc34ebcdf9eb26da49ec01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): mistralrs-server-core/src/metrics.rs:677-689 | mistralrs-server-core/src/mistralrs_server_router_builder.rs:475-487 \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":"mistralrs-server-core/src/metrics.rs"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d88a8891f8de8863395f6adb5460e066c4a27b4098f1b0e2432b794ce9741d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): mistralrs-core/src/attention/backends/cpu/neon.rs:423-432 | mistralrs-core/src/attention/backends/cpu/neon.rs:661-670 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"mistralrs-core/src/attention/backends/cpu/neon.rs"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb24cc0b8b3dca2d8e67094e7ece682c61ec102760be7e9e8ce1bdf34c29c06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): mistralrs-core/src/cuda/dflash_context.rs:96-103 | mistralrs-core/src/speculative/dflash.rs:867-874 \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":"mistralrs-core/src/cuda/dflash_context.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"8176ca9f1026fb6090e64ed6478d62741949cfa69b47666face7c4d3e3b86a40"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): mistralrs-core/src/decision.rs:86-97 | mistralrs-core/src/decision.rs:99-110 \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":"mistralrs-core/src/decision.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c052d2270b5f1ee319695d7916615944b4cce23cd08b9b8ecc3ccaaeee34eb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): mistralrs-core/src/diffusion_models/processor.rs:76-90 | mistralrs-core/src/pipeline/speech.rs:136-147 \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":"mistralrs-core/src/diffusion_models/processor.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b3b4317eae352287fec9b5db96d7d2d96d1c525085a025243da73ec3ef30f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): mistralrs-core/src/vision_models/grid_processor.rs:861-877 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:36-52 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:584-600 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"f543caa18e3cdc1e7b7b06fe5c28f887b0538c69146685ff1a91fb05e5a86275"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:321-335 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:367-383 | mistralrs-core/src/vision_models/mllama/text.rs:317-331 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/llava/llava_llm/llama.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"540e20dacf2cb539b1344d826304475186966ef4669fe4e28e9dfe80d48606ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): mistralrs-core/src/vision_models/qwen3_5/text.rs:1095-1109 | mistralrs-core/src/vision_models/qwen4_exp/text.rs:652-666 \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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e0450a79ee247b661aebc24c623f8397f3eaa8a43604299345fb1cd19d591b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): mistralrs-cli/src/commands/uqff.rs:471-483 | mistralrs-quant/src/uqff/report.rs:1662-1673 \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":"mistralrs-cli/src/commands/uqff.rs"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"648a716cca11cf0cded9c9c5ef8df9b3ccb99eebee94150ebbe71cd37cc8b32f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): mistralrs-core/src/embedding_models/qwen3_embedding.rs:278-290 | mistralrs-core/src/vision_models/voxtral/encoder.rs:186-197 \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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fbbb21e0572d31377a912f55cdffd25d55381e5b111653d574abeace1b16a38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): mistralrs-core/src/gguf/multimodal_bindings.rs:587-603 | mistralrs-core/src/gguf/multimodal_bindings.rs:611-628 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"mistralrs-core/src/gguf/multimodal_bindings.rs"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f777cb0e8871e2765ab01cfdd64d2c54af08b2acdd9ed400df0cc7a4bcd05f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): mistralrs-core/src/pipeline/isq_flow/drive.rs:33-44 | mistralrs-core/src/pipeline/isq_flow/drive.rs:58-72 \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":"mistralrs-core/src/pipeline/isq_flow/drive.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6846750cb2af98580b50d166a25141bb6c24020007fa7105e5036a35b483b6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1377-1394 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2756-2772 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":1377}}}],"partialFingerprints":{"codehealthFindingId/v1":"32de6bdad4b0586744ad35a8b2038a93bc847ddc53a9d6a5d31e60f3787ab130"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): mistralrs-core/src/pipeline/multimodal.rs:1799-1808 | mistralrs-core/src/pipeline/multimodal.rs:1809-1818 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1799}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b9ef4a209cdc6599e2418a3e2b3ff52dcf085186a14eca927b2d329a9821ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:286-300 | mistralrs-core/src/vision_models/llama4/inputs_processor.rs:320-334 \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":"mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"848b3610c42dc4452c43238d85e24c231dcd06b8b28461059e840b0ce0a27357"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): mistralrs-core/src/vision_models/qwen3_5/text.rs:1150-1165 | mistralrs-core/src/vision_models/qwen4_exp/text.rs:694-709 \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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"974c742af46aab7048137c878fd1e217d9b0ec06bc240f12fd97b65ab74a5c28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): mistralrs-core/src/vision_models/qwen4_exp/qsa.rs:719-731 | mistralrs-core/src/vision_models/qwen4_exp/qsa.rs:734-746 \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":"mistralrs-core/src/vision_models/qwen4_exp/qsa.rs"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a83a4a1cc4d0934ed7994c8f8b9ce5dae33b2263ab8bfb1ed3245609502a6f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): mistralrs-core/src/diffusion_models/clip/text.rs:238-246 | mistralrs-core/src/vision_models/clip.rs:269-277 \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":"mistralrs-core/src/diffusion_models/clip/text.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa6a23ff69b51325794ef3ef73e69363a2a9bf23d85f54e26feecebcd864f363"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:114-128 | mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:688-702 \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":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"f06492a7c970962c1f46621d230223ec8de8f275694ebf0afde182025115beb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): mistralrs-flash-attn/src/flash.rs:1045-1064 | mistralrs-flash-attn/src/flash.rs:1107-1123 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"mistralrs-flash-attn/src/flash.rs"},"region":{"startLine":1045}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6c73ddb2cbea47cb716381cc1cef18571e9775d41c7f694527000ad9f21c34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): mistralrs/src/anymoe.rs:41-54 | mistralrs/src/anymoe.rs:65-78 \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":"mistralrs/src/anymoe.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b8da9ec0e6112e0a087bab102a836f31e2cf14caa6f9686a046a7b44b6f94f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:503-518 | mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:706-720 \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":"mistralrs-core/src/pipeline/loaders/embedding_loaders.rs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c9e6e4e703fd1b02bdb5f2d27f7890c28346be3b69ecff74469a8773632341"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9154-9169 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9170-9184 \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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":9154}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2ad138dde6d0aa18e0fada94ea6ec89199eab668ac9484f7e28a607a87d5bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 6\u002B corresponding lines): mistralrs-core/src/vision_models/gemma4/vision.rs:178-183 | mistralrs-core/src/vision_models/muse_glimmer/vision.rs:171-176 | mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:134-139 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:105-110 | mistralrs-core/src/vision_models/qwen3_vl/vision.rs:137-142 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/gemma4/vision.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff10d50896d1e2449e90cd5b0b091b9074d1f4f8fd522cc8f7fe240bca2ad52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:311-317 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:283-289 \u2014 These two members are one piece of code written twice and then edited apart: 7 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":"mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e9d3fc23c2da4220df96dfb887369e5ac5471a1f5a5491a119fa9ece7770083"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): mistralrs-core/src/vision_models/qwen3_5/text.rs:1170-1181 | mistralrs-core/src/vision_models/qwen4_exp/text.rs:714-727 \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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"b53dd85b3786247f20603bb7be3f2a363c30e8a4e665609d565f3c40d0fefc10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): mistralrs/src/model_builder_trait.rs:105-115 | mistralrs/src/model_builder_trait.rs:129-140 \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":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"b94566a6193f38bdda25c61f08bf4d640e6aa99f49435f8570b4d809c9955f5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): mistralrs-core/src/diffusion_models/t5/mod.rs:151-160 | mistralrs-core/src/vision_models/muse_glimmer/vision.rs:17-23 \u2014 These two members are one piece of code written twice and then edited apart: 7 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":"mistralrs-core/src/diffusion_models/t5/mod.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c06d4520d4a275bd9f9d7b64b1d5cda55558f89418de41ae145a727c70dd04"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): mistralrs-core/src/gguf/normal_config.rs:653-666 | mistralrs-core/src/gguf/normal_config.rs:2743-2756 \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":"mistralrs-core/src/gguf/normal_config.rs"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"585caf079b4a0fbb4d350e2dd4145f43cf0ec9496ad5f57dcbfc1ee6f7a893fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): mistralrs-core/src/models/lfm2.rs:704-716 | mistralrs-core/src/models/lfm2.rs:718-726 \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":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eaa48e9740979d554eda3775c13f179fb49a7df1b460e18643f84e9c33c1716"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): mistralrs-core/src/vision_models/gemma3n/vision.rs:323-335 | mistralrs-core/src/vision_models/gemma3n/vision.rs:713-728 \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":"mistralrs-core/src/vision_models/gemma3n/vision.rs"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"93767e77e6e3c0b86c66ae5d7c8af13b4d9f6b7e940db24a3d4f285d62e7c751"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:134-141 | mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:303-310 | mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:437-444 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bba7979f66010ab3b3de3678c4e19744a9226399008c26bf60148ac4d25ff34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): mistralrs-quant/src/blockwise_fp8/mod.rs:735-751 | mistralrs-quant/src/mxfp4/mod.rs:155-165 | mistralrs-quant/src/mxfp8/mod.rs:259-269 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"52ae0f11cd4e7f0d3c0c1c5242c60b520a29c31f8dab072334cbdd00ea6879be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): mistralrs-quant/src/cutile/fp8_gemm.rs:157-169 | mistralrs-quant/src/cutile/mod.rs:359-371 \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":"mistralrs-quant/src/cutile/fp8_gemm.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d36d57546a742b09cdb4985e69f3442702906a36f82e808e3365b5054d9e5c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): mistralrs-core/src/kv_cache/hybrid_cache.rs:785-796 | mistralrs-core/src/kv_cache/hybrid_cache.rs:832-843 \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":"mistralrs-core/src/kv_cache/hybrid_cache.rs"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d8d9544daccfb68a3f023a13b57885fdf6f6c74022c6403372b750bed80900"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): mistralrs-core/src/pipeline/cuda_graph.rs:2911-2925 | mistralrs-core/src/pipeline/cuda_graph.rs:2930-2943 \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":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":2911}}}],"partialFingerprints":{"codehealthFindingId/v1":"26bcb1392e7a39e6529e43589c0bf6f8bf67f2c05c85c9de4fd86d9b9ec702a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): mistralrs-core/src/speculative/proposer.rs:394-407 | mistralrs-core/src/speculative/proposer.rs:413-427 \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":"mistralrs-core/src/speculative/proposer.rs"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"696494eea3b843528ffa8ba6122c3c5055a0908727b791d24ee67c4e7ed30369"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): mistralrs-quant/src/gguf/fast_mmq.rs:1210-1228 | mistralrs-quant/src/gguf/fast_mmq.rs:1243-1261 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"mistralrs-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd3c1d22fda90768eb547e3ba21046acc1819d870c6690275953817a4fa2045"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): mistralrs-quant/src/lora/dynamic/execution.rs:557-566 | mistralrs-quant/src/lora/dynamic/execution.rs:568-577 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"mistralrs-quant/src/lora/dynamic/execution.rs"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac1ab9f8edd0a8a3d8c4191cb1a231d43c1e0582fba85ca582b1702aed17e48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): mistralrs-core/src/diffusion_models/clip/text.rs:266-276 | mistralrs-core/src/vision_models/clip.rs:306-317 \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":"mistralrs-core/src/diffusion_models/clip/text.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10d5884dbfdbf1b43d22ca6c0a4d6b63e03dc42c718bfa8c786348a47f13f09"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): mistralrs-core/src/gguf/lfm2_vl_bindings.rs:121-132 | mistralrs-core/src/gguf/muse_glimmer_bindings.rs:174-183 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"mistralrs-core/src/gguf/lfm2_vl_bindings.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae07843aeee9819f9ad4bbedbb25050813d146b9007b2b66bd60fa942c2c7d48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): mistralrs-flash-attn/src/flash.rs:252-258 | mistralrs-flash-attn/src/flash.rs:860-866 | mistralrs-quant/src/gptq/marlin_backend.rs:191-197 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-flash-attn/src/flash.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"b831bf14c1fc306c7b1ba830a78a3dc0aeaec948f9f390e6d0f97c59bdf5b062"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): mistralrs-quant/src/distributed/mod.rs:881-893 | mistralrs-quant/src/distributed/mod.rs:1003-1018 \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":"mistralrs-quant/src/distributed/mod.rs"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d96a3cbf3fa6c589345b9cd7873d878a90718935782c16c0db9ebd8c52ec3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): mistralrs-core/src/pipeline/hf/client.rs:114-125 | mistralrs-core/src/pipeline/hf/client.rs:174-185 \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":"mistralrs-core/src/pipeline/hf/client.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"d049cdccd4b7234e1232e9f15e8e39db9189abc44cbd2f0ea9a52c2cd48631ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): mistralrs-core/src/tuning.rs:380-387 | mistralrs-core/src/tuning.rs:391-398 \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":"mistralrs-core/src/tuning.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"66280cc889facb0b806eec1758e54913feae42f02d7a97a9ff542c76f4c134fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): mistralrs-quant/src/distributed/mod.rs:175-183 | mistralrs-quant/src/distributed/mod.rs:185-193 \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":"mistralrs-quant/src/distributed/mod.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b00146b14758d7f6fe5240cbd39837ab4def7d5a06122d2d74e4523c679ae88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): mistralrs-core/src/models/gemma.rs:60-68 | mistralrs-core/src/models/gemma2.rs:91-100 \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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4485d2a76b0ff7c3b7d615546d6d91269fccb4fc00d2314cac45e4230160d15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): mistralrs-core/src/attention/mod.rs:240-247 | mistralrs-core/src/layers_utils.rs:3-10 \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":"mistralrs-core/src/attention/mod.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"28f1eeedac921a6929db54630d98ac76db51973f2bcdf4ef3a8a3d07d5ddf2a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): mistralrs-core/src/pipeline/cuda_graph.rs:2310-2324 | mistralrs-core/src/speculative/dflash.rs:1671-1685 \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":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":2310}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d45aaa8ab48ab65f38d56dc38d830e10214261b5b4ee65d60f9c652f880ff75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 13\u002B corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:979-991 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1306-1319 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3769-3782 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4925-4939 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9189-9202 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca77e23bc6b236a426636a994ada4ab925313970d6c89454146eeb06e67ab00"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): mistralrs-core/src/vision_models/grid_processor.rs:451-459 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:234-242 \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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"6caabe6a680f44285aef7055b2a4a4c82637e0902087ee6982211aedb2e8f0f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): mistralrs-flash-attn/src/flash.rs:900-919 | mistralrs-flash-attn/src/flash.rs:960-976 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"mistralrs-flash-attn/src/flash.rs"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3945b9a99939e286dc6120429c992cadf8cc1fb67962fb38373887941382358"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): mistralrs-quant/src/nvfp4/prepare.rs:58-69 | mistralrs-quant/src/nvfp4/prepare.rs:76-87 \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":"mistralrs-quant/src/nvfp4/prepare.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"1208cbe128e92a0a7a10469ad44ddb1c527c7f759d5eecd9a17641b5d673b6b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): mistralrs-core/src/gguf/lfm3_vl_config.rs:275-283 | mistralrs-core/src/gguf/qwen4exp.rs:564-572 \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":"mistralrs-core/src/gguf/lfm3_vl_config.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"d86ad7285bee49262b0289da74bd92f19fd352b4e8b3ffe1adf8127d68067c1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): mistralrs-core/src/kv_cache/hybrid_cache.rs:802-808 | mistralrs-core/src/kv_cache/hybrid_cache.rs:849-856 \u2014 These two members are one piece of code written twice and then edited apart: 7 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":"mistralrs-core/src/kv_cache/hybrid_cache.rs"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b4e890140811c7be4259efa65cad3da2dee287f50b22f791f66f00215eda384"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): mistralrs-core/src/kv_cache/hybrid_cache.rs:910-927 | mistralrs-core/src/kv_cache/hybrid_cache.rs:1338-1355 \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":"mistralrs-core/src/kv_cache/hybrid_cache.rs"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5faa41ed01a39d7f8ee9751eea49666dc294cc2a6c5781d9a5d65daa18d7968"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): mistralrs-core/src/sampler.rs:90-108 | mistralrs-core/src/sampler.rs:114-132 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b29d195aaa16350b57820b820f0364698165edf6a09af86a37e2bb35a389550"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): mistralrs-core/src/sequence.rs:2016-2024 | mistralrs-core/src/sequence.rs:2056-2064 \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":"mistralrs-core/src/sequence.rs"},"region":{"startLine":2016}}}],"partialFingerprints":{"codehealthFindingId/v1":"c391d64dfb0b540d86f49df27500841437fd6ada33b1a9447065c92628b2f9c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): mistralrs-core/src/speculative/dflash.rs:2736-2745 | mistralrs-core/src/speculative/dflash.rs:2866-2880 | mistralrs-core/src/speculative/dflash.rs:2941-2954 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/speculative/dflash.rs"},"region":{"startLine":2736}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a7ffb7ce6b1220062f20893bfe7e38e40e4f6c3f22b7f1f1a50552e7ce9a4f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): mistralrs-core/src/vision_models/llama4/inputs_processor.rs:374-390 | mistralrs-core/src/vision_models/phi4/inputs_processor.rs:320-327 \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":"mistralrs-core/src/vision_models/llama4/inputs_processor.rs"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"87570f6146fa06a75a081eb45a5027b7fab55dc40efef7184d43e5c05e004657"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): mistralrs-core/src/vision_models/llama4/vision.rs:374-394 | mistralrs-core/src/vision_models/muse_glimmer/vision.rs:397-417 | mistralrs-core/src/vision_models/muse_glimmer/vision.rs:489-509 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/llama4/vision.rs"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"053c2f636725207ab9ecb9a9804fa2d897b1c4768db48cbfeed2f536a216764c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): mistralrs-core/src/vision_models/mod.rs:142-150 | mistralrs-core/src/vision_models/mod.rs:167-179 \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":"mistralrs-core/src/vision_models/mod.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"610f4f4e25ad94c03fbb435204bc1d8f089a56c85823d8a5dda01c6a25941e4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): mistralrs-core/src/vision_models/phi3/mod.rs:162-166 | mistralrs-core/src/vision_models/phi4/image_embedding.rs:71-75 \u2014 These two members are one piece of code written twice and then edited apart: 5 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":"mistralrs-core/src/vision_models/phi3/mod.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb9c36badd4df5d6478ffa5d4d345407ffa236d3ad2ebbe77c31a68ebc86397"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): mistralrs-mcp/src/tools.rs:79-85 | mistralrs-mcp/src/tools.rs:106-112 \u2014 These two members are one piece of code written twice and then edited apart: 7 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":"mistralrs-mcp/src/tools.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"b21d34242d8206ba6cfad2f31d4c5c93c47643ef51fb14a4923dc0998f10492c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): mistralrs-core/src/diffusion_models/t5/mod.rs:30-35 | mistralrs-core/src/layers_masker.rs:80-86 \u2014 These two members are one piece of code written twice and then edited apart: 6 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":"mistralrs-core/src/diffusion_models/t5/mod.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbf2bb53e5bf2d21e2b4518533f0d43395db3fff529a37f20b9c1921b17547ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): mistralrs-core/src/ops.rs:3092-3108 | mistralrs-core/src/ops.rs:3114-3130 | mistralrs-core/src/ops.rs:3137-3153 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/ops.rs"},"region":{"startLine":3092}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c76e83280f3eb9435901e678ea5da38b7ecff8f7fb8434c2868fed755bcb5cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): mistralrs-core/src/ops.rs:6916-6925 | mistralrs-core/src/ops.rs:6943-6952 | mistralrs-quant/src/routed_moe/mod.rs:40-49 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/ops.rs"},"region":{"startLine":6916}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aec884224b3cf395086917e64acab678070719c56d4ff7fd658f854b254451c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4649-4665 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4966-4977 \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":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":4649}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d4d06e3f9e0b80d85e97d47cf43f413b46ac3baaf59d7de4fd217fd738e186"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): mistralrs-core/src/tuning.rs:167-177 | mistralrs-core/src/tuning.rs:216-227 \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":"mistralrs-core/src/tuning.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9821b9bd605851685f4ca0b24237607e6804fea803b14f401cfdaf5d302dc14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): mistralrs-server-core/src/handler_core.rs:179-193 | mistralrs-server-core/src/lora_adapters.rs:609-623 \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":"mistralrs-server-core/src/handler_core.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"223fbcdf63fb0d8364dd73c80ce6269e1a505e2a986c8c38b4206063dc97fb24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): mistralrs-vision/src/ops.rs:4-8 | mistralrs-vision/src/ops.rs:14-20 \u2014 These two members are one piece of code written twice and then edited apart: 5 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":"mistralrs-vision/src/ops.rs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"1914584632e05d43ad980ca94813c5d580e2e6af6006ebb4ef2f0b9cd2b926d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): mistralrs-core/src/diffusion_models/clip/text.rs:177-186 | mistralrs-core/src/vision_models/clip.rs:208-217 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"mistralrs-core/src/diffusion_models/clip/text.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6272ec527bff3182d5568f22a54a11a943ee60132fd2743223442fd7e13628d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): mistralrs-core/src/layers.rs:3780-3788 | mistralrs-core/src/layers.rs:3790-3803 \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":"mistralrs-core/src/layers.rs"},"region":{"startLine":3780}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6dbd2559f44005cda5d60da200ae4f268650d72f0bd48c0788ddd44091028b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): mistralrs-core/src/lib.rs:1973-1983 | mistralrs-core/src/lib.rs:1985-1995 \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":"mistralrs-core/src/lib.rs"},"region":{"startLine":1973}}}],"partialFingerprints":{"codehealthFindingId/v1":"756a1b2fa8e7a46c987d975328cbd73fa01e675f755befd5590c021c3956e2d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): mistralrs-core/src/models/glm4_moe.rs:407-414 | mistralrs-core/src/models/glm4_moe_lite.rs:500-507 | mistralrs-core/src/vision_models/gemma3n/text.rs:270-280 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/glm4_moe.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4ac3f3029c71b6e91ffdc95810a2f025f3804c847f94f5c90e2ec8d4147973"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): mistralrs-core/src/models/phi2.rs:399-407 | mistralrs-core/src/xlora_models/phi2.rs:357-374 \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":"mistralrs-core/src/models/phi2.rs"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"f63a1a029ff5e918e7e07067b2722f9649bd9d89bac3c5cf72d99c399014f54c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): mistralrs-core/src/reasoning_parsers/harmony.rs:345-357 | mistralrs-core/src/reasoning_parsers/harmony.rs:386-398 \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":"mistralrs-core/src/reasoning_parsers/harmony.rs"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c2426d7e310c0936a1ce60641d5fa122cb72de26a985a5759cc67cc6a289b9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): mistralrs-core/src/speculative/dflash.rs:2163-2176 | mistralrs-core/src/speculative/dflash.rs:2755-2770 \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":"mistralrs-core/src/speculative/dflash.rs"},"region":{"startLine":2163}}}],"partialFingerprints":{"codehealthFindingId/v1":"4939ff6e20cfdf163b1583cea0de2534a5723102331be78e708b9e135dd92577"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): mistralrs-quant/src/fp8_config.rs:420-431 | mistralrs-quant/src/lib.rs:787-798 \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":"mistralrs-quant/src/fp8_config.rs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"09b7d2ef0a491c31debcd33087a94bb67639c14978f6d897e11ad36c57b6f7d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): mistralrs-core/src/device_map/mappers.rs:134-141 | mistralrs-core/src/device_map/mappers.rs:351-360 \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":"mistralrs-core/src/device_map/mappers.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da69a567bcd348b4b21022640275c0a9343d080d350e677c919a8c16b2a19f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): mistralrs-core/src/pipeline/multimodal.rs:2760-2768 | mistralrs-core/src/pipeline/normal.rs:2324-2332 \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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2760}}}],"partialFingerprints":{"codehealthFindingId/v1":"d31a96b4855fc7b0f7b181a94d41beeffd4ca73a65e79930cc607e42b960930b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): mistralrs-core/src/sampler.rs:1056-1069 | mistralrs-core/src/sampler.rs:1084-1093 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e23fb589f7f468ac248065f3842e0ecd43c79d330fb9f9fba10412a05b05d55"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): mistralrs-core/src/sampler.rs:1100-1109 | mistralrs-core/src/sampler.rs:1117-1131 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":1100}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e03ef5917afe71c5b5959be88add5a83eda6bcc9fd4584ad9baf6b49dabebc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): mistralrs-core/src/sequence.rs:1155-1163 | mistralrs-core/src/sequence.rs:1165-1173 \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":"mistralrs-core/src/sequence.rs"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"5967e44fa019fbadb7285ef9891ed9e7bc41c0c9d0a69971e44bd1b55d56433f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): mistralrs-core/src/vision_models/idefics2/mod.rs:752-760 | mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:125-131 \u2014 These two members are one piece of code written twice and then edited apart: 7 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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"709cf5a87405422bdd31445cffdfb2c88b5fb5bc28265b634f4c5f4d73727c8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): mistralrs-core/src/vision_models/voxtral/adapter.rs:25-46 | mistralrs-core/src/vision_models/voxtral/mod.rs:253-257 \u2014 These two members are one piece of code written twice and then edited apart: 5 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":"mistralrs-core/src/vision_models/voxtral/adapter.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca85d18022e0f9f7deac66761ba348e2159b941d2c5cebc71625ff04c24388b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): mistralrs-paged-attn/src/metal/kernels/mod.rs:259-270 | mistralrs-quant/src/metal_kernels/fp8.rs:51-61 \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":"mistralrs-paged-attn/src/metal/kernels/mod.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a51a7cf2269466a13583c5fe90d8b4ceaaf2cd825053b884c30e303bac0e75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): mistralrs-server-core/src/embeddings.rs:42-52 | mistralrs-server-core/src/image_generation.rs:35-45 \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":"mistralrs-server-core/src/embeddings.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"430a2ff67236fbb8dec563eda3dbc4a01a700407d512cedca24f67b88f5e7c95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 13\u002B corresponding lines): mistralrs-core/src/lib.rs:2217-2229 | mistralrs-core/src/lib.rs:2235-2247 | mistralrs-core/src/lib.rs:2253-2265 | mistralrs-core/src/lib.rs:2527-2541 | mistralrs-core/src/lib.rs:2590-2604 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lib.rs"},"region":{"startLine":2217}}}],"partialFingerprints":{"codehealthFindingId/v1":"196b1ffea3daecce170c172ce051df37d5a227c1fa4019a94762632a90bd5769"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): mistralrs-core/src/models/lfm3.rs:820-833 | mistralrs-core/src/models/lfm3.rs:841-854 \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":"mistralrs-core/src/models/lfm3.rs"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aeceaa3625ed99000457227e40d5ec9d58d290693c0e77092ce4a5084413b47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): mistralrs-core/src/paged_attention/config.rs:103-114 | mistralrs-core/src/paged_attention/config.rs:120-131 \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":"mistralrs-core/src/paged_attention/config.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"00deb02730fb94d733ca1756717de615823bde49f178c9594bb5a0265c38cd9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2337-2347 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3089-3099 \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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":2337}}}],"partialFingerprints":{"codehealthFindingId/v1":"f016a10179388240d27f2ca13c5125e5a1964ac325eed79561409436b6e4d044"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): mistralrs-core/src/sequence.rs:2034-2044 | mistralrs-core/src/sequence.rs:2074-2084 | mistralrs-core/src/sequence.rs:2121-2131 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/sequence.rs"},"region":{"startLine":2034}}}],"partialFingerprints":{"codehealthFindingId/v1":"41bd7d3f7665dad45ba0905efe40a6f336f4cef9d77e120f8bd2e46edf6f7836"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:54-63 | mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:56-65 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"2acca4da071dcf95825e9dbda80f7d7d9483e9325d4553258d94b20104bbc38d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): mistralrs-quant/src/metal_kernels/mod.rs:1012-1022 | mistralrs-quant/src/metal_kernels/mod.rs:3697-3707 \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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":1012}}}],"partialFingerprints":{"codehealthFindingId/v1":"b21877ddf2a18958ce12c10e358b39eadb9237959c8f91686669fc55049ba17d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): mistralrs-code-exec/src/lib.rs:84-93 | mistralrs-code-exec/src/shell.rs:45-53 \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":"mistralrs-code-exec/src/lib.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"277fff0c4b8938ee9902584785350dd47d9f1a374bf9f755e28cbc5527799774"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): mistralrs-core/src/lib.rs:784-793 | mistralrs-core/src/lib.rs:799-808 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"mistralrs-core/src/lib.rs"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfccb572e6a346e12e8d4c015f5bf22035eef14c3e3cebf0b51284797c947cad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4838-4848 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5201-5211 \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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":4838}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d59d1c564af12e575a4c5ee418b3e38071a0207fac89356359695aec950512"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): mistralrs-core/src/reasoning_parsers/harmony.rs:330-342 | mistralrs-core/src/reasoning_parsers/tag_based.rs:329-341 | mistralrs-core/src/reasoning_parsers/tag_based.rs:346-358 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/reasoning_parsers/harmony.rs"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeeb6b35e79d1696f6d51ce408ac6d310747a9e1e2f1271bb2e0cad9f09a36e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): mistralrs-core/src/vision_models/idefics2/mod.rs:1384-1399 | mistralrs-core/src/vision_models/llama4/mod.rs:275-287 | mistralrs-core/src/vision_models/mllama/mod.rs:402-413 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":1384}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf4895f39873e040b24422c4ec6c7f68c5da72cd8be090405fe007d400d3a41"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): mistralrs-core/src/vision_models/lfm3_omni/audio.rs:499-505 | mistralrs-core/src/vision_models/lfm3_vl/mod.rs:84-90 | mistralrs-core/src/vision_models/mistral3/mod.rs:154-165 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/lfm3_omni/audio.rs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"e44aad71aa9c71076492298ea33f1708b0f6116d01497e11489491690c940903"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): mistralrs-quant/src/cublaslt/api.rs:262-279 | mistralrs-quant/src/cublaslt/api.rs:556-570 \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":"mistralrs-quant/src/cublaslt/api.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ff2b04d5024aa6070112eccbb5d79aaea29e8a49eff225e2d5ebd0a6bf556e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): mistralrs-flash-attn/src/flash.rs:994-1010 | mistralrs-flash-attn/src/flash.rs:1168-1184 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"mistralrs-flash-attn/src/flash.rs"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec8d75711042c09c4471d1adab9af9baf5bed36561c380ed4a03c218ef8b7daf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): mistralrs-mcp/src/transport.rs:974-982 | mistralrs-mcp/src/transport.rs:1009-1023 \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":"mistralrs-mcp/src/transport.rs"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4c106564812f4e7388b3dcb22558847b8f50bd1791e2bdf3969d35b6ebf2fef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): mistralrs-core/src/kv_cache/hybrid_cache.rs:815-825 | mistralrs-core/src/kv_cache/hybrid_cache.rs:863-873 \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":"mistralrs-core/src/kv_cache/hybrid_cache.rs"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfad8fc1bfc7cfd3b0e2b18da25dbcd2cf3b1d4509fd4d6c0fd35dc348948f12"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): mistralrs-core/src/pipeline/loaders/lfm3.rs:136-152 | mistralrs-core/src/pipeline/loaders/lfm3_vl.rs:217-230 \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":"mistralrs-core/src/pipeline/loaders/lfm3.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"b875e4863fd0733f407bbef51b99bcb43c00cb69975a7b28e8acdf6336a5ad0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9208-9225 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9231-9242 \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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":9208}}}],"partialFingerprints":{"codehealthFindingId/v1":"287f4816642064f9f66d2debbdc748deea93e32ae660eed2e8c7b54f01341857"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:10048-10058 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:10738-10748 \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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":10048}}}],"partialFingerprints":{"codehealthFindingId/v1":"2640238f3721091933050f11142f3e16eef5374d384f759d1f6f7e92e7cf0165"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 16\u002B corresponding lines): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3708-3723 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3919-3935 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4168-4184 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4399-4415 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5266-5282 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":3708}}}],"partialFingerprints":{"codehealthFindingId/v1":"72cc539b2c5119d2923c2f3a0eb5c8cd48ebb5902c093f98b0c440cad5388a33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): mistralrs-core/src/utils/model_config.rs:218-241 | mistralrs-core/src/utils/model_config.rs:245-269 \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":"mistralrs-core/src/utils/model_config.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a907762e86363c5d6e0d024feebb4bfb4ed7df3a5295366ae19a1fd8678c69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 8\u002B corresponding lines): mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:82-89 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:81-89 | mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:115-123 | mistralrs-core/src/vision_models/qwen2vl/text.rs:82-90 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:69-77 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:76-83 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad527b5bcbfbf73fab3852f0bb85ec5a970b6ef76846d2862a1adb9d6b7c733"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): mistralrs-core/src/vision_models/qwen3_5/text.rs:1080-1093 | mistralrs-core/src/vision_models/qwen4_exp/text.rs:520-533 \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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":1080}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1097ee9d2a67e9e73ada5d3eb4458fbd676e9f2dffdab34d19f31bf27d9805"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): mistralrs-core/src/gguf/qwen4exp.rs:555-562 | mistralrs-core/src/gguf/lfm3_vl_config.rs:250-256 \u2014 These two members are one piece of code written twice and then edited apart: 7 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":"mistralrs-core/src/gguf/qwen4exp.rs"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b771ef0b3091003dd09c9370588aac91297687f5e7bf318a94dd80fc30185e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): mistralrs-core/src/pipeline/multimodal.rs:3254-3269 | mistralrs-core/src/pipeline/normal.rs:2801-2816 \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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":3254}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd8341abcaa7168ba8ec6cc581f83487f9c576cb8be7446e1d5289e6b2b4c5fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): mistralrs-core/src/vision_models/qwen3_5/config.rs:426-434 | mistralrs-core/src/vision_models/qwen3_5/text.rs:1342-1350 \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":"mistralrs-core/src/vision_models/qwen3_5/config.rs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e7428a2012287c6c0db19aa0046f5c8ced69f28692c6fc41a89b35c07984b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 9\u002B corresponding lines): mistralrs-cli/src/args/mod.rs:465-473 | mistralrs-cli/src/commands/bench.rs:68-77 | mistralrs-cli/src/commands/serve.rs:900-908 | mistralrs-cli/src/commands/serve.rs:910-918 | mistralrs-cli/src/commands/serve.rs:920-929 | mistralrs-cli/src/commands/serve.rs:931-940 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/args/mod.rs"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2b0a3ce48aab681b2f5f54ed9b4397c1fc712825193758a33259a17bf2228f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): mistralrs-core/src/vision_models/idefics2/mod.rs:611-618 | mistralrs-core/src/vision_models/idefics3/vision.rs:408-415 | mistralrs-core/src/vision_models/mistral3/vision.rs:256-264 | mistralrs-core/src/vision_models/siglip.rs:419-426 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a94cf7b9caf92497bc32221fc45fef77019843c1fcf1ece53976aeb8008761b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): mistralrs-quant/src/fp8/mod.rs:29-48 | mistralrs-quant/src/mxfp4/mod.rs:39-49 | mistralrs-quant/src/unquantized/mod.rs:55-65 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/fp8/mod.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ac9b45c36a35c49da110f7f567ac8d12e0955aa2de7afbe69eb9809785b134"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 6\u002B corresponding lines): mistralrs-core/src/models/flint.rs:507-513 | mistralrs-core/src/models/quantized_llama.rs:46-51 | mistralrs-core/src/models/qwen3_moe.rs:338-344 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:258-264 | mistralrs-core/src/vision_models/voxtral/encoder.rs:146-152 | mistralrs-core/src/vision_models/voxtral/mod.rs:235-241 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf2b3e158191d527ea647c38f8349996581c241f3c158ab88fee1205e0f0c180"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): mistralrs-core/src/paged_attention/scheduler.rs:1487-1497 | mistralrs-core/src/scheduler/default_scheduler.rs:364-370 \u2014 These two members are one piece of code written twice and then edited apart: 7 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":"mistralrs-core/src/paged_attention/scheduler.rs"},"region":{"startLine":1487}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e2e091c1b2547f7c0f8785286b9141ffa05074502e574dd1228d6bf1b66d5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:157-164 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:128-135 | mistralrs-core/src/vision_models/qwen3_vl/vision.rs:171-178 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c5cd3bbc9e804e793da0673ab9a4ede07f5db6f324282bc2d8c78e1896875c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): mistralrs-core/src/xlora_models/phi2.rs:93-104 | mistralrs-core/src/xlora_models/starcoder2.rs:86-97 \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":"mistralrs-core/src/xlora_models/phi2.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4b130b6bfedabf8f4631b6ea7bd665e3b910f962f3a416c0ae2485a8bd9aecb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): mistralrs-core/src/models/glm4_moe.rs:135-148 | mistralrs-core/src/models/lfm3.rs:299-312 \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":"mistralrs-core/src/models/glm4_moe.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"6756ae57802cb0c6b0905b638c51a3154be9ba058ad73191cfbc325f02c96116"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): mistralrs-quant/src/mxfp8/mod.rs:386-393 | mistralrs-quant/src/nvfp4/mod.rs:1266-1273 \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":"mistralrs-quant/src/mxfp8/mod.rs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f139bbdb57703c2d8c502d05fc8ea470c9d24a70a3986d07d2e3277df0883a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): mistralrs-core/src/paged_attention/scheduler.rs:1537-1544 | mistralrs-core/src/scheduler/default_scheduler.rs:386-393 \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":"mistralrs-core/src/paged_attention/scheduler.rs"},"region":{"startLine":1537}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f9b87f743ef5ba07021c4affc8358fe7fa82eee08f040eb6cd19c28d0f6fa82"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): releases/v0.9.3/scripts/bench_decode_serving.py:425-430 | releases/v0.9.3/scripts/merge_results.py:37-41 \u2014 These two members are one piece of code written twice and then edited apart: 5 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":"releases/v0.9.3/scripts/bench_decode_serving.py"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"2908a3bcf0b29ea5b223f1dce89ba7e7fabb3fc1cbd4cd1583587175af6d305f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): mistralrs-pyo3/src/lib.rs:368-378 | mistralrs-server-core/src/mistralrs_for_server_builder.rs:1443-1453 \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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7f0504f9d2c4c2ba69e05d4f1707eba05869bbe57b75061816b9b21566067b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): mistralrs-core/src/vision_models/lfm2_vl/inputs_processor.rs:121-131 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:10304-10312 \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":"mistralrs-core/src/vision_models/lfm2_vl/inputs_processor.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeab48e0605c5c6332e0790f1a0b1525740d99f5657747ec130b11e491e621e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): mistralrs/src/diffusion_model.rs:27-38 | mistralrs/src/speech_model.rs:29-42 \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":"mistralrs/src/diffusion_model.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfce7c3f2634478df67f9e48719af529ec3e789ab961d4554572d922a8272682"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): mistralrs-core/src/kv_cache/rotating_cache.rs:74-80 | mistralrs-core/src/kv_cache/single_cache.rs:50-56 \u2014 These two members are one piece of code written twice and then edited apart: 7 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":"mistralrs-core/src/kv_cache/rotating_cache.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"8598ce9e07ec54499d5c84a74839c653fa5a915f259abdd5db3800f880547d0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): mistralrs-server-core/src/completion_core.rs:42-51 | mistralrs-server-core/src/responses.rs:819-828 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"mistralrs-server-core/src/completion_core.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"3169357c9f677590f458757ac52b787a1f2bb2cc3d8dc205ce6991ab8621a17c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): mistralrs-core/src/diffusion_models/t5/mod.rs:183-188 | mistralrs-core/src/vision_models/llama4/vision.rs:247-252 \u2014 These two members are one piece of code written twice and then edited apart: 6 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":"mistralrs-core/src/diffusion_models/t5/mod.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7de4fa7d6efeac91c200d8cd47f00a97e4c9f6e9b849a4062b2bb8279e6cd1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): mistralrs-core/src/gdn/norm.rs:32-42 | mistralrs-core/src/models/granite.rs:756-763 \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":"mistralrs-core/src/gdn/norm.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a797a722db19a5b7a5d635baad9658dd65be3d6352f2ab79313460621feade5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): mistralrs-core/src/models/phi3.rs:61-71 | mistralrs-core/src/models/phi3_5_moe.rs:63-73 | mistralrs-core/src/vision_models/phi3/mod.rs:97-107 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/phi3.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc380c4b988f44551a7479a0ca49fca51c8a02cf0095f5d403d5376b860ca2a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:59-67 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:59-67 \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":"mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"000cf11709f61759f768144bff242ddd1ee532f2abdc9ee7b8cfd5af8bbf66d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): mistralrs-pyo3/src/lib.rs:475-484 | mistralrs-server-core/src/lora_adapters.rs:484-494 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fc21f120644f218534834f0633fdc3d187a624ab33b1141c10c5eb22f892cad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): mistralrs-core/src/vision_models/qwen3_5/speculative.rs:907-915 | mistralrs-core/src/vision_models/qwen4_exp/speculative.rs:233-241 \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":"mistralrs-core/src/vision_models/qwen3_5/speculative.rs"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"d78482700c38505d767aabc099d95014e47731956b8cd56718be35b77400bcfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): mistralrs-core/src/lib.rs:681-692 | mistralrs/src/gguf.rs:211-222 \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":"mistralrs-core/src/lib.rs"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"c87f904257a28aa3c919ec55e8a162fd7f323cc179f6413794be0955fa4e55f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): mistralrs-core/src/pipeline/hf/client.rs:37-44 | mistralrs-server-core/src/lora_adapters.rs:413-422 \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":"mistralrs-core/src/pipeline/hf/client.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d6d6703bd3d6f3cbc3fed3bd0e457c8209b7a48c0b6822ca51c9bd3456e0a66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 8\u002B corresponding lines): mistralrs-core/src/cuda/hyper_connection.rs:161-168 | mistralrs-core/src/cuda/qwen4_exp.rs:219-226 | mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:13-20 | mistralrs-paged-attn/src/metal/backend/paged_prefill.rs:392-400 | mistralrs-quant/src/moe/weighted_reduce.rs:25-32 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/cuda/hyper_connection.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"52eef83f199d68ce0fb5e69d9cfb58cff87605339757a85dbe0faea4bca71347"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): mistralrs-core/src/pipeline/ggml.rs:112-129 | mistralrs-core/src/pipeline/gguf.rs:304-320 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"mistralrs-core/src/pipeline/ggml.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc2602492a7232ed65a45a2ba7973e0dfca532755b547d2fb068cf875db1916b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): mistralrs-core/src/layers.rs:3152-3168 | mistralrs-core/src/vision_models/gemma4/text.rs:176-192 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"mistralrs-core/src/layers.rs"},"region":{"startLine":3152}}}],"partialFingerprints":{"codehealthFindingId/v1":"164c589ae4f01b316f4f17f1289219e492aad84a774f56e095a9d86f677f8ff3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): mistralrs-paged-attn/src/cuda/backend/mod.rs:80-83 | mistralrs-quant/src/utils/mod.rs:68-71 \u2014 These two members are one piece of code written twice and then edited apart: 4 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":"mistralrs-paged-attn/src/cuda/backend/mod.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c4b4dcdfda89e55153b47a89705f79f10a2c3de9f4461417d8f26b6389b538e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 6\u002B corresponding lines): mistralrs-core/src/flashinfer/metadata.rs:604-609 | mistralrs-core/src/paged_attention/plan.rs:1059-1065 | mistralrs-quant/src/gguf/archive.rs:1400-1406 | mistralrs-quant/src/gguf/weight_source.rs:1427-1433 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/flashinfer/metadata.rs"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"51ce86743e458596e643ed0978fba7e02e0af12c278e5e55cc137a9c39cd4001"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): mistralrs-core/src/gguf/multimodal_bindings.rs:665-670 | mistralrs-core/src/gguf/qwen4exp.rs:251-256 \u2014 These two members are one piece of code written twice and then edited apart: 6 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":"mistralrs-core/src/gguf/multimodal_bindings.rs"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c8d6a38e93ddb3408709703d323499e9a2297d2f530056a03c175ec5678f61c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): mistralrs-core/src/lib.rs:2267-2273 | mistralrs-pyo3/src/util.rs:97-103 \u2014 These two members are one piece of code written twice and then edited apart: 7 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":"mistralrs-core/src/lib.rs"},"region":{"startLine":2267}}}],"partialFingerprints":{"codehealthFindingId/v1":"3355c086141bb82a6f62fb32f350d2d27da7f5834b474c109b30ea3c10d922d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): mistralrs-core/src/topology/mod.rs:232-238 | mistralrs-core/src/utils/unvarbuilder.rs:203-206 \u2014 These two members are one piece of code written twice and then edited apart: 4 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":"mistralrs-core/src/topology/mod.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d68d57978a6c559277d0a8f37bfa7c9bd18a5c824153e66cd7e7fd60086afc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): mistralrs-core/src/vision_models/gemma4/mod.rs:913-933 | mistralrs-quant/src/metal_kernels/mod.rs:3351-3356 \u2014 These two members are one piece of code written twice and then edited apart: 6 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":"mistralrs-core/src/vision_models/gemma4/mod.rs"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d361fac9bb47a1e23acfd4b9a4018c2b2dc5f40b9f85de825182f47d21a0d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): mistralrs-core/src/pipeline/loaders/lfm3_omni.rs:99-109 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3732-3741 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"mistralrs-core/src/pipeline/loaders/lfm3_omni.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3580d937c810b4f75491cc1140b4b04492d44389e2564c066ec4a058bb11307"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): mistralrs-core/src/vision_models/gemma3/text.rs:590-597 | mistralrs-core/src/vision_models/gemma4/text.rs:1910-1917 \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":"mistralrs-core/src/vision_models/gemma3/text.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2cd51121def5794e9e0ef7442fa686eadd2f2e1cd6d052d9673c26fd897f451"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): mistralrs-core/src/vision_models/llama4/vision.rs:396-403 | mistralrs-core/src/vision_models/mllama/vision.rs:267-272 \u2014 These two members are one piece of code written twice and then edited apart: 6 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":"mistralrs-core/src/vision_models/llama4/vision.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c590bbb1d3e6b0444ab854c82189965f24da347fbe453846116433423b11476"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): mistralrs-quant/src/cutile/fp8_w8a16.rs:153-159 | mistralrs-quant/src/cutile/fp8_w8a8.rs:102-108 \u2014 These two members are one piece of code written twice and then edited apart: 7 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":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"0baf50ab499b79e1287bb7f3ccd0bf57ba9e02c634bfe7c2084664c6e0575241"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): mistralrs-quant/src/cutile/gdn_prefill.rs:598-607 | mistralrs-quant/src/cutile/mxfp8_gemm.rs:480-487 \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":"mistralrs-quant/src/cutile/gdn_prefill.rs"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"570631a8bcb43dd206d67a4026480e71d597efd346ae7a5c173b75b8b84e0e1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): mistralrs-core/src/pipeline/embedding.rs:128-138 | mistralrs-core/src/pipeline/normal.rs:455-468 \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":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3ed7258ab42b429783065044b3293e401181a5bd73a3fd242f10d12033b2b75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): mistralrs-core/src/vision_models/phi4/inputs_processor.rs:1320-1325 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:373-379 \u2014 These two members are one piece of code written twice and then edited apart: 6 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":"mistralrs-core/src/vision_models/phi4/inputs_processor.rs"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd57d10490c6e0d5df38c9162bfbcaac9792764ab6ddd72e45b8c9ce2bab4d9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): mistralrs-core/src/models/phi2.rs:110-113 | mistralrs-core/src/models/starcoder2.rs:90-95 \u2014 These two members are one piece of code written twice and then edited apart: 4 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":"mistralrs-core/src/models/phi2.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a5b83302f42d3116186cdbaa7b54e6b91485307cbd13411086adaae51743ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): mistralrs-quant/src/gguf/weight_source.rs:268-272 | mistralrs-quant/src/uqff/mod.rs:431-435 \u2014 These two members are one piece of code written twice and then edited apart: 5 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":"mistralrs-quant/src/gguf/weight_source.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1055eba3acef9577a487c6d6045daa3345a753e1994d72820d29cf108024d8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): mistralrs-core/src/cuda/hyper_connection.rs:170-176 | mistralrs-core/src/cuda/qwen4_exp.rs:228-234 \u2014 These two members are one piece of code written twice and then edited apart: 7 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":"mistralrs-core/src/cuda/hyper_connection.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"f499cdc740a49a1037fb544bb537c7b51f8566fba4f9b364d5d936194396ab93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): mistralrs-core/src/diffusion_models/clip/text.rs:190-193 | mistralrs-core/src/vision_models/clip.rs:221-224 \u2014 These two members are one piece of code written twice and then edited apart: 4 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":"mistralrs-core/src/diffusion_models/clip/text.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"d284a1b958a643e36695a837c12ee5ce44a81e333a5504342045c663591d87c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): mistralrs-core/src/gdn/cache.rs:110-115 | mistralrs-core/src/kv_cache/hybrid_cache.rs:771-776 \u2014 These two members are one piece of code written twice and then edited apart: 6 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":"mistralrs-core/src/gdn/cache.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"020c9ebf48171f5687b3f9437775fe3640e41f09e63794d4eebbfbe54f201b54"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): mistralrs-quant/src/cutile/fused_moe.rs:751-758 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:640-648 \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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"19900dea70ffae42d8f09679426c5d779dd1a13966559bff19e67f64e042c536"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): mistralrs-cli/src/commands/uqff.rs:1054-1058 | mistralrs-sandbox/src/lib.rs:235-241 \u2014 These two members are one piece of code written twice and then edited apart: 5 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":"mistralrs-cli/src/commands/uqff.rs"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"298fb5f2c96efedd2668521d92c7d96151b4c089168af4d6f22be091b25d9804"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): mistralrs-core/src/pipeline/loaders/lfm3_audio.rs:147-152 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9130-9135 \u2014 These two members are one piece of code written twice and then edited apart: 6 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":"mistralrs-core/src/pipeline/loaders/lfm3_audio.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"29466adb426efff784a26a78aa947334e24871113f115dbae426ceda69e5992d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:156-161 | mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:159-164 | mistralrs-core/src/vision_models/muse_glimmer/inputs_processor.rs:200-205 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"1204ceaf7cd3831ba2f26c9d01cd640c3df67d846fe91d2ab691261551bd35f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): mistralrs-core/src/vision_models/idefics2/mod.rs:1470-1478 | mistralrs-core/src/vision_models/idefics3/mod.rs:422-429 \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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":1470}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba519dae146f3dc3cee8ef9dacbed287ab2f18594954d81ba69801a0d44903f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): mistralrs-quant/src/blockwise_fp8/mma.rs:72-77 | mistralrs-quant/src/utils/mod.rs:48-53 \u2014 These two members are one piece of code written twice and then edited apart: 6 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":"mistralrs-quant/src/blockwise_fp8/mma.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"359ea956bbfb573c2e5013bc6c85e4cd49ed278f5f8ca3043131485ac8ec6f7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 4\u002B corresponding lines): mistralrs/src/auto_model.rs:201-204 | mistralrs/src/diffusion_model.rs:77-80 | mistralrs/src/embedding_model.rs:225-228 | mistralrs/src/gguf.rs:465-468 | mistralrs/src/multimodal_model.rs:175-179 | mistralrs/src/speech_model.rs:88-91 | mistralrs/src/text_model.rs:238-241 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs/src/auto_model.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2b8bbd074dccd5b9de30038d1df286f72259d222735d9a4599d7fd05119bb46"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): mistralrs-core/src/layers.rs:262-265 | mistralrs-core/src/vision_models/gemma4/mtp.rs:909-912 \u2014 These two members are one piece of code written twice and then edited apart: 4 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":"mistralrs-core/src/layers.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"53654196eebe1876d57db5cc2a819e47eec6f67bd30de817a00d056e3c2be7f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): mistralrs-core/src/ops.rs:2471-2473 | mistralrs-core/src/pipeline/cuda_graph.rs:1356-1358 \u2014 These two members are one piece of code written twice and then edited apart: 3 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":"mistralrs-core/src/ops.rs"},"region":{"startLine":2471}}}],"partialFingerprints":{"codehealthFindingId/v1":"826569936ef7fc36e496bc84d60b9a4994a81db7036048d1ba34e84bd8ad72ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): mistralrs-core/src/pipeline/cuda_graph.rs:2303-2308 | mistralrs-core/src/speculative/dflash.rs:1662-1666 \u2014 These two members are one piece of code written twice and then edited apart: 5 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":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":2303}}}],"partialFingerprints":{"codehealthFindingId/v1":"64943a79a3b08527d33f60921c7aff571810ce32c79734db503b6ed8bf27a62d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): mistralrs-core/src/models/qwen3_next.rs:1210-1214 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:439-443 \u2014 These two members are one piece of code written twice and then edited apart: 5 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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f76f427d4ae6319fc796c1f1061874a0dcfe980f99db486229ebe1ac5991c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:921-924 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1832-1836 \u2014 These two members are one piece of code written twice and then edited apart: 4 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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"05fb2ba82b3614aad6e27c02059ea5d816b51458147a41093f996cd53b2d0e61"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): mistralrs-core/src/flashinfer/mod.rs:325-330 | mistralrs-core/src/pipeline/loaders/activation_memory.rs:121-126 | mistralrs-core/src/pipeline/loaders/qwen_vision_memory.rs:29-34 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/flashinfer/mod.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"19727b24ffc2101dd94cd99b6db1389c8f427dd86e0f808631306d00d595e283"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): mistralrs-core/src/pipeline/loaders/activation_memory.rs:114-119 | mistralrs-core/src/pipeline/loaders/qwen_vision_memory.rs:22-27 | mistralrs-paged-attn/src/metal/backend/paged_prefill.rs:378-383 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/activation_memory.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8967920a02b965bcce5c92f7067198d33c6193fe175a47e4f378f039b0fd6b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (148\u2013157 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/mod.rs:1087-1243 | mistralrs-quant/src/pertensor_fp8/mod.rs:651-798 \u2014 \u0060mistralrs-quant/src/blockwise_fp8/mod.rs\u0060 and \u0060mistralrs-quant/src/pertensor_fp8/mod.rs\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 186 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 \u0060mistralrs-quant/src/blockwise_fp8/mod.rs:1087\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":"mistralrs-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"969e3a34bbb2118cfa5a4124413d4dce78fe140aae927b4b5503059c65d3ffb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (110 lines \u00D7 2): mistralrs-core/src/pipeline/mod.rs:2467-2576 | mistralrs-core/src/pipeline/mod.rs:3134-3243 \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 \u0060mistralrs-core/src/pipeline/mod.rs:2467\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":"mistralrs-core/src/pipeline/mod.rs"},"region":{"startLine":2467}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c05b36c2a48a8fd8dd34e7c6e0b89a7ba1428750ea6aa2ae63190728854f4c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (88 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/config.rs:267-354 | mistralrs-core/src/vision_models/qwen3_5_moe/config.rs:72-159 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/config.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/config.rs\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 2 separate duplicated blocks between them, totalling at least 101 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":"mistralrs-core/src/vision_models/qwen3_5/config.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"56af22a2d9f4031d9d565d774cd2e61335be1ec2041b4020c74427bcd69f2a23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (85 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/text.rs:883-967 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:594-678 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs\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 26 separate duplicated blocks between them, totalling at least 469 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 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs:883\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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba2786cc68733a9227355b2a3bc4946b2230f70c424455e62a1f62abe851dde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (79 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:3433-3511 | mistralrs-core/src/pipeline/normal.rs:2861-2939 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/normal.rs:2861\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":3433}}}],"partialFingerprints":{"codehealthFindingId/v1":"83262d3d9bfd6e77bce8377feba07e4b91d836a25a08c82f7c789fbbb39bc277"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (77 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_vl/text.rs:107-183 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:213-289 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_vl/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs\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 45 separate duplicated blocks between them, totalling at least 674 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":"mistralrs-core/src/vision_models/qwen3_vl/text.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"a00ff0ddf3383f75ad505115bebc15b8333749210c217edf542801a529c123f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (117 lines \u00D7 3): mistralrs-core/src/vision_models/grid_processor.rs:1240-1356 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:444-560 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1052-1168 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:1240\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"09eeea36f4017e5ef5f9d4752dfddf20df6260792d8f230881faf2d695d0fbba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (71 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmq.rs:938-1008 | mistralrs-quant/src/gguf/fast_mmq.rs:1409-1479 \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 \u0060mistralrs-quant/src/gguf/fast_mmq.rs:938\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":"mistralrs-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b0fbf153e6d694b5c5cfd6851f091ced2570c41aaeaef8970225d97a0649e1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201368 lines \u00D7 5): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4295-4298 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6799-6866 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7241-7308 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7712-7777 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8234-8299 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6799\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":4295}}}],"partialFingerprints":{"codehealthFindingId/v1":"fac01ee5c95879ef2b8ca298bd87e651533ca93a11513d0191a65ee6379d21d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (160 lines \u00D7 2): mistralrs-core/src/models/deepseek2.rs:321-480 | mistralrs-core/src/models/deepseek3.rs:322-481 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5fdd896424a7891703e40c481323aef07a137dd9d91b10364652a56d4ba01e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (65 lines \u00D7 3): mistralrs-core/src/embedding_models/qwen3_embedding.rs:94-158 | mistralrs-core/src/models/qwen3.rs:105-169 | mistralrs-core/src/models/qwen3_moe.rs:108-172 \u2014 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/models/qwen3.rs\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 26 separate duplicated blocks between them, totalling at least 364 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 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:94\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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e30fc18ab6e003628e8151d435c52b86b02900aa3649a3ee24fb9e484a0dace"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (65 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1169-1233 | mistralrs-core/src/pipeline/normal.rs:1221-1285 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:1169\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2576af27fa9c293acdd98172441d3ed20a5b25490b8758b1d45b135b6b3624d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (297 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_vl/mod.rs:672-968 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:118-414 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_vl/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs\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 25 separate duplicated blocks between them, totalling at least 658 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 \u0060mistralrs-core/src/vision_models/qwen3_vl/mod.rs:672\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":"mistralrs-core/src/vision_models/qwen3_vl/mod.rs"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fbc7385834922839bbf94c4d010bcdc99a2bc82a6baf1f11c6a56355769ea7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (63 lines \u00D7 2): mistralrs/src/messages.rs:420-482 | mistralrs/src/messages.rs:925-987 \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":"mistralrs/src/messages.rs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0b835bf592694c55fb0a047ad893c70f4ccfe76aca92a2a1329a2300c79e24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (62 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1032-1093 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1597-1658 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\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 45 separate duplicated blocks between them, totalling at least 1082 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 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1032\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":"mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"684a45574815b41803d9ecc085b46058b4cd7099a0dcbaff0c7ae9a6a5326438"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (147\u2013148 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:188-335 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:345-491 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/mod.rs\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 396 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 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:188\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":"mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"54241c0a3ca1a639d797e3da012c233e493d192a38f6d8eba4113abd668fc364"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59 lines \u00D7 2): mistralrs-server-core/src/responses.rs:2129-2187 | mistralrs-server-core/src/responses.rs:2248-2306 \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 \u0060mistralrs-server-core/src/responses.rs:2129\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":"mistralrs-server-core/src/responses.rs"},"region":{"startLine":2129}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6c5b2b6ca647963caf7c1a5f3148bf264ddebf810337b0c968e1e2fa0952ce4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (58 lines \u00D7 3): mistralrs-core/src/vision_models/grid_processor.rs:942-999 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:165-222 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:731-788 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:942\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e3a1a396642aed570673d515e25141c50ecd3297ee0c1b4147aff62ba2fbd99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (58 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3175-3232 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3508-3565 \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 \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3175\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":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":3175}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d0c5e377fbadcb2bd77057f00847e6b4140d35c32203ba390c293e71c4b3a80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (57 lines \u00D7 3): mistralrs-core/src/models/deepseek2.rs:327-383 | mistralrs-core/src/models/deepseek3.rs:328-384 | mistralrs-core/src/models/glm4_moe_lite.rs:291-347 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:327\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, \u0060mistralrs-core/src/models/glm4_moe_lite.rs:348\u0060 calls \u0060seqlen_offsets\u0060 and \u0060mistralrs-core/src/models/deepseek2.rs:384\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca222db05580288fb0ced0a879d10895b8157a1aca5b069891beca460425e14b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (60 lines \u00D7 2): mistralrs-paged-attn/src/metal/kernels/mod.rs:549-608 | mistralrs-paged-attn/src/metal/kernels/mod.rs:693-752 \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 \u0060mistralrs-paged-attn/src/metal/kernels/mod.rs:549\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, \u0060mistralrs-paged-attn/src/metal/kernels/mod.rs:691\u0060 calls \u0060set_output_buffer\u0060, \u0060Some\u0060 and \u0060mistralrs-paged-attn/src/metal/kernels/mod.rs:547\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":"mistralrs-paged-attn/src/metal/kernels/mod.rs"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a411b42cabf02a657e27e571f89fbfcdc7692259899621987eb00068bbcd39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (54 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3008-3061 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3341-3394 \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 \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3008\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":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":3008}}}],"partialFingerprints":{"codehealthFindingId/v1":"5523426b44a603d7541849213c11aa018105cd25623e8b6199878233505c3a1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (54 lines \u00D7 2): mistralrs-core/src/vision_models/idefics2/mod.rs:1181-1234 | mistralrs-core/src/vision_models/idefics3/mod.rs:146-199 \u2014 \u0060mistralrs-core/src/vision_models/idefics2/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/idefics3/mod.rs\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 4 separate duplicated blocks between them, totalling at least 87 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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"75cf736a9d75b8d2e370b23c5b51c0ad3779edf6e27db6b0f1ca8375cbe26385"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (54 lines \u00D7 2): mistralrs-core/src/xlora_models/mistral.rs:151-204 | mistralrs-core/src/xlora_models/mixtral.rs:64-117 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/mistral.rs\u0060 and \u0060mistralrs-core/src/xlora_models/mixtral.rs\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 787 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 \u0060mistralrs-core/src/xlora_models/mistral.rs:151\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":"mistralrs-core/src/xlora_models/mistral.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"f84a003ff72e7d901b8e47d41a418404e7e6405cc5e4fb65e69184436c19d9ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (62 lines \u00D7 4): mistralrs-core/src/vision_models/qwen3_5/mod.rs:316-377 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:299-360 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:851-912 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:297-358 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs\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 24 separate duplicated blocks between them, totalling at least 425 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":"mistralrs-core/src/vision_models/qwen3_5/mod.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc40aa75929072166ecc5395a3b28941897370f811d62c4efafb99710eb115e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (88\u201389 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:428-515 | mistralrs-core/src/vision_models/qwen2vl/text.rs:429-517 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/text.rs\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 42 separate duplicated blocks between them, totalling at least 716 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 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:428\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 \u0060rotary_emb\u0060 to \u0060Arc\u003CQwen2_5VLRotaryEmbedding\u003E\u0060 in one and \u0060Arc\u003CQwen2VLRotaryEmbedding\u003E\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":"mistralrs-core/src/vision_models/qwen2_5_vl/text.rs"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ecb4942f313eedd218739e986530e9d8f34b5505895b3c0519c19ed99b3cc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 7): mistralrs-core/src/xlora_models/gemma.rs:643-692 | mistralrs-core/src/xlora_models/gemma2.rs:694-743 | mistralrs-core/src/xlora_models/llama.rs:469-518 | mistralrs-core/src/xlora_models/mistral.rs:639-688 | mistralrs-core/src/xlora_models/mixtral.rs:769-818 | mistralrs-core/src/xlora_models/phi2.rs:609-658 | mistralrs-core/src/xlora_models/starcoder2.rs:624-673 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 498 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 \u0060mistralrs-core/src/xlora_models/gemma.rs:643\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"35bfc0dcb67fd873144e0160f2238430206f4834d08c4ad3215a9e2fabf990c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (65 lines \u00D7 3): mistralrs-core/src/models/llama.rs:639-703 | mistralrs-core/src/models/smollm3.rs:658-722 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:655-719 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/llama.rs\u0060 and \u0060mistralrs-core/src/models/smollm3.rs\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 727 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 \u0060mistralrs-core/src/models/llama.rs:639\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":"mistralrs-core/src/models/llama.rs"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca701701e83aa1cf7efdeecfe4d6e2e7cfd937e622866e92647bdbc84a870c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 3): mistralrs-core/src/vision_models/idefics2/mod.rs:355-404 | mistralrs-core/src/vision_models/idefics3/vision.rs:167-216 | mistralrs-core/src/vision_models/siglip.rs:168-217 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics2/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/idefics3/vision.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 221 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 \u0060mistralrs-core/src/vision_models/idefics2/mod.rs:355\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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6d67e9cce2db91063dde5952bab363778e8a7716d4477e69be32fc60ddc0df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:969-1018 | mistralrs-core/src/pipeline/normal.rs:972-1021 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:969\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"0900b64d17c7aece8b010955730ca2fac9bff262d8504874c3ed9d738629957d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 2): mistralrs-core/src/xlora_models/quantized_llama.rs:859-908 | mistralrs-core/src/xlora_models/quantized_phi3.rs:524-573 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/quantized_llama.rs\u0060 and \u0060mistralrs-core/src/xlora_models/quantized_phi3.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 219 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 \u0060mistralrs-core/src/xlora_models/quantized_llama.rs:859\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":"mistralrs-core/src/xlora_models/quantized_llama.rs"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"078d6fa768ebe7cb8742ee22cc711c61982588d0e512d8f2a4e457666dec11e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49\u201350 lines \u00D7 2): mistralrs-mcp/src/client.rs:461-509 | mistralrs-mcp/src/client.rs:616-665 \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 \u0060mistralrs-mcp/src/client.rs:461\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":"mistralrs-mcp/src/client.rs"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc6e7b1179f3fe6e19ca9015b69cdcdbc48c041eeda030e2efb7a1790a4c8eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47\u201349 lines \u00D7 2): mistralrs-core/src/models/lfm2.rs:514-562 | mistralrs-core/src/models/lfm3.rs:492-538 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/lfm2.rs\u0060 and \u0060mistralrs-core/src/models/lfm3.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 402 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 \u0060mistralrs-core/src/models/lfm2.rs:514\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":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a0128e59187d12cded2bda22feea9435c2cb8f690ef87f8b87e1b55dce26b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 3): mistralrs-core/src/models/qwen2.rs:165-212 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:122-169 | mistralrs-core/src/vision_models/qwen2vl/text.rs:123-170 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/qwen2.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/text.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 319 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 \u0060mistralrs-core/src/models/qwen2.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/qwen2.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02ea2cd896118f04fc49335e06fd3d198b5205671bbf9de5065446466f61d3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 3): mistralrs-core/src/vision_models/grid_processor.rs:1646-1693 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:818-865 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1383-1430 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:1646\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1646}}}],"partialFingerprints":{"codehealthFindingId/v1":"04270e2ff0d93c7121367b55d7dd219771faad6b6da620dee5197f086d21085c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 2): mistralrs-core/src/models/deepseek2.rs:616-663 | mistralrs-core/src/models/deepseek3.rs:679-726 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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. 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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6eff82c9fc77633aa5763c071b31c0186031f3dbe6a6f03c62ae0d10f2ef790"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46\u201348 lines \u00D7 2): mistralrs-core/src/models/glm4_moe.rs:521-566 | mistralrs-core/src/models/glm4_moe_lite.rs:625-672 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/glm4_moe.rs\u0060 and \u0060mistralrs-core/src/models/glm4_moe_lite.rs\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 596 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. 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":"mistralrs-core/src/models/glm4_moe.rs"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"f63690cf9d320b22c218e7e0b2b6873f6fa2d04086d049f5e6f9eac1ce391fbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (117 lines \u00D7 2): mistralrs-core/src/models/deepseek2.rs:169-285 | mistralrs-core/src/models/deepseek3.rs:170-286 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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. 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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2fa84aab49c56a86f41cf8e3643717984b0493418fc4d3030a579afc9f6327a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 3): mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:532-576 | mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:539-583 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:469-513 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 222 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 \u0060mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:532\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":"mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae67471c7f97c548c3b092dc14900416230b55319ee7f9a4df9f554a044dd4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 3): mistralrs-core/src/models/mistral.rs:135-178 | mistralrs-core/src/models/mixtral.rs:81-124 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:155-198 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/mistral.rs\u0060 and \u0060mistralrs-core/src/models/mixtral.rs\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 619 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 \u0060mistralrs-core/src/models/mistral.rs:135\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":"mistralrs-core/src/models/mistral.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"d05032ccda727504f62d389a027a21030b4fffe1f4fa82e7ebb2c00919874341"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): mistralrs-core/src/lora/loralinear.rs:37-80 | mistralrs-core/src/lora/qloralinear.rs:80-123 \u2014 before extracting anything, compare \u0060mistralrs-core/src/lora/loralinear.rs\u0060 and \u0060mistralrs-core/src/lora/qloralinear.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 151 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, \u0060mistralrs-core/src/lora/qloralinear.rs:79\u0060 calls \u0060pp\u0060, \u0060clone\u0060 and \u0060mistralrs-core/src/lora/loralinear.rs:36\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":"mistralrs-core/src/lora/loralinear.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"18debb705e157968e161134c8b32d70b32caebc261263f96e69b7a86e28b7b9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43\u201344 lines \u00D7 2): mistralrs-core/src/models/qwen3_next.rs:195-238 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:100-142 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/qwen3_next.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 461 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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"9def76d6c8c6f8f2f94e6b5f7eb76ac0f6471cbbcd1f4f45c108e3071230f6a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43\u201344 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2996-3038 | mistralrs-core/src/pipeline/normal.rs:2595-2638 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:2996\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2996}}}],"partialFingerprints":{"codehealthFindingId/v1":"395d5d611be34ba87359bc259e9658bf3b00c27e49c9e0afceed5aeb63307798"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4588-4630 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4905-4947 \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 \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4588\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":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":4588}}}],"partialFingerprints":{"codehealthFindingId/v1":"6406e52ffc1999dc972ae28020f11305e877b6c9a29cd6b6473562c0bb98e264"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): mistralrs-quant/src/metal_kernels/mod.rs:1795-1837 | mistralrs-quant/src/metal_kernels/mod.rs:1860-1902 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:1795\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":1795}}}],"partialFingerprints":{"codehealthFindingId/v1":"e366ac4f084cadf492f6b66bca19a78c0a8154049c65695a70b5ef379c95804f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): mistralrs-core/src/embedding_models/embedding_gemma.rs:404-445 | mistralrs-core/src/vision_models/gemma3/text.rs:463-504 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma3/text.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 286 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 \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs:404\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":"mistralrs-core/src/embedding_models/embedding_gemma.rs"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"7afd05a800dd049d753d30a3ca6ae00ebffc4a9fb90e00577a48513222071346"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38\u201342 lines \u00D7 2): mistralrs-core/src/moe/experts/backends.rs:876-917 | mistralrs-core/src/moe/experts/backends.rs:952-989 \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":"mistralrs-core/src/moe/experts/backends.rs"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c8ecb54dd99999bfb1f8f46ddbc23ade57fc8f84cc9ff1b0dd4934a887c860b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1092-1133 | mistralrs-core/src/pipeline/normal.rs:1118-1159 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:1092\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"10669f2dd034128c53f5c34f2e511c804f5a206602cefbb10b3cf1ebd1fc8d91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): mistralrs-core/src/vision_models/phi3/mod.rs:269-311 | mistralrs-core/src/vision_models/phi4/mod.rs:138-180 \u2014 \u0060mistralrs-core/src/vision_models/phi3/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi4/mod.rs\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 48 separate duplicated blocks between them, totalling at least 586 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 \u0060mistralrs-core/src/vision_models/phi3/mod.rs:269\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":"mistralrs-core/src/vision_models/phi3/mod.rs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecf5f621c9d6b73ba4e315bc515bcccdfa073ad8944231f394fcea264eaef8b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/mod.rs:157-197 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:140-180 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs\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 24 separate duplicated blocks between them, totalling at least 425 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 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/qwen3_5/mod.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"b305755a0f6bce69cd5f9569e74b7a09e7def49500fa71fcec075c4c31fb586d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201340 lines \u00D7 10): mistralrs-core/src/models/gemma.rs:612-651 | mistralrs-core/src/models/gemma2.rs:729-768 | mistralrs-core/src/models/glm4.rs:731-770 | mistralrs-core/src/models/hunyuan_v1_dense.rs:699-738 | mistralrs-core/src/models/mistral.rs:740-779 | mistralrs-core/src/models/qwen2.rs:743-782 | mistralrs-core/src/models/qwen3.rs:717-756 | mistralrs-core/src/vision_models/gemma3/text.rs:954-993 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:699-738 | mistralrs-core/src/vision_models/muse_glimmer/text.rs:707-745 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 707 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 \u0060mistralrs-core/src/models/gemma.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e0463e3dcae6403ae2f196d09dff0d8b4ad2e8205a216d97fa42a71dc8be4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 3): mistralrs-core/src/vision_models/grid_processor.rs:1485-1524 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:679-718 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1288-1327 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:1485\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1485}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec070cf2746d546686816269bf293c72ad73ad75a735ab634638280e079828d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): mistralrs-cli/src/commands/config.rs:162-201 | mistralrs-cli/src/commands/serve.rs:182-221 \u2014 before extracting anything, compare \u0060mistralrs-cli/src/commands/config.rs\u0060 and \u0060mistralrs-cli/src/commands/serve.rs\u0060 as WHOLE FILES: this scan already matched 3 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. 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 \u0060mistralrs-cli/src/commands/config.rs:162\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":"mistralrs-cli/src/commands/config.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef08a899bf63dc04636a9f1b1a7f3fb57954b8bb100499aeac11eedd643b2afb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201340 lines \u00D7 2): mistralrs-core/src/cuda/speculative_rejection.rs:521-560 | mistralrs-core/src/cuda/speculative_rejection.rs:588-608 \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 \u0060mistralrs-core/src/cuda/speculative_rejection.rs:588\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":"mistralrs-core/src/cuda/speculative_rejection.rs"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8613b7657e1a98c3d6247a5b6898bff640c65f9b8685314bac00d27ea9c3d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201340 lines \u00D7 2): mistralrs-core/src/lib.rs:1269-1307 | mistralrs-core/src/lib.rs:1312-1351 \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":"mistralrs-core/src/lib.rs"},"region":{"startLine":1269}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ed27b6c3304ed8a8bc115e31fc2def0f8b388582632e0ccbbc233148b30ec7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201340 lines \u00D7 2): mistralrs-core/src/models/lfm2.rs:1014-1053 | mistralrs-core/src/models/lfm3.rs:916-952 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/lfm2.rs\u0060 and \u0060mistralrs-core/src/models/lfm3.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 402 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 \u0060mistralrs-core/src/models/lfm2.rs:1014\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":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"d97feef99ee5879f07b38c237de5d96783e06860e58dcae3196dade492b091fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): mistralrs-core/src/models/phi3.rs:685-724 | mistralrs-core/src/vision_models/phi3/mod.rs:1520-1559 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/phi3.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi3/mod.rs\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 638 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 \u0060mistralrs-core/src/models/phi3.rs:685\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":"mistralrs-core/src/models/phi3.rs"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f89d1f20e47e2a551e21b2bb0f089c243d4442ed71dedec32aca03079d4451"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201340 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2232-2271 | mistralrs-core/src/pipeline/normal.rs:1975-2013 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:2232\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, \u0060mistralrs-core/src/pipeline/multimodal.rs:2272\u0060 calls \u0060as_ref\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs:2014\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2232}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f1afa09f74e00423bbef45dbc959020480454be2e72d4e626b32cb75164305"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38\u201340 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2569-2608 | mistralrs-core/src/pipeline/normal.rs:2201-2238 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2569}}}],"partialFingerprints":{"codehealthFindingId/v1":"36cf7593d50553e73c3a376c9611cc97054efe364b541697f3c32728530b69e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201340 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3/text.rs:794-833 | mistralrs-core/src/vision_models/gemma4/text.rs:2464-2493 \u2014 \u0060mistralrs-core/src/vision_models/gemma3/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/text.rs\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 99 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":"mistralrs-core/src/vision_models/gemma3/text.rs"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c3a07e87960c8c3a6b597008a7468c1981e3efb9b42747ed719cd19766e5f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_vl/text.rs:392-431 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:512-551 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_vl/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs\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 45 separate duplicated blocks between them, totalling at least 674 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":"mistralrs-core/src/vision_models/qwen3_vl/text.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5b61a58ed643916b94626a3d14ca5e15b6d1bcfb5401998814cc64067e1229f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): mistralrs-macros/src/lib.rs:266-305 | mistralrs-macros/src/lib.rs:329-368 \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 \u0060mistralrs-macros/src/lib.rs:266\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":"mistralrs-macros/src/lib.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"2330f4188f1af86844625718f545a63974dea52ccca7b21ee654388721a17c05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201340 lines \u00D7 2): mistralrs-pyo3/src/lib.rs:255-293 | mistralrs-server-core/src/chat_completion.rs:979-1018 \u2014 before extracting anything, compare \u0060mistralrs-pyo3/src/lib.rs\u0060 and \u0060mistralrs-server-core/src/chat_completion.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 89 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 \u0060mistralrs-pyo3/src/lib.rs:255\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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c61eee6cd7e41ad31e9b49715edb379a35cd91e7e90f620f874a7da24bf2e37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 4): mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:366-404 | mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:352-390 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:321-359 | mistralrs-core/src/vision_models/phi4/inputs_processor.rs:376-414 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 222 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 \u0060mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:366\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":"mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e0d1eac4784b9bdf2f799870a584788b317babe825b2dc4cd2361c1f76919d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 3): mistralrs-core/src/models/deepseek2.rs:209-247 | mistralrs-core/src/models/deepseek3.rs:210-248 | mistralrs-core/src/models/glm4_moe_lite.rs:170-208 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:209\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"1754a3a7afecad7d038e1d38177c474ac2ac91be29a2931b4d4fbde92e4ecacf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): mistralrs-core/src/models/phi3.rs:426-464 | mistralrs-core/src/models/phi3_5_moe.rs:495-533 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/phi3.rs\u0060 and \u0060mistralrs-core/src/models/phi3_5_moe.rs\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 343 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 \u0060mistralrs-core/src/models/phi3.rs:426\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, \u0060mistralrs-core/src/models/phi3.rs:423\u0060 calls \u0060then\u0060, \u0060set_nm_device\u0060, \u0060pp\u0060 and \u0060mistralrs-core/src/models/phi3_5_moe.rs:494\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":"mistralrs-core/src/models/phi3.rs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb83a14e26f3ccfd5b3bd38ded2c89b9cfe39b7ac8b6e9c4584f268622f48bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:826-864 | mistralrs-core/src/pipeline/normal.rs:832-870 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:826\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"9211b73dad489d71bd1d365d2703a147af4931e3d390a4f99e05bf3e9fb27025"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:550-588 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1158-1196 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\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 45 separate duplicated blocks between them, totalling at least 1082 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 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:550\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":"mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"354b0903799a2da9048dfb6aeccd11c48aedbe53448e3093bc698cdf5d7bbabf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/text.rs:980-1018 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:692-730 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs\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 26 separate duplicated blocks between them, totalling at least 469 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 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs:980\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, \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:691\u0060 calls \u0060clone\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs:979\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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"604720fb382ce1da512ec7e7e65b37af318b37b83ae7bd1c7070c70fd3a09462"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201339 lines \u00D7 2): mistralrs-quant/src/metal_kernels/mod.rs:4440-4478 | mistralrs-quant/src/metal_kernels/mod.rs:5096-5132 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:4440\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, \u0060mistralrs-quant/src/metal_kernels/mod.rs:5134\u0060 calls \u0060encoder\u0060, \u0060as_ref\u0060 and \u0060mistralrs-quant/src/metal_kernels/mod.rs:4480\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":4440}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e4d5ce7c2510d057db6fefa2a37fb1b95ad4298730ed46c8bb9d0256416466f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): mistralrs-core/src/models/granite.rs:1464-1501 | mistralrs-core/src/models/granite.rs:1750-1787 \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 \u0060mistralrs-core/src/models/granite.rs:1464\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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":1464}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca99f4167c54d0c687d752eef7e86c7c1e18ea81d60c214d7ee0341cec70b1be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/mod.rs:487-524 | mistralrs-core/src/vision_models/gemma4/mod.rs:800-837 \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 \u0060mistralrs-core/src/vision_models/gemma4/mod.rs:487\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":"mistralrs-core/src/vision_models/gemma4/mod.rs"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc8f6cb1ba088ceba8916224270ba53bbfd5fc4db730a8f38426a9e6c931b99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): mistralrs-vision/src/pad.rs:32-69 | mistralrs-vision/src/pad.rs:72-109 \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 \u0060mistralrs-vision/src/pad.rs:32\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":"mistralrs-vision/src/pad.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79e43603531a04c9baa2f18e035e3b2b4b0b3fca5b353c76fd17d4a70d51120"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (74 lines \u00D7 2): mistralrs-core/src/models/gemma.rs:363-436 | mistralrs-core/src/models/gemma2.rs:436-509 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 707 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 \u0060mistralrs-core/src/models/gemma.rs:363\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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"f98f0e40bccd7cfee98c826b8a7755da394be654c9603f6f844ffddb6c5c1adc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201337 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/audio.rs:337-373 | mistralrs-core/src/vision_models/gemma4/audio.rs:146-174 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/audio.rs\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 20 separate duplicated blocks between them, totalling at least 352 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 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs:337\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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed01a756db2676e025e5a7748964cd728db6d91165b02e9533ee1025690e447"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (70 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:221-290 | mistralrs-core/src/vision_models/qwen2vl/text.rs:222-291 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/text.rs\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 42 separate duplicated blocks between them, totalling at least 716 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 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:221\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":"mistralrs-core/src/vision_models/qwen2_5_vl/text.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"c95401a485a66493e380bd2b985e1ee75d94b2eb4a14afcae41d6c6c9e13e6cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): mistralrs-core/src/xlora_models/gemma2.rs:154-190 | mistralrs-core/src/xlora_models/starcoder2.rs:133-169 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 and \u0060mistralrs-core/src/xlora_models/starcoder2.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 400 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 \u0060mistralrs-core/src/xlora_models/gemma2.rs:154\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":"mistralrs-core/src/xlora_models/gemma2.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82599afc1676edf422d3cce3bfffd6de3f036f172a7e77ac5eba56c31f82c98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): mistralrs-flash-attn/src/flash.rs:94-130 | mistralrs-flash-attn/src/flash.rs:661-697 \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":"mistralrs-flash-attn/src/flash.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ed52a5901ea5143a4298a908682e936ad33220db849cc05b7880fcd764b1025"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): mistralrs-server-core/src/embeddings.rs:123-159 | mistralrs-server-core/src/embeddings.rs:166-202 \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 \u0060mistralrs-server-core/src/embeddings.rs:123\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":"mistralrs-server-core/src/embeddings.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3a48bcc9523725e017a8d003f013d2afbf293979815a90a03d01f05c280b0f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 3): mistralrs-core/src/gguf/gemma3_bindings.rs:180-215 | mistralrs-core/src/gguf/idefics3_bindings.rs:49-84 | mistralrs-core/src/gguf/lfm2_vl_bindings.rs:84-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 all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060mistralrs-core/src/gguf/gemma3_bindings.rs:180\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":"mistralrs-core/src/gguf/gemma3_bindings.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c32683feea25d9d78b627c7028669676e4c791edb69c7f5c19f6a389c65be06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 3): mistralrs-core/src/models/qwen3_next.rs:898-933 | mistralrs-core/src/vision_models/qwen3_5/text.rs:1009-1044 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:721-756 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/qwen3_next.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 176 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060mistralrs-core/src/models/qwen3_next.rs:935\u0060 calls \u0060get_comm_for\u0060, \u0060world_size\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs:1046\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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d0801c8e74a54a6b1eec6becd6abfe37f4b872d7f1801add9e37bdaa321a8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): mistralrs-core/src/pipeline/mod.rs:2396-2431 | mistralrs-core/src/pipeline/mod.rs:2993-3028 \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":"mistralrs-core/src/pipeline/mod.rs"},"region":{"startLine":2396}}}],"partialFingerprints":{"codehealthFindingId/v1":"452da25aa3be8999949a3f9d2928957d4936b1470f02ffe098ff3ebf13686a06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): mistralrs-core/src/vision_models/grid_processor.rs:796-831 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:519-554 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 1008 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:796\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"35106dc87b3c2d94027ba7b3775ea7cd602e67fe07eff43d9c898bcc7249e1cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:247-282 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:813-848 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\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 45 separate duplicated blocks between them, totalling at least 1082 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 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f59ba10c48f445164150952b8e38808ce3ff19cc7b3cd102500942b0fc89de2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 3): mistralrs-core/src/models/deepseek2.rs:394-428 | mistralrs-core/src/models/deepseek3.rs:395-429 | mistralrs-core/src/models/glm4_moe_lite.rs:359-393 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:394\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, \u0060mistralrs-core/src/models/deepseek2.rs:391\u0060 calls \u0060seqlen_offsets\u0060, \u0060flash_params\u0060 and \u0060mistralrs-core/src/models/glm4_moe_lite.rs:358\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"7016985d5cbc709c5aa72f5d7490cedad7f10d53a63066408be4158dd65405e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 3): mistralrs-core/src/models/flint.rs:243-277 | mistralrs-core/src/models/hunyuan_v1_dense.rs:113-147 | mistralrs-core/src/models/hunyuan_v1_moe.rs:290-324 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/hunyuan_v1_dense.rs\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 419 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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"a285f272b82e8fde68ce6da66ac8a5bb1190df0bd5bd30f5488dd0a1115cb6e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 3): mistralrs-core/src/vision_models/grid_processor.rs:1154-1188 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:367-401 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:933-967 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:1154\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ab40f8314e1fd5317810009a4fcd7547d2219326915201d6346f97380b59fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): mistralrs-core/src/embedding_models/embedding_gemma.rs:148-182 | mistralrs-core/src/vision_models/gemma3/text.rs:120-154 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma3/text.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 286 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 \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs:148\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":"mistralrs-core/src/embedding_models/embedding_gemma.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbfe45a2e10de7ee8a8f3b60fee6b242114cc5e994179783ae6847633c9ad70b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201335 lines \u00D7 2): mistralrs-core/src/gguf/gemma3_bindings.rs:131-165 | mistralrs-core/src/gguf/muse_glimmer_bindings.rs:67-100 \u2014 before extracting anything, compare \u0060mistralrs-core/src/gguf/gemma3_bindings.rs\u0060 and \u0060mistralrs-core/src/gguf/muse_glimmer_bindings.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 62 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":"mistralrs-core/src/gguf/gemma3_bindings.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"dea1b5ca80aceab6d816c5598ac193012d98e361192329c1aa0e8a39f96722a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): mistralrs-core/src/models/lfm2.rs:408-442 | mistralrs-core/src/models/lfm3.rs:402-436 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/lfm2.rs\u0060 and \u0060mistralrs-core/src/models/lfm3.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 402 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 \u0060mistralrs-core/src/models/lfm2.rs:408\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":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"27daec7f9eaba20983d32c22f3233478ddeaa0fe94f1b44057caf9466f08aba1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (56 lines \u00D7 2): mistralrs-core/src/ops.rs:1506-1561 | mistralrs-core/src/ops.rs:1728-1783 \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":"mistralrs-core/src/ops.rs"},"region":{"startLine":1506}}}],"partialFingerprints":{"codehealthFindingId/v1":"110cb335d86cd96266558da2b69b0f53d1d78ca90b72716b62cd8ce45ee0efff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): mistralrs-core/src/paged_attention/cache_engine.rs:318-352 | mistralrs-core/src/paged_attention/cache_engine.rs:404-438 \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 \u0060mistralrs-core/src/paged_attention/cache_engine.rs:318\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":"mistralrs-core/src/paged_attention/cache_engine.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"50a23ae4872e0dd91647739cd49ab0558ee478b48dccb23ec8da6789d294348b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1780-1814 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2080-2114 \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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1780}}}],"partialFingerprints":{"codehealthFindingId/v1":"e34e732c44179f11dfe9169bcb8485f36d667c6dd703db0d7c4698d4d5a80bca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9886-9920 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:10972-11006 \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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":9886}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c034c10698b9ab60809342fc519dfb1253accc62681097660e7d81eaa71f3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:910-944 | mistralrs-core/src/pipeline/normal.rs:913-947 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:910\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"b355f28d2fcea9b6b498583bb68e14253e4055f37ad0d45a703fa21d7b9bfa37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): mistralrs-quant/src/utils/ops.rs:875-909 | mistralrs-quant/src/utils/ops.rs:982-1016 \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 \u0060mistralrs-quant/src/utils/ops.rs:875\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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"f47f47ed4295af50a78307f734e57f4f4b9ebe65f93420b159177c5b70603142"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 6): mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:590-623 | mistralrs-core/src/vision_models/grid_processor.rs:1535-1568 | mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:597-630 | mistralrs-core/src/vision_models/mllama/inputs_processor.rs:358-391 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:729-762 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1005-1038 \u2014 \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/idefics3/inputs_processor.rs\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 10 separate duplicated blocks between them, totalling at least 146 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 \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:590\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":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"0036468e646abf13d33c59becd5a35b0c49466759f47007b9693574f8f2a0280"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): mistralrs-core/src/lora/mod.rs:163-196 | mistralrs-core/src/lora/mod.rs:215-248 \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 \u0060mistralrs-core/src/lora/mod.rs:163\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":"mistralrs-core/src/lora/mod.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"420bcf6e39f210a8c3d22f3b5fa7c40b13612751cf350c412adac05efa969cfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): mistralrs-core/src/ops.rs:660-693 | mistralrs-core/src/ops.rs:807-840 \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":"mistralrs-core/src/ops.rs"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"374dea6677fbae4ea7d501954ad883d4368f826cbf7cf4aa924e8570973b37e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:685-718 | mistralrs-core/src/pipeline/normal.rs:723-756 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:685\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d6938d491bc4e78a30c3b4f3e33f397f96f11447a16bf4d2d4151dcf47a477"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): mistralrs-core/src/pipeline/normal.rs:1177-1210 | mistralrs-core/src/pipeline/normal.rs:1305-1338 \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 \u0060mistralrs-core/src/pipeline/normal.rs:1177\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":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"81cbc96ed4195af1fc13246c4deb4ba3e95306384ceb153b57ea5151f83c0b18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 5): mistralrs-core/src/vision_models/qwen3_5/mod.rs:456-488 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:464-496 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:1026-1058 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:470-502 | mistralrs-core/src/vision_models/qwen4_exp/mod.rs:441-473 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs\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 24 separate duplicated blocks between them, totalling at least 425 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 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs:456\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":"mistralrs-core/src/vision_models/qwen3_5/mod.rs"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"b44932a89a556333c52470c3c958e83d83ec03bcabec5741f0437d68cf521674"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201333 lines \u00D7 4): mistralrs-core/src/models/granite.rs:1644-1675 | mistralrs-core/src/models/llama.rs:181-213 | mistralrs-core/src/models/smollm3.rs:198-230 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:155-187 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/granite.rs\u0060 and \u0060mistralrs-core/src/models/llama.rs\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 244 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 \u0060mistralrs-core/src/models/granite.rs:1644\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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":1644}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa97b5905af6a254020326f739cb76c548a638e079d6e3fbcaa860769ba685b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201333 lines \u00D7 4): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3227-3254 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3560-3587 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4782-4814 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5093-5125 \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 \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3227\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":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":3227}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a0dc2b0d67f4141cbeab102f537565101b61a728bd3a48d40b340f5c23f936d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1352-1384 | mistralrs-core/src/pipeline/normal.rs:1414-1446 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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, \u0060mistralrs-core/src/pipeline/normal.rs:1412\u0060 calls \u0060or_else\u0060, \u0060from_model_config\u0060 and \u0060mistralrs-core/src/pipeline/multimodal.rs:1351\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1352}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4cf32b43a88e5885861ca9bb19bd786528c5f5c367e61b55478348cb6fbd03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201333 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1513-1545 | mistralrs-core/src/pipeline/normal.rs:209-240 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1513}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2898b9ab2e5be5fc3cadaaae1ab83ca14add9ee4a195486932eb9b447696db9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/vision.rs:950-982 | mistralrs-core/src/vision_models/gemma3n/vision.rs:994-1026 \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 \u0060mistralrs-core/src/vision_models/gemma3n/vision.rs:950\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":"mistralrs-core/src/vision_models/gemma3n/vision.rs"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"77c1d34450e188ad37b5639ea0315c904c1babc10c302de38dc9fe58351ab0db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201333 lines \u00D7 2): mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:630-662 | mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:403-431 \u2014 \u0060mistralrs-core/src/vision_models/idefics3/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/mistral3/inputs_processor.rs\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 13 separate duplicated blocks between them, totalling at least 194 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 \u0060mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:630\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":"mistralrs-core/src/vision_models/idefics3/inputs_processor.rs"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e68414a709e3df7a61c428d837006dfc90528a4850a0db2d5a22469dea580f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201333 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava15.rs:193-225 | mistralrs-core/src/vision_models/llava/llava_next.rs:158-188 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/llava/llava15.rs\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava_next.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 109 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 \u0060mistralrs-core/src/vision_models/llava/llava15.rs:193\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":"mistralrs-core/src/vision_models/llava/llava15.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"21201cc586225e95ecfc64978056fa64120f2ea6e174d6b785bb1a90d36fd1e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): mistralrs-quant/src/safetensors.rs:828-860 | mistralrs-quant/src/safetensors.rs:894-926 \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 \u0060mistralrs-quant/src/safetensors.rs:828\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":"mistralrs-quant/src/safetensors.rs"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f0ecf3bf2ad1533b2746b5afd257aaa556fce52e788d2d16deadbf88e3ed32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): mistralrs-quant/src/utils/ops.rs:1131-1163 | mistralrs-quant/src/utils/ops.rs:1203-1235 \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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"935c54d7be5ddb6381a7d11b7026f14888bbd6e76105ad8dffbe978c0d8d0cf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201332 lines \u00D7 10): mistralrs-core/src/models/glm4.rs:244-275 | mistralrs-core/src/models/glm4_moe.rs:312-340 | mistralrs-core/src/models/granite.rs:1573-1601 | mistralrs-core/src/vision_models/muse_glimmer/text.rs:272-300 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:239-267 | mistralrs-core/src/vision_models/qwen2vl/text.rs:240-268 | mistralrs-core/src/vision_models/qwen3_5/text.rs:364-392 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:232-260 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:236-267 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:342-370 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/glm4.rs\u0060 and \u0060mistralrs-core/src/models/glm4_moe.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 359 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 \u0060mistralrs-core/src/models/glm4.rs:244\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, \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs:393\u0060 calls \u0060ok_or_else\u0060, \u0060msg\u0060 and \u0060mistralrs-core/src/models/glm4.rs:276\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":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cba77b374394a5360d574076b8ba62e5139768bd9c407d9a660103a83466bf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201332 lines \u00D7 5): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1472-1501 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3204-3235 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3546-3577 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3922-3953 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4671-4702 \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. 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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1472}}}],"partialFingerprints":{"codehealthFindingId/v1":"de8723ab0032eb3004de648a15765e3633f53e1e78c74cf89be3995480e73dfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 3): mistralrs-quant/src/afq/ops.rs:1827-1858 | mistralrs-quant/src/afq/ops.rs:1945-1976 | mistralrs-quant/src/afq/ops.rs:2065-2096 \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 \u0060mistralrs-quant/src/afq/ops.rs:1827\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":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":1827}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f2e4b12336caf5235fed9d51a09aba7638c19e4111ededfd2da5a93d891655"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 3): mistralrs-quant/src/gguf/fast_mmvq.rs:1170-1210 | mistralrs-quant/src/gguf/fast_mmvq.rs:1225-1265 | mistralrs-quant/src/gguf/fast_mmvq.rs:1280-1320 \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 \u0060mistralrs-quant/src/gguf/fast_mmvq.rs:1170\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":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"4def84d2ae1a53a1d203d0e512bd370159609d2792d231bc81d7c842c6f90226"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): mistralrs-core/src/layers.rs:1648-1679 | mistralrs-core/src/layers.rs:1959-1990 \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 \u0060mistralrs-core/src/layers.rs:1648\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":"mistralrs-core/src/layers.rs"},"region":{"startLine":1648}}}],"partialFingerprints":{"codehealthFindingId/v1":"c402fa4bbbbcd9511cfcc03d9765fbb584dfe6bd6be907d2cd0e97b0fb728fff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): mistralrs-core/src/model_loader.rs:703-734 | mistralrs-core/src/toml_selector.rs:980-1011 \u2014 before extracting anything, compare \u0060mistralrs-core/src/model_loader.rs\u0060 and \u0060mistralrs-core/src/toml_selector.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 199 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":"mistralrs-core/src/model_loader.rs"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"1259e53fca3a8f9a11fbad5d21fbc12e373c2eaccf703fefd54f43b200c572c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): mistralrs-core/src/models/llama.rs:424-468 | mistralrs-core/src/models/smollm3.rs:447-491 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/llama.rs\u0060 and \u0060mistralrs-core/src/models/smollm3.rs\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 727 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 \u0060mistralrs-core/src/models/llama.rs:424\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, \u0060mistralrs-core/src/models/llama.rs:470\u0060 calls \u0060get_input_embeddings\u0060, \u0060embedding_forward\u0060, \u0060into\u0060 and \u0060mistralrs-core/src/models/smollm3.rs:493\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":"mistralrs-core/src/models/llama.rs"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"4086aaa865ec5d5aa83aeba38237d754ac715b50652a189f02fcf715d34c016e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): mistralrs-core/src/models/phi3.rs:98-129 | mistralrs-core/src/vision_models/phi3/mod.rs:189-220 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/phi3.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi3/mod.rs\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 638 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 \u0060mistralrs-core/src/models/phi3.rs: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":"mistralrs-core/src/models/phi3.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"f222f3263d93a7663f2287b2b8f8598eeb5dacfed8a2227cc94df86b1d7c206d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): mistralrs-core/src/ops.rs:1639-1670 | mistralrs-core/src/ops.rs:1902-1933 \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":"mistralrs-core/src/ops.rs"},"region":{"startLine":1639}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ca17c28c0e1385e81338283aae4ddd62450fe02e16770bc803a7e3ebfcce3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:3214-3245 | mistralrs-core/src/pipeline/normal.rs:2761-2792 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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. 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":3214}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad76f5231c8d1078fdb7e668ed54472c4a2f2a31d985b93ba569eee71e4356d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): mistralrs-core/src/speculative/hybrid_state.rs:429-460 | mistralrs-core/src/speculative/hybrid_state.rs:493-524 \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 \u0060mistralrs-core/src/speculative/hybrid_state.rs:429\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":"mistralrs-core/src/speculative/hybrid_state.rs"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb78cbb4d3ba6f08877d030d7327d8ecfaec0f51c7868d216e5bb2c3a423d974"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/audio.rs:271-302 | mistralrs-core/src/vision_models/gemma4/vision.rs:102-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. 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":"mistralrs-core/src/vision_models/gemma4/audio.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec509120f915c43e5a8e533e37f46f9f8a78c83c3a546249bcee8ba41a16046"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_vl/text.rs:561-595 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:682-716 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_vl/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs\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 45 separate duplicated blocks between them, totalling at least 674 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 \u0060mistralrs-core/src/vision_models/qwen3_vl/text.rs:561\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":"mistralrs-core/src/vision_models/qwen3_vl/text.rs"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e9cd3737c650470854d2fbc321029612e7d43e2b203c9b4c14539cdabc4dc0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 3): mistralrs-core/src/model_loader.rs:543-573 | mistralrs-core/src/toml_selector.rs:875-905 | mistralrs-core/src/toml_selector.rs:922-952 \u2014 before extracting anything, compare \u0060mistralrs-core/src/model_loader.rs\u0060 and \u0060mistralrs-core/src/toml_selector.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 199 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 \u0060mistralrs-core/src/model_loader.rs:543\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":"mistralrs-core/src/model_loader.rs"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbd1e60daa262b83baf3e88df0ecee0668862730f7162deb8db44ddd7da9c9d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): mistralrs-core/src/model_metadata.rs:420-450 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:282-312 \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":"mistralrs-core/src/model_metadata.rs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d67c217bef2d8079b65fb8cedbfcdbae7cc57d83af572d2f23607372c34bf42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): mistralrs-core/src/models/deepseek2.rs:555-585 | mistralrs-core/src/models/deepseek3.rs:605-635 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:555\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c770f772bd14bdd3da5aa781db334827edb32ccf49195de2669befbb512cd2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 2): mistralrs-core/src/models/qwen3_next.rs:438-468 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:343-372 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/qwen3_next.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 461 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 \u0060mistralrs-core/src/models/qwen3_next.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a6cff06f53f3d126acbfc2aca841ca22aa7cd75f749e9e657eee5e97aa8c0c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 2): mistralrs-core/src/models/qwen3_next.rs:1082-1112 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:884-913 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/qwen3_next.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 461 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 \u0060mistralrs-core/src/models/qwen3_next.rs:1082\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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"182b0346b3a514160dfb113eb250c3664dd4d272cfe7d32ce84ab2c27c994036"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:98-128 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:121-151 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/mod.rs\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 396 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 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs: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":"mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad87b08e4b9df05db56620ca9428c42881b642a9fcd41723008f041d9a0b329"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201331 lines \u00D7 2): mistralrs-quant/src/afq/ops.rs:2423-2448 | mistralrs-quant/src/afq/ops.rs:3000-3030 \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 \u0060mistralrs-quant/src/afq/ops.rs:2423\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":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":2423}}}],"partialFingerprints":{"codehealthFindingId/v1":"279d0f2f1652a87385efeba1d8395c2efbdf31593d726618e41a4566e9de0563"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 7): mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs:365-394 | mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:469-498 | mistralrs-core/src/vision_models/lfm2_vl/inputs_processor.rs:721-750 | mistralrs-core/src/vision_models/llama4/inputs_processor.rs:447-476 | mistralrs-core/src/vision_models/minicpmo/inputs_processor.rs:495-524 | mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:374-403 | mistralrs-core/src/vision_models/voxtral/inputs_processor.rs:280-309 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 98 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 \u0060mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060mistralrs-core/src/vision_models/minicpmo/inputs_processor.rs:527\u0060 calls \u0060dim\u0060, \u0060collect\u0060 and \u0060mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs:396\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":"mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8487b4ccf50d63db19fbc0ea39b0f98faa1b2018c2a565afec879890e6fb579"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 4): mistralrs-core/src/models/deepseek2.rs:884-913 | mistralrs-core/src/models/deepseek3.rs:947-976 | mistralrs-core/src/models/glm4_moe.rs:783-812 | mistralrs-core/src/models/glm4_moe_lite.rs:894-923 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:884\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f90e4234c2bda6d0edc206f583735665091ebc3e696aec43cef08b2668caa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 4): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:530-559 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4729-4758 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1030-1059 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2410-2439 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/embedding_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 180 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":"mistralrs-core/src/pipeline/loaders/embedding_loaders.rs"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3d2353ff6a4be7c1775d3ddd6be76bc7b1ddfa4d71b9b7c07285228115117a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): mistralrs-core/src/lora/loralinear.rs:211-247 | mistralrs-core/src/lora/qloralinear.rs:260-296 \u2014 before extracting anything, compare \u0060mistralrs-core/src/lora/loralinear.rs\u0060 and \u0060mistralrs-core/src/lora/qloralinear.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 151 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 \u0060mistralrs-core/src/lora/loralinear.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lora/loralinear.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7ee85e46d6483ae07a50ad3c362da0316fb7b892126acf1696fe6ef798164a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): mistralrs-core/src/models/deepseek2.rs:732-761 | mistralrs-core/src/models/deepseek3.rs:795-824 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:732\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"57555615eb68420b69abc631b19c26fcf4f19e4007d09e79bb2915b8699d0212"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201330 lines \u00D7 2): mistralrs-core/src/ops.rs:1565-1590 | mistralrs-core/src/ops.rs:1803-1832 \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":"mistralrs-core/src/ops.rs"},"region":{"startLine":1565}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c79db7385ccc6f1bc76a9612ec9dec7b240f6ca2e125a33e4d5f5ac0fa65940"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4952-4981 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4998-5027 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4952\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":4952}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8604dd3e1c5ded9efd82d9bf894ce88f8488eccc513911c098d2bdbe08c50b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 2): mistralrs-core/src/sampler.rs:1518-1547 | mistralrs-core/src/sampler.rs:1686-1714 \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 \u0060mistralrs-core/src/sampler.rs:1518\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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":1518}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4eac5516de983aeff8ad9085f376f0fd3b5719ba76090080278808a2629b40b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/audio.rs:476-505 | mistralrs-core/src/vision_models/gemma4/audio.rs:549-578 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/audio.rs\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 20 separate duplicated blocks between them, totalling at least 352 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. 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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad4a462d08e61bacdafad44adf2bf1056e64a22a608c4fa084e42d9d8029bfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201350 lines \u00D7 3): mistralrs-core/src/vision_models/muse_glimmer/mod.rs:134-156 | mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:117-166 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:140-189 \u2014 \u0060mistralrs-core/src/vision_models/muse_glimmer/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs\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 66 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 \u0060mistralrs-core/src/vision_models/muse_glimmer/mod.rs:134\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":"mistralrs-core/src/vision_models/muse_glimmer/mod.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"29272dca8ae71f036e56399b4abaecf2f6140f9ba57074b93945eaac17bc38d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 2): mistralrs-pyo3/src/lib.rs:1393-1423 | mistralrs-server-core/src/mistralrs_for_server_builder.rs:1367-1396 \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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":1393}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ab259bf314f83f872e9500e34b9b2b219eadcec77ce2abfa974b564127896c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): mistralrs-pyo3/src/lib.rs:1877-1906 | mistralrs-pyo3/src/lib.rs:2367-2396 \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 \u0060mistralrs-pyo3/src/lib.rs:1877\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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":1877}}}],"partialFingerprints":{"codehealthFindingId/v1":"e295363429f60fb643344531d71da8c6aa349bc8a78559dfcf51030e1de709ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:163-192 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:169-197 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fused_moe.rs\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe_fp8.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 298 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 \u0060mistralrs-quant/src/cutile/fused_moe.rs:163\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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d019fc451c1c0e7fe75086a09d38ab0a18e1875993c92d53406d92166e73136"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 7): mistralrs-core/src/models/flint.rs:474-502 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:222-249 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:45-72 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:49-76 | mistralrs-core/src/vision_models/qwen2vl/text.rs:50-77 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:37-64 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:43-71 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava_llm/llama.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 175 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 \u0060mistralrs-core/src/models/flint.rs:474\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 \u0060\u0026Config\u0060 in one and \u0060\u0026TextConfig\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d1d84e5beeae21e52d5d32557de34892aae6c3157390a610da3a4e24b8af981"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3): mistralrs-core/src/vision_models/grid_processor.rs:2024-2052 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1089-1117 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1654-1682 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:2024\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, \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1086\u0060 calls \u0060context\u0060 and \u0060mistralrs-core/src/vision_models/grid_processor.rs:2022\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":2024}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d6fa0706a30e65343b220f6bca35d4321f091f05da90c78b1f681097596fce1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3): mistralrs-quant/src/gguf/fast_mmvq.rs:923-951 | mistralrs-quant/src/gguf/fast_mmvq.rs:962-990 | mistralrs-quant/src/gguf/fast_mmvq.rs:1001-1029 \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 \u0060mistralrs-quant/src/gguf/fast_mmvq.rs:923\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":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a0bfdf80e49fda7a9f1e3f462dcb95e536ace5c442988069458e6007e2d2a9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201329 lines \u00D7 2): mistralrs-core/src/gguf/llama4_bindings.rs:51-76 | mistralrs-core/src/gguf/multimodal_binding_utils.rs:220-248 \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":"mistralrs-core/src/gguf/llama4_bindings.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c7f91c2cc9c3cf44282fe45229a929bcba785b4ec763a1e3170e65521086c01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): mistralrs-core/src/models/gemma.rs:200-228 | mistralrs-core/src/models/phi2.rs:296-324 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/phi2.rs\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 418 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 \u0060mistralrs-core/src/models/gemma.rs:200\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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f021c26fde7aa11ea0e20037ecaeb35d4f453e1241a8d933b7a32269a47136"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): mistralrs-core/src/models/qwen3_moe.rs:369-397 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:108-136 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/qwen3_moe.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 331 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 \u0060mistralrs-core/src/models/qwen3_moe.rs:369\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":"mistralrs-core/src/models/qwen3_moe.rs"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"762ab58c6e2bff1c0d1c3857b5dee607a46558a3124107ff27292ce2de9d397a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 2): mistralrs-core/src/paged_attention/cache_engine.rs:254-282 | mistralrs-core/src/paged_attention/cache_engine.rs:389-416 \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 \u0060mistralrs-core/src/paged_attention/cache_engine.rs:254\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":"mistralrs-core/src/paged_attention/cache_engine.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1aa57854881e68a6bcd06cbcc11c6eb2fe1de90f0e1765a9a9c5984b66cd32f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): mistralrs-core/src/paged_attention/cache_engine.rs:466-494 | mistralrs-core/src/paged_attention/cache_engine.rs:504-532 \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 \u0060mistralrs-core/src/paged_attention/cache_engine.rs:466\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":"mistralrs-core/src/paged_attention/cache_engine.rs"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0d4675017aff4a56015c6c3d1aa10a3e52449766ee67c779e734e0c5b6935c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): mistralrs-core/src/paged_attention/layers/paged_attention.rs:1710-1738 | mistralrs-core/src/paged_attention/layers/paged_attention.rs:1848-1876 \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 \u0060mistralrs-core/src/paged_attention/layers/paged_attention.rs:1710\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":"mistralrs-core/src/paged_attention/layers/paged_attention.rs"},"region":{"startLine":1710}}}],"partialFingerprints":{"codehealthFindingId/v1":"b957345f21d4cf0259456999165ac3a5c0e1c05d8799f0e5e23ffcb034ba8fb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201329 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1290-1302 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3057-3085 \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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"d12fc55ed3a6720c635fd863cfa60ed13d2bc42f2978f9504767a8d61dfb459d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201329 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7829-7854 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8351-8379 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7829\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":7829}}}],"partialFingerprints":{"codehealthFindingId/v1":"f985954711eda111783e09b088782144ccd1631817105f4ae13eb3cfc3e3140c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (52 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1409-1460 | mistralrs-core/src/pipeline/normal.rs:1452-1503 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:1409\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"e322c2196f806673a51df58c6aa02ab6db3bb7a23c5dc0d4d52c64aa0a7eeb44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:332-360 | mistralrs-paged-attn/src/cuda/backend/mla.rs:341-369 \u2014 before extracting anything, compare \u0060mistralrs-paged-attn/src/cuda/backend/flashinfer.rs\u0060 and \u0060mistralrs-paged-attn/src/cuda/backend/mla.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 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 \u0060mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:332\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":"mistralrs-paged-attn/src/cuda/backend/flashinfer.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5896b1b3fc3b92882f39644218a519a899eb523ec26cdccaec298dda0a7cdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): mistralrs-quant/src/lib.rs:2632-2660 | mistralrs-quant/src/lib.rs:2698-2726 \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 \u0060mistralrs-quant/src/lib.rs:2632\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":"mistralrs-quant/src/lib.rs"},"region":{"startLine":2632}}}],"partialFingerprints":{"codehealthFindingId/v1":"c292bac834b66f798e28c7f1cfb0292c90a08372c55a323412613c51585c4d12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201328 lines \u00D7 17): mistralrs-core/src/models/flint.rs:395-419 | mistralrs-core/src/models/gemma2.rs:247-274 | mistralrs-core/src/models/gpt_oss.rs:280-304 | mistralrs-core/src/models/hunyuan_v1_dense.rs:226-250 | mistralrs-core/src/models/hunyuan_v1_moe.rs:412-436 | mistralrs-core/src/models/llama.rs:108-135 | mistralrs-core/src/models/mistral.rs:248-275 | mistralrs-core/src/models/mixtral.rs:184-211 | mistralrs-core/src/models/phi3_5_moe.rs:214-241 | mistralrs-core/src/models/qwen2.rs:278-305 | mistralrs-core/src/models/qwen3.rs:233-260 | mistralrs-core/src/models/qwen3_moe.rs:236-263 | mistralrs-core/src/models/qwen3_next.rs:320-344 | mistralrs-core/src/models/smollm3.rs:125-152 | mistralrs-core/src/models/starcoder2.rs:260-287 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:82-109 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:251-278 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 190 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 \u0060mistralrs-core/src/models/flint.rs:395\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"d154fb7785c103472619fb9e22bd00353c6b96319a63a6545725dd97c0c3f5d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 5): mistralrs-core/src/embedding_models/embedding_gemma.rs:117-144 | mistralrs-core/src/models/gemma.rs:97-124 | mistralrs-core/src/models/gemma2.rs:130-157 | mistralrs-core/src/models/starcoder2.rs:157-184 | mistralrs-core/src/vision_models/gemma3n/text.rs:320-347 \u2014 \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma.rs\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 133 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 \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs: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":"mistralrs-core/src/embedding_models/embedding_gemma.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd6ab447bbe55d1ce49249b29704ecca86ac0f3e96b8f98a0c5c22eef948d01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201328 lines \u00D7 3): mistralrs-core/src/models/deepseek3.rs:575-602 | mistralrs-core/src/models/glm4_moe.rs:466-487 | mistralrs-core/src/models/glm4_moe_lite.rs:565-592 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek3.rs\u0060 and \u0060mistralrs-core/src/models/glm4_moe.rs\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 479 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":"mistralrs-core/src/models/deepseek3.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"6189d5ac4d40ea3dd5c5b163c3472afc6dc1259fc3780a9f870e14a413941917"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 3): mistralrs-paged-attn/src/cuda/backend/mla.rs:456-483 | mistralrs-paged-attn/src/cuda/backend/mla.rs:515-542 | mistralrs-paged-attn/src/cuda/backend/mla.rs:574-601 \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 \u0060mistralrs-paged-attn/src/cuda/backend/mla.rs:456\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":"mistralrs-paged-attn/src/cuda/backend/mla.rs"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"97829e603d8e08761e5337b973a23b7ae28900aac0e9c4ea0d12d69b18c7f070"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201328 lines \u00D7 2): mistralrs-core/src/gguf/gemma3n_bindings.rs:232-250 | mistralrs-core/src/gguf/muse_glimmer_bindings.rs:66-93 \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 \u0060mistralrs-core/src/gguf/gemma3n_bindings.rs:232\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":"mistralrs-core/src/gguf/gemma3n_bindings.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"7849f0e76cfe084bb127d96a6bff94d132c473bbefe08df5699901801bf95724"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): mistralrs-core/src/models/glm4_moe.rs:378-405 | mistralrs-core/src/models/glm4_moe_lite.rs:471-498 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/glm4_moe.rs\u0060 and \u0060mistralrs-core/src/models/glm4_moe_lite.rs\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 596 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. 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":"mistralrs-core/src/models/glm4_moe.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"a297419ab9bcfe3af64ef1fa219feb95ea90dd62c32bcd0d4b495f838f68f78d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): mistralrs-core/src/moe/experts/mod.rs:140-167 | mistralrs-core/src/moe/experts/mod.rs:214-241 \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 \u0060mistralrs-core/src/moe/experts/mod.rs:140\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":"mistralrs-core/src/moe/experts/mod.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfae969fef584e9a81cd2c3c05f616170157d616f340c20da5356ad883121c22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201328 lines \u00D7 2): mistralrs-core/src/ops.rs:1081-1108 | mistralrs-core/src/ops.rs:1312-1337 \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 \u0060mistralrs-core/src/ops.rs:1081\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, \u0060mistralrs-core/src/ops.rs:1338\u0060 calls \u0060topk_large_ranked_state_words_per_row\u0060 and \u0060mistralrs-core/src/ops.rs:1109\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"f065711f2c189b20e57b1046d8bea7e680b4786c8914d288f66e511225ee3d8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:740-767 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3781-3808 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/embedding_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 216 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 \u0060mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:740\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":"mistralrs-core/src/pipeline/loaders/embedding_loaders.rs"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0895ce034faf5fc9d485a485364ed87949cebeaacdfb5eb4c675dfbafb97166"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:913-940 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1478-1505 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\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 45 separate duplicated blocks between them, totalling at least 1082 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 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:913\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":"mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d016ebc209effbc6dfcead1d69a5eb21b2a748edbf16fb8b49e811875982740"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/mod.rs:408-435 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:393-420 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs\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 24 separate duplicated blocks between them, totalling at least 425 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 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs:408\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":"mistralrs-core/src/vision_models/qwen3_5/mod.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"3148325dec81ea97574014d0f008d5681e85517c823110768549b291c750cd73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_vl/text.rs:459-500 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:580-621 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_vl/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs\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 45 separate duplicated blocks between them, totalling at least 674 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 \u0060mistralrs-core/src/vision_models/qwen3_vl/text.rs:459\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":"mistralrs-core/src/vision_models/qwen3_vl/text.rs"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"a219fdbd48f1629f699dbc1dd7dbfd6262dd853b4bb9fd8b298253fa6f09a04b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_vl/text.rs:518-545 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:639-666 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_vl/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs\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 45 separate duplicated blocks between them, totalling at least 674 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":"mistralrs-core/src/vision_models/qwen3_vl/text.rs"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"e52016eef8edcc85b2965a1dce85f91903ba1b2dc76ed824e18f03405d21a256"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:387-414 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:421-448 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fused_moe.rs\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe_fp8.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 298 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 \u0060mistralrs-quant/src/cutile/fused_moe.rs:387\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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ebf66a3781fb148d07636fe8a202199a5229ee4b420a84a6a5ebd8a0f7ee2f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 2): mistralrs-quant/src/cutile/qsa_decode.rs:340-366 | mistralrs-quant/src/cutile/qsa_decode.rs:369-396 \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 \u0060mistralrs-quant/src/cutile/qsa_decode.rs:369\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":"mistralrs-quant/src/cutile/qsa_decode.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec77d7c18ac85f0c90e027e70111b077b3dc41f5cd9cbcbb82444fb33d3813bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 2): mistralrs/src/model_builder_trait.rs:298-325 | mistralrs/src/model_builder_trait.rs:698-724 \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, \u0060mistralrs/src/model_builder_trait.rs:295\u0060 calls \u0060with_model_id\u0060, \u0060clone\u0060 and \u0060mistralrs/src/model_builder_trait.rs:696\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":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"359349f8ce27bc61a6ec92cbf03e2c97b99091c814d7a750934377e89b976637"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 6): mistralrs-core/src/embedding_models/embedding_gemma.rs:129-155 | mistralrs-core/src/models/gemma.rs:109-135 | mistralrs-core/src/models/gemma2.rs:142-168 | mistralrs-core/src/models/starcoder2.rs:169-195 | mistralrs-core/src/vision_models/gemma3/text.rs:102-127 | mistralrs-core/src/vision_models/gemma3n/text.rs:332-358 \u2014 \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma.rs\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 133 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 \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs:129\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":"mistralrs-core/src/embedding_models/embedding_gemma.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"387680b5196fd0cb4e21708cd1b8d6f47433f5162fd27764dd93e9134c6ee4b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 5): mistralrs-core/src/xlora_models/gemma.rs:466-492 | mistralrs-core/src/xlora_models/gemma2.rs:496-522 | mistralrs-core/src/xlora_models/mistral.rs:462-488 | mistralrs-core/src/xlora_models/mixtral.rs:593-619 | mistralrs-core/src/xlora_models/phi3.rs:421-447 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 498 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 \u0060mistralrs-core/src/xlora_models/gemma.rs:466\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e919ec7d61f23a39a09e79288894f34655b0bff75cd562bd2d328653f38bc58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3): mistralrs-core/src/models/qwen3_next.rs:1142-1168 | mistralrs-core/src/vision_models/qwen3_5/text.rs:1752-1778 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:972-998 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/qwen3_next.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 176 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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"98631b2e582c8f9a54005d369ee7100d375fd6ef1b73d0826be1b16bdb88387b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (55 lines \u00D7 3): mistralrs-core/src/pipeline/embedding.rs:429-483 | mistralrs-core/src/pipeline/multimodal.rs:980-1034 | mistralrs-core/src/pipeline/normal.rs:983-1037 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/embedding.rs\u0060 and \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 178 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 \u0060mistralrs-core/src/pipeline/embedding.rs:429\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":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"2714ea5a30c63fe5f62fe6530d365ae1d08a8a3c010218b07068e7e831a4cb7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3): mistralrs-core/src/vision_models/idefics2/mod.rs:271-297 | mistralrs-core/src/vision_models/idefics3/vision.rs:83-109 | mistralrs-core/src/vision_models/siglip.rs:74-100 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics2/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/idefics3/vision.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 221 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060mistralrs-core/src/vision_models/siglip.rs:68\u0060 calls \u0060pub\u0060 and \u0060mistralrs-core/src/vision_models/idefics2/mod.rs:265\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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"4342abbd07e9cb576cd2d2cd15f787a9f96cff56b2d1914154841a62e47d7761"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): mistralrs-core/src/distributed.rs:189-215 | mistralrs-core/src/distributed.rs:235-261 \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 \u0060mistralrs-core/src/distributed.rs:189\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":"mistralrs-core/src/distributed.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"afed415825205c7eb4a3d8edc2839d0ea815845dbe773f7a5118fa5c57d3074f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3/text.rs:499-524 | mistralrs-core/src/vision_models/gemma3n/text.rs:1439-1465 \u2014 \u0060mistralrs-core/src/vision_models/gemma3/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma3n/text.rs\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 214 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 \u0060mistralrs-core/src/vision_models/gemma3n/text.rs:1439\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":"mistralrs-core/src/vision_models/gemma3/text.rs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"a53f2685668bc59d6a452a3b1cecc26d32952dc1fec764fcdc7daece0ebe4aa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201327 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/audio.rs:264-290 | mistralrs-core/src/vision_models/gemma4/audio.rs:93-111 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/audio.rs\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 20 separate duplicated blocks between them, totalling at least 352 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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9db0195755e76a33481f12c50dc0768c39066f6aa27b71cf3a901b47968c7a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201327 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/audio.rs:619-645 | mistralrs-core/src/vision_models/gemma4/audio.rs:674-695 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/audio.rs\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 20 separate duplicated blocks between them, totalling at least 352 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 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs:619\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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f834e6008191dc1712f133641d3305e0b84167c0ec4f39eea0359bef527b21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava15.rs:91-117 | mistralrs-core/src/vision_models/llava/llava_next.rs:50-76 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/llava/llava15.rs\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava_next.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 109 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. 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":"mistralrs-core/src/vision_models/llava/llava15.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19b393bd92e222d4fbcf842372a069c4104d3007f003172677083e8f033968b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:394-432 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:358-396 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/vision.rs\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 15 separate duplicated blocks between them, totalling at least 182 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":"mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde24e8cff919138c42b69de3a8afce6172cbcc82c028458cbdb845718c57cae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): mistralrs-core/src/xlora_models/classifier.rs:81-108 | mistralrs-core/src/xlora_models/classifier.rs:144-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":"mistralrs-core/src/xlora_models/classifier.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"1887b0ff5266967601ab718d13e27d28b0344a5a11bc20999b1a358566883642"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): mistralrs-core/src/xlora_models/gemma.rs:326-352 | mistralrs-core/src/xlora_models/gemma2.rs:335-361 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 498 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 \u0060mistralrs-core/src/xlora_models/gemma.rs:326\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d88c75716a824ca7810980f820a8facb32a3fb9928d03431b9b160d451d424a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201327 lines \u00D7 2): mistralrs-core/src/xlora_models/mixtral.rs:397-421 | mistralrs-core/src/xlora_models/quantized_llama.rs:137-163 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/mixtral.rs\u0060 and \u0060mistralrs-core/src/xlora_models/quantized_llama.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 118 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 \u0060mistralrs-core/src/xlora_models/mixtral.rs:397\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":"mistralrs-core/src/xlora_models/mixtral.rs"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"470a7161b8a25a622876c649b1f3de86b2ac0f2380ccfcb8304e4a9053e6f976"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201327 lines \u00D7 2): mistralrs-quant/src/mxfp4/ops.rs:22-43 | mistralrs-quant/src/mxfp4/ops.rs:320-346 \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":"mistralrs-quant/src/mxfp4/ops.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"6610b372a5ef13a2c6c7ecd81f45ac8f028bc3103ab40f268dd0eed254c49fa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201327 lines \u00D7 2): mistralrs/src/gguf_lora_model.rs:43-69 | mistralrs/src/gguf_xlora_model.rs:50-74 \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 \u0060mistralrs/src/gguf_lora_model.rs: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":"mistralrs/src/gguf_lora_model.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c8f3312fcdcb0f7c7ceb3f2ad3b5f4e4973886406c35251312c1878ba8dffbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 18): mistralrs-core/src/models/gemma.rs:216-240 | mistralrs-core/src/models/gemma2.rs:263-288 | mistralrs-core/src/models/gpt_oss.rs:293-317 | mistralrs-core/src/models/hunyuan_v1_dense.rs:239-263 | mistralrs-core/src/models/hunyuan_v1_moe.rs:425-449 | mistralrs-core/src/models/lfm2.rs:533-556 | mistralrs-core/src/models/lfm3.rs:509-532 | mistralrs-core/src/models/llama.rs:124-148 | mistralrs-core/src/models/mistral.rs:264-288 | mistralrs-core/src/models/mixtral.rs:200-224 | mistralrs-core/src/models/phi2.rs:312-336 | mistralrs-core/src/models/qwen2.rs:294-318 | mistralrs-core/src/models/qwen3.rs:249-273 | mistralrs-core/src/models/qwen3_moe.rs:252-276 | mistralrs-core/src/models/qwen3_next.rs:333-356 | mistralrs-core/src/models/smollm3.rs:141-165 | mistralrs-core/src/models/starcoder2.rs:276-300 | mistralrs-core/src/vision_models/voxtral/mod.rs:176-199 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 707 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 \u0060mistralrs-core/src/models/gemma.rs:216\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, \u0060mistralrs-core/src/models/gemma.rs:214\u0060 calls \u0060is_none\u0060 and \u0060mistralrs-core/src/models/lfm2.rs:531\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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1627853e5eba83a81fd993b5c5650b2678cbbc70e4129d8e9f21930d85e7007"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 9): mistralrs-core/src/xlora_models/gemma.rs:634-659 | mistralrs-core/src/xlora_models/gemma2.rs:685-710 | mistralrs-core/src/xlora_models/llama.rs:460-485 | mistralrs-core/src/xlora_models/mistral.rs:630-655 | mistralrs-core/src/xlora_models/mixtral.rs:760-785 | mistralrs-core/src/xlora_models/phi2.rs:600-625 | mistralrs-core/src/xlora_models/quantized_llama.rs:850-875 | mistralrs-core/src/xlora_models/quantized_phi3.rs:515-540 | mistralrs-core/src/xlora_models/starcoder2.rs:615-640 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 498 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 \u0060mistralrs-core/src/xlora_models/gemma.rs:634\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"425aeeb0090a74053167e534ca8f2991b09fe3a7766f48ac9e9248892533fa0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): mistralrs-core/src/attention/backends/cpu/neon.rs:331-356 | mistralrs-core/src/attention/backends/cpu/neon.rs:571-596 \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 \u0060mistralrs-core/src/attention/backends/cpu/neon.rs:331\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 \u0060b\u0060 to \u0060\u0026[half::f16]\u0060 in one and \u0060\u0026[half::bf16]\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":"mistralrs-core/src/attention/backends/cpu/neon.rs"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"831f3dc85be747801e4678dfd39cb7b3b5bf0e9ebaf6e7fdaf62923e67cc1b50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): mistralrs-core/src/cuda/speculative_rejection.rs:834-859 | mistralrs-core/src/cuda/speculative_rejection.rs:870-895 \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 \u0060mistralrs-core/src/cuda/speculative_rejection.rs:834\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":"mistralrs-core/src/cuda/speculative_rejection.rs"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7c15c6afa213eaeb58884c596f1df201aa9b6e40f9bb0ed6c4894967cc34f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): mistralrs-core/src/layers.rs:1143-1168 | mistralrs-core/src/layers.rs:1233-1258 \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 \u0060mistralrs-core/src/layers.rs:1143\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":"mistralrs-core/src/layers.rs"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2c589185d00c6635a8180ac839ceac774f5f5d58b506cef2b919646616fdd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): mistralrs-core/src/models/deepseek2.rs:923-948 | mistralrs-core/src/models/deepseek3.rs:986-1011 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:923\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a61c93f2ba319c5ac1bd6871d52891255fae2950e04b878b224159e542a5444"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): mistralrs-core/src/models/phi3.rs:250-275 | mistralrs-core/src/vision_models/phi3/mod.rs:341-366 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/phi3.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi3/mod.rs\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 638 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":"mistralrs-core/src/models/phi3.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f1ffb2d7de5da1c3436553e0c0a298167a2745a67f62fdaa86be46b34432653"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 2): mistralrs-core/src/models/qwen3_next.rs:482-507 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:386-409 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/qwen3_next.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 461 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 \u0060mistralrs-core/src/models/qwen3_next.rs:482\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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"700e28cf3d9066104475c0e8a99066bb046500a17c2e17c0a0308ef6591e11fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1278-1303 | mistralrs-core/src/pipeline/normal.rs:1354-1379 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:1278\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1278}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ab012aa1fcf8611157506f84b4388a5cc411408c2868a382454d227084fe8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2138-2163 | mistralrs-core/src/pipeline/normal.rs:1894-1917 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:2138\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2138}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe82a5d73d6b861b1aa15ce9ef95ebeeaa2dfb814264e6efc2796cc73671a12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2787-2812 | mistralrs-core/src/pipeline/normal.rs:2351-2376 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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. 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2787}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f2d312f7193afabd95db675a8ffaf9c83e2beadef6d6762b1a11b2f8dd96562"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:339-363 | mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:485-510 \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 \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:339\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":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"623847ac4609d2d5556d0bc56d0f996ac666a0cf9c13415a33ffb6755af27ca2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201326 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/audio.rs:295-320 | mistralrs-core/src/vision_models/gemma4/audio.rs:114-136 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/audio.rs\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 20 separate duplicated blocks between them, totalling at least 352 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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"863952e0f617484e212f0be002ea2cf0e9b09d87be5fc840daa86bf989ebe801"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1148-1197 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1713-1762 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\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 45 separate duplicated blocks between them, totalling at least 1082 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 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1148\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":"mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"e88552f2aeb77c459958f9789729feef92451062bd2e0d3b7cf74fefca36b560"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmq.rs:1005-1028 | mistralrs-quant/src/gguf/fast_mmq.rs:1168-1193 \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 \u0060mistralrs-quant/src/gguf/fast_mmq.rs:1005\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":"mistralrs-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"72f9d7a1c15d697dc061c5a223fb7f2f7ccd967afab8dd9ed890c835ace1bb68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): mistralrs-quant/src/safetensors.rs:786-811 | mistralrs-quant/src/safetensors.rs:862-886 \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 \u0060mistralrs-quant/src/safetensors.rs:786\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":"mistralrs-quant/src/safetensors.rs"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc67060dd2501f76d673bea988faae64554007edad1b71a945c5272f7b6b583a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 5): mistralrs-core/src/xlora_models/gemma.rs:233-257 | mistralrs-core/src/xlora_models/gemma2.rs:238-262 | mistralrs-core/src/xlora_models/mistral.rs:223-247 | mistralrs-core/src/xlora_models/mixtral.rs:136-160 | mistralrs-core/src/xlora_models/starcoder2.rs:210-234 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 498 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 \u0060mistralrs-core/src/xlora_models/gemma.rs:233\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"a61330c614e47c50a11cfdb3867c080ebba18c9825fd54c132ede2b4c08a9295"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): mistralrs-core/src/models/deepseek2.rs:295-319 | mistralrs-core/src/models/deepseek3.rs:296-320 | mistralrs-core/src/models/glm4_moe_lite.rs:256-280 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c0807cd6c697d3d12856d4b8b3e41ae537ce8696b429068a1cc82d3923527b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 3): mistralrs-core/src/pipeline/embedding.rs:370-392 | mistralrs-core/src/pipeline/multimodal.rs:935-959 | mistralrs-core/src/pipeline/normal.rs:938-962 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/embedding.rs\u0060 and \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 178 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 \u0060mistralrs-core/src/pipeline/embedding.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"16366e606e7085bd7974724c767f0a1aeda85a55eacdac442a734dca63db2302"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): mistralrs-core/src/vision_models/idefics2/mod.rs:301-325 | mistralrs-core/src/vision_models/idefics3/vision.rs:113-137 | mistralrs-core/src/vision_models/siglip.rs:104-128 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics2/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/idefics3/vision.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 221 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060\u0026VisionConfig\u0060 in one and \u0060\u0026Idefics3VisionConfig\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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"443910da2a79b17253a5e35ba0cd16e52c57187d6233aa097295e2f3885484fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:334-358 | mistralrs-core/src/vision_models/qwen2vl/text.rs:335-359 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:316-340 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/text.rs\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 42 separate duplicated blocks between them, totalling at least 716 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 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:334\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, \u0060mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:333\u0060 calls \u0060set_device\u0060, \u0060pp\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_vl/text.rs:315\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":"mistralrs-core/src/vision_models/qwen2_5_vl/text.rs"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"e40e09dad59c876cf3631b75b9d373c12654d602942b6c1be62ac5d091613167"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): mistralrs-cli/src/commands/run/interactive.rs:1010-1034 | mistralrs-cli/src/commands/run/interactive.rs:1798-1822 \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 \u0060mistralrs-cli/src/commands/run/interactive.rs:1010\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, \u0060mistralrs-cli/src/commands/run/interactive.rs:1009\u0060 calls \u0060clone\u0060 and \u0060mistralrs-cli/src/commands/run/interactive.rs:1797\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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e3146c20d87c96f622c7095476f8767bafa54c68a7809f7f5247eb949dd1581"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): mistralrs-code-exec/src/lib.rs:340-364 | mistralrs-code-exec/src/shell.rs:354-377 \u2014 before extracting anything, compare \u0060mistralrs-code-exec/src/lib.rs\u0060 and \u0060mistralrs-code-exec/src/shell.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 64 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. 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":"mistralrs-code-exec/src/lib.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"4841d2377a32738ffdc216d62432d65b1d7a125f4a4c66bbb4de9a2db4b3751a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): mistralrs-core/src/models/qwen3.rs:480-504 | mistralrs-core/src/models/qwen3_moe.rs:660-684 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/qwen3.rs\u0060 and \u0060mistralrs-core/src/models/qwen3_moe.rs\u0060 as WHOLE FILES: this scan already matched 62 separate duplicated blocks between them, totalling at least 803 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 \u0060mistralrs-core/src/models/qwen3.rs:480\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":"mistralrs-core/src/models/qwen3.rs"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"f162a4c91b44c0a9e0e95c0697bcba1c0cb09dc9af9c1581ea23faaff31432eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): mistralrs-core/src/pipeline/inputs_processor.rs:2732-2756 | mistralrs-core/src/pipeline/inputs_processor.rs:2776-2800 \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":"mistralrs-core/src/pipeline/inputs_processor.rs"},"region":{"startLine":2732}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f117259923b7870966a00352240df4230f828fe9ed071944eb7d50e57d8367e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2175-2199 | mistralrs-core/src/pipeline/normal.rs:1936-1960 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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, \u0060mistralrs-core/src/pipeline/multimodal.rs:2174\u0060 calls \u0060has_speculative_proposer\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs:1935\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2175}}}],"partialFingerprints":{"codehealthFindingId/v1":"110f333de31ead97b7c5e05b68faab03a62d4c608c1149a214b3bc836eebb60e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2670-2694 | mistralrs-core/src/pipeline/normal.rs:2272-2296 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:2670\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2670}}}],"partialFingerprints":{"codehealthFindingId/v1":"63991f0798adc052c97c2e3f95c90bd15357daaf4b9a4b9312743f74926916f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): mistralrs-core/src/sampler.rs:1171-1195 | mistralrs-core/src/sampler.rs:1251-1275 \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 \u0060mistralrs-core/src/sampler.rs:1171\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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"8540239536ecf05ab46b2314a6167b74f12a96b40a9ea0f0328d22e9c3ebb08b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201325 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/audio.rs:384-408 | mistralrs-core/src/vision_models/gemma4/audio.rs:183-203 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/audio.rs\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 20 separate duplicated blocks between them, totalling at least 352 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 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060mistralrs-core/src/vision_models/gemma4/audio.rs:182\u0060 calls \u0060reshape\u0060 and \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs:383\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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"f851a244dabaa65fe19a835026c2b408bbe0b9a75d8b66355d21884cc88c0620"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): mistralrs-core/src/vision_models/grid_processor.rs:1096-1120 | mistralrs-core/src/vision_models/grid_processor.rs:1424-1448 \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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1096}}}],"partialFingerprints":{"codehealthFindingId/v1":"33d9cd03383fe44977ee37e20346a9178a9a945d177ad892cd87e5becb414d0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:754-797 | mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:975-1018 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/idefics3/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 120 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 \u0060mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:754\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":"mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f3eeb867389bfca46062f91528f7ae32113d7b7785be859336cafdd3f8d954"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:762-785 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1326-1350 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\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 45 separate duplicated blocks between them, totalling at least 1082 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 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:762\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":"mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"869e8a229172883cf0b93538a24c709e82bab09c78c9d081fc757fbc3ce03de2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/text.rs:852-876 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:548-572 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs\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 26 separate duplicated blocks between them, totalling at least 469 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 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs:852\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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9d5510a183e58b2800fdcb1ee5a446a275ac9df5078931a781a9fca9927424"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_vl/mod.rs:977-1001 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:423-447 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_vl/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs\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 25 separate duplicated blocks between them, totalling at least 658 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 \u0060mistralrs-core/src/vision_models/qwen3_vl/mod.rs:977\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, \u0060mistralrs-core/src/vision_models/qwen3_vl/mod.rs:1004\u0060 calls \u0060pub\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:450\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":"mistralrs-core/src/vision_models/qwen3_vl/mod.rs"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf4812cf231f3096ccb77dcbab5960396df10af12376854a23bffbb11a483b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): mistralrs-core/src/xlora_models/classifier.rs:118-142 | mistralrs-core/src/xlora_models/classifier.rs:210-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 \u0060mistralrs-core/src/xlora_models/classifier.rs: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":"mistralrs-core/src/xlora_models/classifier.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed51674b1a29e21ff3dd0274f989c34a810271a6576ab37db96017f4b5a16be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): mistralrs-pyo3/src/lib.rs:2013-2037 | mistralrs-pyo3/src/lib.rs:2080-2104 \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 \u0060mistralrs-pyo3/src/lib.rs:2013\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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":2013}}}],"partialFingerprints":{"codehealthFindingId/v1":"53fb4e7e90aa617c4fbdeb4459829a842393133b47a7b76af5a075acf5131493"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:2095-2119 | mistralrs-quant/src/distributed/layers.rs:2260-2284 \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 \u0060mistralrs-quant/src/distributed/layers.rs:2095\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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":2095}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a0459c6cca585bbe36aa9b8102f16233e426acc4db2c3c8ae957a78cc1d6ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 2): mistralrs-quant/src/metal_kernels/mod.rs:3925-3949 | mistralrs-quant/src/metal_kernels/mod.rs:4016-4038 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:3925\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":3925}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec440931a4205e7cb24414dde7a2badbc0cb1d08f584e13c912c190e3656173"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): mistralrs-quant/src/moe/cutlass.rs:261-285 | mistralrs-quant/src/moe/cutlass.rs:305-329 \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 \u0060mistralrs-quant/src/moe/cutlass.rs:261\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":"mistralrs-quant/src/moe/cutlass.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e88b245c3fe8176bad1f8bb2e4fab189566c97f29d5eb627e1318d16adde04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 4): mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:537-560 | mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:544-567 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:474-497 | mistralrs-core/src/vision_models/phi4/inputs_processor.rs:452-475 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 222 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, \u0060mistralrs-core/src/vision_models/phi4/inputs_processor.rs:477\u0060 calls \u0060and_then\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:562\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":"mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"604e3cb4cb60f49084f5c35c26e6066bc47014bdcd08d5b24f09304d75f13b5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (82 lines \u00D7 3): mistralrs-core/src/models/deepseek2.rs:848-929 | mistralrs-core/src/models/deepseek3.rs:911-992 | mistralrs-core/src/models/glm4_moe_lite.rs:858-939 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:848\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"31cc0840202999f8f58b711fba616fa72a77058b78a65b5d1182d28d3fd622f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): mistralrs-core/src/vision_models/idefics2/mod.rs:328-351 | mistralrs-core/src/vision_models/idefics3/vision.rs:140-163 | mistralrs-core/src/vision_models/siglip.rs:136-159 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics2/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/idefics3/vision.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 221 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 \u0060mistralrs-core/src/vision_models/idefics2/mod.rs:328\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, \u0060mistralrs-core/src/vision_models/siglip.rs:160\u0060 calls \u0060Some\u0060, \u0060i\u0060 and \u0060mistralrs-core/src/vision_models/idefics2/mod.rs:352\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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"854edd21d66d726bbbb3d279a2aaa4565c32c5d9e68b11ed5d03d86615b13f5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): mistralrs-core/src/lora/loralinear.rs:182-205 | mistralrs-core/src/lora/qloralinear.rs:233-255 \u2014 before extracting anything, compare \u0060mistralrs-core/src/lora/loralinear.rs\u0060 and \u0060mistralrs-core/src/lora/qloralinear.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 151 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 \u0060mistralrs-core/src/lora/loralinear.rs:182\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":"mistralrs-core/src/lora/loralinear.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c57f6a2d16b8ccb6300d3efcf0c68db52d28233c249a42d8924ef195873d93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (80 lines \u00D7 2): mistralrs-core/src/models/hunyuan_v1_dense.rs:430-509 | mistralrs-core/src/models/hunyuan_v1_moe.rs:924-1003 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/hunyuan_v1_dense.rs\u0060 and \u0060mistralrs-core/src/models/hunyuan_v1_moe.rs\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 766 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 \u0060mistralrs-core/src/models/hunyuan_v1_dense.rs: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":"mistralrs-core/src/models/hunyuan_v1_dense.rs"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"f34f94f6defe7659faa45b81cd3e1061e930515ae74406f9724ce19018a9be16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1512-1535 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2896-2919 \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 \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1512\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":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":1512}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca10cb84f14d607d615d793a99e9f4b335dc5065166de8e7fc5e2ae6784c019"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3082-3105 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3415-3438 \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 \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3082\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":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":3082}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c81667612274472d43092a4632337dc41a948b04055fc48db355f374e3d81d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 2): mistralrs-core/src/pipeline/sampling.rs:1476-1497 | mistralrs-core/src/pipeline/sampling.rs:1564-1587 \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 \u0060mistralrs-core/src/pipeline/sampling.rs:1476\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":"mistralrs-core/src/pipeline/sampling.rs"},"region":{"startLine":1476}}}],"partialFingerprints":{"codehealthFindingId/v1":"1033407c080ec73b339493a86477ad15a07aab7d6e1a42c43c3f9a802ff63e5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:221-244 | mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:648-671 \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 \u0060mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:221\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":"mistralrs-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e215d4edb681c4be2fb86a4c41240716a68ecc78f8cca89b5f6e29c05659b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): mistralrs-paged-attn/src/metal/kernels/mod.rs:108-131 | mistralrs-quant/src/metal_kernels/mod.rs:105-128 \u2014 before extracting anything, compare \u0060mistralrs-paged-attn/src/metal/kernels/mod.rs\u0060 and \u0060mistralrs-quant/src/metal_kernels/mod.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 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 \u0060mistralrs-paged-attn/src/metal/kernels/mod.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/metal/kernels/mod.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82ea1b6a310795333a9106bf34ab97cbd033db0a560add5583cee4717e64bd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): mistralrs-paged-attn/src/metal/kernels/mod.rs:461-484 | mistralrs-paged-attn/src/metal/kernels/mod.rs:856-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 \u0060mistralrs-paged-attn/src/metal/kernels/mod.rs:461\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":"mistralrs-paged-attn/src/metal/kernels/mod.rs"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"f129230ab3832f68ae40f2c583f20c4d1184c818616f6cdc0eb5ea7211a84ebc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): mistralrs/src/anymoe.rs:118-140 | mistralrs/src/model_builder_trait.rs:1058-1081 \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 \u0060mistralrs/src/anymoe.rs:118\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":"mistralrs/src/anymoe.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e4824a3b1eb29161f806a82841afabbeb93a319ade7f786ee7fef9fb020360c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 14): mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:583-605 | mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs:356-377 | mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:1538-1559 | mistralrs-core/src/vision_models/grid_processor.rs:1528-1550 | mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:460-481 | mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:590-612 | mistralrs-core/src/vision_models/lfm2_vl/inputs_processor.rs:712-733 | mistralrs-core/src/vision_models/llama4/inputs_processor.rs:438-459 | mistralrs-core/src/vision_models/minicpmo/inputs_processor.rs:486-507 | mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:365-386 | mistralrs-core/src/vision_models/mllama/inputs_processor.rs:351-373 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:722-744 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:998-1020 | mistralrs-core/src/vision_models/voxtral/inputs_processor.rs:271-292 \u2014 \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs\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 4 separate duplicated blocks between them, totalling at least 75 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 \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:583\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":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"d707723810d664f9ea10ea294508643155db4c73998a01bf90ca3d9735b0f018"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 6): mistralrs-core/src/models/glm4.rs:500-522 | mistralrs-core/src/models/hunyuan_v1_dense.rs:465-487 | mistralrs-core/src/models/hunyuan_v1_moe.rs:959-981 | mistralrs-core/src/models/mistral.rs:506-528 | mistralrs-core/src/models/mixtral.rs:461-483 | mistralrs-core/src/models/qwen3.rs:459-481 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/glm4.rs\u0060 and \u0060mistralrs-core/src/models/hunyuan_v1_dense.rs\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 508 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 \u0060mistralrs-core/src/models/glm4.rs:500\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":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d7e7071903c1bed1290e9a1e75a485d6d3faca6a8d452da27ddcec4090ada9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 4): mistralrs-core/src/models/deepseek2.rs:821-843 | mistralrs-core/src/models/deepseek3.rs:884-906 | mistralrs-core/src/models/glm4_moe.rs:721-743 | mistralrs-core/src/models/glm4_moe_lite.rs:831-853 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:821\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"64117154e84aef21a041841cfecf26a864335a7e2f675d166bcdda13d6f837c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 4): mistralrs-core/src/models/flint.rs:252-273 | mistralrs-core/src/models/glm4_moe.rs:195-217 | mistralrs-core/src/models/hunyuan_v1_dense.rs:122-143 | mistralrs-core/src/models/hunyuan_v1_moe.rs:299-320 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/glm4_moe.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 188 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 \u0060mistralrs-core/src/models/flint.rs:252\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"4336f21abe527adf64cf045196d477110faaa1c89b052b6416bb9dc7b054c7e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 4): mistralrs-core/src/xlora_models/gemma.rs:322-344 | mistralrs-core/src/xlora_models/gemma2.rs:331-353 | mistralrs-core/src/xlora_models/mistral.rs:318-340 | mistralrs-core/src/xlora_models/starcoder2.rs:307-329 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 498 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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f464c3d78c1968bfc759cc3ab1dc5e75584d993c30ab76cc3f887bbf8ba59a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): mistralrs-cli/src/commands/run/interactive.rs:528-550 | mistralrs-cli/src/commands/run/interactive.rs:1025-1047 | mistralrs-cli/src/commands/run/interactive.rs:1813-1835 \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 \u0060mistralrs-cli/src/commands/run/interactive.rs:528\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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"e05fe8a5f86f9acbc58e526be57882e2f907004161ed08ea33b1ad615827004a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): mistralrs-quant/src/metal_kernels/mod.rs:701-723 | mistralrs-quant/src/metal_kernels/mod.rs:748-770 | mistralrs-quant/src/metal_kernels/mod.rs:795-817 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:701\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c8c42ae8c315c3a19538c937e193cbf56e72f26d616cb9baa5b15d796de4f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): mistralrs-core/src/lib.rs:1463-1485 | mistralrs-core/src/lib.rs:1519-1541 \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 \u0060mistralrs-core/src/lib.rs:1463\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":"mistralrs-core/src/lib.rs"},"region":{"startLine":1463}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86385ae5ab8fcb61288e773c6b54025d5135ff1ee4da2777e0a188fbace9278"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): mistralrs-core/src/lora/loralinear.rs:82-104 | mistralrs-core/src/lora/qloralinear.rs:131-153 \u2014 before extracting anything, compare \u0060mistralrs-core/src/lora/loralinear.rs\u0060 and \u0060mistralrs-core/src/lora/qloralinear.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 151 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 \u0060mistralrs-core/src/lora/loralinear.rs:82\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":"mistralrs-core/src/lora/loralinear.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"50752d29e649d32725f26d66fa5c94f549e48f3c40bf88853c8870076a6dee3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): mistralrs-core/src/ops.rs:5864-5886 | mistralrs-core/src/ops.rs:6301-6323 \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":"mistralrs-core/src/ops.rs"},"region":{"startLine":5864}}}],"partialFingerprints":{"codehealthFindingId/v1":"8699e865273be8b383303fbafbb63764cd0d9d00fdbce3b4f27fd8d95af2100b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): mistralrs-core/src/pipeline/inputs_processor.rs:2789-2811 | mistralrs-core/src/pipeline/inputs_processor.rs:2838-2860 \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 \u0060mistralrs-core/src/pipeline/inputs_processor.rs:2789\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":"mistralrs-core/src/pipeline/inputs_processor.rs"},"region":{"startLine":2789}}}],"partialFingerprints":{"codehealthFindingId/v1":"144f76ae04bf5d5dc4c731c593933c9c76a5f1fca24b49e5950a641a882e09fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1093-1116 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3894-3917 \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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d2ba67cb66d924cd4c50daa22f8ddf88a46b2b798fc094a2b95e74338fd7387"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:538-560 | mistralrs-core/src/pipeline/normal.rs:670-692 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c778e4c3a2ea5cb86a961b3458e2fbee993e656dc2b18ada9b242317caeb4e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2398-2421 | mistralrs-core/src/pipeline/normal.rs:2106-2128 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 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, \u0060mistralrs-core/src/pipeline/normal.rs:2129\u0060 calls \u0060device_mapper\u0060 and \u0060mistralrs-core/src/pipeline/multimodal.rs:2421\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2398}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f559986e5747facc5b766f9c9bbad35babed4ae8ab00fd6729ef1424e69e71c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): mistralrs-core/src/toml_selector.rs:1111-1133 | mistralrs-core/src/toml_selector.rs:1145-1167 \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 \u0060mistralrs-core/src/toml_selector.rs:1111\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":"mistralrs-core/src/toml_selector.rs"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7bbae4ab61d660edf2a2d244b6e3229cfc96af55d10dfbd84c71a7b971a84a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/mod.rs:461-483 | mistralrs-core/src/vision_models/gemma4/mod.rs:774-796 \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 \u0060mistralrs-core/src/vision_models/gemma4/mod.rs:461\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":"mistralrs-core/src/vision_models/gemma4/mod.rs"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"82750bf1879851ceb619e969f86a2592eb237e80d1dfa11ea82306f0cc3149bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:242-264 | mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:508-530 \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":"mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0525351f932a27ab4f60e29ad2950509ea3829f18315d27ff111c3fe207a82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): mistralrs-core/src/vision_models/phi3/mod.rs:1239-1274 | mistralrs-core/src/vision_models/phi4/mod.rs:354-389 \u2014 \u0060mistralrs-core/src/vision_models/phi3/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi4/mod.rs\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 48 separate duplicated blocks between them, totalling at least 586 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 \u0060mistralrs-core/src/vision_models/phi3/mod.rs:1239\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":"mistralrs-core/src/vision_models/phi3/mod.rs"},"region":{"startLine":1239}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0aeb8406577a6ad29a29985ecd8af9b0df151889f84c2380a5948290d1dbf25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): mistralrs-paged-attn/src/metal/backend/paged_attention.rs:435-457 | mistralrs-paged-attn/src/metal/backend/paged_attention.rs:822-844 \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 \u0060mistralrs-paged-attn/src/metal/backend/paged_attention.rs:435\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":"mistralrs-paged-attn/src/metal/backend/paged_attention.rs"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"619c5e9fa4885495dd267a460928863981876c46aa3dc40d9813bb8fb0282023"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:1291-1313 | mistralrs-quant/src/blockwise_fp8/ops.rs:1330-1352 \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 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:1291\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1291}}}],"partialFingerprints":{"codehealthFindingId/v1":"eabab565a0e7a5b501b3075917b6b9c9dbda5f1aae5faa00b83b7b16b2a611e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 2): mistralrs-quant/src/cublaslt/api.rs:134-156 | mistralrs-quant/src/cublaslt/api.rs:404-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060mistralrs-quant/src/cublaslt/api.rs:134\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":"mistralrs-quant/src/cublaslt/api.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c3b9b96381ed6333eb2f1addb1d1b2636cfc98c892cfb14d3f927878f73813c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmvq.rs:489-511 | mistralrs-quant/src/gguf/fast_mmvq.rs:946-968 \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 \u0060mistralrs-quant/src/gguf/fast_mmvq.rs:489\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":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"521df1c15b0a83c30dd5de4fd1a3fe04f38051676a40eba3a2527988424ad6cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmvq.rs:531-553 | mistralrs-quant/src/gguf/fast_mmvq.rs:985-1007 \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 \u0060mistralrs-quant/src/gguf/fast_mmvq.rs:531\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":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6528c15633a7117a9d153b23b30c5f9e041bee331eaaa4717e7380b881101f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): mistralrs/src/model_builder_trait.rs:573-595 | mistralrs/src/model_builder_trait.rs:652-674 \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 \u0060mistralrs/src/model_builder_trait.rs:573\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":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3bc83830398be7643d8d2e90edd6285289a3d59edf46fcb2797c50a3de02a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): mistralrs/src/model_builder_trait.rs:1278-1300 | mistralrs/src/model_builder_trait.rs:1345-1367 \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 \u0060mistralrs/src/model_builder_trait.rs:1278\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 \u0060builder\u0060 to \u0060crate::DiffusionModelBuilder\u0060 in one and \u0060crate::SpeechModelBuilder\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, \u0060mistralrs/src/model_builder_trait.rs:1343\u0060 calls \u0060clone\u0060 and \u0060mistralrs/src/model_builder_trait.rs:1276\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":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":1278}}}],"partialFingerprints":{"codehealthFindingId/v1":"e86c3e21ffe4faad55c5bbf13079c623183c271341ed2e5dbe970234cc633e9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 6): mistralrs-core/src/models/glm4.rs:266-287 | mistralrs-core/src/models/glm4_moe.rs:331-352 | mistralrs-core/src/models/granite.rs:1592-1613 | mistralrs-core/src/vision_models/phi3/mod.rs:297-318 | mistralrs-core/src/vision_models/phi4/mod.rs:166-187 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:251-271 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/glm4.rs\u0060 and \u0060mistralrs-core/src/models/glm4_moe.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 359 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 \u0060mistralrs-core/src/models/glm4.rs:266\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":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a342ff149048d484cfebcac876a0481dc18b8a3279bf368fbb7b6c7aafbfde4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 4): mistralrs/src/model_builder_trait.rs:802-823 | mistralrs/src/model_builder_trait.rs:957-978 | mistralrs/src/model_builder_trait.rs:1130-1151 | mistralrs/src/model_builder_trait.rs:1579-1600 \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 \u0060mistralrs/src/model_builder_trait.rs:802\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":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"d318c2b237eaf89bb1ca3370ca330a8ac67c5516f33fa148f33bf67e163628dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): mistralrs-core/src/models/deepseek2.rs:256-277 | mistralrs-core/src/models/deepseek3.rs:257-278 | mistralrs-core/src/models/glm4_moe_lite.rs:217-238 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:256\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8137a62804476fb271417fa1fa9263c0245e0c0a04252d8c4dfe1cd21cb11a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): mistralrs-core/src/pipeline/inputs_processor.rs:2737-2758 | mistralrs-core/src/pipeline/inputs_processor.rs:2781-2802 | mistralrs-core/src/pipeline/inputs_processor.rs:2830-2851 \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 \u0060mistralrs-core/src/pipeline/inputs_processor.rs:2737\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":"mistralrs-core/src/pipeline/inputs_processor.rs"},"region":{"startLine":2737}}}],"partialFingerprints":{"codehealthFindingId/v1":"011e193d691654d75e50df756016a7b95b1db57c4465c145ef21da64d65cf760"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-cli/src/commands/run/interactive.rs:1191-1212 | mistralrs-cli/src/commands/run/interactive.rs:1276-1297 \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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1191}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c0e69d1cb211ddbfcf577281a1005ca95f21a5306215310641fc77e63c8329"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-core/src/model_loader.rs:834-855 | mistralrs-core/src/model_loader.rs:867-888 \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 \u0060mistralrs-core/src/model_loader.rs:834\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":"mistralrs-core/src/model_loader.rs"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a9de71dccbc10e6753d7432a529072c0d7aafd2bf5b7e067d08ce3ee3a13b54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-core/src/models/llama.rs:380-401 | mistralrs-core/src/models/smollm3.rs:396-417 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/llama.rs\u0060 and \u0060mistralrs-core/src/models/smollm3.rs\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 727 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 \u0060mistralrs-core/src/models/llama.rs:380\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":"mistralrs-core/src/models/llama.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"79fcc002e69b588b85ec4f7bdcf4ce1a0dc20fd8c97ff522fd08ac5bfea18af1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-core/src/models/phi3.rs:206-227 | mistralrs-core/src/models/phi3_5_moe.rs:233-254 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/phi3.rs\u0060 and \u0060mistralrs-core/src/models/phi3_5_moe.rs\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 343 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 \u0060mistralrs-core/src/models/phi3.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/phi3.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a8316244290ee3979445de71308f0801e38954a0feb84595c4548a35761a4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-core/src/models/qwen3_moe.rs:628-649 | mistralrs-core/src/models/starcoder2.rs:452-473 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/qwen3_moe.rs\u0060 and \u0060mistralrs-core/src/models/starcoder2.rs\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 374 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 \u0060mistralrs-core/src/models/qwen3_moe.rs:628\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, \u0060mistralrs-core/src/models/qwen3_moe.rs:650\u0060 calls \u0060clone\u0060 and \u0060mistralrs-core/src/models/starcoder2.rs:474\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":"mistralrs-core/src/models/qwen3_moe.rs"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb9c95d280462f55e5fefca4ed8524d57d956ada841fce0bad05063dfe55525"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): mistralrs-core/src/ops.rs:634-655 | mistralrs-core/src/ops.rs:790-810 \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 \u0060mistralrs-core/src/ops.rs:634\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"05787ee96479535e19c806639d075bc5967daaefc82ea74f8d8a9ff486bc02b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-core/src/ops.rs:3969-3990 | mistralrs-core/src/ops.rs:4093-4114 \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 \u0060mistralrs-core/src/ops.rs:3969\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":3969}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72e0028767d6ac23e0f3222a594d950eca2d2d988b084ac0aadd92d3edb292c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-core/src/ops.rs:5641-5662 | mistralrs-core/src/ops.rs:6076-6097 \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 \u0060mistralrs-core/src/ops.rs:5641\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":5641}}}],"partialFingerprints":{"codehealthFindingId/v1":"80800ae77b6cfc1cbd9ea98b7489560687a5f915f305f70a911b36718f745a6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9567-9588 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:10796-10817 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9567\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":9567}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e7f131168d1d5d6b86ef27444849c3a1df8d121f9ad1413ab992f0b62e92820"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:10611-10632 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:7131-7152 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 445 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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:10611\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":10611}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd3edaa827a52a9e15167c9c3e2d089b9c1810e5e3368106a4d35712a3f5880"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:866-887 | mistralrs-core/src/pipeline/normal.rs:872-893 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:866\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa6661579bea6270e9d6411d24f06c1d9f1084b514e38f3f910d3571c69155e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1044-1082 | mistralrs-core/src/pipeline/normal.rs:1047-1085 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:1044\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, \u0060mistralrs-core/src/pipeline/normal.rs:1087\u0060 calls \u0060is_adapted_and\u0060, \u0060is_x_lora\u0060 and \u0060mistralrs-core/src/pipeline/multimodal.rs:1084\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1044}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9461ba6aa8a7327258758db3e7d3316e0b36fce35732ffcd112b2abc56842ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:3117-3138 | mistralrs-core/src/pipeline/normal.rs:2715-2736 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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. 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":3117}}}],"partialFingerprints":{"codehealthFindingId/v1":"87f2fb53a07e0a0457862838e1d1402cb3fb0bc89a7a6683e0be378e30a39d5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/mod.rs:422-443 | mistralrs-core/src/vision_models/gemma4/mod.rs:735-756 \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 \u0060mistralrs-core/src/vision_models/gemma4/mod.rs:422\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":"mistralrs-core/src/vision_models/gemma4/mod.rs"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c43ed07f163fabb204182582c396b35f4c7cd3c8ae873a916c3cc0f028e568"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:271-292 | mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:508-529 \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":"mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"11760d3c55013ef937e5ac721e56d7aab1381ec9d594d8e8f8b611f19f2ac002"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:278-299 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:584-605 \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 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:278\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":"mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"9909ad8aaf8f008a2ef754e21be905db6c2cd35ecc00ab4b8b95fa3c60e3914c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:844-865 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1192-1213 \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 \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:844\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":"mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"74f85c29af827b0e80989b14f1616f626b09ce05116d1b42dc3b5cfb3d579e15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-core/src/xlora_models/mistral.rs:575-596 | mistralrs-core/src/xlora_models/mixtral.rs:705-726 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/mistral.rs\u0060 and \u0060mistralrs-core/src/xlora_models/mixtral.rs\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 787 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 \u0060mistralrs-core/src/xlora_models/mistral.rs:575\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":"mistralrs-core/src/xlora_models/mistral.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d7c2b329be0dcf56598a5dd8d3e57673cdc7c1202972c6e30bcdf081178409"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): mistralrs-core/src/xlora_models/quantized_llama.rs:398-439 | mistralrs-core/src/xlora_models/quantized_llama.rs:700-741 \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 \u0060mistralrs-core/src/xlora_models/quantized_llama.rs:398\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":"mistralrs-core/src/xlora_models/quantized_llama.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b87697ce2cdffada3c32c3d082183a99d0e121764703f33bcc3592240fcb08f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/mla.rs:397-418 | mistralrs-paged-attn/src/cuda/backend/mla.rs:730-751 \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 \u0060mistralrs-paged-attn/src/cuda/backend/mla.rs:397\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":"mistralrs-paged-attn/src/cuda/backend/mla.rs"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf40c6e711bf30e885acdeb5883d4fe6416d1ad513f2f34326d602277de7670"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-pyo3/src/lib.rs:821-842 | mistralrs-pyo3/src/lib.rs:869-890 \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 \u0060mistralrs-pyo3/src/lib.rs:821\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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"24654b4d72f7ed10d2bb8f8911b8a142694de9530b6c1955a4630cbc8c1dc2c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 2): mistralrs-quant/src/cublaslt/api.rs:187-208 | mistralrs-quant/src/cublaslt/api.rs:429-448 \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 \u0060mistralrs-quant/src/cublaslt/api.rs:187\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":"mistralrs-quant/src/cublaslt/api.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"df46eee3c9e964148ca3d83a56ac6ffb265c3d18266e6a987f35251469186cb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:512-533 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:956-977 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fused_moe.rs\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe_fp8.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 298 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 \u0060mistralrs-quant/src/cutile/fused_moe.rs:512\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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc542aa997fdffe5aa2be13620fe056c88d11f60e21217b674ea202886ba4a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:460-481 | mistralrs-quant/src/distributed/layers.rs:834-855 \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 \u0060mistralrs-quant/src/distributed/layers.rs:460\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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda912dcf4b13dcaa3bda638ea53a634daa3ab2ebf0d950c843affbc94c0ba0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): mistralrs-quant/src/metal_kernels/mod.rs:3462-3483 | mistralrs-quant/src/metal_kernels/mod.rs:3592-3612 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:3462\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":3462}}}],"partialFingerprints":{"codehealthFindingId/v1":"6850528f6476339b1752d66194eb84626e10f3874f2ea6bc26bf54d1f75aca01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 8): mistralrs-core/src/vision_models/qwen3_5/mod.rs:233-253 | mistralrs-core/src/vision_models/qwen3_5/mod.rs:294-314 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:216-236 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:277-297 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:753-773 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:828-848 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:199-219 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:274-294 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs\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 24 separate duplicated blocks between them, totalling at least 425 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 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs:233\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":"mistralrs-core/src/vision_models/qwen3_5/mod.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"b669a0c2cf1fedfdb5662956840c849568816026147fb89135c0d15642d031b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 7): mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:438-458 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:594-614 | mistralrs-core/src/vision_models/qwen3_5/mod.rs:479-499 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:487-507 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:1049-1069 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:493-513 | mistralrs-core/src/vision_models/qwen4_exp/mod.rs:464-484 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/mod.rs\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 396 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 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"63a8acfd01a9c8a047c5d3d54c0282a47e914eb48044d86f218270fea590da99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 4): mistralrs-core/src/models/deepseek2.rs:750-770 | mistralrs-core/src/models/deepseek3.rs:813-833 | mistralrs-core/src/models/glm4_moe.rs:650-670 | mistralrs-core/src/models/glm4_moe_lite.rs:760-780 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:750\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdd2590c4b448dd2824df20af23924681890643577cda3fd97977f438f802997"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:65-85 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:339-359 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:194-214 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/embedding_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 180 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. 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":"mistralrs-core/src/pipeline/loaders/embedding_loaders.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa5a7c1ca8ee4e711a45e07225e6c4c840910fafa397a1f5456885210e48564"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): mistralrs-core/src/vision_models/grid_processor.rs:1195-1215 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:405-425 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:970-990 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:1195\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa821aaa6ff444164afd5911f9ac961f99f11de0f7b372fc1816c0d5b399fb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): mistralrs-core/src/vision_models/qwen3_5/mod.rs:383-403 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:368-388 | mistralrs-core/src/vision_models/qwen4_exp/mod.rs:363-383 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs\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 24 separate duplicated blocks between them, totalling at least 425 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 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs:383\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":"mistralrs-core/src/vision_models/qwen3_5/mod.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"273efc9bfe00dce6f8f85227de981f5595277a878b6f7cd71b14cf34e96eeb71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 3): mistralrs-pyo3/src/util.rs:221-248 | mistralrs-pyo3/src/util.rs:276-302 | mistralrs-pyo3/src/util.rs:336-362 \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 \u0060mistralrs-pyo3/src/util.rs:221\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":"mistralrs-pyo3/src/util.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5733ff5755d994e0f521fa7a346f6039374ca488d4a7f48ceef47c2d4505435"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): mistralrs-quant/src/gguf/fast_mmvq.rs:474-494 | mistralrs-quant/src/gguf/fast_mmvq.rs:516-536 | mistralrs-quant/src/gguf/fast_mmvq.rs:558-578 \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 \u0060mistralrs-quant/src/gguf/fast_mmvq.rs:474\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":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c67f32ee44fcbe8107ba19ce6e51c7d5bcfcfabbc08ac2b19c39b723152043"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mistralrs-cli/src/commands/config.rs:102-122 | mistralrs-cli/src/commands/config.rs:262-282 \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 \u0060mistralrs-cli/src/commands/config.rs:102\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 \u0060crate::config::ServeConfig\u0060 in one and \u0060crate::config::RunConfig\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":"mistralrs-cli/src/commands/config.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"84acf8103dff623023fe6a23fa048266d59ffd9ac4a9225d38a989af4d846472"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mistralrs-cli/src/commands/run/interactive.rs:316-336 | mistralrs-cli/src/commands/run/interactive.rs:500-520 \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 \u0060mistralrs-cli/src/commands/run/interactive.rs:316\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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a73ee8fbaae072f7647d10cb63760efe8e2ca6037ad85b9a88b5aa0e9e1e5c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mistralrs-core/src/diffusion_models/flux/model.rs:314-334 | mistralrs-core/src/diffusion_models/flux/model.rs:546-566 \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 \u0060mistralrs-core/src/diffusion_models/flux/model.rs:314\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":"mistralrs-core/src/diffusion_models/flux/model.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c41caf1de7e663562cb1dbd33b0bfbc0f14623f106684758cb228d37fd9f59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mistralrs-core/src/embedding_models/embedding_gemma.rs:526-546 | mistralrs-core/src/vision_models/gemma3/text.rs:845-865 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma3/text.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 286 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 \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs:526\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, \u0060mistralrs-core/src/vision_models/gemma3/text.rs:843\u0060 calls \u0060pp\u0060 and \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs:523\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":"mistralrs-core/src/embedding_models/embedding_gemma.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7311770583c19b7974ee734ac8ede9fcc9c3518ff9578074b23e652c9b404e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mistralrs-core/src/layers.rs:1124-1144 | mistralrs-core/src/layers.rs:1483-1503 \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 \u0060mistralrs-core/src/layers.rs:1124\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 \u0060cfg\u0060 to \u0060\u0026llama4::TextConfig\u0060 in one and \u0060\u0026smollm3::Config\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":"mistralrs-core/src/layers.rs"},"region":{"startLine":1124}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad09f59fb813a6fa3c1d028b15326388ae0a1a5f536844aea9cfd5028beaf4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mistralrs-core/src/models/deepseek3.rs:1054-1074 | mistralrs-core/src/models/deepseek3.rs:1095-1115 \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 \u0060mistralrs-core/src/models/deepseek3.rs:1054\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":"mistralrs-core/src/models/deepseek3.rs"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbb45ae55dbcfcc682186994ad7374a2448dc4a3c9a3ef10bed63e0da7fb0a8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): mistralrs-core/src/models/glm4_moe.rs:429-448 | mistralrs-core/src/models/glm4_moe_lite.rs:525-545 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/glm4_moe.rs\u0060 and \u0060mistralrs-core/src/models/glm4_moe_lite.rs\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 596 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. 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 \u0060cfg\u0060 to \u0060\u0026Glm4MoeConfig\u0060 in one and \u0060\u0026Glm4MoeLiteConfig\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":"mistralrs-core/src/models/glm4_moe.rs"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"0018fb4014b29e2cf12dc048b12f0bf50ee30bb2c1b1c4c01f9f13c9ab7ee2cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): mistralrs-core/src/paged_attention/block_hash.rs:243-263 | mistralrs-core/src/paged_attention/block_hash.rs:288-307 \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 \u0060mistralrs-core/src/paged_attention/block_hash.rs:243\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":"mistralrs-core/src/paged_attention/block_hash.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"5523fc19d7fbdb944c5258da2cd8a060c2a25e750538c3158b198ff55325dc9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6648-6668 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7049-7069 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6648\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":6648}}}],"partialFingerprints":{"codehealthFindingId/v1":"d638e62e7a07c4a2e0734377eb8298e12a7aa63cd0c1a85b9bb62d5437e172da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7526-7546 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8001-8021 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7526\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":7526}}}],"partialFingerprints":{"codehealthFindingId/v1":"064e805b2c32c2bc525e15e7d1ea7e86f6aeefb3e2dccf4c4e0c252d4f50e7cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:757-778 | mistralrs-core/src/pipeline/normal.rs:767-787 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:757\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b66162270a99aebcddea0dbf4b3f8328ef21ac34b522e04dc4330f2d66f427"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201340 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2306-2345 | mistralrs-core/src/pipeline/normal.rs:2041-2079 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:2306\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2306}}}],"partialFingerprints":{"codehealthFindingId/v1":"592e3cfc62080190710b8fac53ebeb7c5e96e2d1de9c5943791be593d85accd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mistralrs-core/src/speculative/dflash.rs:1894-1914 | mistralrs-core/src/speculative/dflash.rs:1987-2007 \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":"mistralrs-core/src/speculative/dflash.rs"},"region":{"startLine":1894}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3d7c8f9a01eeb19ed76dfdf40db7980d96d16ea4bcedb3514d8bba1fcb87c28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:1238-1258 | mistralrs-core/src/vision_models/phi4/inputs_processor.rs:864-882 \u2014 \u0060mistralrs-core/src/vision_models/gemma4/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi4/inputs_processor.rs\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 46 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 \u0060mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:1238\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":"mistralrs-core/src/vision_models/gemma4/inputs_processor.rs"},"region":{"startLine":1238}}}],"partialFingerprints":{"codehealthFindingId/v1":"75daece159442aa767577882cd5d930b97b2b32aeede956a79be873d40419935"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:396-415 | mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:530-550 \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 \u0060mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:396\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":"mistralrs-core/src/vision_models/idefics3/inputs_processor.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"f649314fe2fa26276f0d79289b129bd77921388f193681ff3bdbb47658cfffc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): mistralrs-core/src/vision_models/phi4/audio_embedding.rs:306-324 | mistralrs-core/src/vision_models/phi4/image_embedding.rs:795-815 \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":"mistralrs-core/src/vision_models/phi4/audio_embedding.rs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d17572d70dc9ed9bba40168de79a2e28fa60e290a120ab6ab74566c73f5eb47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:313-333 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:622-642 \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":"mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"01d3f5dbd50bab9862ec94741f938f3a70781e9e3a0c5e6ff53dc878429cb429"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:337-376 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:493-532 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/mod.rs\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 396 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 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:337\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":"mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b91cda776ced04dc955fb965831c9cec92c6a3aa9ea2d5d35853bc2b65b122e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:879-899 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1230-1250 \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":"mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"687234f4e8822e7ce89a26f21d8f330aebdcd641ec3b2dccd551d57958ff3777"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mistralrs-core/src/xlora_models/phi2.rs:315-335 | mistralrs-core/src/xlora_models/starcoder2.rs:311-331 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/phi2.rs\u0060 and \u0060mistralrs-core/src/xlora_models/starcoder2.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 309 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 \u0060mistralrs-core/src/xlora_models/phi2.rs:315\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":"mistralrs-core/src/xlora_models/phi2.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef9045280ab9cc7623e6c9ab0b30b8831d399955f5eb1aa0a9a0e67ccf08c2ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:588-607 | mistralrs-quant/src/blockwise_fp8/ops.rs:735-755 \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 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:588\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b9825e0251859b72c280a14d65b0301dd8f70d1f0b08ad35606907cae16bd13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:1104-1124 | mistralrs-quant/src/blockwise_fp8/ops.rs:1139-1159 \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 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:1104\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1104}}}],"partialFingerprints":{"codehealthFindingId/v1":"57719cb809965dca083b27512ca740ae13dea4089d667f60f1ece25f559c3166"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201335 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:59-93 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:74-107 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fused_moe.rs\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe_fp8.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 298 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 \u0060mistralrs-quant/src/cutile/fused_moe.rs:59\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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a99154a23b0fbe330f3f97e63f663137da928258cc639140fb08fca4eba45a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mistralrs-quant/src/metal_kernels/mod.rs:3951-3971 | mistralrs-quant/src/metal_kernels/mod.rs:4041-4061 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:3951\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":3951}}}],"partialFingerprints":{"codehealthFindingId/v1":"69bd3845b0e55a5252cbf33bf63667939005696c262884a128210ad80a84351d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mistralrs/src/model_builder_trait.rs:628-648 | mistralrs/src/model_builder_trait.rs:1101-1121 \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 \u0060mistralrs/src/model_builder_trait.rs:628\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, \u0060mistralrs/src/model_builder_trait.rs:649\u0060 calls \u0060is_some\u0060 and \u0060mistralrs/src/model_builder_trait.rs:1122\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":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d17b492649a93ece981e503aef7b0705d98dcda0b50c7d27905e939e83a054c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 6): mistralrs-core/src/models/mistral.rs:162-181 | mistralrs-core/src/models/mixtral.rs:108-127 | mistralrs-core/src/models/qwen2.rs:196-215 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:182-201 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:153-172 | mistralrs-core/src/vision_models/qwen2vl/text.rs:154-173 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/mistral.rs\u0060 and \u0060mistralrs-core/src/models/mixtral.rs\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 619 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 \u0060mistralrs-core/src/models/mistral.rs:162\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, \u0060mistralrs-core/src/models/mistral.rs:184\u0060 calls \u0060attention_temperature\u0060 and \u0060mistralrs-core/src/models/mixtral.rs:130\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":"mistralrs-core/src/models/mistral.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"d325fc7edf6001dc7939c1b7f7e98e9f15d1da735272a5ee40098f6811708d8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 4): mistralrs-cli/src/ui/handlers/api.rs:186-205 | mistralrs-cli/src/ui/handlers/api.rs:238-257 | mistralrs-cli/src/ui/handlers/api.rs:290-309 | mistralrs-cli/src/ui/handlers/api.rs:342-361 \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 \u0060mistralrs-cli/src/ui/handlers/api.rs:186\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":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"7904c47698ad7e8433e7f1037499b2706f7ff69228467ceb47ca1fd6976dc925"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 4): mistralrs-core/src/models/deepseek2.rs:719-738 | mistralrs-core/src/models/deepseek3.rs:782-801 | mistralrs-core/src/models/glm4_moe.rs:619-638 | mistralrs-core/src/models/glm4_moe_lite.rs:728-747 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"67c39cd6d937c54c6fb7eb8a14e947178d583b216e68f2a75fa559c24ca02cf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 4): mistralrs-core/src/models/gemma.rs:391-410 | mistralrs-core/src/models/gemma2.rs:464-483 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:436-455 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:556-575 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 707 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 \u0060mistralrs-core/src/models/gemma.rs:391\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, \u0060mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:576\u0060 calls \u0060clone\u0060 and \u0060mistralrs-core/src/models/gemma.rs:411\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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"685e0d343c3bee74e3e6a92c6bbef94d73562fc4ac30a378979fbc69b441ffad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 4): mistralrs-core/src/pipeline/multimodal.rs:1161-1179 | mistralrs-core/src/pipeline/multimodal.rs:1269-1288 | mistralrs-core/src/pipeline/normal.rs:1213-1231 | mistralrs-core/src/pipeline/normal.rs:1345-1364 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:1161\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1161}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82e7e65cd60146a15d296a3118e44ddf90dd838b07dce6120d830c4858755d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 4): mistralrs-core/src/xlora_models/mistral.rs:270-287 | mistralrs-core/src/xlora_models/mixtral.rs:183-200 | mistralrs-core/src/xlora_models/phi3.rs:158-175 | mistralrs-core/src/xlora_models/starcoder2.rs:257-276 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/mistral.rs\u0060 and \u0060mistralrs-core/src/xlora_models/mixtral.rs\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 787 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 \u0060mistralrs-core/src/xlora_models/mistral.rs:270\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":"mistralrs-core/src/xlora_models/mistral.rs"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d25365e8bd1331ce2eb5bc6101d69cc35d79bff798253c0df4aeab7e361a3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): mistralrs-core/src/models/phi3.rs:115-134 | mistralrs-core/src/vision_models/phi3/mod.rs:206-225 | mistralrs-core/src/vision_models/phi4/mod.rs:76-95 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/phi3.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi3/mod.rs\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 638 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 \u0060mistralrs-core/src/models/phi3.rs:115\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":"mistralrs-core/src/models/phi3.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a90fac2b69af61395bbed942c1cf883903c8a09e3e66bf14f8a6b13e32821e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): mistralrs-core/src/pipeline/embedding.rs:651-670 | mistralrs-core/src/pipeline/multimodal.rs:1426-1445 | mistralrs-core/src/pipeline/normal.rs:1469-1488 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/embedding.rs\u0060 and \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 178 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 \u0060mistralrs-core/src/pipeline/embedding.rs:651\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":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1503b5241520bb0ec1e224998f0a350bdf3bcf5c81cc933059eaa21a5968c6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): mistralrs-core/src/vision_models/grid_processor.rs:204-223 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:92-111 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:193-212 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc565e7f5477fbcf9b16c80697b605ee4847106d229b44355cf01d2e20c682f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201320 lines \u00D7 3): mistralrs-quant/src/blockwise_fp8/mod.rs:1088-1107 | mistralrs-quant/src/pertensor_fp8/mod.rs:651-665 | mistralrs-quant/src/unquantized/mod.rs:431-450 \u2014 \u0060mistralrs-quant/src/blockwise_fp8/mod.rs\u0060 and \u0060mistralrs-quant/src/pertensor_fp8/mod.rs\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 186 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 \u0060mistralrs-quant/src/blockwise_fp8/mod.rs:1088\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, \u0060mistralrs-quant/src/pertensor_fp8/mod.rs:650\u0060 calls \u0060dequantize_w\u0060 and \u0060mistralrs-quant/src/unquantized/mod.rs:430\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":"mistralrs-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":1088}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c1fc0a679c3e1b84a0cd1408675cf10ceab03144537e94e72f9104a3d655179"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): mistralrs-quant/src/utils/ops.rs:268-287 | mistralrs-quant/src/utils/ops.rs:372-391 | mistralrs-quant/src/utils/ops.rs:585-604 \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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd0dfc814beb0038cf400932764918e338de7c54edb23c0a46fc71b9b2b5e64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): mistralrs/src/model_builder_trait.rs:1287-1306 | mistralrs/src/model_builder_trait.rs:1354-1373 | mistralrs/src/model_builder_trait.rs:1452-1471 \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 \u0060mistralrs/src/model_builder_trait.rs:1287\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 \u0060builder\u0060 to \u0060crate::DiffusionModelBuilder\u0060 in one and \u0060crate::SpeechModelBuilder\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":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":1287}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2574f668d3b0ffa21e89bb72c0bb02bd7379a2b19040545c79a9e26e4701f72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:4255-4273 | mistralrs-core/src/cuda/gdn.rs:4715-4734 \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 \u0060mistralrs-core/src/cuda/gdn.rs:4715\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":4255}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e77f1e43e076b65f70bbe0385fb9e1fce3ecd6713ea937f044ae1b3648305f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:5408-5427 | mistralrs-core/src/cuda/gdn.rs:5584-5603 \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 \u0060mistralrs-core/src/cuda/gdn.rs:5408\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":5408}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b9419e6189b59629a71e94cab10c07b60d6a144604d1410a596260f1336c9b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): mistralrs-core/src/distributed.rs:282-301 | mistralrs-core/src/distributed.rs:322-341 \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 \u0060mistralrs-core/src/distributed.rs:282\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":"mistralrs-core/src/distributed.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"d38d7b591b3d3f72ed7ee9fa34989827ea6c56ecfb664c343bba2b0be5e100e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): mistralrs-core/src/embedding_models/embedding_gemma.rs:208-227 | mistralrs-core/src/embedding_models/qwen3_embedding.rs:181-200 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs\u0060 and \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 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":"mistralrs-core/src/embedding_models/embedding_gemma.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"326567c281b1f62a53e634d45152e71bd0e4042a84fc4d95995a78351cc3e754"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): mistralrs-core/src/layers.rs:3975-3994 | mistralrs-core/src/layers.rs:4003-4020 \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 \u0060mistralrs-core/src/layers.rs:3975\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":"mistralrs-core/src/layers.rs"},"region":{"startLine":3975}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb3b0b458c615c26ac60258380b2f36973556a9eb2e059f4a517de0831366c4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): mistralrs-core/src/models/phi3.rs:499-517 | mistralrs-core/src/vision_models/phi3/mod.rs:1280-1299 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/phi3.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi3/mod.rs\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 638 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 \u0060mistralrs-core/src/models/phi3.rs:499\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":"mistralrs-core/src/models/phi3.rs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef549227139f37ef9ae6ea0800cea022979cd2eeaaa2dcd693ffc1cc2cdd18e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): mistralrs-core/src/ops.rs:5707-5726 | mistralrs-core/src/ops.rs:6130-6149 \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":"mistralrs-core/src/ops.rs"},"region":{"startLine":5707}}}],"partialFingerprints":{"codehealthFindingId/v1":"5765b189b5be6be929862e96edfe0d7bba505bbc24affb820e35cc0b8c89b825"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): mistralrs-core/src/pipeline/embedding.rs:297-316 | mistralrs-core/src/pipeline/embedding.rs:324-343 \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, \u0060mistralrs-core/src/pipeline/embedding.rs:323\u0060 calls \u0060conservative_pack_factor\u0060, \u0060pack_factor\u0060 and \u0060mistralrs-core/src/pipeline/embedding.rs:296\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":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"da3b8418c3b720221fc37698b2297f12c91c2225a7c9d73c3cd6d161087632ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2821-2840 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4245-4264 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2821\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":2821}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d1a440a4f994e78674a067223ba6691344f48b0a19a2c161329303248198a10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1549-1568 | mistralrs-core/src/pipeline/normal.rs:245-263 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:1549\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1549}}}],"partialFingerprints":{"codehealthFindingId/v1":"950e358b62fa2314f8282f6833e258a47b8d9922fe57909d737d3c3e8f8a45f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): mistralrs-core/src/tools/parsers/gemma4.rs:293-312 | mistralrs-core/src/tools/parsers/gemma4.rs:334-353 \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 \u0060mistralrs-core/src/tools/parsers/gemma4.rs:293\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":"mistralrs-core/src/tools/parsers/gemma4.rs"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1a76c3fa29024bd3f87a4f9c81f5b0a36e8159da7d5985b67b791fb5581218"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): mistralrs-core/src/utils/progress.rs:88-107 | mistralrs-core/src/utils/progress.rs:185-202 \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":"mistralrs-core/src/utils/progress.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68e822aec79a30d303ac0f40c475e3bf2a8288dab59b86bbd41be2db0734772"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201320 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/audio.rs:708-727 | mistralrs-core/src/vision_models/gemma4/audio.rs:734-749 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/audio.rs\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 20 separate duplicated blocks between them, totalling at least 352 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 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs:708\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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"800b98fd35d8b1141789f932dd609574ee0eff09b706f2c390b49a2f28b5dfcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): mistralrs-core/src/vision_models/llama4/vision.rs:226-245 | mistralrs-core/src/vision_models/mllama/vision.rs:245-264 \u2014 \u0060mistralrs-core/src/vision_models/llama4/vision.rs\u0060 and \u0060mistralrs-core/src/vision_models/mllama/vision.rs\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 6 separate duplicated blocks between them, totalling at least 67 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060\u0026VisionConfig\u0060 in one and \u0060\u0026MLlamaVisionConfig\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":"mistralrs-core/src/vision_models/llama4/vision.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"681789024252bff9664431755c84b8c7557f08613c765cec029b009749221c7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:669-688 | mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:698-717 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 222 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 \u0060mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:669\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":"mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed1babb9365949e9a6c5fb208401be35920ba4ddc9fd96d71e8f67f864dbfcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): mistralrs-core/src/vision_models/phi3/mod.rs:591-610 | mistralrs-core/src/vision_models/phi3/mod.rs:623-642 \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 \u0060mistralrs-core/src/vision_models/phi3/mod.rs:591\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":"mistralrs-core/src/vision_models/phi3/mod.rs"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccb465529cb789b6639cc592252abd47d5ff90d2952c37be74674e04e9bac874"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): mistralrs-core/src/vision_models/phi4/image_embedding.rs:214-233 | mistralrs-core/src/vision_models/phi4/image_embedding.rs:246-265 \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 \u0060mistralrs-core/src/vision_models/phi4/image_embedding.rs:214\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":"mistralrs-core/src/vision_models/phi4/image_embedding.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"4017d65b849dbaf1d8a4ee14c05f6294d508465f675889175cce279d9fcb029d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): mistralrs-pyo3/src/lib.rs:990-1009 | mistralrs-pyo3/src/lib.rs:1021-1040 \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 \u0060mistralrs-pyo3/src/lib.rs:990\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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac52684e55de70d9521edf620e60c51c4fdbcd11bca77626a2739806db03e3d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): mistralrs-quant/src/cublaslt/mod.rs:157-176 | mistralrs-quant/src/cublaslt/mod.rs:210-229 \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 \u0060mistralrs-quant/src/cublaslt/mod.rs:157\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":"mistralrs-quant/src/cublaslt/mod.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25cdaea2857b0fc0f032a0929421dbbbe23be03a04f7aeb711952b15723c151"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:653-671 | mistralrs-quant/src/cutile/fp8_w8a8.rs:744-763 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs\u0060 and \u0060mistralrs-quant/src/cutile/fp8_w8a8.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 212 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 \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs:653\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":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"10bd647a881190b37344d0d6da2b00f155db0eeb317723b391f2cbd670a18115"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmq.rs:387-406 | mistralrs-quant/src/gguf/fast_mmvq.rs:120-139 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/gguf/fast_mmq.rs\u0060 and \u0060mistralrs-quant/src/gguf/fast_mmvq.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 62 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":"mistralrs-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4465f6ad4e15412a0b1a6c745c9866a56bff75cb8640917bfff6949b0309911"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 2): mistralrs-quant/src/metal_kernels/mod.rs:4311-4340 | mistralrs-quant/src/metal_kernels/mod.rs:5064-5092 \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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":4311}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49dee1d696b9fa2e828e4fb9b981ddc1c779c01a860d9ce4a6381dc7ffe2af7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 11): mistralrs-core/src/models/gemma.rs:637-654 | mistralrs-core/src/models/gemma2.rs:754-771 | mistralrs-core/src/models/glm4.rs:756-773 | mistralrs-core/src/models/hunyuan_v1_dense.rs:724-741 | mistralrs-core/src/models/mistral.rs:765-782 | mistralrs-core/src/models/phi3.rs:700-718 | mistralrs-core/src/models/qwen2.rs:768-785 | mistralrs-core/src/models/qwen3.rs:742-759 | mistralrs-core/src/vision_models/gemma3/text.rs:979-996 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:724-741 | mistralrs-core/src/vision_models/phi3/mod.rs:1535-1553 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 707 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 \u0060mistralrs-core/src/models/gemma.rs:637\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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"de4d778c1f2a04d8bf6d28e35f62b6963820f95b751283c0e9421ea8e50d9f26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 5): mistralrs-core/src/models/granite.rs:1960-1977 | mistralrs-core/src/models/llama.rs:358-375 | mistralrs-core/src/models/qwen3_next.rs:750-768 | mistralrs-core/src/models/smollm3.rs:374-391 | mistralrs-core/src/vision_models/llama4/text.rs:807-824 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/granite.rs\u0060 and \u0060mistralrs-core/src/models/llama.rs\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 244 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 \u0060mistralrs-core/src/models/granite.rs:1960\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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":1960}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf2004509937b2fbf9bb508b5ef1555baa0a8d268dbac00877c84b650702e14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 5): mistralrs-quant/src/hqq/hqq_op.rs:88-106 | mistralrs-quant/src/hqq/hqq_op.rs:199-217 | mistralrs-quant/src/hqq/hqq_op.rs:312-330 | mistralrs-quant/src/hqq/hqq_op.rs:429-447 | mistralrs-quant/src/hqq/hqq_op.rs:548-566 \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 \u0060mistralrs-quant/src/hqq/hqq_op.rs:88\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":"mistralrs-quant/src/hqq/hqq_op.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"de2d17516c841bd30a181f3ab5bd47c5d3e81f4da8b811595ac7f61e56e13252"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): mistralrs-core/src/embedding_models/embedding_gemma.rs:295-313 | mistralrs-core/src/models/gemma2.rs:340-358 | mistralrs-core/src/vision_models/gemma3/text.rs:348-366 | mistralrs-core/src/xlora_models/gemma2.rs:357-375 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 175 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 \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs: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":"mistralrs-core/src/embedding_models/embedding_gemma.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"c07618fdd373b4b39c7835a4f4404a3d9820cbd800fa585b46ddfb92638e036c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): mistralrs-core/src/vision_models/qwen3_5/mod.rs:400-418 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:385-403 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:415-433 | mistralrs-core/src/vision_models/qwen4_exp/mod.rs:380-398 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs\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 24 separate duplicated blocks between them, totalling at least 425 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 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs:400\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":"mistralrs-core/src/vision_models/qwen3_5/mod.rs"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"8803616f9bc753b627e964a11312e37860c3c8682cafde514010aabd4230beaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): mistralrs-quant/src/metal_kernels/mod.rs:3123-3141 | mistralrs-quant/src/metal_kernels/mod.rs:3156-3174 | mistralrs-quant/src/metal_kernels/mod.rs:3189-3207 | mistralrs-quant/src/metal_kernels/mod.rs:3222-3240 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:3123\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":3123}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ed6732db2f87b6477b741ac9449a1a8b5ea5f8d909dec3a1dd8e69f3f854296"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 3): mistralrs-core/src/embedding_models/embedding_gemma.rs:414-431 | mistralrs-core/src/vision_models/gemma3/text.rs:473-490 | mistralrs-core/src/vision_models/gemma3n/text.rs:1401-1419 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma3/text.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 286 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 \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs: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":"mistralrs-core/src/embedding_models/embedding_gemma.rs"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"29450110244266b49c464c27cac86f7a91aafb8e67dc8881f714bc6fc218abb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): mistralrs-core/src/layers.rs:2365-2383 | mistralrs-core/src/layers.rs:2463-2481 | mistralrs-core/src/layers.rs:2510-2528 \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 \u0060mistralrs-core/src/layers.rs:2365\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":"mistralrs-core/src/layers.rs"},"region":{"startLine":2365}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9a28272cf022743cd57bd5783312c73885fae0bdeaa147ccfe3b0cf9c342cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): mistralrs-core/src/model_loader.rs:745-763 | mistralrs-core/src/model_loader.rs:779-797 | mistralrs-core/src/toml_selector.rs:1055-1073 \u2014 before extracting anything, compare \u0060mistralrs-core/src/model_loader.rs\u0060 and \u0060mistralrs-core/src/toml_selector.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 199 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 \u0060mistralrs-core/src/model_loader.rs:745\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":"mistralrs-core/src/model_loader.rs"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"dab368e50471aa0ca6e36d624b2b7d3472027d4f68acabf91723308518eb0b4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): mistralrs-core/src/vision_models/gemma4/mod.rs:445-463 | mistralrs-core/src/vision_models/gemma4/mod.rs:598-616 | mistralrs-core/src/vision_models/gemma4/mod.rs:758-776 \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 \u0060mistralrs-core/src/vision_models/gemma4/mod.rs:445\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":"mistralrs-core/src/vision_models/gemma4/mod.rs"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"00ae0aaef34a91313d51e72e546c36aff7c178a52021ef7d320b3cfc0d67aedb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): mistralrs-core/src/vision_models/grid_processor.rs:1406-1424 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:604-622 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1212-1230 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:1406\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1406}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a16a293b6731b8dd37c4bba6c9f3914c6b3b459f04ab8934ce01eadb0c25ba9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): mistralrs-core/src/vision_models/idefics2/mod.rs:572-590 | mistralrs-core/src/vision_models/idefics3/vision.rs:369-387 | mistralrs-core/src/vision_models/siglip.rs:380-398 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics2/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/idefics3/vision.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 221 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060VisionConfig\u0060 in one and \u0060Idefics3VisionConfig\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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"8905de869b8b4ae46776c94e4e8336ca2f0df697a17a9d2aabe0e581ae2ee65b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): mistralrs-core/src/vision_models/qwen3_5/mod.rs:137-155 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:120-138 | mistralrs-core/src/vision_models/qwen4_exp/mod.rs:244-262 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs\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 24 separate duplicated blocks between them, totalling at least 425 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 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs:137\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":"mistralrs-core/src/vision_models/qwen3_5/mod.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"734ee1bc8c1f4d99a1d89be8c615be437be5caf53de336ed6a97880349b04502"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 3): mistralrs-core/src/xlora_models/mistral.rs:445-462 | mistralrs-core/src/xlora_models/mixtral.rs:575-593 | mistralrs-core/src/xlora_models/starcoder2.rs:434-451 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/mistral.rs\u0060 and \u0060mistralrs-core/src/xlora_models/mixtral.rs\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 787 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 \u0060mistralrs-core/src/xlora_models/mistral.rs:445\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":"mistralrs-core/src/xlora_models/mistral.rs"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"38f9af14a625baeea432af24c4c0ef51bcdfee5d33c9b67229c321d8b0c28e8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-cli/src/commands/run/interactive.rs:892-910 | mistralrs-cli/src/commands/run/interactive.rs:1574-1592 \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 \u0060mistralrs-cli/src/commands/run/interactive.rs:892\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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cff31421acf049fc3b7139429217edce13ee7ef5a384110ef84d48501d68238"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-cli/src/commands/run/interactive.rs:937-955 | mistralrs-cli/src/commands/run/interactive.rs:1619-1637 \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 \u0060mistralrs-cli/src/commands/run/interactive.rs:937\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, \u0060mistralrs-cli/src/commands/run/interactive.rs:1616\u0060 calls \u0060clear\u0060 and \u0060mistralrs-cli/src/commands/run/interactive.rs:936\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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"50cffdb91d0b1747820695d14b49abb643c9e45e3ea5a8bc9dfa12faff2ecc83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-cli/src/commands/run/interactive.rs:1909-1927 | mistralrs-cli/src/commands/run/interactive.rs:2035-2053 \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 \u0060mistralrs-cli/src/commands/run/interactive.rs:1909\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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1909}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2ff71504153cde6df412ec9a64dca5fc9277a173c1c45fc7d077757e0ed7e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:1028-1046 | mistralrs-core/src/cuda/gdn.rs:1274-1292 \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 \u0060mistralrs-core/src/cuda/gdn.rs:1028\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":1028}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4084b14e8768d17a80f787add4d6515014850a9ee3abafbed5196bda3b299f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:3828-3846 | mistralrs-core/src/cuda/gdn.rs:4381-4399 \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 \u0060mistralrs-core/src/cuda/gdn.rs:3828\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 \u0060context\u0060 to \u0060GdnSpeculativeRecurrenceCheckpoints\u003C\u0027_\u003E\u0060 in one and \u0060GdnDeferredRecurrence\u003C\u0027_\u003E\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":3828}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb42f886910c48885483077f9050c2599af0f5a081dbabef6d6693b29b178c95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/model_loader.rs:493-511 | mistralrs-core/src/toml_selector.rs:1189-1207 \u2014 before extracting anything, compare \u0060mistralrs-core/src/model_loader.rs\u0060 and \u0060mistralrs-core/src/toml_selector.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 199 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 \u0060mistralrs-core/src/model_loader.rs:493\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":"mistralrs-core/src/model_loader.rs"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ae9e376b5a71fc948a91872872ea92543ef5b74f868b888e4ad0879b318df7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/models/gemma.rs:275-293 | mistralrs-core/src/models/gemma2.rs:326-344 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 707 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 \u0060mistralrs-core/src/models/gemma.rs:275\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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"5215fba03b431aa3c5953547dab93b10225830478af924d9cebce1ceba5c1e4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): mistralrs-core/src/models/mixtral.rs:480-497 | mistralrs-core/src/vision_models/phi3/mod.rs:1274-1292 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/mixtral.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi3/mod.rs\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 327 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 \u0060mistralrs-core/src/models/mixtral.rs:480\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":"mistralrs-core/src/models/mixtral.rs"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45cb076c1b7d04d7410cf7bb7b6424069610ac9686889e71a2aff53a8a74b7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/models/phi3.rs:298-316 | mistralrs-core/src/vision_models/phi3/mod.rs:389-407 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/phi3.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi3/mod.rs\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 638 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":"mistralrs-core/src/models/phi3.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5cab736344a46ad57e624b685951d74b46bf7c4e9333bd2de125acb8b6815d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/models/qwen3_next.rs:416-434 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:322-340 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/qwen3_next.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 461 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 \u0060mistralrs-core/src/models/qwen3_next.rs:416\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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"b404557794a0f9737476565b94b786d1ff1cdd5a389798c4535b185a05213c2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/ops.rs:1680-1698 | mistralrs-core/src/ops.rs:1951-1969 \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 \u0060mistralrs-core/src/ops.rs:1680\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":1680}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3afeed0e9d2f52e755e9b50192ee9a3458da574f4cd1fbd4577edfc770316f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/ops.rs:4705-4723 | mistralrs-core/src/ops.rs:5548-5566 \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 \u0060mistralrs-core/src/ops.rs:4705\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":4705}}}],"partialFingerprints":{"codehealthFindingId/v1":"967249c7834ec9893cdc51bea3e0c8242c527faf0dff856eb47787830e562893"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/ops.rs:5808-5826 | mistralrs-core/src/ops.rs:6244-6262 \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 \u0060mistralrs-core/src/ops.rs:5808\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":5808}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e58dc62ccccbc8b25da9841926886d945849c61e445039f785d7c364d3244f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/pipeline/inputs_processor.rs:2675-2693 | mistralrs-core/src/pipeline/inputs_processor.rs:2824-2842 \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 \u0060mistralrs-core/src/pipeline/inputs_processor.rs:2675\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":"mistralrs-core/src/pipeline/inputs_processor.rs"},"region":{"startLine":2675}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb4b636cde2cfd0fe657ac9df71b60f0a6cd0e630994ee46c4b76c2e89ed9442"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7607-7624 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8123-8141 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7607\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":7607}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c61bd8109950983a58f57d136b09ce244e765d96e482e32966c8c526f4875f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:721-739 | mistralrs-core/src/pipeline/normal.rs:1098-1116 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"b793da2baed7f0d7b4b83fbbe222ca3b07a9ba43032a5b9caf6ad20c8631124f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1898-1916 | mistralrs-core/src/pipeline/normal.rs:1748-1766 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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. 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1898}}}],"partialFingerprints":{"codehealthFindingId/v1":"055ea3c873f9f5d2f560fa52fe3f3627e00f30ce87e2bc5414a216f5a7f9ce05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1918-1936 | mistralrs-core/src/pipeline/normal.rs:1768-1786 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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. 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1918}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa938f03f73b4d3beb9e09d7a27fc33085e34ff6c3a855622b25bfa9afb277a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2621-2639 | mistralrs-core/src/pipeline/normal.rs:2247-2263 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:2621\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2621}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b24958e95164f5422e037eb7d7a21909a25402f907036070e2a9900912f709"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/prefix_cacher.rs:443-461 | mistralrs-core/src/prefix_cacher.rs:471-489 \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 \u0060mistralrs-core/src/prefix_cacher.rs:443\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, \u0060mistralrs-core/src/prefix_cacher.rs:490\u0060 calls \u0060clear\u0060 and \u0060mistralrs-core/src/prefix_cacher.rs:462\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":"mistralrs-core/src/prefix_cacher.rs"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b64106e9387af88d38f56203934380600c7cab3993b9ce6b5c5aa9d8d9410e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/speculative/driver.rs:219-237 | mistralrs-core/src/speculative/driver.rs:242-261 \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 \u0060mistralrs-core/src/speculative/driver.rs:219\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":"mistralrs-core/src/speculative/driver.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfde3876a0f249a66324e8cf94081bda53e3422cacc7f1721818981bbe96cf08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:858-876 | mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs:776-794 \u2014 \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs\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 4 separate duplicated blocks between them, totalling at least 75 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 \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:858\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":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f90266f5ff1a2b2a64d7cfbc5d1b8d27b1af97d6640dc8b9336bfb26c1c0af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/audio.rs:982-1000 | mistralrs-core/src/vision_models/gemma4/audio.rs:471-486 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/audio.rs\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 20 separate duplicated blocks between them, totalling at least 352 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 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs:982\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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a69221037339eb3137040e15558e33ae65bd1f296308f91fd93bad700e75d58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:395-413 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:362-380 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 288 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 \u0060mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:395\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":"mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"153a86d104659face0a008b2b476dbb9290f549d3d6aed8a11711cb3f6994222"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:531-557 | mistralrs-core/src/vision_models/qwen2vl/text.rs:533-559 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/text.rs\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 42 separate duplicated blocks between them, totalling at least 716 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 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:531\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":"mistralrs-core/src/vision_models/qwen2_5_vl/text.rs"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"e824219bac9c030e3d90a291ca300223ef79233b78a4b4a600ae8bc9484199d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/mla.rs:773-791 | mistralrs-paged-attn/src/cuda/backend/mla.rs:811-829 \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 \u0060mistralrs-paged-attn/src/cuda/backend/mla.rs:773\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":"mistralrs-paged-attn/src/cuda/backend/mla.rs"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"a081781c5bd269ab7049b89c190c15ba1e3a55286e1b190becc2edea51516d6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): mistralrs-quant/src/afq/ops.rs:857-874 | mistralrs-quant/src/afq/ops.rs:983-1001 \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 \u0060mistralrs-quant/src/afq/ops.rs:857\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":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1cc0debdd84e8d650c0f8ab87ceb8028b46ced28e7d608bd0a16acaebf3d05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-quant/src/cublaslt/matmul.rs:469-487 | mistralrs-quant/src/cublaslt/matmul.rs:568-586 \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 after the matched lines, \u0060mistralrs-quant/src/cublaslt/matmul.rs:489\u0060 calls \u0060device_ptr_mut\u0060, \u0060stream\u0060 and \u0060mistralrs-quant/src/cublaslt/matmul.rs:588\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":"mistralrs-quant/src/cublaslt/matmul.rs"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc7257760ef6e8f8ba7bc81dbba8ca4d926e82900fc4ee50bbe321243d080ac8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:456-474 | mistralrs-quant/src/cutile/fp8_w8a8.rs:544-562 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs\u0060 and \u0060mistralrs-quant/src/cutile/fp8_w8a8.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 212 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 \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs:456\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":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d13b0d8d6939b12ab11089c269d7912b2e8b2f0922cf11af9ed7631fbf8603"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:440-458 | mistralrs-quant/src/distributed/layers.rs:814-832 \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 \u0060mistralrs-quant/src/distributed/layers.rs:440\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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"c385d8b00584809bb3f6cc75cf6c4b4d7c83cf29825dfe8c7ab988e85bfd0da6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): mistralrs-quant/src/lora/dynamic/loader/expert.rs:322-339 | mistralrs-quant/src/lora/dynamic/loader/expert.rs:349-367 \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 \u0060mistralrs-quant/src/lora/dynamic/loader/expert.rs:322\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":"mistralrs-quant/src/lora/dynamic/loader/expert.rs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"88fd031bc527a4af4b90d6ac7076bf7d5bec7884b2714cdae52e76c6ea6bcb4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-quant/src/mxfp4/ops.rs:494-512 | mistralrs-quant/src/mxfp4/ops.rs:562-580 \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 \u0060mistralrs-quant/src/mxfp4/ops.rs:494\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":"mistralrs-quant/src/mxfp4/ops.rs"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae8c1bec53430da9e52632c3410ee155051fc6e0f5958b7e566a444285868c65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): mistralrs-quant/src/rotary/mod.rs:108-125 | mistralrs-quant/src/rotary/mod.rs:382-400 \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 \u0060mistralrs-quant/src/rotary/mod.rs:108\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":"mistralrs-quant/src/rotary/mod.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa7e5b9423a5ec68af2b3c6bcaa8177e167027258b957ef5482cec4640d5c09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-quant/src/utils/ops.rs:1929-1947 | mistralrs-quant/src/utils/ops.rs:1965-1983 \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 \u0060mistralrs-quant/src/utils/ops.rs:1929\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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":1929}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4f60b164e634009b266059eab1ffe20c040f2c7f8fc0408b16afd0f9fd7391c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): mistralrs/src/model_builder_trait.rs:1257-1275 | mistralrs/src/model_builder_trait.rs:1324-1341 \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 \u0060mistralrs/src/model_builder_trait.rs:1257\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 \u0060builder\u0060 to \u0060crate::DiffusionModelBuilder\u0060 in one and \u0060crate::SpeechModelBuilder\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, \u0060mistralrs/src/model_builder_trait.rs:1344\u0060 calls \u0060clone\u0060 and \u0060mistralrs/src/model_builder_trait.rs:1278\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":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":1257}}}],"partialFingerprints":{"codehealthFindingId/v1":"caaefbbf8d7683dea8ba0161b1d689a009d8e55cef1b8c159ba14e5d541a7dea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 15): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:548-565 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1533-1550 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2914-2931 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3268-3285 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3610-3627 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4337-4354 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4747-4764 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5127-5144 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:827-844 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1048-1065 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1271-1288 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2198-2215 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2428-2445 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4478-4495 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5808-5825 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/embedding_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 180 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 \u0060mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:548\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":"mistralrs-core/src/pipeline/loaders/embedding_loaders.rs"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"e395e3d77ccc3b0c2aa950698be4a233631896646cd9c227886c58f8872f67e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 7): mistralrs-core/src/xlora_models/gemma.rs:235-252 | mistralrs-core/src/xlora_models/gemma2.rs:240-257 | mistralrs-core/src/xlora_models/llama.rs:58-75 | mistralrs-core/src/xlora_models/mistral.rs:225-242 | mistralrs-core/src/xlora_models/mixtral.rs:138-155 | mistralrs-core/src/xlora_models/phi2.rs:219-236 | mistralrs-core/src/xlora_models/starcoder2.rs:212-229 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 498 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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14337de9525a8eee08ad75d43378cadef4fac0873511c29385179cd4d207f7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 5): mistralrs-quant/src/metal_kernels/mod.rs:289-306 | mistralrs-quant/src/metal_kernels/mod.rs:328-345 | mistralrs-quant/src/metal_kernels/mod.rs:367-384 | mistralrs-quant/src/metal_kernels/mod.rs:406-423 | mistralrs-quant/src/metal_kernels/mod.rs:445-462 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:289\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b79fc1f33f4ffedd3080c274acfa1efca2d10d5ee0af3fe81f5595318163f94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): mistralrs-core/src/vision_models/qwen3_5/mod.rs:74-91 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:63-80 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:615-632 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:61-78 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs\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 24 separate duplicated blocks between them, totalling at least 425 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 before the matched lines, \u0060mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:61\u0060 calls \u0060validate_text_checkpoint_namespace\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs:72\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":"mistralrs-core/src/vision_models/qwen3_5/mod.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"444e6398d09a1236638ef899a6fdc37602f78c1cd583cc9cad87339af56bd9c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 4): mistralrs-core/src/xlora_models/gemma2.rs:612-629 | mistralrs-core/src/xlora_models/phi2.rs:547-563 | mistralrs-core/src/xlora_models/phi3.rs:525-541 | mistralrs-core/src/xlora_models/starcoder2.rs:558-574 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 and \u0060mistralrs-core/src/xlora_models/phi2.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 304 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 \u0060mistralrs-core/src/xlora_models/gemma2.rs:612\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":"mistralrs-core/src/xlora_models/gemma2.rs"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d87b8e5be74eaf5a39b48d6fb52143d18a52f0d4101236b66ed5d6730dca8d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 3): mistralrs-core/src/models/flint.rs:705-721 | mistralrs-core/src/models/qwen3_moe.rs:487-503 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:435-452 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/qwen3_moe.rs\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 479 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 \u0060mistralrs-core/src/models/flint.rs:705\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"94cf2d7f9185631b2f5b519646d12376f559cbd19f318a823ddc461261ad1a22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): mistralrs-core/src/models/gemma.rs:417-434 | mistralrs-core/src/models/gemma2.rs:490-507 | mistralrs-core/src/models/starcoder2.rs:481-498 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 707 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 \u0060mistralrs-core/src/models/gemma.rs:417\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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45cd5aee78654587a573c7301f0756b6c758617bb066abf44ea79e721fcd0df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): mistralrs-core/src/models/phi2.rs:677-694 | mistralrs-core/src/models/starcoder2.rs:668-685 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:685-702 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/phi2.rs\u0060 and \u0060mistralrs-core/src/models/starcoder2.rs\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 357 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 \u0060mistralrs-core/src/models/phi2.rs:677\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":"mistralrs-core/src/models/phi2.rs"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d1d68bf957ac5c55d9d7b7a7999ab0f1953882cc2dbbf1a27986bd981ad388"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201318 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7834-7848 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8356-8373 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6618-6624 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 445 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 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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":7834}}}],"partialFingerprints":{"codehealthFindingId/v1":"17bc4c2d90d7a3c64f7ebff453ba181c6155eed4bb76af09abebdd326a82a362"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:848-865 | mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs:766-783 | mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:757-774 \u2014 \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs\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 4 separate duplicated blocks between them, totalling at least 75 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 \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:848\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":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"813a45f7d798dcc09d348b7892a2817aeb79ff65b87557459d92a5cb7b7afb95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:756-773 | mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:977-994 | mistralrs-core/src/vision_models/mllama/inputs_processor.rs:1039-1056 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/idefics3/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 120 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 \u0060mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:756\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":"mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe1ea89aabc66e9304873b95f938bdb0a8562b5e6d3bcc6fb29dc071f2974846"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): mistralrs-core/src/vision_models/muse_glimmer/text.rs:350-367 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:320-337 | mistralrs-core/src/vision_models/qwen2vl/text.rs:321-338 \u2014 \u0060mistralrs-core/src/vision_models/muse_glimmer/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/text.rs\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 10 separate duplicated blocks between them, totalling at least 145 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 \u0060mistralrs-core/src/vision_models/muse_glimmer/text.rs:350\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 \u0060rotary_emb\u0060 to \u0060Option\u003CArc\u003CRotaryEmbedding\u003E\u003E\u0060 in one and \u0060Arc\u003CQwen2_5VLRotaryEmbedding\u003E\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":"mistralrs-core/src/vision_models/muse_glimmer/text.rs"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd5e1bcc357b122acec3222f70b1d96c1f9de35c5e9b4b01a2c4b99f66a8ef5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): mistralrs-core/src/xlora_models/gemma.rs:107-124 | mistralrs-core/src/xlora_models/gemma2.rs:101-118 | mistralrs-core/src/xlora_models/mistral.rs:100-117 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 498 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. 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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea774234c1bdd8f507286fcce3369af2f5968fb6de40aa54dde3bf6ef91ae957"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 3): mistralrs-core/src/xlora_models/gemma.rs:193-210 | mistralrs-core/src/xlora_models/mistral.rs:183-199 | mistralrs-core/src/xlora_models/mixtral.rs:96-112 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/mistral.rs\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 538 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 \u0060mistralrs-core/src/xlora_models/gemma.rs:193\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"1116c3267f6ecb7f22859bd073ac5f9ab0b446a93ecbbb3073aff0db610e15b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): mistralrs-core/src/xlora_models/gemma.rs:499-516 | mistralrs-core/src/xlora_models/gemma2.rs:529-546 | mistralrs-core/src/xlora_models/mistral.rs:495-512 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 498 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 \u0060mistralrs-core/src/xlora_models/gemma.rs:499\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08c0fa125aad0dfeb4fd09361f4d3219b3b797ed4f9adf61f778cecd0ce852f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): mistralrs-paged-attn/src/cuda/backend/mla.rs:773-790 | mistralrs-paged-attn/src/cuda/backend/mla.rs:811-828 | mistralrs-paged-attn/src/cuda/backend/mla.rs:849-866 \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 \u0060mistralrs-paged-attn/src/cuda/backend/mla.rs:773\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":"mistralrs-paged-attn/src/cuda/backend/mla.rs"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"52898dc9facbb248419f9d8253110f89847cd78a44522846d190de66156d4035"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 3): mistralrs-pyo3/src/util.rs:202-219 | mistralrs-pyo3/src/util.rs:256-274 | mistralrs-pyo3/src/util.rs:316-334 \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 \u0060mistralrs-pyo3/src/util.rs:202\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":"mistralrs-pyo3/src/util.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"511494e9dccec7d5f9eb0e90e908d96cac75ed774050e155a4fb1afb14e1949e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): mistralrs-quant/src/metal_kernels/mod.rs:527-544 | mistralrs-quant/src/metal_kernels/mod.rs:573-590 | mistralrs-quant/src/metal_kernels/mod.rs:619-636 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:527\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4202f6cb7a500f3a694e7641ca268fa23a552c6e9073ec126f3d48bdd0eec2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): mistralrs/src/messages.rs:615-632 | mistralrs/src/messages.rs:650-667 | mistralrs/src/messages.rs:692-709 \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":"mistralrs/src/messages.rs"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"1907bb6cde7952b10a24ecead952d8ce1f16c55e38344302ba30579f3060e595"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/adapter/runtime.rs:677-694 | mistralrs-core/src/adapter/runtime.rs:718-735 \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":"mistralrs-core/src/adapter/runtime.rs"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eed16e1623cdfa529d57184be10ee00b24b6579d7cb982607985f43408c88ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/attention/backends/cpu/neon.rs:403-420 | mistralrs-core/src/attention/backends/cpu/neon.rs:640-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 \u0060mistralrs-core/src/attention/backends/cpu/neon.rs:403\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":"mistralrs-core/src/attention/backends/cpu/neon.rs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"765c197581bdf9d888a6e0961d18de2fcf914e31f1677214775268ca64fc89c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:1988-2005 | mistralrs-core/src/cuda/gdn.rs:6212-6229 \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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":1988}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd8525577db38872978074c41b83f20d35a0578f2b405f6439ee9357c64108e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:4990-5007 | mistralrs-core/src/cuda/gdn.rs:5239-5256 \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 \u0060mistralrs-core/src/cuda/gdn.rs:4990\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":4990}}}],"partialFingerprints":{"codehealthFindingId/v1":"022726f124b8e399f453a20cceecbf40b2e152341933ecd74aeb53b4d556c6a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/embedding_models/qwen3_embedding.rs:357-374 | mistralrs-core/src/models/qwen3.rs:430-447 \u2014 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/models/qwen3.rs\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 26 separate duplicated blocks between them, totalling at least 364 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 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:357\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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"79dc33890e6984751008f5c3876a12ce4a0ec1371c3566e404f0f087d86bb65f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): mistralrs-core/src/engine/agentic_loop.rs:1507-1523 | mistralrs-core/src/engine/agentic_loop.rs:1574-1591 \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 \u0060mistralrs-core/src/engine/agentic_loop.rs:1507\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":"mistralrs-core/src/engine/agentic_loop.rs"},"region":{"startLine":1507}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd0c4bf5b5a45b2651b1acf1e87c79e0e80e643401206cdf83ea3b5d2d9f35c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/models/glm4_moe_lite.rs:1012-1029 | mistralrs-core/src/models/glm4_moe_lite.rs:1055-1072 \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 \u0060mistralrs-core/src/models/glm4_moe_lite.rs:1012\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":"mistralrs-core/src/models/glm4_moe_lite.rs"},"region":{"startLine":1012}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a485d490f5697740019d6af58faff19e4eed06d85c9f0826793926c9eb8998"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/models/hunyuan_v1_dense.rs:543-560 | mistralrs-core/src/models/hunyuan_v1_moe.rs:1037-1054 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/hunyuan_v1_dense.rs\u0060 and \u0060mistralrs-core/src/models/hunyuan_v1_moe.rs\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 766 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":"mistralrs-core/src/models/hunyuan_v1_dense.rs"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"91d8bf5681668349669328c9e13e0271f4c19974a02621740e71b9fcad3e52fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): mistralrs-core/src/models/llama.rs:403-420 | mistralrs-core/src/models/smollm3.rs:419-435 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/llama.rs\u0060 and \u0060mistralrs-core/src/models/smollm3.rs\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 727 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 \u0060mistralrs-core/src/models/llama.rs:403\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":"mistralrs-core/src/models/llama.rs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e5b1901483478c42866b9b8cf8748ad9d35dc1efed12620c00dd21f078e495"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): mistralrs-core/src/models/llama.rs:492-517 | mistralrs-core/src/models/smollm3.rs:511-536 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/llama.rs\u0060 and \u0060mistralrs-core/src/models/smollm3.rs\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 727 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. 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":"mistralrs-core/src/models/llama.rs"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b266db44b2103bde4bdcae81b59d424f770c7f85531060200873c3676ef574"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/models/mistral.rs:533-550 | mistralrs-core/src/models/mixtral.rs:488-505 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/mistral.rs\u0060 and \u0060mistralrs-core/src/models/mixtral.rs\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 619 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 \u0060mistralrs-core/src/models/mistral.rs:533\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":"mistralrs-core/src/models/mistral.rs"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aff763d51afa03054f4256a3b76d55994a45d1172c312f03f2ea07c9e8097d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/models/phi2.rs:453-470 | mistralrs-core/src/xlora_models/phi2.rs:426-443 \u2014 \u0060mistralrs-core/src/models/phi2.rs\u0060 and \u0060mistralrs-core/src/xlora_models/phi2.rs\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 7 separate duplicated blocks between them, totalling at least 85 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 before the matched lines, \u0060mistralrs-core/src/xlora_models/phi2.rs:424\u0060 calls \u0060with_capacity\u0060, \u0060pp\u0060 and \u0060mistralrs-core/src/models/phi2.rs:452\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":"mistralrs-core/src/models/phi2.rs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"3df3e3b5ee07dc10e8d43f0a98b9bba8ea54725a1c88e3ca448f1cda01000295"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): mistralrs-core/src/models/qwen3_moe.rs:768-783 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:732-749 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/qwen3_moe.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 331 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 \u0060mistralrs-core/src/models/qwen3_moe.rs:768\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":"mistralrs-core/src/models/qwen3_moe.rs"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"faca7d6826f901622e29b55cc2cbd06fc2cecda6f6e51b2fcfc890302aa8b18d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): mistralrs-core/src/models/qwen3_next.rs:673-689 | mistralrs-core/src/vision_models/qwen3_5/packed_gdn.rs:158-175 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/qwen3_next.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5/packed_gdn.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 64 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 \u0060mistralrs-core/src/models/qwen3_next.rs:673\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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"011f5f24ac486e64c5bb3da1d81f5c74c628b0f6b2c3e2cb7d21b03183b3f0e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/pipeline/gguf.rs:815-832 | mistralrs-core/src/pipeline/gguf.rs:946-963 \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 \u0060mistralrs-core/src/pipeline/gguf.rs:815\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":"mistralrs-core/src/pipeline/gguf.rs"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"656ad2761c1f56461744c28df6fabd2b1f06cc4343718a3c6682587b46b1f3cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/pipeline/inputs_processor.rs:2242-2259 | mistralrs-core/src/pipeline/inputs_processor.rs:2278-2295 \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 \u0060mistralrs-core/src/pipeline/inputs_processor.rs:2242\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":"mistralrs-core/src/pipeline/inputs_processor.rs"},"region":{"startLine":2242}}}],"partialFingerprints":{"codehealthFindingId/v1":"683297878034df93fa0467c44d148760941e7c19b05a47215135e55e0152ead8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/lfm3.rs:171-188 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:7080-7097 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/lfm3.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 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 \u0060mistralrs-core/src/pipeline/loaders/lfm3.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/lfm3.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2be80dceb4c94dbc478db7fd11bf574063017fa91e5806cd1113506611d604b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1840-1857 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2140-2157 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1840\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1840}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b988831596e2f9f75885f9167873b029045243f350b49ea725b647e38995b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2096-2113 | mistralrs-core/src/pipeline/normal.rs:2393-2410 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:2096\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, \u0060mistralrs-core/src/pipeline/normal.rs:2392\u0060 calls \u0060drop\u0060 and \u0060mistralrs-core/src/pipeline/multimodal.rs:2095\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2096}}}],"partialFingerprints":{"codehealthFindingId/v1":"5508fd11108721ad04e081b2522b48e96fd68167e2f760d00da811798ffc12e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2282-2299 | mistralrs-core/src/pipeline/normal.rs:2023-2040 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:2282\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2282}}}],"partialFingerprints":{"codehealthFindingId/v1":"769badee235f1b7e9c11ff7cba07cea7f0519e90c0b92b87eb32121921fc2a6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:304-319 | mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:442-459 \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 \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:304\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":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"e01e9b715887d23c4cbc81cb52ffd9d9dea4779be41d8db9cd105207cc28c74e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/audio.rs:517-534 | mistralrs-core/src/vision_models/gemma4/audio.rs:583-600 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/audio.rs\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 20 separate duplicated blocks between them, totalling at least 352 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 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs:517\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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bd11cd3859e1885e1b7ad837a37e6d5bada204f8cb0a8a5eaa27b364fe47889"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:1235-1252 | mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:297-313 \u2014 \u0060mistralrs-core/src/vision_models/gemma4/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/mistral3/inputs_processor.rs\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 132 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 \u0060mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:1235\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":"mistralrs-core/src/vision_models/gemma4/inputs_processor.rs"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"dece5e5632d143f3207d7757589aaf584ad8061ece583f2f6a7b9dfff5cb4816"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:1778-1795 | mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:774-791 \u2014 \u0060mistralrs-core/src/vision_models/gemma4/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/mistral3/inputs_processor.rs\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 132 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 \u0060mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:1778\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":"mistralrs-core/src/vision_models/gemma4/inputs_processor.rs"},"region":{"startLine":1778}}}],"partialFingerprints":{"codehealthFindingId/v1":"36dfbfc77aa1064ad47206ce76153db9541b071f56417c05a57f34c62d9741d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/mod.rs:400-417 | mistralrs-core/src/vision_models/gemma4/mod.rs:713-730 \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 \u0060mistralrs-core/src/vision_models/gemma4/mod.rs:400\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":"mistralrs-core/src/vision_models/gemma4/mod.rs"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff68160f91a29cfd28eb8ca145cd4c4d2eb0b99e3d64a76f558ab4d21c0415e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/vision_models/grid_processor.rs:226-243 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:215-232 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 1008 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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"d90262b8cd0d9b14cf5a51cc11052b9a768f78d785493edf6c1eab816980a763"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/vision_models/grid_processor.rs:599-616 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:385-402 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 1008 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:599\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"97715594d60ebe212638e73237c411de21f6eb8109a164f6b72c7d9f2278f4bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/vision_models/idefics2/mod.rs:654-671 | mistralrs-core/src/vision_models/siglip.rs:485-502 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics2/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/siglip.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 256 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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fbb54db8f7a146be21f8373f5f6e0080ec7c02dbd9279e3cb93bd471dbec658"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:437-454 | mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:269-286 \u2014 \u0060mistralrs-core/src/vision_models/idefics3/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/mistral3/inputs_processor.rs\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 13 separate duplicated blocks between them, totalling at least 194 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":"mistralrs-core/src/vision_models/idefics3/inputs_processor.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb7370d4519184dacd1fad7ebb04011da8a3f8d48214cc1846675548abb627e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/vision_models/idefics3/vision.rs:325-342 | mistralrs-core/src/vision_models/siglip.rs:336-353 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics3/vision.rs\u0060 and \u0060mistralrs-core/src/vision_models/siglip.rs\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 276 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060Idefics3VisionConfig\u0060 in one and \u0060SiglipVisionConfig\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":"mistralrs-core/src/vision_models/idefics3/vision.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"63be62fc64439cb6a187614c14ee83c18e83a03eb55468ce834318e870bedd23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:288-305 | mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:324-341 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 222 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":"mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"522253dbf001ef62fe424b4721e72ca41297a4cd51822826629a28a2f5baedc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava_next.rs:442-459 | mistralrs-core/src/vision_models/phi3/mod.rs:1104-1121 \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 \u0060mistralrs-core/src/vision_models/llava/llava_next.rs:442\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":"mistralrs-core/src/vision_models/llava/llava_next.rs"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3b94e82901f49b3573dd539b9c81ad59273d7ac9890bc66e1b0c4be2952d665"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:580-597 | mistralrs-core/src/vision_models/phi4/inputs_processor.rs:1374-1391 \u2014 \u0060mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi4/inputs_processor.rs\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 4 separate duplicated blocks between them, totalling at least 89 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":"mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9019a585d368f9de179f0ecca74b4a30f7a8c8425eddba10f27bbd8b65de18c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:985-1008 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1550-1573 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\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 45 separate duplicated blocks between them, totalling at least 1082 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 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:985\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":"mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"4193d77e04771c9fbbc0a17464f8a12667c58017d5dbdbff487d63a3cdcc0ad1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/text.rs:1272-1289 | mistralrs-core/src/vision_models/qwen4_exp/text.rs:550-567 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen4_exp/text.rs\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 7 separate duplicated blocks between them, totalling at least 83 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 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs:1272\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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":1272}}}],"partialFingerprints":{"codehealthFindingId/v1":"903bf72e1c04780cc8aed68eb407cdef24fee375b38df8d7cbb35999853ba2e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/xlora_models/gemma.rs:379-396 | mistralrs-core/src/xlora_models/starcoder2.rs:364-381 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/starcoder2.rs\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 419 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 \u0060mistralrs-core/src/xlora_models/gemma.rs:379\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d86c7e4d325cc0162d6ff79afaa7879a255a5d9ebd088f34f735070f6836ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/xlora_models/mistral.rs:70-87 | mistralrs-core/src/xlora_models/phi3.rs:213-230 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/mistral.rs\u0060 and \u0060mistralrs-core/src/xlora_models/phi3.rs\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 436 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 \u0060mistralrs-core/src/xlora_models/mistral.rs:70\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":"mistralrs-core/src/xlora_models/mistral.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"4701fe199c12b4d53ad365ad58c8e65c9a02c14307003ff5d340efea6f355981"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): mistralrs-core/src/xlora_models/quantized_llama.rs:776-790 | mistralrs-core/src/xlora_models/quantized_phi3.rs:438-455 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/quantized_llama.rs\u0060 and \u0060mistralrs-core/src/xlora_models/quantized_phi3.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 219 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 \u0060mistralrs-core/src/xlora_models/quantized_phi3.rs:438\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":"mistralrs-core/src/xlora_models/quantized_llama.rs"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"958f41cc8f1429963f1379f3ea4c8ac6a103cfcbe1554faaecaa53549952c5b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:257-274 | mistralrs-paged-attn/src/metal/backend/paged_attention.rs:390-407 \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 \u0060mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:257\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":"mistralrs-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"283baa4aad40345ba7bd592a6a9c3a1f2e988c298340f85d93686724889d81d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:225-242 | mistralrs-quant/src/cutile/fp8_w8a8.rs:230-247 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs\u0060 and \u0060mistralrs-quant/src/cutile/fp8_w8a8.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 212 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. 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":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"df8f722a9098d86df21559b43826141a13b5723eebeb09e9e03164f6e7940802"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmvq.rs:452-469 | mistralrs-quant/src/gguf/fast_mmvq.rs:912-929 \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 \u0060mistralrs-quant/src/gguf/fast_mmvq.rs:452\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":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"61501c82d722e5eb444a91ccb08ea5c4bf5ad99a08ed5d450b707f37e657f899"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-server-core/src/anthropic.rs:1875-1892 | mistralrs-server-core/src/chat_completion.rs:1230-1247 \u2014 before extracting anything, compare \u0060mistralrs-server-core/src/anthropic.rs\u0060 and \u0060mistralrs-server-core/src/chat_completion.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 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 \u0060mistralrs-server-core/src/anthropic.rs:1875\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":"mistralrs-server-core/src/anthropic.rs"},"region":{"startLine":1875}}}],"partialFingerprints":{"codehealthFindingId/v1":"8131d9cfcaae7197329428781bc3e6411af193f8e4a4f8fea7ca4eda0ce9eb17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-server-core/src/embeddings.rs:283-300 | mistralrs-server-core/src/embeddings.rs:333-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060mistralrs-server-core/src/embeddings.rs:283\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":"mistralrs-server-core/src/embeddings.rs"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb1dbbdc1cbff895c6c88ff0fd021a32ebcd79ab5667abc39c1f0252dae01dd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 22): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1064-1080 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3867-3883 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:781-797 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1225-1241 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1469-1485 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1696-1712 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1916-1932 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2152-2168 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2849-2865 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3145-3161 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3478-3494 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3741-3757 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3953-3969 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4202-4218 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4433-4449 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4705-4721 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5017-5033 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5300-5316 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5762-5778 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6008-6024 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6271-6287 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6560-6576 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 445 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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1064\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"757d3d01f6557d201555f4136759335fe020e060e5cfd8eb3c38a9c39d4de6cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 17): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:546-562 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1531-1547 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1838-1854 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2138-2154 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2912-2928 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3266-3282 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3608-3624 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4335-4351 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4745-4761 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5125-5141 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:825-841 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1046-1062 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1269-1285 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2196-2212 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2426-2442 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4476-4492 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5806-5822 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/embedding_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 180 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 \u0060mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:546\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":"mistralrs-core/src/pipeline/loaders/embedding_loaders.rs"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"f618b74f90cc5597e511116fae0f1b430d86b20a11326c0d1a981cd5d91cb126"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 14): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1528-1544 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1835-1851 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2135-2151 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2551-2567 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2909-2925 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3263-3279 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3605-3621 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4332-4348 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5122-5138 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:822-838 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1266-1282 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2193-2209 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4473-4489 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5803-5819 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 445 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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1528}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aec13e94ee01708005f1b5424433a15cd651f358544a4eb32b95ed3b89b561b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 13): mistralrs-core/src/models/gemma.rs:587-603 | mistralrs-core/src/models/gemma2.rs:704-720 | mistralrs-core/src/models/glm4.rs:706-722 | mistralrs-core/src/models/hunyuan_v1_dense.rs:674-690 | mistralrs-core/src/models/mistral.rs:715-731 | mistralrs-core/src/models/phi2.rs:663-679 | mistralrs-core/src/models/phi3.rs:658-674 | mistralrs-core/src/models/qwen2.rs:718-734 | mistralrs-core/src/models/qwen3.rs:692-708 | mistralrs-core/src/models/starcoder2.rs:654-670 | mistralrs-core/src/vision_models/gemma3/text.rs:929-945 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:671-687 | mistralrs-core/src/vision_models/phi3/mod.rs:1494-1510 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 707 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 \u0060mistralrs-core/src/models/gemma.rs:587\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, \u0060mistralrs-core/src/models/phi2.rs:680\u0060 calls \u0060dtype_device\u0060 and \u0060mistralrs-core/src/vision_models/phi3/mod.rs:1511\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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e7da0e1946c218ab591e19d68bd37df64239b3e921a7ee6c7cec562bfc759a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 10): mistralrs-core/src/models/glm4.rs:582-597 | mistralrs-core/src/models/mistral.rs:592-608 | mistralrs-core/src/models/mixtral.rs:530-546 | mistralrs-core/src/models/phi3.rs:538-554 | mistralrs-core/src/models/phi3_5_moe.rs:611-627 | mistralrs-core/src/models/qwen3.rs:545-561 | mistralrs-core/src/models/qwen3_moe.rs:725-741 | mistralrs-core/src/models/starcoder2.rs:532-547 | mistralrs-core/src/vision_models/phi3/mod.rs:1341-1356 | mistralrs-core/src/vision_models/phi4/mod.rs:503-518 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/glm4.rs\u0060 and \u0060mistralrs-core/src/models/mistral.rs\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 529 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 \u0060ctx\u0060 to \u0060\u0026mut ModelForwardContext\u003C\u0027_\u003E\u0060 in one and \u0060\u0026mut crate::pipeline::ModelForwardContext\u003C\u0027_\u003E\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":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"e78b3926eea11cd60118166cd4fb128eef16ad3ca3f33293c3a193ad8942ddc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 6): mistralrs-core/src/embedding_models/qwen3_embedding.rs:242-258 | mistralrs-core/src/models/llama.rs:276-292 | mistralrs-core/src/models/mistral.rs:323-339 | mistralrs-core/src/models/qwen2.rs:355-371 | mistralrs-core/src/models/qwen3.rs:311-327 | mistralrs-core/src/models/smollm3.rs:292-308 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/models/llama.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 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 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:242\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, \u0060mistralrs-core/src/models/mistral.rs:322\u0060 calls \u0060set_device\u0060, \u0060pp\u0060 and \u0060mistralrs-core/src/models/llama.rs:275\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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e2db4b5e10569c84396eb21e58514d93b766350ae418254b314fe02a3bedc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 6): mistralrs-paged-attn/src/cuda/backend/mla.rs:455-471 | mistralrs-paged-attn/src/cuda/backend/mla.rs:514-530 | mistralrs-paged-attn/src/cuda/backend/mla.rs:573-589 | mistralrs-paged-attn/src/cuda/backend/mla.rs:772-788 | mistralrs-paged-attn/src/cuda/backend/mla.rs:810-826 | mistralrs-paged-attn/src/cuda/backend/mla.rs:848-864 \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 \u0060mistralrs-paged-attn/src/cuda/backend/mla.rs:455\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, \u0060mistralrs-paged-attn/src/cuda/backend/mla.rs:454\u0060 calls \u0060slice_ptr\u0060, \u0060start_offset\u0060 and \u0060mistralrs-paged-attn/src/cuda/backend/mla.rs:771\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":"mistralrs-paged-attn/src/cuda/backend/mla.rs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7d580289fee93c745abf130681ef9afa4941277ea1ba9a143052ba31a50b5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 6): mistralrs-quant/src/afq/ops.rs:2270-2286 | mistralrs-quant/src/afq/ops.rs:2418-2434 | mistralrs-quant/src/afq/ops.rs:2566-2582 | mistralrs-quant/src/afq/ops.rs:2815-2831 | mistralrs-quant/src/afq/ops.rs:2995-3011 | mistralrs-quant/src/afq/ops.rs:3178-3194 \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 \u0060mistralrs-quant/src/afq/ops.rs:2270\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":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":2270}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b5f55d417c863c4bf1764fd57957034e0c09478972cde4d0dd6e6f8f5e2240"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 5): mistralrs-core/src/models/deepseek2.rs:823-837 | mistralrs-core/src/models/deepseek3.rs:886-900 | mistralrs-core/src/models/glm4_moe.rs:723-737 | mistralrs-core/src/models/glm4_moe_lite.rs:833-847 | mistralrs-core/src/vision_models/mllama/text.rs:765-781 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:823\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, \u0060mistralrs-core/src/vision_models/mllama/text.rs:784\u0060 calls \u0060pp\u0060 and \u0060mistralrs-core/src/models/deepseek2.rs:839\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bcd89294f9f6117d275120ae449bd30547ebc28f7e662baf211357c86512bd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 5): mistralrs-core/src/vision_models/qwen3_5/mod.rs:406-422 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:391-407 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:975-990 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:421-436 | mistralrs-core/src/vision_models/qwen4_exp/mod.rs:386-402 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs\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 24 separate duplicated blocks between them, totalling at least 425 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 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs:406\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":"mistralrs-core/src/vision_models/qwen3_5/mod.rs"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"32b24064924d877ef5d4c4f77feb038ab4f488ffa3976854f0065564550a20e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): mistralrs-core/src/models/qwen3_moe.rs:405-421 | mistralrs-core/src/models/qwen3_next.rs:476-492 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:380-396 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:144-160 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/qwen3_moe.rs\u0060 and \u0060mistralrs-core/src/models/qwen3_next.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 332 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 \u0060mistralrs-core/src/models/qwen3_moe.rs:405\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":"mistralrs-core/src/models/qwen3_moe.rs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"64dd756511b89da13577951e98a51a14c5626582149303527a3e77dd438476b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 4): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3036-3051 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3369-3384 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4602-4618 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4919-4935 \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 \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3036\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":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":3036}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b520db7efd960784cba80e3300cb9df745c35351db0637517bb0fddfb1dd57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:240-256 | mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:282-298 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:397-413 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:439-455 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/mod.rs\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 396 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 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:240\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":"mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e3b7b5c8e90311570521e8a114a54c4004bfe980525168d1b3b58d2ad3c029"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): mistralrs-core/src/layers.rs:1172-1188 | mistralrs-core/src/layers.rs:1262-1278 | mistralrs-core/src/layers.rs:1531-1547 \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 \u0060mistralrs-core/src/layers.rs:1172\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":"mistralrs-core/src/layers.rs"},"region":{"startLine":1172}}}],"partialFingerprints":{"codehealthFindingId/v1":"5be25d64a638efe930b457705718b860531365e1eaf04556edc911b391155f3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): mistralrs-core/src/models/deepseek2.rs:439-455 | mistralrs-core/src/models/deepseek3.rs:440-456 | mistralrs-core/src/models/glm4_moe_lite.rs:404-420 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:439\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"09912048d45d270e16fead6a65ab125bfff747f93807b9c2f3ceb6c88e06698e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): mistralrs-core/src/models/glm4.rs:535-551 | mistralrs-core/src/models/qwen3.rs:494-510 | mistralrs-core/src/models/qwen3_moe.rs:674-690 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/glm4.rs\u0060 and \u0060mistralrs-core/src/models/qwen3.rs\u0060 as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 648 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 \u0060mistralrs-core/src/models/glm4.rs:535\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":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa2065960d227a9a3d8ab924592f8f4a45f094ec320cee678d7a5ff9444cabe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): mistralrs-core/src/models/llama.rs:440-456 | mistralrs-core/src/models/smollm3.rs:463-479 | mistralrs-core/src/vision_models/llama4/text.rs:876-892 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/llama.rs\u0060 and \u0060mistralrs-core/src/models/smollm3.rs\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 727 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 \u0060mistralrs-core/src/models/llama.rs:440\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, \u0060mistralrs-core/src/vision_models/llama4/text.rs:875\u0060 calls \u0060clone\u0060 and \u0060mistralrs-core/src/models/llama.rs:439\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":"mistralrs-core/src/models/llama.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bbe25daf8b3bb3c2303be1afff71cb5cd7155ba45a9e3a350659553b335c9c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): mistralrs-core/src/models/llama.rs:613-631 | mistralrs-core/src/models/smollm3.rs:632-650 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:626-644 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/llama.rs\u0060 and \u0060mistralrs-core/src/models/smollm3.rs\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 727 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 \u0060mistralrs-core/src/models/llama.rs:613\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":"mistralrs-core/src/models/llama.rs"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"74cfb7442e119ae0908d18f7efce062533030872ff63929700c1ff70bd1d37d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): mistralrs-core/src/ops.rs:131-147 | mistralrs-core/src/ops.rs:169-185 | mistralrs-core/src/ops.rs:207-223 \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 \u0060mistralrs-core/src/ops.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/ops.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"4125cb66d02261766ded0b4aa8c286fedfcbf8d844e9b583d3e33f48704d8456"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1148-1164 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3987-4003 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1959-1975 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 445 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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1148\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"c52680a8d652dc876cc04d8c63598593ac4abbda07fabec6b1f39c3a9140e186"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2709-2725 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3418-3434 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4137-4153 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2709\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":2709}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa4c6dd59519c70fd389603c646b06fad84e4c8b1611763fa28b6ee44e6a72f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): mistralrs-core/src/tools/parsers/gemma4.rs:295-310 | mistralrs-core/src/tools/parsers/gemma4.rs:336-351 | mistralrs-core/src/tools/parsers/gemma4.rs:372-388 \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 \u0060mistralrs-core/src/tools/parsers/gemma4.rs:295\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":"mistralrs-core/src/tools/parsers/gemma4.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"7360db9a166058026134f1c511992c6a1d100deb2e4145bc92998f742706e0fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): mistralrs-core/src/vision_models/grid_processor.rs:1014-1030 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:237-253 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:803-819 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:1014\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"d842f237b18ec356bba363b95e7129e5648f6abc5186425cfadae84ca476883b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): mistralrs-core/src/vision_models/grid_processor.rs:1121-1137 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:334-350 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:900-916 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:1121\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1121}}}],"partialFingerprints":{"codehealthFindingId/v1":"186a960eb2062da99e3d693a25b7865c246165c3f79e0b289919e382b5451d24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): mistralrs-core/src/vision_models/grid_processor.rs:1449-1465 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:643-659 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1251-1267 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:1449\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1449}}}],"partialFingerprints":{"codehealthFindingId/v1":"6561122fa6e1d7f00329daefd3ea5aea7c7051480df6f1755479182d40535032"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201334 lines \u00D7 3): mistralrs-core/src/vision_models/grid_processor.rs:1590-1623 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:779-811 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1344-1376 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:1590\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1590}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fe76557a15c0a3edc10044902f3396f30168503b072f5f267656079b8771ee3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): mistralrs-core/src/vision_models/qwen3_5/mod.rs:529-545 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:544-560 | mistralrs-core/src/vision_models/qwen4_exp/mod.rs:524-540 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs\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 24 separate duplicated blocks between them, totalling at least 425 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":"mistralrs-core/src/vision_models/qwen3_5/mod.rs"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3420f3bd900c3823c2a177bc7672efc2b145f92295ac3b9cfa7680df1a5c49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:82-98 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:634-650 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:80-96 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_vl/mod.rs\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 17 separate duplicated blocks between them, totalling at least 266 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 \u0060mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:82\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":"mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"cebd992af56b2d9730b8d78407c18f5e6e8e8bd726ce22e80abd4e157df4944a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): mistralrs-core/src/xlora_models/gemma.rs:526-542 | mistralrs-core/src/xlora_models/gemma2.rs:556-572 | mistralrs-core/src/xlora_models/starcoder2.rs:504-519 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 498 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 \u0060mistralrs-core/src/xlora_models/gemma.rs:526\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, \u0060mistralrs-core/src/xlora_models/gemma.rs:544\u0060 calls \u0060dtype\u0060 and \u0060mistralrs-core/src/xlora_models/gemma2.rs:574\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"3def3ab5daff8203c7770c4bfa0e845b477119f6034baf985119f9daa2e372bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): mistralrs-quant/src/distributed/mod.rs:562-578 | mistralrs-quant/src/distributed/mod.rs:593-609 | mistralrs-quant/src/distributed/mod.rs:624-640 \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 \u0060mistralrs-quant/src/distributed/mod.rs:562\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":"mistralrs-quant/src/distributed/mod.rs"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"d70139e4f010af194734b63fdfc49d1b50c9ee72a70775187e53ea3361455ea5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): mistralrs-quant/src/distributed/mod.rs:711-727 | mistralrs-quant/src/distributed/mod.rs:742-758 | mistralrs-quant/src/distributed/mod.rs:773-789 \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 \u0060mistralrs-quant/src/distributed/mod.rs:711\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":"mistralrs-quant/src/distributed/mod.rs"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e58fa06a265cbe98aed14f525e2717bf6b1d2bc59a70fb84b11ad2173a4217"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): mistralrs-quant/src/utils/ops.rs:1639-1655 | mistralrs-quant/src/utils/ops.rs:1667-1683 | mistralrs-quant/src/utils/ops.rs:1695-1711 \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 \u0060mistralrs-quant/src/utils/ops.rs:1639\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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":1639}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad2b865e45d4462df5e03091e5e2f1773e8bf677dd1c4d4239ecf3b625f08f28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): mistralrs-quant/src/utils/ops.rs:1774-1790 | mistralrs-quant/src/utils/ops.rs:1800-1816 | mistralrs-quant/src/utils/ops.rs:1826-1842 \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 \u0060mistralrs-quant/src/utils/ops.rs:1774\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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":1774}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b6b8fbc99df5fa461a570b92145f949d1ccd04d4931deedf46ce07388177a6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): mistralrs-quant/src/utils/ops.rs:2034-2050 | mistralrs-quant/src/utils/ops.rs:2063-2079 | mistralrs-quant/src/utils/ops.rs:2092-2108 \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 \u0060mistralrs-quant/src/utils/ops.rs:2034\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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":2034}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c048052c2b006ad5a9faff4290cf0fd7f81401f4406cfd9c3139b714cd20dec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-cli/src/commands/run/interactive.rs:278-294 | mistralrs-cli/src/commands/run/interactive.rs:462-478 \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 \u0060mistralrs-cli/src/commands/run/interactive.rs:278\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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da1df933c1339c462c00ba13a301cb25aff5ec95bf47f6fdd2ee27653e0ea98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-cli/src/commands/run/mod.rs:95-111 | mistralrs-cli/src/commands/serve.rs:107-123 \u2014 before extracting anything, compare \u0060mistralrs-cli/src/commands/run/mod.rs\u0060 and \u0060mistralrs-cli/src/commands/serve.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 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 \u0060mistralrs-cli/src/commands/run/mod.rs:95\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":"mistralrs-cli/src/commands/run/mod.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"5671460e9864af3de487a356e22465156a2546ab62d9c10e3d77bf90cfd44420"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/mla/forward.rs:572-588 | mistralrs-core/src/mla/forward.rs:590-606 \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":"mistralrs-core/src/mla/forward.rs"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28c222216b3319957e5a868eeaa75434ff1627c66ddb7c218c2015070a7adb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/model_loader.rs:363-379 | mistralrs-core/src/toml_selector.rs:846-862 \u2014 before extracting anything, compare \u0060mistralrs-core/src/model_loader.rs\u0060 and \u0060mistralrs-core/src/toml_selector.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 199 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 \u0060mistralrs-core/src/model_loader.rs:363\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 \u0060args\u0060 to \u0060LoaderBuilder\u0060 in one and \u0060TomlLoaderInnerParams\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":"mistralrs-core/src/model_loader.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"092939d21bfeb9d337a748cd1b141f1136005935a21d898112903dd2d273175b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): mistralrs-core/src/models/gemma2.rs:545-561 | mistralrs-core/src/models/qwen2.rs:575-590 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma2.rs\u0060 and \u0060mistralrs-core/src/models/qwen2.rs\u0060 as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 475 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 \u0060mistralrs-core/src/models/gemma2.rs:545\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":"mistralrs-core/src/models/gemma2.rs"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"475db4ca52719395f7de7dfd93be32735ef8254a514f1b18848a3236ad68ab3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/models/glm4_moe.rs:235-251 | mistralrs-core/src/models/hunyuan_v1_moe.rs:337-353 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/glm4_moe.rs\u0060 and \u0060mistralrs-core/src/models/hunyuan_v1_moe.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 266 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 \u0060mistralrs-core/src/models/glm4_moe.rs:235\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":"mistralrs-core/src/models/glm4_moe.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f15fc2b64e9ef16664805c860c0bd34999c9bb6d02cc3e637f7c3d612032f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): mistralrs-core/src/models/gpt_oss.rs:819-835 | mistralrs-core/src/models/phi3.rs:489-504 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gpt_oss.rs\u0060 and \u0060mistralrs-core/src/models/phi3.rs\u0060 as WHOLE FILES: this scan already matched 16 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. 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":"mistralrs-core/src/models/gpt_oss.rs"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"085ed6846a099b0fbdec4af7d9bed0b4717495b23b6465cda39cd061905ceafe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201317 lines \u00D7 2): mistralrs-core/src/models/granite.rs:1104-1115 | mistralrs-core/src/models/granite.rs:1138-1154 \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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":1104}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0a4931c48aebba52b897e87dc1a7994348581523a1022b1403d412e7ecffb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/models/granite.rs:2245-2261 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:532-548 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/granite.rs\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava_llm/llama.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 151 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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":2245}}}],"partialFingerprints":{"codehealthFindingId/v1":"00bc9347f8b822653fa2122b6069f94791fcb504eef02fad3e21a816016fe0e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/ops.rs:5838-5854 | mistralrs-core/src/ops.rs:6601-6617 \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 after the matched lines, \u0060mistralrs-core/src/ops.rs:5855\u0060 calls \u0060from\u0060 and \u0060mistralrs-core/src/ops.rs:6618\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":5838}}}],"partialFingerprints":{"codehealthFindingId/v1":"58bca672d376066a3f0cd29635c4aaddcb9b5cf340e98aa6013e1b8fa9497363"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/pipeline/ggml.rs:557-573 | mistralrs-core/src/pipeline/gguf.rs:1603-1619 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/ggml.rs\u0060 and \u0060mistralrs-core/src/pipeline/gguf.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 75 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 \u0060mistralrs-core/src/pipeline/ggml.rs:557\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":"mistralrs-core/src/pipeline/ggml.rs"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"eae0bcafaefe8aa2a68e79271a5d38cf9a4ee9f39f3ad54e61bb3fb5b9b6fc39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4175-4191 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4210-4226 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4175\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":4175}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3ce7415ff6669919a421b6338b2a973c1f7da997e60c6724f89c890dd9a792"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1779-1795 | mistralrs-core/src/pipeline/normal.rs:1649-1665 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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. 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1779}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a8cd9db846f20650cf40692416a2003e4a4ecc465e9af06a676bc8f521e68b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1828-1844 | mistralrs-core/src/pipeline/normal.rs:1690-1706 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1828}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02cf133fbf13dd190846f0937611437afd6ee521c72b437bc70371e2680f9e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/tools/state.rs:291-307 | mistralrs-core/src/tools/state.rs:339-355 \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 \u0060mistralrs-core/src/tools/state.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/tools/state.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"13721d3c84d06c701311fa3ea76772b4f55934de22832c131c3629f0ff2ab16b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/audio.rs:672-688 | mistralrs-core/src/vision_models/gemma4/audio.rs:702-716 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/audio.rs\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 20 separate duplicated blocks between them, totalling at least 352 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 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs:672\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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c6362797e7530a63b61ec1096c33030efece2b30306eed4b1030c2c702c2e0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201317 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/audio.rs:749-765 | mistralrs-core/src/vision_models/gemma4/audio.rs:757-768 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/audio.rs\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 20 separate duplicated blocks between them, totalling at least 352 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 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs:749\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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69b3408b5732ac4746452805113d85948327a5b7362116e737e63310916b240"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/text.rs:1721-1736 | mistralrs-core/src/vision_models/gemma4/text.rs:2049-2065 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/text.rs\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 7 separate duplicated blocks between them, totalling at least 70 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 \u0060mistralrs-core/src/vision_models/gemma3n/text.rs:1721\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":"mistralrs-core/src/vision_models/gemma3n/text.rs"},"region":{"startLine":1721}}}],"partialFingerprints":{"codehealthFindingId/v1":"795e2da751bacc66faaa2b762f67fd4e2d788c59cb50faf30f6681b56f18432e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:171-209 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:142-180 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/vision.rs\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 15 separate duplicated blocks between them, totalling at least 182 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":"mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"4701f00ff78db1301537682b9a11882047c696b4029503a0ca5aebdf9a7a9947"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/text.rs:1721-1737 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:945-961 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs\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 26 separate duplicated blocks between them, totalling at least 469 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 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs:1721\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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":1721}}}],"partialFingerprints":{"codehealthFindingId/v1":"86451d07504622165cfb192228ca1bcf0f22ef376616a5281e124b64e08a973e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/xlora_models/gemma.rs:82-98 | mistralrs-core/src/xlora_models/gemma2.rs:76-92 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 498 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 \u0060mistralrs-core/src/xlora_models/gemma.rs:82\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b07145ea70bcd4d50b6194a8ae979138708fbee7f9840cc94edead80f104cd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): mistralrs-core/src/xlora_models/gemma.rs:528-544 | mistralrs-core/src/xlora_models/phi3.rs:473-488 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/phi3.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 233 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 \u0060mistralrs-core/src/xlora_models/gemma.rs:528\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25153df25d8c8a4c34ffa1cc993d3a9a788b8ae28eaab5cdbddcbb411a2ce00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/xlora_models/mistral.rs:523-539 | mistralrs-core/src/xlora_models/mixtral.rs:653-669 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/mistral.rs\u0060 and \u0060mistralrs-core/src/xlora_models/mixtral.rs\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 787 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 \u0060mistralrs-core/src/xlora_models/mistral.rs:523\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":"mistralrs-core/src/xlora_models/mistral.rs"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e51525cac6d7c9b5f03cb4c60ddb743c791a67e8978a30325d01742b5014d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/xlora_models/quantized_llama.rs:734-750 | mistralrs-core/src/xlora_models/quantized_phi3.rs:396-412 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/quantized_llama.rs\u0060 and \u0060mistralrs-core/src/xlora_models/quantized_phi3.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 219 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 \u0060mistralrs-core/src/xlora_models/quantized_llama.rs:734\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, \u0060mistralrs-core/src/xlora_models/quantized_phi3.rs:413\u0060 calls \u0060Some\u0060 and \u0060mistralrs-core/src/xlora_models/quantized_llama.rs:751\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":"mistralrs-core/src/xlora_models/quantized_llama.rs"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ebb5f78482ab73582f94ecc9d707aadad96e29925b2c6a4640c7ee8ce0fa6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): mistralrs-core/src/xlora_models/quantized_llama.rs:803-819 | mistralrs-core/src/xlora_models/quantized_phi3.rs:471-485 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/quantized_llama.rs\u0060 and \u0060mistralrs-core/src/xlora_models/quantized_phi3.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 219 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":"mistralrs-core/src/xlora_models/quantized_llama.rs"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6675ff4a088b9eb8ac6ff1e1e43a22273111e177d961632324bf856168ef106"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 2): mistralrs-mcp/src/client.rs:441-454 | mistralrs-mcp/src/client.rs:596-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 \u0060mistralrs-mcp/src/client.rs:441\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":"mistralrs-mcp/src/client.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"875f58ffaae22385ac782e2a398e17db927e2d7083cf1257039f7d0d1a016898"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:284-300 | mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:683-699 \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 \u0060mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:284\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":"mistralrs-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c64eed0e07abff66d5c0cc29459def92ba56f21b5017c760881fab653ef352e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-quant/src/afq/mod.rs:607-623 | mistralrs-quant/src/afq/mod.rs:656-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 \u0060mistralrs-quant/src/afq/mod.rs:607\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":"mistralrs-quant/src/afq/mod.rs"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ba9532eb78d736cf5c89859b3af7bd759682b317466df40b1ab258d5fdc1f5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:1426-1442 | mistralrs-quant/src/distributed/layers.rs:1642-1658 \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 \u0060mistralrs-quant/src/distributed/layers.rs:1426\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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":1426}}}],"partialFingerprints":{"codehealthFindingId/v1":"a410db471d43294fb645f14313966c21a90580b2abbf8258a7e2686ed31944bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-quant/src/lora/dynamic/expert.rs:605-621 | mistralrs-quant/src/lora/dynamic/expert.rs:646-662 \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":"mistralrs-quant/src/lora/dynamic/expert.rs"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"561a9f56add98608b76c126d7baa96ffe0167a9202d73d18b858949d3ac03b77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): mistralrs-quant/src/rotary/mod.rs:583-598 | mistralrs-quant/src/rotary/mod.rs:690-706 \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 \u0060mistralrs-quant/src/rotary/mod.rs:583\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, \u0060mistralrs-quant/src/rotary/mod.rs:689\u0060 calls \u0060check_qk_shape\u0060 and \u0060mistralrs-quant/src/rotary/mod.rs:582\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":"mistralrs-quant/src/rotary/mod.rs"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e5108c94a12c8854aa0ef82d05079e343091d8ed7ed2aff9f4b485df8beaf22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs/src/model_builder_trait.rs:735-751 | mistralrs/src/model_builder_trait.rs:1479-1495 \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":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e895b0d7b84c059ebbd9cd3b97462c2a6006ee5ef40dbf42bf0af5df022c37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 27): mistralrs-core/src/models/flint.rs:403-415 | mistralrs-core/src/models/gemma2.rs:255-270 | mistralrs-core/src/models/glm4.rs:255-270 | mistralrs-core/src/models/glm4_moe.rs:323-335 | mistralrs-core/src/models/gpt_oss.rs:288-300 | mistralrs-core/src/models/granite.rs:1584-1596 | mistralrs-core/src/models/hunyuan_v1_dense.rs:234-246 | mistralrs-core/src/models/hunyuan_v1_moe.rs:420-432 | mistralrs-core/src/models/llama.rs:116-131 | mistralrs-core/src/models/mistral.rs:256-271 | mistralrs-core/src/models/mixtral.rs:192-207 | mistralrs-core/src/models/phi3_5_moe.rs:222-237 | mistralrs-core/src/models/qwen2.rs:286-301 | mistralrs-core/src/models/qwen3.rs:241-256 | mistralrs-core/src/models/qwen3_moe.rs:244-259 | mistralrs-core/src/models/qwen3_next.rs:328-340 | mistralrs-core/src/models/smollm3.rs:133-148 | mistralrs-core/src/models/starcoder2.rs:268-283 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:90-105 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:259-274 | mistralrs-core/src/vision_models/muse_glimmer/text.rs:283-295 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:250-262 | mistralrs-core/src/vision_models/qwen2vl/text.rs:251-263 | mistralrs-core/src/vision_models/qwen3_5/text.rs:375-387 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:243-255 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:247-262 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:353-365 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 190 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 \u0060mistralrs-core/src/models/flint.rs:403\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a13691ed7d85798b92985afea0e0d0392a2b8d32d712055efe951d885351215"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 19): mistralrs-core/src/models/flint.rs:407-421 | mistralrs-core/src/models/gemma.rs:215-229 | mistralrs-core/src/models/gemma2.rs:262-277 | mistralrs-core/src/models/gpt_oss.rs:292-306 | mistralrs-core/src/models/hunyuan_v1_dense.rs:238-252 | mistralrs-core/src/models/hunyuan_v1_moe.rs:424-438 | mistralrs-core/src/models/lfm2.rs:532-546 | mistralrs-core/src/models/lfm3.rs:508-522 | mistralrs-core/src/models/llama.rs:123-137 | mistralrs-core/src/models/mistral.rs:263-277 | mistralrs-core/src/models/mixtral.rs:199-213 | mistralrs-core/src/models/phi2.rs:311-325 | mistralrs-core/src/models/qwen2.rs:293-307 | mistralrs-core/src/models/qwen3.rs:248-262 | mistralrs-core/src/models/qwen3_moe.rs:251-265 | mistralrs-core/src/models/qwen3_next.rs:332-346 | mistralrs-core/src/models/smollm3.rs:140-154 | mistralrs-core/src/models/starcoder2.rs:275-289 | mistralrs-core/src/vision_models/voxtral/mod.rs:175-189 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/gemma.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 152 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 \u0060mistralrs-core/src/models/flint.rs:407\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, \u0060mistralrs-core/src/models/gemma.rs:214\u0060 calls \u0060is_none\u0060 and \u0060mistralrs-core/src/models/lfm2.rs:531\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"965d37350ce20b7a3af5720cb061ae5911ff0f7423f124432df35f1a99ccc195"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 18): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:545-560 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1530-1545 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1837-1852 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2137-2152 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2553-2568 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2911-2926 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3265-3280 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3607-3622 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4334-4349 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4744-4759 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5124-5139 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:824-839 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1045-1060 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1268-1283 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2195-2210 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2425-2440 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4475-4490 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5805-5820 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/embedding_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 180 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 \u0060mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:545\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":"mistralrs-core/src/pipeline/loaders/embedding_loaders.rs"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70dd9cbd10265bab4c7d279028468c708dfff75e0b819a8ca972d8c6f46db51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 9): mistralrs-core/src/embedding_models/qwen3_embedding.rs:352-367 | mistralrs-core/src/models/mixtral.rs:428-443 | mistralrs-core/src/models/qwen2.rs:456-471 | mistralrs-core/src/models/qwen3.rs:425-440 | mistralrs-core/src/models/qwen3_moe.rs:599-614 | mistralrs-core/src/models/starcoder2.rs:426-441 | mistralrs-core/src/xlora_models/mistral.rs:442-457 | mistralrs-core/src/xlora_models/mixtral.rs:572-587 | mistralrs-core/src/xlora_models/starcoder2.rs:431-446 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/models/mixtral.rs\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060mistralrs-core/src/xlora_models/mistral.rs:439\u0060 calls \u0060with_capacity\u0060, \u0060pp\u0060 and \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:350\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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"210676ae210f9a486bee1a0d5604c1e1f681fccd855c7515960e0497dcda3530"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 8): mistralrs-core/src/xlora_models/gemma.rs:651-666 | mistralrs-core/src/xlora_models/gemma2.rs:702-717 | mistralrs-core/src/xlora_models/llama.rs:477-492 | mistralrs-core/src/xlora_models/mistral.rs:647-662 | mistralrs-core/src/xlora_models/mixtral.rs:777-792 | mistralrs-core/src/xlora_models/phi2.rs:617-632 | mistralrs-core/src/xlora_models/phi3.rs:603-617 | mistralrs-core/src/xlora_models/starcoder2.rs:632-647 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 498 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 \u0060mistralrs-core/src/xlora_models/gemma.rs:651\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"073915e62cf6be9331ee0a29312070b425b3c2c0a9291875f4ed9574936fc68c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 7): mistralrs-core/src/models/glm4.rs:276-291 | mistralrs-core/src/models/glm4_moe.rs:341-356 | mistralrs-core/src/models/granite.rs:1602-1617 | mistralrs-core/src/vision_models/phi3/mod.rs:307-322 | mistralrs-core/src/vision_models/phi4/mod.rs:176-191 | mistralrs-core/src/vision_models/qwen3_5/text.rs:396-410 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:261-275 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/glm4.rs\u0060 and \u0060mistralrs-core/src/models/glm4_moe.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 359 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 \u0060mistralrs-core/src/models/glm4.rs:276\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, \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs:393\u0060 calls \u0060ok_or_else\u0060, \u0060msg\u0060 and \u0060mistralrs-core/src/models/glm4.rs:275\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":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"280faa1b69df68163358cd81ce5fd5ac49c513a1cc21d7756e6b37a21cc7765d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 7): mistralrs-core/src/xlora_models/gemma.rs:459-474 | mistralrs-core/src/xlora_models/gemma2.rs:490-504 | mistralrs-core/src/xlora_models/mistral.rs:456-470 | mistralrs-core/src/xlora_models/mixtral.rs:586-601 | mistralrs-core/src/xlora_models/phi2.rs:442-456 | mistralrs-core/src/xlora_models/phi3.rs:415-429 | mistralrs-core/src/xlora_models/starcoder2.rs:445-459 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 498 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 \u0060mistralrs-core/src/xlora_models/gemma.rs:459\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, \u0060mistralrs-core/src/xlora_models/gemma.rs:476\u0060 calls \u0060clone\u0060 and \u0060mistralrs-core/src/xlora_models/phi2.rs:458\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd20bc26a7901efc594b4b36dd699c242463eedef551d98edbab65d3a4a03e66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 6): mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs:379-394 | mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:1586-1601 | mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:483-498 | mistralrs-core/src/vision_models/lfm2_vl/inputs_processor.rs:735-750 | mistralrs-core/src/vision_models/llama4/inputs_processor.rs:461-476 | mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:388-403 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 98 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 \u0060mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs:379\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":"mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a2eb44a87b3245a2645d5bc39583d23efaa39a1c6b62d30265c315e24e9a3e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 6): mistralrs-core/src/vision_models/grid_processor.rs:965-997 | mistralrs-core/src/vision_models/grid_processor.rs:1274-1306 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:188-220 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:478-510 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:754-786 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1086-1118 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:965\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"5859f1c3e43392309a8be646066d644f4bd6ed9e10e2cd54d03152c0d55c73ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 6): mistralrs-core/src/xlora_models/gemma.rs:426-441 | mistralrs-core/src/xlora_models/gemma2.rs:457-472 | mistralrs-core/src/xlora_models/mistral.rs:422-437 | mistralrs-core/src/xlora_models/mixtral.rs:552-567 | mistralrs-core/src/xlora_models/phi3.rs:389-404 | mistralrs-core/src/xlora_models/starcoder2.rs:411-426 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 498 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, \u0060mistralrs-core/src/xlora_models/mistral.rs:438\u0060 calls \u0060head_dim\u0060 and \u0060mistralrs-core/src/xlora_models/gemma.rs:442\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"76904ff06179b4c93f587de6af0b9d2f198e0fb32165e095ec0a07f60d5b1d35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 5): mistralrs-core/src/models/deepseek2.rs:563-578 | mistralrs-core/src/models/deepseek3.rs:583-598 | mistralrs-core/src/models/deepseek3.rs:613-628 | mistralrs-core/src/models/glm4_moe.rs:472-485 | mistralrs-core/src/models/glm4_moe_lite.rs:573-588 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"a637df43e57678abed861f7cc1a97222cb4bfdc267d13dc35be11bb049f3ffcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): mistralrs-core/src/models/gemma.rs:143-158 | mistralrs-core/src/models/glm4_moe.rs:248-263 | mistralrs-core/src/models/hunyuan_v1_dense.rs:167-182 | mistralrs-core/src/models/hunyuan_v1_moe.rs:350-365 | mistralrs-core/src/models/lfm2.rs:457-472 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/glm4_moe.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 228 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 \u0060mistralrs-core/src/models/gemma.rs:143\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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e22e24f0421e82df3e18aab3c1082dd186963d9dffeb8bdb73100409d386612"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): mistralrs-core/src/models/gemma.rs:348-363 | mistralrs-core/src/models/gemma2.rs:421-436 | mistralrs-core/src/models/phi2.rs:432-447 | mistralrs-core/src/models/phi3_5_moe.rs:481-496 | mistralrs-core/src/models/starcoder2.rs:406-421 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 707 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 \u0060mistralrs-core/src/models/gemma.rs:348\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, \u0060mistralrs-core/src/models/starcoder2.rs:422\u0060 calls \u0060pp\u0060 and \u0060mistralrs-core/src/models/gemma.rs:364\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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"a69ef03aaad6e21d58dbf7913edb34e3ac6bbaab226aeef0ab30a3008b89d9e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): mistralrs-core/src/models/qwen2.rs:215-230 | mistralrs-core/src/models/qwen3.rs:168-183 | mistralrs-core/src/models/qwen3_moe.rs:171-186 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:172-187 | mistralrs-core/src/vision_models/qwen2vl/text.rs:173-188 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/qwen2.rs\u0060 and \u0060mistralrs-core/src/models/qwen3.rs\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 576 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 \u0060mistralrs-core/src/models/qwen2.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/qwen2.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"211cdf8f732676ff7ccb9e7082a5b1a14ce5612da1c773d7bf1cefed18eedda4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 5): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2795-2810 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6773-6788 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7215-7230 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7687-7701 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8209-8223 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2795\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":2795}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed14c8785e93c9e1ff3e57ad288b18302f2e103f81a721d35b3dab9740878962"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): mistralrs/src/model_builder_trait.rs:544-559 | mistralrs/src/model_builder_trait.rs:621-636 | mistralrs/src/model_builder_trait.rs:771-786 | mistralrs/src/model_builder_trait.rs:1094-1109 | mistralrs/src/model_builder_trait.rs:1548-1563 \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 \u0060mistralrs/src/model_builder_trait.rs:544\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, \u0060mistralrs/src/model_builder_trait.rs:543\u0060 calls \u0060clone\u0060 and \u0060mistralrs/src/model_builder_trait.rs:620\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":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"a518090de6ae5e7b7b734915d7c15d17e67544c74017b91c2ea6f26e35fe958c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): mistralrs-core/src/models/gemma.rs:365-380 | mistralrs-core/src/models/gemma2.rs:438-453 | mistralrs-core/src/xlora_models/gemma.rs:445-460 | mistralrs-core/src/xlora_models/gemma2.rs:476-491 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 707 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, \u0060mistralrs-core/src/xlora_models/gemma.rs:442\u0060 calls \u0060with_capacity\u0060, \u0060pp\u0060 and \u0060mistralrs-core/src/models/gemma.rs:363\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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f13d1d2ceae4bacf240e71af17c8af547f036cfc39606e5df76dcd690ea7e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 4): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6738-6753 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7180-7195 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7655-7668 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8177-8190 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6738\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":6738}}}],"partialFingerprints":{"codehealthFindingId/v1":"45233268560148977ee34c9859395f2a84679e27e16b84a95c4edbbea8d22185"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): mistralrs-core/src/pipeline/multimodal.rs:1181-1196 | mistralrs-core/src/pipeline/multimodal.rs:1290-1305 | mistralrs-core/src/pipeline/normal.rs:1233-1248 | mistralrs-core/src/pipeline/normal.rs:1366-1381 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:1181\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"069e3e9ea8d8eaba2f181b9f19e1ce791d99c20fd37c81aae2f8ced5b796aca1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 4): mistralrs-core/src/vision_models/qwen3_5/mod.rs:196-211 | mistralrs-core/src/vision_models/qwen3_5/mod.rs:259-273 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:179-194 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:242-256 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs\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 24 separate duplicated blocks between them, totalling at least 425 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 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs:196\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":"mistralrs-core/src/vision_models/qwen3_5/mod.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"78dd80fbb1001b15239bebca05aea7e49c638d86daa8a81c3cfb6aea65d06916"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 4): mistralrs-core/src/vision_models/qwen3_vl/mod.rs:703-718 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:780-794 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:149-164 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:226-240 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_vl/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs\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 25 separate duplicated blocks between them, totalling at least 658 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 \u0060mistralrs-core/src/vision_models/qwen3_vl/mod.rs:703\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":"mistralrs-core/src/vision_models/qwen3_vl/mod.rs"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"7047f79abad54ea9d8cd23dd9efb27176117d9b68f8b63880fe5d1fbbd631149"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 4): mistralrs-core/src/vision_models/qwen3_vl/mod.rs:720-735 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:796-810 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:166-181 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:242-256 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_vl/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs\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 25 separate duplicated blocks between them, totalling at least 658 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 \u0060mistralrs-core/src/vision_models/qwen3_vl/mod.rs:720\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":"mistralrs-core/src/vision_models/qwen3_vl/mod.rs"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee33684a91489ce38e8604260865d3120521fa31df9e22beba88d2f2cc9d0c6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): mistralrs-core/src/embedding_models/qwen3_embedding.rs:479-493 | mistralrs-core/src/models/qwen3.rs:585-599 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:609-624 \u2014 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/models/qwen3.rs\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 26 separate duplicated blocks between them, totalling at least 364 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 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:479\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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"60d351eada470da42df5e57e071b27b45f5a328767a2e1f112c9565ee8d790ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): mistralrs-core/src/model_loader.rs:199-214 | mistralrs-core/src/model_loader.rs:224-239 | mistralrs-core/src/model_loader.rs:248-263 \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 \u0060mistralrs-core/src/model_loader.rs: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":"mistralrs-core/src/model_loader.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f854e531aa73e213d07604868373bbffcdcb43be3173fef2096b0c635d4ec94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): mistralrs-core/src/models/phi3.rs:195-210 | mistralrs-core/src/vision_models/phi3/mod.rs:286-301 | mistralrs-core/src/vision_models/phi4/mod.rs:155-170 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/phi3.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi3/mod.rs\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 638 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 \u0060mistralrs-core/src/models/phi3.rs:195\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":"mistralrs-core/src/models/phi3.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"d27472a92f7fc265bba265fc88207947b91c74c128c83c481414b200c22fa65e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): mistralrs-core/src/models/phi3.rs:481-496 | mistralrs-core/src/vision_models/phi3/mod.rs:1262-1277 | mistralrs-core/src/vision_models/phi4/mod.rs:377-392 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/phi3.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi3/mod.rs\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 638 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 \u0060mistralrs-core/src/models/phi3.rs:481\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":"mistralrs-core/src/models/phi3.rs"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5e88a62d1400b6acd11fb11f56ffccfaa6d394d8d31daa54569dd5d2dd7d6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): mistralrs-core/src/ops.rs:5836-5851 | mistralrs-core/src/ops.rs:6273-6288 | mistralrs-core/src/ops.rs:6599-6614 \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":"mistralrs-core/src/ops.rs"},"region":{"startLine":5836}}}],"partialFingerprints":{"codehealthFindingId/v1":"013f85e1438bf58bba36d9a7af1baedc0d6aea7296b70696bf5338b0a25392e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): mistralrs-core/src/pipeline/embedding.rs:485-500 | mistralrs-core/src/pipeline/multimodal.rs:1055-1070 | mistralrs-core/src/pipeline/normal.rs:1058-1073 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/embedding.rs\u0060 and \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 178 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 \u0060mistralrs-core/src/pipeline/embedding.rs:485\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":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dce57f8b4a818fafd7f496d51821f03d9bee68f45f354fe0c044981702a88bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): mistralrs-core/src/vision_models/grid_processor.rs:1081-1096 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:298-313 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:864-879 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:1081\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"3118517484e55efe820efbdc66fe2e302865f15a093acc1ecf2b8b6a3e743c35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:213-228 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:214-229 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:320-335 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_vl/text.rs\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 18 separate duplicated blocks between them, totalling at least 207 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 \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:213\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, \u0060mistralrs-core/src/vision_models/qwen3_vl/text.rs:231\u0060 calls \u0060contiguous\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:231\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":"mistralrs-core/src/vision_models/qwen3_5_moe/text.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"baa56e282c7915967127ad84e73966a6a237bdb2643e72070c3502025e1d4d79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): mistralrs-core/src/xlora_models/mistral.rs:523-538 | mistralrs-core/src/xlora_models/mixtral.rs:653-668 | mistralrs-core/src/xlora_models/starcoder2.rs:506-521 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/mistral.rs\u0060 and \u0060mistralrs-core/src/xlora_models/mixtral.rs\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 787 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 \u0060mistralrs-core/src/xlora_models/mistral.rs:523\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, \u0060mistralrs-core/src/xlora_models/mistral.rs:539\u0060 calls \u0060dtype\u0060 and \u0060mistralrs-core/src/xlora_models/starcoder2.rs:522\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":"mistralrs-core/src/xlora_models/mistral.rs"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"c549eb4c5194397679d1586f975f47cee68e43f5897730ca42837bfbc6c2d908"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): mistralrs-core/src/xlora_models/quantized_llama.rs:429-444 | mistralrs-core/src/xlora_models/quantized_llama.rs:731-746 | mistralrs-core/src/xlora_models/quantized_phi3.rs:393-408 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/quantized_llama.rs\u0060 and \u0060mistralrs-core/src/xlora_models/quantized_phi3.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 219 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 \u0060mistralrs-core/src/xlora_models/quantized_llama.rs:429\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":"mistralrs-core/src/xlora_models/quantized_llama.rs"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee206f01d3e47aefe60f3a0970845f8fb9b2cfccdd6cffda497042bca336e00b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 3): mistralrs-pyo3/src/lib.rs:1610-1625 | mistralrs-pyo3/src/lib.rs:1871-1884 | mistralrs-pyo3/src/lib.rs:2361-2374 \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 \u0060mistralrs-pyo3/src/lib.rs:1610\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 \u0060request\u0060 to \u0060Py\u003CChatCompletionRequest\u003E\u0060 in one and \u0060Py\u003CCompletionRequest\u003E\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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":1610}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d162a2b171e9df2613a0474aa66ff92c617bff55c1016f43c9941a71995de6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): mistralrs-quant/src/utils/ops.rs:2837-2852 | mistralrs-quant/src/utils/ops.rs:2864-2879 | mistralrs-quant/src/utils/ops.rs:2891-2906 \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 \u0060mistralrs-quant/src/utils/ops.rs:2837\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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":2837}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea12db9eadbd9565616d4a5bf67a7241c84e1271849b91320d57febb266e87a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): mistralrs/src/model.rs:317-332 | mistralrs/src/model.rs:387-402 | mistralrs/src/model.rs:475-490 \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 \u0060mistralrs/src/model.rs:317\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":"mistralrs/src/model.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c29859f3383d066867bdaa104f4977daa26f29147f6e891827080498410acc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): mistralrs/src/model_builder_trait.rs:783-798 | mistralrs/src/model_builder_trait.rs:936-951 | mistralrs/src/model_builder_trait.rs:1560-1575 \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 \u0060mistralrs/src/model_builder_trait.rs:783\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":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c726c5eb0e0f8bc86aef8d8b4c895d3d448d9c15688496d4a266513ee145447"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-cli/src/commands/run/interactive.rs:968-983 | mistralrs-cli/src/commands/run/interactive.rs:1756-1771 \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 \u0060mistralrs-cli/src/commands/run/interactive.rs:968\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, \u0060mistralrs-cli/src/commands/run/interactive.rs:1753\u0060 calls \u0060clone\u0060 and \u0060mistralrs-cli/src/commands/run/interactive.rs:967\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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a78965395de3066ab4fda95bc8f185c51bea055b4fcce6a4615411c5cdf02e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-cli/src/commands/run/interactive.rs:1956-1971 | mistralrs-cli/src/commands/run/interactive.rs:2079-2094 \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 \u0060mistralrs-cli/src/commands/run/interactive.rs:1956\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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1956}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd69cc5e171d4c8624093cb047b2b9b81e8ab9ece0bfd38d459d30ccfbd22c2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): mistralrs-core/src/attention/backends/metal_flash_attn.rs:127-142 | mistralrs-core/src/attention/backends/metal_flash_attn.rs:270-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 \u0060mistralrs-core/src/attention/backends/metal_flash_attn.rs:127\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":"mistralrs-core/src/attention/backends/metal_flash_attn.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfe35a2ea740494b3910fce19c4baf7ae9262e2c32ab4c39b56ef442b718093a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/engine/agentic_loop.rs:1467-1483 | mistralrs-core/src/engine/agentic_loop.rs:1538-1554 \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 \u0060mistralrs-core/src/engine/agentic_loop.rs:1467\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":"mistralrs-core/src/engine/agentic_loop.rs"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf64dacbde27dae761c5383d121aefe6f662ca0d2035aa621640b8a42e7d8cd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/gdn/layer.rs:137-152 | mistralrs-core/src/gdn/layer.rs:161-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/gdn/layer.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf2258769240724042c9baad90a901df2cad4931ece608ab1919f97ff6a0af60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/gdn/projection.rs:125-140 | mistralrs-core/src/gdn/projection.rs:157-172 \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 \u0060mistralrs-core/src/gdn/projection.rs:125\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":"mistralrs-core/src/gdn/projection.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"642a4fe15e4493759d9fad0dc20766adcd4e166b7d70874823c414daba633799"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): mistralrs-core/src/gguf/normal_config.rs:1480-1494 | mistralrs-core/src/gguf/normal_config.rs:1577-1592 \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 \u0060mistralrs-core/src/gguf/normal_config.rs:1480\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, \u0060mistralrs-core/src/gguf/normal_config.rs:1495\u0060 calls \u0060insert\u0060, \u0060into\u0060 and \u0060mistralrs-core/src/gguf/normal_config.rs:1592\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":"mistralrs-core/src/gguf/normal_config.rs"},"region":{"startLine":1480}}}],"partialFingerprints":{"codehealthFindingId/v1":"1de3d557cd3331bb03246045db83098caf6012ff1d7ecce59eca4853a554856e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/metal/gdn.rs:841-856 | mistralrs-core/src/metal/gdn.rs:880-895 \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 \u0060mistralrs-core/src/metal/gdn.rs:841\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, \u0060mistralrs-core/src/metal/gdn.rs:840\u0060 calls \u0060set_input_buffer\u0060, \u0060Some\u0060 and \u0060mistralrs-core/src/metal/gdn.rs:878\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":"mistralrs-core/src/metal/gdn.rs"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f868bd1be953c683d64c24201094a836bd50618e34c7b8ed08908b7753d168"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/models/flint.rs:817-832 | mistralrs-core/src/models/qwen3_moe.rs:616-631 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/qwen3_moe.rs\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 479 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 \u0060mistralrs-core/src/models/flint.rs:817\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eadbe0beaa89af19057cd1ca19644c18e350355db6ba549e2bfdaf4198a3db2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): mistralrs-core/src/models/gpt_oss.rs:908-923 | mistralrs-core/src/vision_models/muse_glimmer/text.rs:586-600 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gpt_oss.rs\u0060 and \u0060mistralrs-core/src/vision_models/muse_glimmer/text.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 97 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 \u0060mistralrs-core/src/models/gpt_oss.rs:908\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":"mistralrs-core/src/models/gpt_oss.rs"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b7e6d4758ffdfe1b234daf1da5588551a6fbc821cc3f64243ea065cb2c9fdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/models/granite.rs:2069-2084 | mistralrs-core/src/models/smollm3.rs:437-452 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/granite.rs\u0060 and \u0060mistralrs-core/src/models/smollm3.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 260 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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":2069}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f995d326f62876c2e5e1602c86a66e31d1e898211e18285c889e20a27cb574c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/models/qwen2.rs:393-408 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:473-488 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/qwen2.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs\u0060 as WHOLE FILES: this scan already matched 16 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. 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":"mistralrs-core/src/models/qwen2.rs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"797a291f051cb80e5b4fc7550ee6110e2300056ff966472da82ae5afe84cc0f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/ops.rs:1618-1633 | mistralrs-core/src/ops.rs:1870-1885 \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 \u0060mistralrs-core/src/ops.rs:1618\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":1618}}}],"partialFingerprints":{"codehealthFindingId/v1":"285604038415fc1f307619e0cd350dd10900634ddf5946573c0b65a7c571a08f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): mistralrs-core/src/ops.rs:2028-2041 | mistralrs-core/src/ops.rs:2159-2174 \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 \u0060mistralrs-core/src/ops.rs:2159\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":2028}}}],"partialFingerprints":{"codehealthFindingId/v1":"e08f21bec0593a8c07140bd008469b5ffa4b3271306f30d6595c2e04c5cc7ed1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/ops.rs:5791-5806 | mistralrs-core/src/ops.rs:6227-6242 \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 \u0060mistralrs-core/src/ops.rs:5791\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":5791}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2a76767b526cdd49b711e6012ca06116c44761cb8b043c64e176f1bc751c4ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/paged_attention/layers/paged_attention.rs:1442-1459 | mistralrs-core/src/paged_attention/layers/paged_attention.rs:2125-2142 \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":"mistralrs-core/src/paged_attention/layers/paged_attention.rs"},"region":{"startLine":1442}}}],"partialFingerprints":{"codehealthFindingId/v1":"72195a47e8fdb42f36bb8e5830ed914d49fd53403c897c92ee16a11c32612b46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/pipeline/embedding.rs:505-520 | mistralrs-core/src/pipeline/multimodal.rs:1075-1090 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/embedding.rs\u0060 and \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 178 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 \u0060mistralrs-core/src/pipeline/embedding.rs:505\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":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"431d02552b848a715c795afde75f549b0ae8ddf04d89e405a17a1490cfe9b90f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/pipeline/inputs_processor.rs:2215-2230 | mistralrs-core/src/pipeline/inputs_processor.rs:2304-2319 \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 \u0060mistralrs-core/src/pipeline/inputs_processor.rs:2215\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":"mistralrs-core/src/pipeline/inputs_processor.rs"},"region":{"startLine":2215}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d9ba640a8c8121125893aa26b6152cec7c5510db7ee22aee3f34d8f7de8e03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1709-1724 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1745-1760 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1709\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1709}}}],"partialFingerprints":{"codehealthFindingId/v1":"36dc839b08a5d517fc0988575752de8600f613895310dbbeaee780518f5b3543"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2356-2371 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2394-2409 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2356\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":2356}}}],"partialFingerprints":{"codehealthFindingId/v1":"580ce158dd609bd50006de98bd9ac308f63b9c24dccf9b96891e3f4ec8f1a22a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5045-5060 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5456-5471 \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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":5045}}}],"partialFingerprints":{"codehealthFindingId/v1":"93cd0a49489eb9abbec86c1547c1b8e08fa7704035bbd38bd814d3d0a7020b29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6944-6959 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7408-7423 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6944\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":6944}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2cbbbc80fd4ee269003bda72f0aea2d7e664ccfcacf2a2a4407e89a0734d7ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9776-9791 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:10935-10948 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9776\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":9776}}}],"partialFingerprints":{"codehealthFindingId/v1":"1627cd0a7accb051e600f23ffc2c42986c1b1eee2e88afd23e3593a1389b61af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): mistralrs-core/src/pipeline/mod.rs:2434-2449 | mistralrs-core/src/pipeline/mod.rs:3100-3113 \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 \u0060mistralrs-core/src/pipeline/mod.rs:2434\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":"mistralrs-core/src/pipeline/mod.rs"},"region":{"startLine":2434}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8c1767d6716f5039e347ba19dbf47127a4b9cefad0a581ff317b285b895921"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:791-806 | mistralrs-core/src/pipeline/normal.rs:803-818 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:791\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"f40353b0eb0eaabfd60b2b36ed020b124a045abdea49f942e992d4dcaa9de54c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:818-833 | mistralrs-core/src/pipeline/multimodal.rs:888-903 \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 \u0060mistralrs-core/src/pipeline/multimodal.rs:818\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b836ec78a541d66d5315695bb114c3c9b2d826f9ba3f58d5c30cbe1fefdf230"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2736-2751 | mistralrs-core/src/pipeline/normal.rs:2303-2318 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:2736\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, \u0060mistralrs-core/src/pipeline/multimodal.rs:2752\u0060 calls \u0060drop\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs:2319\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2736}}}],"partialFingerprints":{"codehealthFindingId/v1":"c38db6ed057845a1d0f299ea908f84cb8fa93ceb2e85c3eeda95435b5ffdcdfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/pipeline/normal.rs:824-839 | mistralrs-core/src/pipeline/normal.rs:894-909 \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 \u0060mistralrs-core/src/pipeline/normal.rs:824\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":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"df61cd7dbb686ff802b56dc43cb5b724a9aeb7907102524764b235bf8006919a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/tools/parsers/liquid.rs:300-315 | mistralrs-core/src/tools/parsers/liquid.rs:338-353 \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 \u0060mistralrs-core/src/tools/parsers/liquid.rs:300\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":"mistralrs-core/src/tools/parsers/liquid.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ac08268d968507a98cd2d290974de02047b2b2ac5a5cfd0601d1b295d2c363"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/utils/gguf_metadata.rs:329-344 | mistralrs-core/src/utils/gguf_metadata.rs:378-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. 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":"mistralrs-core/src/utils/gguf_metadata.rs"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebbba5dacb49270626e0d42d10f7cebe4451b4c52ab5c605b3fabecec53a210c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/audio_processing.rs:280-295 | mistralrs-core/src/vision_models/gemma4/audio_processing.rs:395-407 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/audio_processing.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/audio_processing.rs\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 43 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 \u0060mistralrs-core/src/vision_models/gemma3n/audio_processing.rs:280\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":"mistralrs-core/src/vision_models/gemma3n/audio_processing.rs"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"341926d51c16ad4f8dee26be59d8e297f117016d91c356ed10d351b8acb91b4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/vision_models/grid_processor.rs:686-701 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:638-653 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 1008 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:686\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f1aa5849a21563fe0f239293e901cac2a860508ee47dbcc870a74daa9e1736"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:634-649 | mistralrs-core/src/vision_models/llama4/inputs_processor.rs:577-592 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/llama4/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 152 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 \u0060mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:634\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":"mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8bd562e71a7fad9269c04673c7cb35a4d70e7fc404a9b6da1d4e77d75330ee3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:468-483 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:420-435 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 288 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 \u0060mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:468\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":"mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3aae697a43d3283a90fc3f616301ed57afe478b072fe94c97c9400ab975f13c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/vision_models/mllama/text.rs:272-287 | mistralrs-core/src/vision_models/mllama/text.rs:631-646 \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 \u0060mistralrs-core/src/vision_models/mllama/text.rs:272\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":"mistralrs-core/src/vision_models/mllama/text.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"87e55540cc2b92e93760bc4584097f4bb4b3c70d8c6a2f152fbd8d22e712b19b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): mistralrs-core/src/vision_models/phi3/mod.rs:561-589 | mistralrs-core/src/vision_models/phi4/image_embedding.rs:184-212 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/phi3/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi4/image_embedding.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 98 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 \u0060mistralrs-core/src/vision_models/phi3/mod.rs:561\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":"mistralrs-core/src/vision_models/phi3/mod.rs"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd478930301747d2069c57f842df1b607339846aba014024358bcb434b319943"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:74-89 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:97-112 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/mod.rs\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 396 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 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"3358b3d0b8797cb0af18f9620396e6e9fc4336561da2e64bab06f0f282694f00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:400-415 | mistralrs-core/src/vision_models/qwen2vl/text.rs:401-416 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/text.rs\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 42 separate duplicated blocks between them, totalling at least 716 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 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:400\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":"mistralrs-core/src/vision_models/qwen2_5_vl/text.rs"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd40ec70f1187010674d4ac09881859fa5e44f5379c0a817006a674d8c7a3f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/text.rs:1545-1560 | mistralrs-core/src/vision_models/qwen4_exp/text.rs:1007-1019 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen4_exp/text.rs\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 7 separate duplicated blocks between them, totalling at least 83 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 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs:1545\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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":1545}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f1881d33e676b333cfd772ffadb4792dde828e5d41757777cd83d3a7bdc6985"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:334-349 | mistralrs-core/src/vision_models/qwen4_exp/text.rs:114-128 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen4_exp/text.rs\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 34 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 \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:334\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":"mistralrs-core/src/vision_models/qwen3_5_moe/text.rs"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9adeaaf35c661380945c74951d475f3de3f7fa4247ae260bf6e220469b5ff71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): mistralrs-core/src/xlora_models/quantized_llama.rs:300-334 | mistralrs-core/src/xlora_models/quantized_llama.rs:551-585 \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":"mistralrs-core/src/xlora_models/quantized_llama.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49aa3a51e1e43d9de0873c48f05751118370c937e98d5e46101024f2a083d90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-flash-attn/src/flash.rs:904-919 | mistralrs-flash-attn/src/flash.rs:961-976 \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 \u0060mistralrs-flash-attn/src/flash.rs:904\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":"mistralrs-flash-attn/src/flash.rs"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"2264b4705c7533e2be4e51e1c767088b4b31e1b926037da6b9533e950c767d06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-flash-attn/src/flash.rs:1049-1064 | mistralrs-flash-attn/src/flash.rs:1108-1123 \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 \u0060mistralrs-flash-attn/src/flash.rs:1049\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":"mistralrs-flash-attn/src/flash.rs"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"860548bda404fe38fef37fbd0c5673a1a81acbf8858c5f0c7fc0051d4f66ef2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:173-188 | mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:192-207 \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 \u0060mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:173\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":"mistralrs-paged-attn/src/cuda/backend/flashinfer.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"eabacebd5a7b84dcb166ec52d5cda7464a5f9df91614eff6898fb96b9c1d3ef6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/mla.rs:133-148 | mistralrs-paged-attn/src/cuda/backend/mla.rs:158-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 \u0060mistralrs-paged-attn/src/cuda/backend/mla.rs:133\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":"mistralrs-paged-attn/src/cuda/backend/mla.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"f76b64d2e5d777f10d20302c10271cab4e4d1f433ecf36c6e5b35a54f57b7c94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:351-365 | mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:404-419 \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 \u0060mistralrs-paged-attn/src/cuda/backend/paged_attention.rs: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":"mistralrs-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f8dc7fb258c318016822dfdbfbdd92bd52b6573c1073c1448208e0c16e93cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/deepgemm.rs:207-222 | mistralrs-quant/src/blockwise_fp8/ops.rs:1369-1382 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/blockwise_fp8/deepgemm.rs\u0060 and \u0060mistralrs-quant/src/blockwise_fp8/ops.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 65 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. 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":"mistralrs-quant/src/blockwise_fp8/deepgemm.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e57475778a0cd8a8d48fa4cfed3ffe9ca677641835c87c46d2cf2be8e99970"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:552-567 | mistralrs-quant/src/blockwise_fp8/ops.rs:691-706 \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 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:552\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce77e94177ec47f7a52819d2cec047618caba26a29c54e7159778039fc363cd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:570-585 | mistralrs-quant/src/blockwise_fp8/ops.rs:713-728 \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 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:570\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf6590fbcaf7bf43a61bf718ca7220d7e31ae7982eda19d37796b45a817e8a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-quant/src/metal_kernels/mod.rs:1607-1622 | mistralrs-quant/src/metal_kernels/mod.rs:1686-1701 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:1607\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":1607}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6256f2a1dae7eeeade3ce9c0f5d40503bbff9041d41b5e7cbc67c064ad63708"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-quant/src/mxfp4/ops.rs:135-150 | mistralrs-quant/src/mxfp4/ops.rs:196-211 \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 \u0060mistralrs-quant/src/mxfp4/ops.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/mxfp4/ops.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"e43ff0f48bc4bcb03b4b6853fa03e968d7da451a5f33840faba4a3373cef0776"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-server-core/src/image_generation.rs:86-101 | mistralrs-server-core/src/speech_generation.rs:214-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 \u0060mistralrs-server-core/src/image_generation.rs:86\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 \u0060oairequest\u0060 to \u0060ImageGenerationRequest\u0060 in one and \u0060SpeechGenerationRequest\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":"mistralrs-server-core/src/image_generation.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bf858a244347bbfaedc10ff91e56ec12d2ffceb28dae4e35c202dd034b64828"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 2): mistralrs-server-core/src/mistralrs_for_server_builder.rs:845-860 | mistralrs-server-core/src/mistralrs_for_server_builder.rs:1069-1081 \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 \u0060mistralrs-server-core/src/mistralrs_for_server_builder.rs:845\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":"mistralrs-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"df4ac26d616bda287acbedc2f7851588c5ff01d2ca2130573d0b7c94bddbfb9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): mistralrs-server-core/src/responses.rs:2364-2379 | mistralrs-server-core/src/responses.rs:2440-2454 \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 \u0060mistralrs-server-core/src/responses.rs:2364\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, \u0060mistralrs-server-core/src/responses.rs:2437\u0060 calls \u0060request_cancel\u0060, \u0060mark_cancelled\u0060 and \u0060mistralrs-server-core/src/responses.rs:2363\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":"mistralrs-server-core/src/responses.rs"},"region":{"startLine":2364}}}],"partialFingerprints":{"codehealthFindingId/v1":"a63990313dd69b3bbc1956abae21078ffe50a81bce1ec128f23974897f3c820d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-server-core/src/video.rs:240-255 | mistralrs-server-core/src/video.rs:264-279 \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":"mistralrs-server-core/src/video.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4cc0dd401d2cc6b9d00bd2975ff4990c3464d18edd5e76db5aef6fc45241556"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs/src/agent.rs:253-268 | mistralrs/src/agent.rs:330-345 \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 \u0060mistralrs/src/agent.rs:253\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":"mistralrs/src/agent.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7587c7b28bd9c8443185a658f905a58c7854f59361ade8cf7bdf4c574067e13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 19): mistralrs-core/src/models/gemma.rs:231-243 | mistralrs-core/src/models/gemma2.rs:279-291 | mistralrs-core/src/models/gpt_oss.rs:308-320 | mistralrs-core/src/models/hunyuan_v1_dense.rs:254-266 | mistralrs-core/src/models/hunyuan_v1_moe.rs:440-452 | mistralrs-core/src/models/llama.rs:139-151 | mistralrs-core/src/models/mistral.rs:279-291 | mistralrs-core/src/models/mixtral.rs:215-227 | mistralrs-core/src/models/phi2.rs:327-341 | mistralrs-core/src/models/phi3.rs:218-230 | mistralrs-core/src/models/phi3_5_moe.rs:245-257 | mistralrs-core/src/models/qwen2.rs:309-321 | mistralrs-core/src/models/qwen3.rs:264-276 | mistralrs-core/src/models/qwen3_moe.rs:267-279 | mistralrs-core/src/models/qwen3_next.rs:347-359 | mistralrs-core/src/models/smollm3.rs:156-168 | mistralrs-core/src/models/starcoder2.rs:291-303 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:114-126 | mistralrs-core/src/vision_models/voxtral/mod.rs:190-202 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 707 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 \u0060mistralrs-core/src/models/gemma.rs:231\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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f48786e466d2aa773a0ac1f1f3f4ab31b6dad0529638a8ddca632ca2ac1ece"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 18): mistralrs-core/src/models/flint.rs:397-408 | mistralrs-core/src/models/gemma2.rs:249-263 | mistralrs-core/src/models/gpt_oss.rs:282-293 | mistralrs-core/src/models/hunyuan_v1_dense.rs:228-239 | mistralrs-core/src/models/hunyuan_v1_moe.rs:414-425 | mistralrs-core/src/models/llama.rs:110-124 | mistralrs-core/src/models/mistral.rs:250-264 | mistralrs-core/src/models/mixtral.rs:186-200 | mistralrs-core/src/models/phi3.rs:189-203 | mistralrs-core/src/models/phi3_5_moe.rs:216-230 | mistralrs-core/src/models/qwen2.rs:280-294 | mistralrs-core/src/models/qwen3.rs:235-249 | mistralrs-core/src/models/qwen3_moe.rs:238-252 | mistralrs-core/src/models/qwen3_next.rs:322-333 | mistralrs-core/src/models/smollm3.rs:127-141 | mistralrs-core/src/models/starcoder2.rs:262-276 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:84-98 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:253-267 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 190 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 \u0060mistralrs-core/src/models/flint.rs:397\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b048dea77e5124100e8b1c732f7fde356324cff8d168f572292376c8aa49940"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 12): mistralrs-core/src/models/glm4.rs:249-263 | mistralrs-core/src/models/glm4_moe.rs:317-328 | mistralrs-core/src/models/granite.rs:1578-1589 | mistralrs-core/src/vision_models/muse_glimmer/text.rs:277-288 | mistralrs-core/src/vision_models/phi3/mod.rs:280-294 | mistralrs-core/src/vision_models/phi4/mod.rs:149-163 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:244-255 | mistralrs-core/src/vision_models/qwen2vl/text.rs:245-256 | mistralrs-core/src/vision_models/qwen3_5/text.rs:369-380 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:237-248 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:241-255 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:347-358 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/glm4.rs\u0060 and \u0060mistralrs-core/src/models/glm4_moe.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 359 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 \u0060mistralrs-core/src/models/glm4.rs:249\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":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c836ece25e8f95f198085f2ae056c105d5462382e9925d4a415b3a8f8bc4560"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 11): mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:676-690 | mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs:444-458 | mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:656-670 | mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:698-712 | mistralrs-core/src/vision_models/llama4/inputs_processor.rs:599-613 | mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:467-481 | mistralrs-core/src/vision_models/mllama/inputs_processor.rs:649-663 | mistralrs-core/src/vision_models/muse_glimmer/inputs_processor.rs:1088-1102 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:959-973 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1524-1538 | mistralrs-core/src/vision_models/voxtral/inputs_processor.rs:349-363 \u2014 \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs\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 4 separate duplicated blocks between them, totalling at least 75 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 \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:676\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, \u0060mistralrs-core/src/vision_models/voxtral/inputs_processor.rs:348\u0060 calls \u0060Some\u0060 and \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:675\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":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45173a917eed9fb471f2606f665f4ce4488335561cfa1eac083f11f21a5d927"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 9): mistralrs-paged-attn/src/cuda/backend/mla.rs:132-145 | mistralrs-paged-attn/src/cuda/backend/mla.rs:157-170 | mistralrs-paged-attn/src/cuda/backend/mla.rs:182-195 | mistralrs-paged-attn/src/cuda/backend/mla.rs:454-467 | mistralrs-paged-attn/src/cuda/backend/mla.rs:513-526 | mistralrs-paged-attn/src/cuda/backend/mla.rs:572-585 | mistralrs-paged-attn/src/cuda/backend/mla.rs:770-784 | mistralrs-paged-attn/src/cuda/backend/mla.rs:808-822 | mistralrs-paged-attn/src/cuda/backend/mla.rs:846-860 \u2014 all 9 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 \u0060mistralrs-paged-attn/src/cuda/backend/mla.rs:132\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, \u0060mistralrs-paged-attn/src/cuda/backend/mla.rs:453\u0060 calls \u0060slice_ptr\u0060, \u0060start_offset\u0060 and \u0060mistralrs-paged-attn/src/cuda/backend/mla.rs:770\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":"mistralrs-paged-attn/src/cuda/backend/mla.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"4541f4d2a15ac31a1221f575b08536e1337576ac1f7ceb5ee6ed05ff642ec230"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 8): mistralrs-core/src/xlora_models/gemma.rs:666-680 | mistralrs-core/src/xlora_models/gemma2.rs:717-731 | mistralrs-core/src/xlora_models/llama.rs:492-506 | mistralrs-core/src/xlora_models/mistral.rs:662-676 | mistralrs-core/src/xlora_models/mixtral.rs:792-806 | mistralrs-core/src/xlora_models/phi2.rs:632-646 | mistralrs-core/src/xlora_models/phi3.rs:619-632 | mistralrs-core/src/xlora_models/starcoder2.rs:647-661 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 498 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 \u0060mistralrs-core/src/xlora_models/gemma.rs:666\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"be200d3ae6d7cb184abb7bd4718bd8270921b31d2ad05c051d64f579fe0c53da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 7): mistralrs-core/src/models/flint.rs:849-863 | mistralrs-core/src/models/glm4.rs:516-530 | mistralrs-core/src/models/hunyuan_v1_dense.rs:481-495 | mistralrs-core/src/models/hunyuan_v1_moe.rs:975-989 | mistralrs-core/src/models/mistral.rs:522-536 | mistralrs-core/src/models/qwen3.rs:475-489 | mistralrs-core/src/models/qwen3_moe.rs:655-669 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/glm4.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 240 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 \u0060mistralrs-core/src/models/flint.rs:849\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"319fe1eb97591fdfb3c2127370c449bbd66eeb1b9b7153952a0bc072d7aa0cc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 7): mistralrs-core/src/models/glm4.rs:497-511 | mistralrs-core/src/models/hunyuan_v1_dense.rs:462-476 | mistralrs-core/src/models/hunyuan_v1_moe.rs:956-970 | mistralrs-core/src/models/mistral.rs:503-517 | mistralrs-core/src/models/mixtral.rs:458-472 | mistralrs-core/src/models/qwen2.rs:488-502 | mistralrs-core/src/models/qwen3.rs:456-470 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/glm4.rs\u0060 and \u0060mistralrs-core/src/models/hunyuan_v1_dense.rs\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 508 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 \u0060mistralrs-core/src/models/glm4.rs:497\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":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c83fb242234d758f1baa274acd5b52f63dca6f716546c4519b140188fe714e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 6): mistralrs-core/src/models/gemma.rs:133-147 | mistralrs-core/src/models/mixtral.rs:117-131 | mistralrs-core/src/models/qwen2.rs:205-219 | mistralrs-core/src/models/starcoder2.rs:193-207 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:162-176 | mistralrs-core/src/vision_models/qwen2vl/text.rs:163-177 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/mixtral.rs\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 329 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 \u0060mistralrs-core/src/models/gemma.rs:133\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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"21bafac879636ba05a9d7435dbd7cec964e7b31f336fe8e115b870473cf155ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 6): mistralrs-paged-attn/src/metal/kernels/mod.rs:441-455 | mistralrs-paged-attn/src/metal/kernels/mod.rs:557-571 | mistralrs-paged-attn/src/metal/kernels/mod.rs:582-596 | mistralrs-paged-attn/src/metal/kernels/mod.rs:701-715 | mistralrs-paged-attn/src/metal/kernels/mod.rs:726-740 | mistralrs-paged-attn/src/metal/kernels/mod.rs:831-844 \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 \u0060mistralrs-paged-attn/src/metal/kernels/mod.rs:831\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, \u0060mistralrs-paged-attn/src/metal/kernels/mod.rs:572\u0060 calls \u0060set_input_buffer\u0060, \u0060Some\u0060 and \u0060mistralrs-paged-attn/src/metal/kernels/mod.rs:456\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":"mistralrs-paged-attn/src/metal/kernels/mod.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba941dce323546cf8dc736c1b7892c4cf184e19674e08d4ae644edb38394d890"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 6): mistralrs/src/model_builder_trait.rs:548-562 | mistralrs/src/model_builder_trait.rs:625-639 | mistralrs/src/model_builder_trait.rs:775-789 | mistralrs/src/model_builder_trait.rs:928-942 | mistralrs/src/model_builder_trait.rs:1098-1112 | mistralrs/src/model_builder_trait.rs:1552-1566 \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 \u0060mistralrs/src/model_builder_trait.rs:548\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":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f4305ba8a22acfc13c3737bc35902fb2def1ed03f275d19790ba673da06ebc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 5): mistralrs-core/src/embedding_models/embedding_gemma.rs:112-126 | mistralrs-core/src/models/gemma.rs:92-106 | mistralrs-core/src/models/gemma2.rs:125-139 | mistralrs-core/src/vision_models/gemma3/text.rs:87-100 | mistralrs-core/src/vision_models/gemma3n/text.rs:315-329 \u2014 \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma.rs\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 133 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 \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs:112\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":"mistralrs-core/src/embedding_models/embedding_gemma.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0fbb4fac061c372756378bec4e7b09151ba7c74ae1911bff5dd1d71de039a65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): mistralrs-core/src/pipeline/multimodal.rs:1186-1200 | mistralrs-core/src/pipeline/multimodal.rs:1236-1250 | mistralrs-core/src/pipeline/normal.rs:1238-1252 | mistralrs-core/src/pipeline/normal.rs:1288-1302 | mistralrs-core/src/pipeline/normal.rs:1371-1385 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3eefbc11acef5294e4fa13cb5be8b2257fbb7934e9d50113c0c5737f21ba67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): mistralrs-core/src/vision_models/grid_processor.rs:1308-1322 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:222-236 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:512-526 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:788-802 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1120-1134 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:1308\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1308}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cffbfa78467d5960eec3c1b04bec81a0dc0d201ecc7f7a1d4f716a62c61d2c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): mistralrs-core/src/distributed.rs:204-218 | mistralrs-core/src/distributed.rs:250-264 | mistralrs-core/src/distributed.rs:290-304 | mistralrs-core/src/distributed.rs:330-344 \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 \u0060mistralrs-core/src/distributed.rs:204\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":"mistralrs-core/src/distributed.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cdac06c5f120b4b4feae1dbbb0add705f9f7e798a7330491595485555a08d9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): mistralrs-core/src/embedding_models/qwen3_embedding.rs:360-374 | mistralrs-core/src/models/hunyuan_v1_dense.rs:439-453 | mistralrs-core/src/models/hunyuan_v1_moe.rs:933-947 | mistralrs-core/src/models/qwen3.rs:433-447 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/models/hunyuan_v1_dense.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 119 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 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:360\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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"91cfc2af926d18678fc4e2df59638a13126e62fb93db72c3cb0ad65c2cd6dc5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 4): mistralrs-core/src/models/deepseek2.rs:624-638 | mistralrs-core/src/models/deepseek3.rs:687-701 | mistralrs-core/src/models/glm4_moe.rs:529-542 | mistralrs-core/src/models/glm4_moe_lite.rs:633-647 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:624\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee9633971b2911b1c4d42939e49be7c51c47dbc536f24e23b301db413036e8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): mistralrs-core/src/models/deepseek2.rs:991-1005 | mistralrs-core/src/models/deepseek2.rs:1031-1045 | mistralrs-core/src/models/glm4_moe_lite.rs:1006-1020 | mistralrs-core/src/models/glm4_moe_lite.rs:1049-1063 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/glm4_moe_lite.rs\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 816 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 \u0060mistralrs-core/src/models/deepseek2.rs:991\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b256b788e4886f7909ba2106a06bd8d42c5b31d6adad16ab6125aad0d02512"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 4): mistralrs-core/src/models/flint.rs:239-250 | mistralrs-core/src/models/glm4_moe.rs:178-192 | mistralrs-core/src/models/hunyuan_v1_dense.rs:109-120 | mistralrs-core/src/models/hunyuan_v1_moe.rs:286-297 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/glm4_moe.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 188 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 \u0060mistralrs-core/src/models/glm4_moe.rs:178\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7380a1b6069f35ec8b2ff7efaf9ff1a17e46115d18733b61155a7dc589ec8c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): mistralrs-core/src/models/glm4.rs:185-199 | mistralrs-core/src/models/mixtral.rs:128-142 | mistralrs-core/src/models/phi3_5_moe.rs:155-169 | mistralrs-core/src/models/starcoder2.rs:204-218 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/glm4.rs\u0060 and \u0060mistralrs-core/src/models/mixtral.rs\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 356 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 \u0060mistralrs-core/src/models/glm4.rs:185\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":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"08eb4840f99e4188f87c90275eb1780bcd2d576887e9925d9c1c0e0f6cf5518a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): mistralrs-core/src/models/mixtral.rs:482-496 | mistralrs-core/src/vision_models/phi3/mod.rs:1276-1291 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:464-478 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:585-599 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/mixtral.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi3/mod.rs\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 327 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 \u0060mistralrs-core/src/models/mixtral.rs:482\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":"mistralrs-core/src/models/mixtral.rs"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e71f342aa4d2e72fc6a86b54a0115452fb8125c047ba53e8c9244201aed849"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6872-6886 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7314-7328 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7782-7796 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8304-8318 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6872\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":6872}}}],"partialFingerprints":{"codehealthFindingId/v1":"16b5bcaa96b0a16ca0e6993523ee954bce787c0e8d31298cc4ea7b33a0a39d5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:658-672 | mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:1631-1645 | mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:678-692 | mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:448-462 \u2014 \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/inputs_processor.rs\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 6 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 \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:658\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":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d47ad6e43e5661872934465bd6e59ae0c73779c81dd93fd727c430289b6614c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 4): mistralrs-core/src/vision_models/qwen3_5/mod.rs:213-227 | mistralrs-core/src/vision_models/qwen3_5/mod.rs:275-288 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:196-210 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:258-271 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs\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 24 separate duplicated blocks between them, totalling at least 425 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 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs:213\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":"mistralrs-core/src/vision_models/qwen3_5/mod.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a98d835917752df8ba84c32ede0b617353fca99b745f37c445dd398e2f664f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 4): mistralrs-core/src/xlora_models/gemma.rs:375-388 | mistralrs-core/src/xlora_models/mistral.rs:371-384 | mistralrs-core/src/xlora_models/mixtral.rs:498-512 | mistralrs-core/src/xlora_models/starcoder2.rs:360-373 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/mistral.rs\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 538 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 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, \u0060mistralrs-core/src/xlora_models/gemma.rs:391\u0060 calls \u0060clone\u0060 and \u0060mistralrs-core/src/xlora_models/mistral.rs:387\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"546d8373489a235620e4eb7a97c38b3b75c8523ebfa455c819ef12e9966bd0fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): mistralrs-core/src/xlora_models/llama.rs:353-367 | mistralrs-core/src/xlora_models/mistral.rs:333-347 | mistralrs-core/src/xlora_models/mixtral.rs:460-474 | mistralrs-core/src/xlora_models/phi3.rs:298-312 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/llama.rs\u0060 and \u0060mistralrs-core/src/xlora_models/mistral.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 274 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 \u0060mistralrs-core/src/xlora_models/llama.rs:353\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":"mistralrs-core/src/xlora_models/llama.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"7572f33e9526b25464993de48e4f0edb44834742671f74f5a07e64a5751e5b58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): mistralrs-core/src/xlora_models/mistral.rs:522-536 | mistralrs-core/src/xlora_models/mixtral.rs:652-666 | mistralrs-core/src/xlora_models/phi2.rs:496-510 | mistralrs-core/src/xlora_models/phi3.rs:472-486 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/mistral.rs\u0060 and \u0060mistralrs-core/src/xlora_models/mixtral.rs\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 787 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 \u0060mistralrs-core/src/xlora_models/mistral.rs:522\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":"mistralrs-core/src/xlora_models/mistral.rs"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f7915e7391eb1172c998c132de8c020a02bfa00e381a62ed2cb4e7584a724de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): mistralrs-core/src/models/mistral.rs:536-550 | mistralrs-core/src/models/mixtral.rs:491-505 | mistralrs-core/src/models/starcoder2.rs:492-506 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/mistral.rs\u0060 and \u0060mistralrs-core/src/models/mixtral.rs\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 619 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 \u0060mistralrs-core/src/models/mistral.rs:536\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, \u0060mistralrs-core/src/models/mixtral.rs:490\u0060 calls \u0060clone\u0060 and \u0060mistralrs-core/src/models/starcoder2.rs:491\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":"mistralrs-core/src/models/mistral.rs"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fb8746bbeb28996470450cb633f4b536cc0fa6b49368d7fc9cc5d3711ca2158"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): mistralrs-core/src/models/mixtral.rs:407-421 | mistralrs-core/src/models/phi3.rs:409-423 | mistralrs-core/src/models/qwen2.rs:434-448 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/mixtral.rs\u0060 and \u0060mistralrs-core/src/models/phi3.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 337 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 \u0060mistralrs-core/src/models/mixtral.rs:407\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":"mistralrs-core/src/models/mixtral.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd45c77109f1eecdca3ab1b5c64053a044c9bdf80f62529eb8b804ec8f043646"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): mistralrs-core/src/models/phi3.rs:340-354 | mistralrs-core/src/vision_models/phi3/mod.rs:431-445 | mistralrs-core/src/vision_models/phi4/mod.rs:260-274 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/phi3.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi3/mod.rs\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 638 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 \u0060mistralrs-core/src/models/phi3.rs:340\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":"mistralrs-core/src/models/phi3.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc699a95dc984a761bca5d137bb3d97569ef18e3349cbb0b2469289782e6df56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): mistralrs-core/src/models/phi3.rs:504-518 | mistralrs-core/src/models/phi3_5_moe.rs:576-590 | mistralrs-core/src/vision_models/phi3/mod.rs:1285-1300 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/phi3.rs\u0060 and \u0060mistralrs-core/src/models/phi3_5_moe.rs\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 343 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 \u0060mistralrs-core/src/models/phi3.rs:504\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":"mistralrs-core/src/models/phi3.rs"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"08cc50c051555cac4f21b95866cf5c5992af3903dc605cd002b78d0c8afac4c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201321 lines \u00D7 3): mistralrs-core/src/models/quantized_llama.rs:86-106 | mistralrs-core/src/xlora_models/quantized_llama.rs:214-234 | mistralrs-core/src/xlora_models/quantized_phi3.rs:167-183 \u2014 \u0060mistralrs-core/src/models/quantized_llama.rs\u0060 and \u0060mistralrs-core/src/xlora_models/quantized_llama.rs\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 4 separate duplicated blocks between them, totalling at least 58 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 \u0060mistralrs-core/src/xlora_models/quantized_phi3.rs:167\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":"mistralrs-core/src/models/quantized_llama.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"6acdb1bfa6f7ef8b45354e601bd2d3071cc3eedc755125126f09f5e39fe3069a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): mistralrs-core/src/pipeline/ggml.rs:138-152 | mistralrs-core/src/pipeline/gguf.rs:348-362 | mistralrs-core/src/pipeline/normal.rs:483-497 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/ggml.rs\u0060 and \u0060mistralrs-core/src/pipeline/gguf.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 75 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 \u0060mistralrs-core/src/pipeline/gguf.rs:348\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":"mistralrs-core/src/pipeline/ggml.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"1747d8fe605359b8dea6a807d03efef13fc08d9985b05f880057468dbbface21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1367-1381 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3147-3161 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3496-3510 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1367\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1367}}}],"partialFingerprints":{"codehealthFindingId/v1":"32dbc4340087ff6b45cdbbb9927d610104f1098ab6cf8f3c2477580f509b6c74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 3): mistralrs-core/src/sampler.rs:1175-1189 | mistralrs-core/src/sampler.rs:1255-1269 | mistralrs-core/src/sampler.rs:1872-1884 \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 \u0060mistralrs-core/src/sampler.rs:1175\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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"db26f470d35ea94029967adc91d7fba7ba08003817199a3ec2dfcd52962588cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): mistralrs-core/src/utils/gguf_metadata.rs:313-327 | mistralrs-core/src/utils/gguf_metadata.rs:346-360 | mistralrs-core/src/utils/gguf_metadata.rs:362-376 \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. 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":"mistralrs-core/src/utils/gguf_metadata.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"aee2468778d22ea604c00036dcf5ef30ee4c65db93413f024350a4b6f6eb0024"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): mistralrs-core/src/vision_models/gemma3n/audio_processing.rs:127-141 | mistralrs-core/src/vision_models/gemma4/audio_processing.rs:337-351 | mistralrs-core/src/vision_models/voxtral/audio_processing.rs:91-104 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/audio_processing.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/audio_processing.rs\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 43 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":"mistralrs-core/src/vision_models/gemma3n/audio_processing.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f71b62c68e5e2b23d0b28b4b19af677a9da17a9af9242d4ceb9ee9415d29f71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): mistralrs-core/src/vision_models/grid_processor.rs:863-877 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:38-52 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:586-600 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:863\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3d9b34e8f8da832e45f29dc92df4b92446b4f815d98cef9109bda4f2142f53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 3): mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:640-654 | mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:575-587 | mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:409-423 \u2014 \u0060mistralrs-core/src/vision_models/idefics3/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs\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 41 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 \u0060mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:575\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":"mistralrs-core/src/vision_models/idefics3/inputs_processor.rs"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"c094c8ba19df272e5586eb178b7640bca1b71882153341aaefebeb1e90007473"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:546-560 | mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:563-577 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:421-435 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/vision.rs\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 15 separate duplicated blocks between them, totalling at least 182 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 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:546\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":"mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0a496776b0754add45dbd2540348b439bad3beb439f71c815593df6e4dfc3b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): mistralrs-core/src/xlora_models/mistral.rs:195-209 | mistralrs-core/src/xlora_models/mixtral.rs:108-122 | mistralrs-core/src/xlora_models/phi3.rs:85-99 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/mistral.rs\u0060 and \u0060mistralrs-core/src/xlora_models/mixtral.rs\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 787 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 \u0060mistralrs-core/src/xlora_models/mistral.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/xlora_models/mistral.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3f47bc57c3783bf11f4256b3bcc4fea3d664faff2b40cce0ea96ffe6672348"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): mistralrs-quant/src/blockwise_fp8/ops.rs:208-222 | mistralrs-quant/src/blockwise_fp8/ops.rs:230-244 | mistralrs-quant/src/blockwise_fp8/ops.rs:252-266 \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 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:208\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c8ef97ed4f61d1f440655c16cc06f3dbc10a4dd06f2aada514a0c081ad6198d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): mistralrs-quant/src/cutile/nvfp4_gemv.rs:306-320 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1135-1149 | mistralrs-quant/src/nvfp4/decode.rs:107-121 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/nvfp4_gemv.rs\u0060 and \u0060mistralrs-quant/src/cutile/nvfp4_matmul.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 98 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 \u0060mistralrs-quant/src/cutile/nvfp4_gemv.rs:306\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, \u0060mistralrs-quant/src/cutile/nvfp4_matmul.rs:1134\u0060 calls \u0060unwrap_or\u0060 and \u0060mistralrs-quant/src/nvfp4/decode.rs:106\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":"mistralrs-quant/src/cutile/nvfp4_gemv.rs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83288d0e2162af7954187e70e4aa7c0ff0bd30f4f17b7fd68303b3602fc63c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): mistralrs-quant/src/gemv/mod.rs:384-398 | mistralrs-quant/src/gemv/mod.rs:455-469 | mistralrs-quant/src/gemv/mod.rs:526-540 \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 \u0060mistralrs-quant/src/gemv/mod.rs:384\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":"mistralrs-quant/src/gemv/mod.rs"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da486c01653851b7add4aaee19c6f9390c82cd3649e7494a76032e57a5fb94d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): mistralrs-quant/src/gguf/fast_mmq.rs:909-924 | mistralrs-quant/src/gguf/fast_mmq.rs:1110-1125 | mistralrs-quant/src/gguf/fast_mmq.rs:1378-1393 \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":"mistralrs-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d36d4d0fcb87e1779922bd0a6bae03b5ae1a4bffb1ad87a424bb66786f9d3f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-cli/src/commands/config.rs:81-95 | mistralrs-cli/src/commands/config.rs:245-259 \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 \u0060mistralrs-cli/src/commands/config.rs:81\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, \u0060mistralrs-cli/src/commands/config.rs:97\u0060 calls \u0060Some\u0060, \u0060with_default_model_id\u0060 and \u0060mistralrs-cli/src/commands/config.rs:261\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":"mistralrs-cli/src/commands/config.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"99fc786e155853acee9f72a7d45fa7de19ee4d91e38dabba888a41d75d4b24c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/attention/backends/cpu/neon.rs:372-386 | mistralrs-core/src/attention/backends/cpu/neon.rs:611-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060mistralrs-core/src/attention/backends/cpu/neon.rs:372\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":"mistralrs-core/src/attention/backends/cpu/neon.rs"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"f03184c8d151c30a0ae63353ed29aae85d1bc6c70a70d8ad0dea4dee90c778c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/distributed.rs:650-664 | mistralrs-core/src/distributed.rs:692-706 \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":"mistralrs-core/src/distributed.rs"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"e481c3c143815682eec4aff8c0d154e5f696513334b2ccc2a9bac1bba809012c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/engine/add_request.rs:1158-1172 | mistralrs-core/src/engine/add_request.rs:1195-1209 \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 \u0060request\u0060 to \u0060TokenizationRequest\u0060 in one and \u0060DetokenizationRequest\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":"mistralrs-core/src/engine/add_request.rs"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f88200ee48d60d03046a763cfde82d8058898a5bd37dbf5712aebdaeee8eb7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/engine/agentic_loop.rs:1491-1505 | mistralrs-core/src/engine/agentic_loop.rs:1558-1572 \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 \u0060mistralrs-core/src/engine/agentic_loop.rs:1491\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":"mistralrs-core/src/engine/agentic_loop.rs"},"region":{"startLine":1491}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b369c3055bc46e76b4e1bb80efaab7b4dab37137492c83808623b15755d076"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/gguf/normal_config.rs:710-724 | mistralrs-core/src/gguf/normal_config.rs:899-913 \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":"mistralrs-core/src/gguf/normal_config.rs"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a61ea270816fa7f143761f4915362999ae62aca51de9fbc9043399451b69935"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/metal/gdn.rs:223-237 | mistralrs-core/src/metal/gdn.rs:328-342 \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 \u0060mistralrs-core/src/metal/gdn.rs:223\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":"mistralrs-core/src/metal/gdn.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"d115e183bf304b87bf1a6c5539151d989263ea98b3cf881b1277c32f3a49494b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/metal/gdn.rs:799-813 | mistralrs-core/src/metal/gdn.rs:889-903 \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, \u0060mistralrs-core/src/metal/gdn.rs:888\u0060 calls \u0060set_bytes\u0060 and \u0060mistralrs-core/src/metal/gdn.rs: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":"mistralrs-core/src/metal/gdn.rs"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"105135480504cbb8fbebbafde5dfc916387cdc37e64573f9d978918a4c5e5566"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/model_loader.rs:851-865 | mistralrs-core/src/toml_selector.rs:1129-1143 \u2014 before extracting anything, compare \u0060mistralrs-core/src/model_loader.rs\u0060 and \u0060mistralrs-core/src/toml_selector.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 199 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 \u0060mistralrs-core/src/model_loader.rs:851\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":"mistralrs-core/src/model_loader.rs"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b04703628b738683db802fa47d60a1dce208e13fc1caa303a919d79d8da0418"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): mistralrs-core/src/models/deepseek2.rs:1007-1019 | mistralrs-core/src/models/deepseek3.rs:1069-1083 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:1007\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c2ed976a9d72b1bd49f3474e57113e8275d96c5d3305bd8bd21c41bff898299"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): mistralrs-core/src/models/gemma2.rs:380-393 | mistralrs-core/src/vision_models/gemma3/text.rs:390-404 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma2.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma3/text.rs\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 411 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 \u0060mistralrs-core/src/models/gemma2.rs:380\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":"mistralrs-core/src/models/gemma2.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"8579f2bd98f9f943eafb0b4c340aa16ae8cc6cf5c0a2cd3208efcc913cf73dca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/models/granite.rs:1051-1065 | mistralrs-core/src/models/granite.rs:1222-1236 \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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7f08e6b317e62eee8043f47a5cc1d32121ee889e7efc5a2689275decd071157"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/models/granite.rs:2138-2152 | mistralrs-core/src/models/qwen3_next.rs:929-943 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/granite.rs\u0060 and \u0060mistralrs-core/src/models/qwen3_next.rs\u0060 as WHOLE FILES: this scan already matched 14 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. 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 \u0060mistralrs-core/src/models/granite.rs:2138\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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":2138}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da15c544d2f929b1af480ad8f6d83ff4c2b2017abf7c774b344fc7f9c194b7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/models/lfm2.rs:658-672 | mistralrs-core/src/models/lfm3.rs:661-675 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/lfm2.rs\u0060 and \u0060mistralrs-core/src/models/lfm3.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 402 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":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a117a6415265331736914d77b5a79c75517f1fc0ffa50ccd4d7325e77400ec7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): mistralrs-core/src/models/mixtral.rs:286-299 | mistralrs-core/src/xlora_models/mixtral.rs:363-377 \u2014 \u0060mistralrs-core/src/models/mixtral.rs\u0060 and \u0060mistralrs-core/src/xlora_models/mixtral.rs\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 12 separate duplicated blocks between them, totalling at least 134 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 \u0060mistralrs-core/src/xlora_models/mixtral.rs:363\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":"mistralrs-core/src/models/mixtral.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"3804b5599dfc72b85a50e747094d97be040b9a3be176f7f1c728f3be641c1242"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): mistralrs-core/src/models/phi2.rs:259-272 | mistralrs-core/src/xlora_models/phi2.rs:236-250 \u2014 \u0060mistralrs-core/src/models/phi2.rs\u0060 and \u0060mistralrs-core/src/xlora_models/phi2.rs\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 7 separate duplicated blocks between them, totalling at least 85 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 \u0060mistralrs-core/src/models/phi2.rs:259\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":"mistralrs-core/src/models/phi2.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a2cacd1336bc5461df19a4b5699131d239bd9c3a8c3e477c72cb65f544326e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/ops.rs:2085-2099 | mistralrs-core/src/ops.rs:2242-2256 \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 \u0060mistralrs-core/src/ops.rs:2085\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, \u0060mistralrs-core/src/ops.rs:2240\u0060 calls \u0060drop\u0060 and \u0060mistralrs-core/src/ops.rs:2083\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":2085}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8ece9e918bcb4409c2cc251846294d9894ed9017f3dcce604d0cc74d9973199"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/paged_attention/encoder_cache.rs:227-241 | mistralrs-core/src/paged_attention/encoder_cache.rs:360-374 \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 \u0060mistralrs-core/src/paged_attention/encoder_cache.rs:227\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":"mistralrs-core/src/paged_attention/encoder_cache.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e406c102948f10bee9385dd17154a3432c4451c8e03ac4900ed7fbad0f74d61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3180-3194 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3529-3543 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3180\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":3180}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f6f1a92d3d344c3bde82546e623c764e2ce571c60c2c995c5d3c075f4bd373"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1004-1018 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2384-2398 \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 \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1004\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":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":1004}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d7f1b92d27957ded7e0182dc9a733b83763a2cd211c39aeea5607a7a038d6b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1463-1477 | mistralrs-core/src/pipeline/normal.rs:1506-1520 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:1463\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1463}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0066d67f31ffba48689e4b65d4523fdf60db210a252e70a69fcc5900314629"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1745-1759 | mistralrs-core/src/pipeline/normal.rs:1615-1629 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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. 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1745}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd22cabb1a34d5ddf81f2490b123ddb9be279eab733bea3a52039fac31980979"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/audio.rs:545-559 | mistralrs-core/src/vision_models/gemma4/audio.rs:612-624 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/audio.rs\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 20 separate duplicated blocks between them, totalling at least 352 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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc0b6bc84144cfba764b3d5ef51de7c8962bdae235fe51644c278edb3edf5c4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/text.rs:1367-1381 | mistralrs-core/src/vision_models/gemma3n/text.rs:1391-1405 \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 \u0060mistralrs-core/src/vision_models/gemma3n/text.rs:1367\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":"mistralrs-core/src/vision_models/gemma3n/text.rs"},"region":{"startLine":1367}}}],"partialFingerprints":{"codehealthFindingId/v1":"034571bf94bb3eae9e334e4f8ebed0db6a8ce889e0f1a2fc8b16ded965089a11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:258-272 | mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:523-537 \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 \u0060mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:258\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":"mistralrs-core/src/vision_models/gemma4/inputs_processor.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc62b268c0764313941f1b3c5e9e4dffe4af26e2affded2b6cce13ec922dfd97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:1685-1699 | mistralrs-core/src/vision_models/grid_processor.rs:1811-1825 \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 \u0060mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:1685\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":"mistralrs-core/src/vision_models/gemma4/inputs_processor.rs"},"region":{"startLine":1685}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd9084c941baeeb39e291aa68717b42d42ffed3a968b506f8f7a5010a2a2adce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/text.rs:601-615 | mistralrs-core/src/vision_models/gemma4/text.rs:634-648 \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 \u0060mistralrs-core/src/vision_models/gemma4/text.rs:601\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":"mistralrs-core/src/vision_models/gemma4/text.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"0680e836cb2887fd2ce609918982e75af20954b6f6cfdb61aaedee8faede4a54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/vision_models/grid_processor.rs:837-851 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:560-574 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 1008 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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c7be599320225fea8d8a18dfc490fea12525503a94644006568302e1391b43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:349-363 | mistralrs-core/src/vision_models/llama4/inputs_processor.rs:201-215 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/llama4/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 152 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 \u0060mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs: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":"mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ad70c4c865eea4b9c808321e7f04d9e7ef8d127f93146d27321bdfde7c73a05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/vision_models/idefics2/mod.rs:461-475 | mistralrs-core/src/vision_models/idefics2/mod.rs:816-830 \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 \u0060mistralrs-core/src/vision_models/idefics2/mod.rs:461\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, \u0060mistralrs-core/src/vision_models/idefics2/mod.rs:815\u0060 calls \u0060to_dtype\u0060 and \u0060mistralrs-core/src/vision_models/idefics2/mod.rs:460\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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"49daae5c221dec46d4a1730d0c30b30eed372a6bc1580182e4e2e7c49b87f5a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/vision_models/idefics2/mod.rs:1331-1345 | mistralrs-core/src/vision_models/idefics3/mod.rs:277-291 \u2014 \u0060mistralrs-core/src/vision_models/idefics2/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/idefics3/mod.rs\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 4 separate duplicated blocks between them, totalling at least 87 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 \u0060mistralrs-core/src/vision_models/idefics2/mod.rs:1331\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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":1331}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ea342fc36797e6978bcaea3a52f1bf372cfb2d909d3f44ae45833fe0d21872"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava15.rs:318-332 | mistralrs-core/src/vision_models/llava/llava_next.rs:517-531 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/llava/llava15.rs\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava_next.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 109 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, \u0060mistralrs-core/src/vision_models/llava/llava_next.rs:533\u0060 calls \u0060add_tensor\u0060, \u0060clone\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava15.rs:334\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":"mistralrs-core/src/vision_models/llava/llava15.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"e10d6c9ac8a1fe0f843ba14f336fa3f91a0c50b5af35eda0a9c6c5eb97b2f26a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/xlora_models/mistral.rs:375-389 | mistralrs-core/src/xlora_models/phi3.rs:342-356 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/mistral.rs\u0060 and \u0060mistralrs-core/src/xlora_models/phi3.rs\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 436 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 \u0060mistralrs-core/src/xlora_models/mistral.rs:375\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":"mistralrs-core/src/xlora_models/mistral.rs"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c1d27e2d680bf79bccd1c06fe342fda8cd5e1a53be51e14f5329570d5800e8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:85-99 | mistralrs-paged-attn/src/metal/backend/gather_kv.rs:29-43 \u2014 before extracting anything, compare \u0060mistralrs-paged-attn/src/cuda/backend/gather_kv.rs\u0060 and \u0060mistralrs-paged-attn/src/metal/backend/gather_kv.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060mistralrs-paged-attn/src/metal/backend/gather_kv.rs:27\u0060 calls \u0060validate_kv_cache_scales\u0060 and \u0060mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:83\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":"mistralrs-paged-attn/src/cuda/backend/gather_kv.rs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"59000bcc1fbfbcf6a940236d3631bca6cc4fd4bc8399af8cba92e1edd5133bcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): mistralrs-paged-attn/src/metal/backend/gather_kv.rs:93-105 | mistralrs-paged-attn/src/metal/backend/paged_attention.rs:803-817 \u2014 before extracting anything, compare \u0060mistralrs-paged-attn/src/metal/backend/gather_kv.rs\u0060 and \u0060mistralrs-paged-attn/src/metal/backend/paged_attention.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 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 \u0060mistralrs-paged-attn/src/metal/backend/gather_kv.rs: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":"mistralrs-paged-attn/src/metal/backend/gather_kv.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"97edbf2dde8dea7010172251b1818717eaf011059460017acd62c246c91f493e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-pyo3/src/lib.rs:1804-1818 | mistralrs/src/model.rs:854-868 \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 \u0060mistralrs-pyo3/src/lib.rs:1804\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_id\u0060 to \u0060Option\u003CString\u003E\u0060 in one and \u0060Option\u003C\u0026str\u003E\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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":1804}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c03617a6874811bc2f52b1205c0c011667685f35b7ea98d49133eed59cb380"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-quant/src/afq/ops.rs:2116-2130 | mistralrs-quant/src/afq/ops.rs:2624-2638 \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":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":2116}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd6c5560a42e4fd1d15f1c06685811c653a39483c7f870063a3c45627720d369"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:1057-1071 | mistralrs-quant/src/blockwise_fp8/ops.rs:1236-1249 \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 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:1057\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, \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:1250\u0060 calls \u0060layout\u0060 and \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:1073\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1057}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b02f55cab4cf8cf656472c1fb569c90f3a0f40fec491e16f7f833a55eb63ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:535-549 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:979-991 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fused_moe.rs\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe_fp8.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 298 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 \u0060mistralrs-quant/src/cutile/fused_moe.rs:535\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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"b52a925c9ee8947551558912af1d27efe7c562c35087ce27e09e2a8faef4f511"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmq.rs:637-652 | mistralrs-quant/src/gguf/fast_mmq.rs:745-760 \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 \u0060mistralrs-quant/src/gguf/fast_mmq.rs:637\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":"mistralrs-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb81b06177eccffe24f326f2bf601925844c6da5450250eea6de743abf8c07c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-quant/src/hqq/mod.rs:188-202 | mistralrs-quant/src/hqq/mod.rs:273-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060mistralrs-quant/src/hqq/mod.rs: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060mistralrs-quant/src/hqq/mod.rs:290\u0060 calls \u0060to_dtype\u0060 and \u0060mistralrs-quant/src/hqq/mod.rs:205\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":"mistralrs-quant/src/hqq/mod.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"7802cbb45a4da7f8a225b75f78ba1ce3734ed31bf060c2c53ce37f1c82aa2d14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-quant/src/hqq/mod.rs:365-379 | mistralrs-quant/src/hqq/mod.rs:514-528 \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 \u0060mistralrs-quant/src/hqq/mod.rs:365\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":"mistralrs-quant/src/hqq/mod.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"7184e6e0c74e047de05dcd4f6a235218acdd0aa13f7a7568dad2a8084395a3e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-quant/src/metal_kernels/mod.rs:3737-3751 | mistralrs-quant/src/metal_kernels/mod.rs:3809-3823 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:3737\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":3737}}}],"partialFingerprints":{"codehealthFindingId/v1":"fea226ee416f327f4a287a033fc75efed15584ea0303229c696a527e93534530"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-quant/src/routed_moe/cuda.rs:235-249 | mistralrs-quant/src/routed_moe/cuda.rs:381-395 \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":"mistralrs-quant/src/routed_moe/cuda.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"17216a4b77a4e258320a82de64b94de358984da34dd21327890356336dd0b90f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-quant/src/scalar_fp8/ops.rs:60-74 | mistralrs-quant/src/scalar_fp8/ops.rs:223-237 \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":"mistralrs-quant/src/scalar_fp8/ops.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a7f44d35224791de64d250c2f8f53c118d451f323311e43d956511d3eb8f4ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-quant/src/utils/ops.rs:650-664 | mistralrs-quant/src/utils/ops.rs:776-790 \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 \u0060mistralrs-quant/src/utils/ops.rs:650\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, \u0060mistralrs-quant/src/utils/ops.rs:648\u0060 calls \u0060buffer\u0060, \u0060start_offset\u0060, \u0060dtype\u0060 and \u0060mistralrs-quant/src/utils/ops.rs:775\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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6bc75a2441667785f17ca992cc4e21df43f209f6bb9c9ee7cc831bfd82956bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-server-core/src/anthropic.rs:1909-1923 | mistralrs-server-core/src/chat_completion.rs:1270-1284 \u2014 before extracting anything, compare \u0060mistralrs-server-core/src/anthropic.rs\u0060 and \u0060mistralrs-server-core/src/chat_completion.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 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 \u0060mistralrs-server-core/src/anthropic.rs:1909\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":"mistralrs-server-core/src/anthropic.rs"},"region":{"startLine":1909}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee6edd446bc6a381d768ae9699a8bbf57ab5092d1ebbb5e1ab97b21fbce53f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 11): mistralrs-core/src/models/glm4.rs:584-597 | mistralrs-core/src/models/mistral.rs:594-608 | mistralrs-core/src/models/mixtral.rs:532-546 | mistralrs-core/src/models/phi3.rs:540-554 | mistralrs-core/src/models/phi3_5_moe.rs:613-627 | mistralrs-core/src/models/qwen2.rs:586-599 | mistralrs-core/src/models/qwen3.rs:547-561 | mistralrs-core/src/models/qwen3_moe.rs:727-741 | mistralrs-core/src/models/starcoder2.rs:534-547 | mistralrs-core/src/vision_models/phi3/mod.rs:1343-1356 | mistralrs-core/src/vision_models/phi4/mod.rs:505-518 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/glm4.rs\u0060 and \u0060mistralrs-core/src/models/mistral.rs\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 529 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 \u0060ctx\u0060 to \u0060\u0026mut ModelForwardContext\u003C\u0027_\u003E\u0060 in one and \u0060\u0026mut crate::pipeline::ModelForwardContext\u003C\u0027_\u003E\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":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f4ac07b609e7dd32f007e590929bfc14086c633fac1524d34c771944d1cd82a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 11): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:777-790 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1560-1573 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1868-1881 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2168-2181 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2941-2954 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4364-4377 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1546-1559 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2226-2239 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2674-2687 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4505-4518 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5394-5407 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/embedding_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 180 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 \u0060mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:777\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, \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1575\u0060 calls \u0060non_mapped_sub_models\u0060, \u0060Some\u0060 and \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1560\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":"mistralrs-core/src/pipeline/loaders/embedding_loaders.rs"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf11f7c613982c767213f57e9909407bdcc0e3de317801c66100eb6e83edc8e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 9): mistralrs-core/src/xlora_models/gemma.rs:661-674 | mistralrs-core/src/xlora_models/gemma2.rs:712-725 | mistralrs-core/src/xlora_models/llama.rs:487-500 | mistralrs-core/src/xlora_models/mistral.rs:657-670 | mistralrs-core/src/xlora_models/mixtral.rs:787-800 | mistralrs-core/src/xlora_models/phi2.rs:627-640 | mistralrs-core/src/xlora_models/quantized_llama.rs:877-890 | mistralrs-core/src/xlora_models/quantized_phi3.rs:542-555 | mistralrs-core/src/xlora_models/starcoder2.rs:642-655 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 498 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 \u0060mistralrs-core/src/xlora_models/gemma.rs:661\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"62e92e1f7db7d807ad8a14cc38a2651305963207c087a72b00e5faae0e988f7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 8): mistralrs-core/src/models/deepseek2.rs:723-736 | mistralrs-core/src/models/deepseek3.rs:786-799 | mistralrs-core/src/models/glm4_moe.rs:623-636 | mistralrs-core/src/models/glm4_moe_lite.rs:732-745 | mistralrs-core/src/xlora_models/llama.rs:355-368 | mistralrs-core/src/xlora_models/mistral.rs:335-348 | mistralrs-core/src/xlora_models/mixtral.rs:462-475 | mistralrs-core/src/xlora_models/phi3.rs:300-313 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:723\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, \u0060mistralrs-core/src/models/deepseek2.rs:722\u0060 calls \u0060pp\u0060 and \u0060mistralrs-core/src/xlora_models/llama.rs:354\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"59bfc2fc1dfece8b04c6552c850a33a4dc8dab58e710b8a43b14d3262565a8e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 8): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:576-589 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2585-2598 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3295-3308 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3637-3650 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6545-6558 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1298-1311 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2455-2468 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5835-5848 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/embedding_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 180 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 \u0060mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:576\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, \u0060mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:591\u0060 calls \u0060non_mapped_sub_models\u0060 and \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3651\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":"mistralrs-core/src/pipeline/loaders/embedding_loaders.rs"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ede7f1af9b4bbee3916a2a71bca96fbe64b4f48ca1d0dc531dcb3707d969399"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 6): mistralrs-core/src/embedding_models/qwen3_embedding.rs:477-489 | mistralrs-core/src/models/flint.rs:989-1001 | mistralrs-core/src/models/qwen3.rs:583-595 | mistralrs-core/src/models/qwen3_moe.rs:764-776 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:607-620 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:728-741 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/models/flint.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 68 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060mistralrs-core/src/models/qwen3_moe.rs:777\u0060 calls \u0060Moe\u0060, \u0060pp\u0060, \u0060add\u0060 and \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:490\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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e4e106e333a377e3902f042063ae845b05aaf665ccc022b32bcb59fce11e24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1174-1187 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5156-5169 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:854-867 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1986-1999 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2930-2943 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3818-3831 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 445 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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1174\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, \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1189\u0060 calls \u0060non_mapped_sub_models\u0060, \u0060Some\u0060 and \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs:868\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1174}}}],"partialFingerprints":{"codehealthFindingId/v1":"318cbac9b093bd54a41a19bcef8bbd5c2ac2681bca8026b3ca6917ec4f70f9e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6): mistralrs-core/src/pipeline/multimodal.rs:1161-1174 | mistralrs-core/src/pipeline/multimodal.rs:1218-1231 | mistralrs-core/src/pipeline/multimodal.rs:1270-1283 | mistralrs-core/src/pipeline/normal.rs:1213-1226 | mistralrs-core/src/pipeline/normal.rs:1270-1283 | mistralrs-core/src/pipeline/normal.rs:1346-1359 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1161}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e1d0c157ccc2deb67b9bc7845b9581fa5fdf8b6e912798108a75154cf97c4b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): mistralrs-core/src/embedding_models/qwen3_embedding.rs:366-379 | mistralrs-core/src/models/glm4.rs:480-493 | mistralrs-core/src/models/hunyuan_v1_dense.rs:445-458 | mistralrs-core/src/models/hunyuan_v1_moe.rs:939-952 | mistralrs-core/src/models/qwen3.rs:439-452 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/models/glm4.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 137 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 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:366\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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ede696952129f1855ec7365d0b68caf8b60d07881f44abdb894238cb6f88a81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): mistralrs-core/src/models/deepseek2.rs:886-899 | mistralrs-core/src/models/deepseek3.rs:949-962 | mistralrs-core/src/models/glm4_moe.rs:785-798 | mistralrs-core/src/models/glm4_moe_lite.rs:896-909 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:565-578 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:886\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef81f394cada8a87428fe6ffc8c59721dfef3ec50976c7163a7543beea5b323"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): mistralrs-core/src/xlora_models/gemma.rs:491-504 | mistralrs-core/src/xlora_models/gemma2.rs:521-534 | mistralrs-core/src/xlora_models/mistral.rs:487-500 | mistralrs-core/src/xlora_models/mixtral.rs:618-631 | mistralrs-core/src/xlora_models/starcoder2.rs:475-488 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 498 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 \u0060mistralrs-core/src/xlora_models/gemma.rs:491\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, \u0060mistralrs-core/src/xlora_models/starcoder2.rs:490\u0060 calls \u0060get_mut\u0060, \u0060unwrap\u0060, \u0060merge_weights\u0060 and \u0060mistralrs-core/src/xlora_models/gemma.rs:506\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b296dab95e5d33164aa9b9ea8d6a1d5c44fd31eb49677a1a4cd700c227b2e1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): mistralrs-core/src/xlora_models/gemma.rs:606-619 | mistralrs-core/src/xlora_models/mistral.rs:602-615 | mistralrs-core/src/xlora_models/mixtral.rs:732-745 | mistralrs-core/src/xlora_models/phi3.rs:555-568 | mistralrs-core/src/xlora_models/starcoder2.rs:587-600 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/mistral.rs\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 538 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 \u0060mistralrs-core/src/xlora_models/gemma.rs:606\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"920137d35b356ebc8be5b6dc4fdcede14a4feb7487c53ef63868604a28bfb6eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): mistralrs-cli/src/commands/run/interactive.rs:991-1004 | mistralrs-cli/src/commands/run/interactive.rs:1779-1792 | mistralrs-cli/src/commands/run/interactive.rs:1946-1959 | mistralrs-cli/src/commands/run/interactive.rs:2069-2082 \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 \u0060mistralrs-cli/src/commands/run/interactive.rs:991\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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6ac93d5df63c6bbdad37cd90aada429907fcb4b6bde0bedebf8489de5eb7484"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 4): mistralrs-core/src/models/mixtral.rs:420-432 | mistralrs-core/src/models/qwen2.rs:447-460 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:412-425 | mistralrs-core/src/vision_models/qwen2vl/text.rs:413-426 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/mixtral.rs\u0060 and \u0060mistralrs-core/src/models/qwen2.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 556 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 \u0060mistralrs-core/src/models/mixtral.rs:420\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":"mistralrs-core/src/models/mixtral.rs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d852d43dcca05f82e3cc2b4b6f41088162a8d4c02754a2f822d16600d07a38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2832-2845 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4256-4269 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5052-5065 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5463-5476 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2832\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":2832}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c9e22db853dda30b89c6b3f3e3acea5e0304928c434c3e6c4c76a132b15944"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): mistralrs-core/src/xlora_models/gemma.rs:195-208 | mistralrs-core/src/xlora_models/mistral.rs:184-197 | mistralrs-core/src/xlora_models/mixtral.rs:97-110 | mistralrs-core/src/xlora_models/phi3.rs:76-89 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/mistral.rs\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 538 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 \u0060mistralrs-core/src/xlora_models/gemma.rs:195\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d531e96cfb231d2b9096451d75dd29db5569aa59f07f2d60e18170e6805d459"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): mistralrs-quant/src/distributed/layers.rs:476-489 | mistralrs-quant/src/distributed/layers.rs:850-863 | mistralrs-quant/src/distributed/layers.rs:1437-1450 | mistralrs-quant/src/distributed/layers.rs:1653-1666 \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 \u0060mistralrs-quant/src/distributed/layers.rs:476\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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a46c7484b2510e30aa535d0f57ae9c0f7d0f332c9ddbf40b24564d7afbe4cdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): mistralrs-core/src/cuda/gdn.rs:4993-5006 | mistralrs-core/src/cuda/gdn.rs:5242-5255 | mistralrs-core/src/cuda/gdn.rs:5499-5512 \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 \u0060mistralrs-core/src/cuda/gdn.rs:4993\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, \u0060mistralrs-core/src/cuda/gdn.rs:5513\u0060 calls \u0060is_contiguous\u0060 and \u0060mistralrs-core/src/cuda/gdn.rs:5007\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":4993}}}],"partialFingerprints":{"codehealthFindingId/v1":"b12dde2abb8ec2369454b91d028fbeab1a0e2382b7afb3cfbfb599b678156c54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): mistralrs-core/src/cuda/gdn.rs:5404-5417 | mistralrs-core/src/cuda/gdn.rs:5580-5593 | mistralrs-core/src/cuda/gdn.rs:5850-5863 \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 \u0060mistralrs-core/src/cuda/gdn.rs:5404\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":5404}}}],"partialFingerprints":{"codehealthFindingId/v1":"8434c0ded9a651cf45a861deadc2a3a486902a7b63eaf595763c943917cf95f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): mistralrs-core/src/models/deepseek2.rs:473-486 | mistralrs-core/src/models/deepseek3.rs:474-487 | mistralrs-core/src/models/glm4_moe_lite.rs:438-451 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:473\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a9e5b64f962b3612f279e185c559b68ca9e5a6b9922a4160069f1a00d2aa755"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): mistralrs-core/src/models/gemma.rs:404-417 | mistralrs-core/src/models/gemma2.rs:477-490 | mistralrs-core/src/vision_models/gemma3/text.rs:517-530 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 707 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 \u0060mistralrs-core/src/models/gemma.rs:404\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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba15914abf0b92a4c7f7109087fdaee5c44443d7694f40ed2853aef9867f463b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): mistralrs-core/src/models/hunyuan_v1_dense.rs:157-170 | mistralrs-core/src/models/qwen3.rs:158-171 | mistralrs-core/src/models/qwen3_moe.rs:161-174 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/hunyuan_v1_dense.rs\u0060 and \u0060mistralrs-core/src/models/qwen3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 731 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 \u0060mistralrs-core/src/models/hunyuan_v1_dense.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/hunyuan_v1_dense.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"c317673aba2962dadc01b2c71b01841a08e934e338af09cb672a23d45ac68e24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): mistralrs-core/src/pipeline/gguf.rs:677-690 | mistralrs-core/src/pipeline/gguf.rs:777-789 | mistralrs-core/src/pipeline/gguf.rs:901-913 \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 \u0060mistralrs-core/src/pipeline/gguf.rs:677\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":"mistralrs-core/src/pipeline/gguf.rs"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda6ea18d89f7f147abdd84a1e0471707c734ee052f428ed85dbef1a1690b2cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7609-7622 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8125-8138 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8766-8779 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7609\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, \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8139\u0060 calls \u0060checked_add\u0060, \u0060context\u0060 and \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8780\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":7609}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d4d372fb2d7790496af8edb40a4318031d7b3a32b16af57aedaf486862621c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3264-3277 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3597-3610 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4824-4837 \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 \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3264\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":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":3264}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d7cf50a0fae5139d194515729764d846035622071578becae9c4b5e4000fc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): mistralrs-core/src/vision_models/llava/llava_next.rs:444-457 | mistralrs-core/src/vision_models/mistral3/mod.rs:309-322 | mistralrs-core/src/vision_models/phi3/mod.rs:1106-1119 \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":"mistralrs-core/src/vision_models/llava/llava_next.rs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b3f8eb3c8352d2739ee09e32d8ac53597879aca96806696802b329c15f4f96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201314 lines \u00D7 6): mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:156-166 | mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:168-180 | mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:186-199 | mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:373-376 | mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:655-658 | mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:202-205 \u2014 before extracting anything, compare \u0060mistralrs-paged-attn/src/cuda/backend/flashinfer.rs\u0060 and \u0060mistralrs-paged-attn/src/cuda/backend/gather_kv.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 39 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 \u0060mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:156\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 before the matched lines, \u0060mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:167\u0060 calls \u0060slice_ptr\u0060, \u0060start_offset\u0060 and \u0060mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:186\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":"mistralrs-paged-attn/src/cuda/backend/flashinfer.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"93bd2be537b7ef2cb573b07ca920d4d1711338867d0be894ead107c17b610c71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): mistralrs-quant/src/lora/dynamic/moe_cuda.rs:852-865 | mistralrs-quant/src/lora/dynamic/moe_cuda.rs:875-888 | mistralrs-quant/src/lora/dynamic/moe_cuda.rs:898-911 \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 \u0060mistralrs-quant/src/lora/dynamic/moe_cuda.rs:852\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":"mistralrs-quant/src/lora/dynamic/moe_cuda.rs"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e15f96ba09d9f49ed9080e06929917efe0a50bcd65d04076f4d8cc6e270999"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/attention/backends/cpu/full.rs:655-668 | mistralrs-core/src/attention/backends/cpu/single_q.rs:342-355 \u2014 before extracting anything, compare \u0060mistralrs-core/src/attention/backends/cpu/full.rs\u0060 and \u0060mistralrs-core/src/attention/backends/cpu/single_q.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 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":"mistralrs-core/src/attention/backends/cpu/full.rs"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f0cacaaa2f9f917bd5eb81323d55ba4e5550819735e0106b1d7b3b85daf36c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:991-1004 | mistralrs-core/src/cuda/gdn.rs:1117-1130 \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 \u0060mistralrs-core/src/cuda/gdn.rs:991\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dcaab67af9c8dc70518eced7b8708fa821fbd85af75f50abfb446ce95354a88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): mistralrs-core/src/embedding_models/embedding_gemma.rs:373-386 | mistralrs-core/src/embedding_models/qwen3_embedding.rs:329-341 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs\u0060 and \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 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, \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs:387\u0060 calls \u0060sqrt\u0060 and \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:343\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":"mistralrs-core/src/embedding_models/embedding_gemma.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"7852cec5a8f309cfdbcdbc363e929f2e5953fd6b73853b99717de5d5086db610"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): mistralrs-core/src/engine/add_request.rs:818-829 | mistralrs-core/src/engine/add_request.rs:834-847 \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":"mistralrs-core/src/engine/add_request.rs"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb4e012bc0f81b4140829c562178d45804cc5c70dee25d331626607ff8bad01d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/gdn/projection.rs:141-154 | mistralrs-core/src/gdn/projection.rs:216-229 \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":"mistralrs-core/src/gdn/projection.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"68652f7a77920eb554bd8ed26dee6bb17ec7f0c35df97dbf3eae4e2d9556813e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/model_loader.rs:575-588 | mistralrs-core/src/toml_selector.rs:907-920 \u2014 before extracting anything, compare \u0060mistralrs-core/src/model_loader.rs\u0060 and \u0060mistralrs-core/src/toml_selector.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 199 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 \u0060mistralrs-core/src/model_loader.rs:575\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":"mistralrs-core/src/model_loader.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"921e5fff213ee2ccec5319a64fa623c3926c148cba5a29a3ee8f9128725c2a20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/models/granite.rs:1292-1305 | mistralrs-core/src/models/granite.rs:1314-1327 \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 \u0060mistralrs-core/src/models/granite.rs:1292\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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":1292}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5533b32f15a83d12d7efe4c7d8244bcebc734cb268374655ae828bd2009ba17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/models/lfm2.rs:1291-1304 | mistralrs-core/src/models/lfm3.rs:1306-1319 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/lfm2.rs\u0060 and \u0060mistralrs-core/src/models/lfm3.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 402 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 \u0060mistralrs-core/src/models/lfm2.rs:1291\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, \u0060mistralrs-core/src/models/lfm2.rs:1290\u0060 calls \u0060batch_kind\u0060 and \u0060mistralrs-core/src/models/lfm3.rs:1305\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":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":1291}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0354856a204e3ee7a0cc8bf87c7cb045743ce67fbdf1b0775d9bc4356c706a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/models/phi2.rs:213-228 | mistralrs-core/src/xlora_models/phi2.rs:177-192 \u2014 \u0060mistralrs-core/src/models/phi2.rs\u0060 and \u0060mistralrs-core/src/xlora_models/phi2.rs\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 7 separate duplicated blocks between them, totalling at least 85 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 \u0060mistralrs-core/src/models/phi2.rs:213\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, \u0060mistralrs-core/src/models/phi2.rs:229\u0060 calls \u0060world_size\u0060, \u0060max\u0060 and \u0060mistralrs-core/src/xlora_models/phi2.rs:193\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":"mistralrs-core/src/models/phi2.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e85776384655fab85a7399ee7ae7672193c5cec99b1049261ca34bd6b9a742"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): mistralrs-core/src/models/quantized_llama.rs:355-368 | mistralrs-core/src/xlora_models/quantized_llama.rs:795-807 \u2014 \u0060mistralrs-core/src/models/quantized_llama.rs\u0060 and \u0060mistralrs-core/src/xlora_models/quantized_llama.rs\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 4 separate duplicated blocks between them, totalling at least 58 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 \u0060mistralrs-core/src/models/quantized_llama.rs:355\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":"mistralrs-core/src/models/quantized_llama.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a217fb8b4ae19526db78e7bc9ea1857f14407c8b7db7cfb478562cefa567ce6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/models/starcoder2.rs:341-354 | mistralrs-core/src/xlora_models/starcoder2.rs:328-341 \u2014 \u0060mistralrs-core/src/models/starcoder2.rs\u0060 and \u0060mistralrs-core/src/xlora_models/starcoder2.rs\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 7 separate duplicated blocks between them, totalling at least 73 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 \u0060mistralrs-core/src/models/starcoder2.rs:341\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":"mistralrs-core/src/models/starcoder2.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9e6937f1543bacf63ec1e4cb80f6d2ad5b496b27d5109401e3adc8ec85f655"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): mistralrs-core/src/moe/experts/backends.rs:920-933 | mistralrs-core/src/moe/experts/backends.rs:995-1007 \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 \u0060mistralrs-core/src/moe/experts/backends.rs:920\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":"mistralrs-core/src/moe/experts/backends.rs"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"5666ec5edd776b3aa5732f63d67e221c8e7826a342073f97d70ac4c255ba7dc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/ops.rs:3071-3084 | mistralrs-core/src/ops.rs:3530-3543 \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 \u0060mistralrs-core/src/ops.rs:3071\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, \u0060mistralrs-core/src/ops.rs:3069\u0060 calls \u0060memcpy_dtoh\u0060 and \u0060mistralrs-core/src/ops.rs:3529\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":3071}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee63cced1b189b6862aead668b524a5d65e3a47f78defe5872083c2bb0cda7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1765-1778 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6105-6118 \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 \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1765\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":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":1765}}}],"partialFingerprints":{"codehealthFindingId/v1":"5767f48262315b6c13fbe1df90c54900c884cd05949662f4aff07b5b049425c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4031-4044 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4294-4307 \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 \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4031\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":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":4031}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3343d8f0e0ddfa8014bd4c2720f409897f810218e0f48f2ae0a0022a97ae742"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:490-503 | mistralrs-core/src/pipeline/normal.rs:623-636 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:490\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, \u0060mistralrs-core/src/pipeline/multimodal.rs:489\u0060 calls \u0060validate_dynamic_lora\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs:622\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d35a09793cdb7ab0952df660ae53ea7e9c208308c6134a91ba9d83bdd4db47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): mistralrs-core/src/sampler.rs:1235-1247 | mistralrs-core/src/sampler.rs:1943-1956 \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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"5227397674b983e9f38169ff82dfa10e2f9449200212ed7ad6a6b7b54e4e4292"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3/text.rs:143-156 | mistralrs-core/src/vision_models/gemma3n/text.rs:385-397 \u2014 \u0060mistralrs-core/src/vision_models/gemma3/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma3n/text.rs\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 214 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 \u0060mistralrs-core/src/vision_models/gemma3/text.rs:143\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, \u0060mistralrs-core/src/vision_models/gemma3n/text.rs:384\u0060 calls \u0060kv_shared_layer_index\u0060, \u0060Ok\u0060 and \u0060mistralrs-core/src/vision_models/gemma3/text.rs:143\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":"mistralrs-core/src/vision_models/gemma3/text.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cfbebaa56d62a9c0d8e2f3a903e3ea7792e6ee7dec248cf896dbc44fb772186"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/text.rs:1796-1809 | mistralrs-core/src/vision_models/gemma3n/text.rs:1902-1915 \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 \u0060mistralrs-core/src/vision_models/gemma3n/text.rs:1796\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":"mistralrs-core/src/vision_models/gemma3n/text.rs"},"region":{"startLine":1796}}}],"partialFingerprints":{"codehealthFindingId/v1":"63eee78c65e1797b41b0f9d396a43e3efa6515b40d901f2ef204664bd500be37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/vision_models/grid_processor.rs:618-633 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:404-419 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 1008 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:618\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcef024c3c38fcbe07f2f4d606d37d47d77c15c15e7a05c736c10d73f65ff804"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): mistralrs-core/src/vision_models/lfm3_d1/mod.rs:190-201 | mistralrs-core/src/vision_models/lfm3_omni/mod.rs:399-412 \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 \u0060mistralrs-core/src/vision_models/lfm3_d1/mod.rs:190\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":"mistralrs-core/src/vision_models/lfm3_d1/mod.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"be223e302dff845f928ecdd9cf3d4bfbc03c3db9d83cdbe9b413d03e5d9e3550"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/vision_models/llama4/inputs_processor.rs:653-666 | mistralrs-core/src/vision_models/mllama/inputs_processor.rs:509-523 \u2014 \u0060mistralrs-core/src/vision_models/llama4/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/mllama/inputs_processor.rs\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 4 separate duplicated blocks between them, totalling at least 66 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 \u0060mistralrs-core/src/vision_models/llama4/inputs_processor.rs:653\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":"mistralrs-core/src/vision_models/llama4/inputs_processor.rs"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a24084eeccc483b8fbf8dec944f8b3c87d3bba961a8a24e10671aa1211ce9f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:189-202 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:145-158 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 288 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 \u0060mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2d5739f4bbd37661dbe1eb20f68f1a87caf28bf1b514e3f19975940e01390a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/vision_models/phi3/mod.rs:611-624 | mistralrs-core/src/vision_models/phi4/image_embedding.rs:234-247 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/phi3/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi4/image_embedding.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 98 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 \u0060mistralrs-core/src/vision_models/phi3/mod.rs:611\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":"mistralrs-core/src/vision_models/phi3/mod.rs"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc762fa1e976e6faf006f4869126a7c5cf7f98aa1592c614562bbee3f1e9b179"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/vision_models/phi3/mod.rs:1168-1181 | mistralrs-core/src/vision_models/phi4/image_embedding.rs:825-838 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/phi3/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi4/image_embedding.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 98 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":"mistralrs-core/src/vision_models/phi3/mod.rs"},"region":{"startLine":1168}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4877e7a6177a8e0c6e9a2a64ed97c0d418625e493e9903801bca93c8f81c474"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:247-260 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:440-453 \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":"mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c56b9692436cac367e3d4164ae8c41a94a99f617e828fc8de2c07fc2c46a14a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/config.rs:101-114 | mistralrs-core/src/vision_models/qwen2vl/config.rs:75-88 \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 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/config.rs: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":"mistralrs-core/src/vision_models/qwen2_5_vl/config.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0927f7fa4f4b66f410b9ad0404de732d8e88f96b96547e58627bb3f4e6c6d67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/text.rs:1187-1200 | mistralrs-core/src/vision_models/qwen4_exp/text.rs:731-744 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen4_exp/text.rs\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 7 separate duplicated blocks between them, totalling at least 83 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060rows\u0060 to \u0060\u0026[crate::speculative::SpeculativeCommitRow]\u0060 in one and \u0060\u0026[SpeculativeCommitRow]\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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":1187}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1cbbdbe817176ccb1856f111e431869a6a6e5748a5c919af0a4aa0c6d13abd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:109-133 | mistralrs-paged-attn/src/metal/backend/gather_kv.rs:64-88 \u2014 before extracting anything, compare \u0060mistralrs-paged-attn/src/cuda/backend/gather_kv.rs\u0060 and \u0060mistralrs-paged-attn/src/metal/backend/gather_kv.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 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":"mistralrs-paged-attn/src/cuda/backend/gather_kv.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c9d8e4ba717fe7b12b3020471a1f7ebec2557eb622f37d19f47952d4aadcae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): mistralrs-paged-attn/src/metal/kernels/mod.rs:531-542 | mistralrs-paged-attn/src/metal/kernels/mod.rs:671-684 \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 \u0060mistralrs-paged-attn/src/metal/kernels/mod.rs:531\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":"mistralrs-paged-attn/src/metal/kernels/mod.rs"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"615d44ae4a029ffcec9d050aef30dd35716254d24d240768ce17c38588e4009b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:824-837 | mistralrs-quant/src/blockwise_fp8/ops.rs:944-957 \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 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:824\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f8518e12475bc7cebc591fd296177baaeb5801ca12a315c14d166cebff17de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:844-857 | mistralrs-quant/src/blockwise_fp8/ops.rs:962-975 \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 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:844\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"d27db2adadcf403ece17459cda6dbcb0f4fd6e66a2de82d276d988dbb11733ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_glu.rs:146-176 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:66-96 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/nvfp4_glu.rs\u0060 and \u0060mistralrs-quant/src/cutile/nvfp4_matmul.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 70 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 \u0060mistralrs-quant/src/cutile/nvfp4_glu.rs:146\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, \u0060mistralrs-quant/src/cutile/nvfp4_matmul.rs:65\u0060 calls \u0060exti\u0060 and \u0060mistralrs-quant/src/cutile/nvfp4_glu.rs:145\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":"mistralrs-quant/src/cutile/nvfp4_glu.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9d2f18a9a286dbd083411f26bb5187b62ddffed26c08a1f8d57de35afe4663"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:503-514 | mistralrs-quant/src/distributed/layers.rs:598-611 \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 \u0060mistralrs-quant/src/distributed/layers.rs:598\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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"be57281c4f19dbaef016cf4a843666ed5d07f777118ef59eb9a4e186776a8bef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:562-575 | mistralrs-quant/src/distributed/layers.rs:963-975 \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 \u0060mistralrs-quant/src/distributed/layers.rs:562\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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"d629157eebac319ba2f6e9d62b6bad05f4c5de30cca3aaf0a4dd0bed95dbeb69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:876-889 | mistralrs-quant/src/distributed/layers.rs:996-1007 \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 \u0060mistralrs-quant/src/distributed/layers.rs:876\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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"e18c07f190ecb76be146a52792e778cb89ab3b2c9d8e05b9b26a736134bbba06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmvq.rs:919-932 | mistralrs-quant/src/gguf/fast_mmvq.rs:1166-1179 \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 \u0060mistralrs-quant/src/gguf/fast_mmvq.rs:919\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":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"f028bc81f0e06250b2ca5a393fa586d26b82e22401b15336af32748f6755155e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmvq.rs:958-971 | mistralrs-quant/src/gguf/fast_mmvq.rs:1221-1234 \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 \u0060mistralrs-quant/src/gguf/fast_mmvq.rs:958\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":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2074c038d8ab472c432be57fb22d0fd31343d67086219e9c07ede8e23fa92b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmvq.rs:997-1010 | mistralrs-quant/src/gguf/fast_mmvq.rs:1276-1289 \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 \u0060mistralrs-quant/src/gguf/fast_mmvq.rs:997\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":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0553f7279822ae39f18a26950b0f01cda4e35640a4f4085278b8fb732a328d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-quant/src/gptq/gptq_cpu.rs:20-33 | mistralrs-quant/src/gptq/gptq_cuda.rs:338-351 \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 \u0060mistralrs-quant/src/gptq/gptq_cpu.rs:20\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":"mistralrs-quant/src/gptq/gptq_cpu.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f774cd4e75ec1d2bbc3fe2bfc5deb25e5871581d804fc12984741bc03629c14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-quant/src/lora/dynamic/expert_cuda.rs:924-937 | mistralrs-quant/src/lora/dynamic/expert_cuda.rs:943-956 \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 \u0060mistralrs-quant/src/lora/dynamic/expert_cuda.rs:924\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":"mistralrs-quant/src/lora/dynamic/expert_cuda.rs"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"02599bb2bc607a52617932ea5179cd020eaf5fa7c0035c60b4175c7e677fc535"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-quant/src/metal_kernels/mod.rs:3403-3416 | mistralrs-quant/src/metal_kernels/mod.rs:3531-3544 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:3403\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":3403}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dbd1a0cbd07121a0f26ab2b5979f8cd48eef6990b679250ca0a68bbd255c286"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-quant/src/metal_kernels/utils.rs:27-40 | mistralrs-quant/src/metal_kernels/utils.rs:78-91 \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 \u0060mistralrs-quant/src/metal_kernels/utils.rs: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":"mistralrs-quant/src/metal_kernels/utils.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"f08ca1a3bc7b6df2e22922154995d02ed4c33285c2af1509e49a4bf21006aad9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): mistralrs-quant/src/mxfp4/ops.rs:473-485 | mistralrs-quant/src/mxfp4/ops.rs:490-503 \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 \u0060mistralrs-quant/src/mxfp4/ops.rs:473\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":"mistralrs-quant/src/mxfp4/ops.rs"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"151cf6da1b46043251c4b0f88914b925f16a930c7fe11a75dc8adba5cce9baa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): mistralrs-quant/src/mxfp4/ops.rs:541-553 | mistralrs-quant/src/mxfp4/ops.rs:558-571 \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 \u0060mistralrs-quant/src/mxfp4/ops.rs:541\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":"mistralrs-quant/src/mxfp4/ops.rs"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"247e02b2cf588f69b8a3ee57d685ecdd80a03ef965b8c771cacdf6c9b89f032b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): mistralrs-quant/src/routed_moe/cuda.rs:213-224 | mistralrs-quant/src/routed_moe/cuda.rs: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. 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":"mistralrs-quant/src/routed_moe/cuda.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"47811ba1a834324ed1ad378eaf4cf70c4eed0e4cb54d0f0f246ecd4f0db7f617"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs/src/model_builder_trait.rs:891-904 | mistralrs/src/model_builder_trait.rs: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":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"100c509565ce469a4e61091c6626fd48262c8df6e38c4222e48bdb3b37818f51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 25): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2830-2842 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4254-4266 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4653-4665 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5050-5062 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5461-5473 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:787-799 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1231-1243 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1475-1487 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1702-1714 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1922-1934 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2158-2170 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2855-2867 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3151-3163 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3484-3496 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3747-3759 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3959-3971 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4208-4220 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4439-4451 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4711-4723 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5023-5035 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5306-5318 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5768-5780 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6014-6026 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6277-6289 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6566-6578 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 445 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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2830\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":2830}}}],"partialFingerprints":{"codehealthFindingId/v1":"75cc663072c07a6b7c267aa5ee483145cc8926515c894f8edb82de46674a175e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 14): mistralrs-core/src/models/gemma.rs:662-676 | mistralrs-core/src/models/gemma2.rs:779-793 | mistralrs-core/src/models/glm4.rs:781-795 | mistralrs-core/src/models/hunyuan_v1_dense.rs:749-763 | mistralrs-core/src/models/mistral.rs:790-804 | mistralrs-core/src/models/phi2.rs:730-744 | mistralrs-core/src/models/phi3.rs:725-739 | mistralrs-core/src/models/qwen2.rs:793-807 | mistralrs-core/src/models/qwen3.rs:767-781 | mistralrs-core/src/models/starcoder2.rs:721-735 | mistralrs-core/src/vision_models/gemma3/text.rs:1004-1018 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:749-763 | mistralrs-core/src/vision_models/muse_glimmer/text.rs:755-769 | mistralrs-core/src/vision_models/phi3/mod.rs:1560-1574 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 707 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 \u0060mistralrs-core/src/models/gemma.rs:662\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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeea1192630e36c1602a807ad31a237fba674b0552f6cbe88e20f68ca27528e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 13): mistralrs-core/src/models/flint.rs:779-791 | mistralrs-core/src/models/glm4.rs:441-453 | mistralrs-core/src/models/granite.rs:1949-1961 | mistralrs-core/src/models/hunyuan_v1_dense.rs:410-422 | mistralrs-core/src/models/hunyuan_v1_moe.rs:904-916 | mistralrs-core/src/models/lfm2.rs:1018-1030 | mistralrs-core/src/models/lfm3.rs:917-929 | mistralrs-core/src/models/llama.rs:347-359 | mistralrs-core/src/models/mistral.rs:416-428 | mistralrs-core/src/models/qwen3.rs:404-416 | mistralrs-core/src/models/qwen3_moe.rs:578-590 | mistralrs-core/src/models/smollm3.rs:363-375 | mistralrs-core/src/vision_models/llama4/text.rs:796-808 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/glm4.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 240 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 \u0060mistralrs-core/src/models/flint.rs:779\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"f659f9e3c428014330d6b7d8dc0426d4015b5a740b04ade7838c6bf7a1173693"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 13): mistralrs-core/src/models/glm4.rs:587-598 | mistralrs-core/src/models/mistral.rs:597-609 | mistralrs-core/src/models/mixtral.rs:535-547 | mistralrs-core/src/models/phi3.rs:543-555 | mistralrs-core/src/models/phi3_5_moe.rs:616-628 | mistralrs-core/src/models/qwen2.rs:589-600 | mistralrs-core/src/models/qwen3.rs:550-562 | mistralrs-core/src/models/qwen3_moe.rs:730-742 | mistralrs-core/src/models/starcoder2.rs:537-548 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:549-560 | mistralrs-core/src/vision_models/phi3/mod.rs:1346-1357 | mistralrs-core/src/vision_models/phi4/mod.rs:508-519 | mistralrs-core/src/vision_models/voxtral/mod.rs:884-896 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/glm4.rs\u0060 and \u0060mistralrs-core/src/models/mistral.rs\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 529 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 \u0060mistralrs-core/src/models/glm4.rs:587\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 \u0060ctx\u0060 to \u0060\u0026mut ModelForwardContext\u003C\u0027_\u003E\u0060 in one and \u0060\u0026mut crate::pipeline::ModelForwardContext\u003C\u0027_\u003E\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":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2bda2d854fb26f8903324f7ad47d47efce57ba0fc755609bf327dab664b3c74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 11): mistralrs-core/src/models/deepseek2.rs:863-875 | mistralrs-core/src/models/deepseek3.rs:926-938 | mistralrs-core/src/models/gemma.rs:379-390 | mistralrs-core/src/models/gemma2.rs:452-463 | mistralrs-core/src/models/glm4_moe.rs:762-774 | mistralrs-core/src/models/glm4_moe_lite.rs:873-885 | mistralrs-core/src/models/mistral.rs:489-498 | mistralrs-core/src/models/mixtral.rs:442-453 | mistralrs-core/src/models/phi2.rs:469-480 | mistralrs-core/src/models/phi3.rs:457-468 | mistralrs-core/src/models/phi3_5_moe.rs:526-537 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:863\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc1857809968861bc18802b543e613d5ab3924cae9c865618b14933cb3ffc628"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 11): mistralrs-core/src/models/flint.rs:718-730 | mistralrs-core/src/models/gpt_oss.rs:659-672 | mistralrs-core/src/models/hunyuan_v1_moe.rs:807-819 | mistralrs-core/src/models/mixtral.rs:347-359 | mistralrs-core/src/models/qwen3_moe.rs:500-512 | mistralrs-core/src/vision_models/phi4/mod.rs:271-284 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:449-461 | mistralrs-core/src/xlora_models/llama.rs:365-377 | mistralrs-core/src/xlora_models/mistral.rs:345-357 | mistralrs-core/src/xlora_models/mixtral.rs:472-484 | mistralrs-core/src/xlora_models/phi3.rs:310-322 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/gpt_oss.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 268 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 \u0060mistralrs-core/src/models/flint.rs:718\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7d16419a2ccfda578b890a215cf7897c8fe101246871a793fceddef0a77d733"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 11): mistralrs-core/src/models/flint.rs:846-858 | mistralrs-core/src/models/glm4.rs:513-525 | mistralrs-core/src/models/hunyuan_v1_dense.rs:478-490 | mistralrs-core/src/models/hunyuan_v1_moe.rs:972-984 | mistralrs-core/src/models/mistral.rs:519-531 | mistralrs-core/src/models/mixtral.rs:474-486 | mistralrs-core/src/models/qwen2.rs:505-517 | mistralrs-core/src/models/qwen3.rs:472-484 | mistralrs-core/src/models/qwen3_moe.rs:652-664 | mistralrs-core/src/vision_models/phi3/mod.rs:1268-1280 | mistralrs-core/src/vision_models/phi4/mod.rs:383-395 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/glm4.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 240 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 \u0060mistralrs-core/src/models/flint.rs:846\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, \u0060mistralrs-core/src/models/qwen3_moe.rs:650\u0060 calls \u0060clone\u0060 and \u0060mistralrs-core/src/models/glm4.rs:511\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e084e685ecd5bada230d987ca0a18835a910836c0f702a3637d0a6223af18b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 9): mistralrs-core/src/models/gemma.rs:400-412 | mistralrs-core/src/models/gemma2.rs:473-485 | mistralrs-core/src/models/glm4.rs:502-514 | mistralrs-core/src/models/hunyuan_v1_dense.rs:467-479 | mistralrs-core/src/models/hunyuan_v1_moe.rs:961-973 | mistralrs-core/src/models/mistral.rs:508-520 | mistralrs-core/src/models/mixtral.rs:463-475 | mistralrs-core/src/models/qwen3.rs:461-473 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:445-457 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 707 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 \u0060mistralrs-core/src/models/gemma.rs: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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"121575b83ae873384f98046f1246006bf2e18447b9e04adc16809eb5fec6a5c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 8): mistralrs-core/src/models/deepseek2.rs:956-968 | mistralrs-core/src/models/deepseek3.rs:1019-1031 | mistralrs-core/src/models/gemma.rs:469-481 | mistralrs-core/src/models/glm4_moe.rs:835-846 | mistralrs-core/src/models/glm4_moe_lite.rs:972-983 | mistralrs-core/src/models/llama.rs:495-507 | mistralrs-core/src/models/phi2.rs:548-560 | mistralrs-core/src/models/smollm3.rs:514-526 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060ctx\u0060 to \u0060\u0026mut ModelForwardContext\u003C\u0027_\u003E\u0060 in one and \u0060\u0026mut crate::pipeline::ModelForwardContext\u003C\u0027_\u003E\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d8984a11b9fab348305bc4f42876211c4b147080af17b1e26eed4a9540e84b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 8): mistralrs-core/src/models/gemma.rs:136-148 | mistralrs-core/src/models/glm4.rs:177-189 | mistralrs-core/src/models/gpt_oss.rs:216-228 | mistralrs-core/src/models/mixtral.rs:120-132 | mistralrs-core/src/models/qwen2.rs:208-220 | mistralrs-core/src/models/starcoder2.rs:196-208 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:165-177 | mistralrs-core/src/vision_models/qwen2vl/text.rs:166-178 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/glm4.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 269 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 \u0060mistralrs-core/src/models/gemma.rs: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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"942e351cf3fc576ca8aa2e2b988f1a7e978a637e6fd8f462751b9be001760b0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 8): mistralrs-core/src/models/mixtral.rs:479-490 | mistralrs-core/src/models/qwen2.rs:510-521 | mistralrs-core/src/vision_models/gemma3/text.rs:529-541 | mistralrs-core/src/vision_models/gemma3n/text.rs:1472-1484 | mistralrs-core/src/vision_models/phi3/mod.rs:1273-1284 | mistralrs-core/src/vision_models/phi4/mod.rs:388-399 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:474-485 | mistralrs-core/src/vision_models/qwen2vl/text.rs:476-487 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/mixtral.rs\u0060 and \u0060mistralrs-core/src/models/qwen2.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 556 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 \u0060mistralrs-core/src/models/mixtral.rs:479\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, \u0060mistralrs-core/src/models/qwen2.rs:523\u0060 calls \u0060iter\u0060, \u0060flatten\u0060, \u0060next\u0060 and \u0060mistralrs-core/src/models/mixtral.rs:492\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":"mistralrs-core/src/models/mixtral.rs"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e1da7d9a3ab469a976a3f1af04ce847c9afd76e4e772bace7cb6dd54c8fff48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 7): mistralrs-core/src/embedding_models/qwen3_embedding.rs:257-269 | mistralrs-core/src/models/hunyuan_v1_dense.rs:317-329 | mistralrs-core/src/models/mistral.rs:338-350 | mistralrs-core/src/models/phi3.rs:351-363 | mistralrs-core/src/models/qwen2.rs:370-382 | mistralrs-core/src/models/qwen3.rs:326-338 | mistralrs-core/src/vision_models/phi3/mod.rs:442-454 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/models/hunyuan_v1_dense.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 119 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 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:257\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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb213a7ba57283c2848271c854da3fd25e14a90b4df02e86f3b9ae078dd8c6bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 7): mistralrs-core/src/models/glm4_moe.rs:239-252 | mistralrs-core/src/models/hunyuan_v1_dense.rs:158-171 | mistralrs-core/src/models/hunyuan_v1_moe.rs:341-354 | mistralrs-core/src/models/qwen3.rs:159-172 | mistralrs-core/src/models/qwen3_moe.rs:162-175 | mistralrs-core/src/models/qwen3_next.rs:243-255 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:158-170 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/glm4_moe.rs\u0060 and \u0060mistralrs-core/src/models/hunyuan_v1_dense.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 260 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 \u0060mistralrs-core/src/models/glm4_moe.rs: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. 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":"mistralrs-core/src/models/glm4_moe.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"51847c673677540211b83eb55b6e2201fec7458bd1f88f6c08b17e6bf7680075"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 7): mistralrs-core/src/xlora_models/gemma.rs:577-589 | mistralrs-core/src/xlora_models/gemma2.rs:613-625 | mistralrs-core/src/xlora_models/mistral.rs:571-583 | mistralrs-core/src/xlora_models/mixtral.rs:701-713 | mistralrs-core/src/xlora_models/phi2.rs:547-559 | mistralrs-core/src/xlora_models/phi3.rs:525-537 | mistralrs-core/src/xlora_models/starcoder2.rs:558-570 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 498 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, \u0060mistralrs-core/src/xlora_models/gemma.rs:592\u0060 calls \u0060embedding_forward\u0060, \u0060into\u0060 and \u0060mistralrs-core/src/xlora_models/gemma2.rs:626\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"c284c586c94258af79042f271ffc745d395a6c0e9f388bb7af9b1315baf74285"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): mistralrs-core/src/models/deepseek2.rs:989-1001 | mistralrs-core/src/models/deepseek2.rs:1029-1041 | mistralrs-core/src/models/deepseek3.rs:1052-1064 | mistralrs-core/src/models/deepseek3.rs:1093-1105 | mistralrs-core/src/models/glm4_moe_lite.rs:1004-1016 | mistralrs-core/src/models/glm4_moe_lite.rs:1047-1059 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:989\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f74c3c400e7941bb2ee14c67e3d56f35e89d0aafdf0e58f54212291182b3ff9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): mistralrs-core/src/pipeline/multimodal.rs:1185-1197 | mistralrs-core/src/pipeline/multimodal.rs:1235-1247 | mistralrs-core/src/pipeline/multimodal.rs:1294-1306 | mistralrs-core/src/pipeline/normal.rs:1237-1249 | mistralrs-core/src/pipeline/normal.rs:1287-1299 | mistralrs-core/src/pipeline/normal.rs:1370-1382 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1185}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ffb60aa053e19a5cdbfacd95c10591e719aa7c71ef9a89a94fe62b9db51b102"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): mistralrs-paged-attn/src/cuda/backend/fa3.rs:495-507 | mistralrs-quant/src/cutile/gdn_prefill.rs:712-724 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:330-342 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:657-669 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1159-1171 | mistralrs-quant/src/nvfp4/decode.rs:131-143 \u2014 before extracting anything, compare \u0060mistralrs-paged-attn/src/cuda/backend/fa3.rs\u0060 and \u0060mistralrs-quant/src/cutile/nvfp4_gemv.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 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 \u0060mistralrs-paged-attn/src/cuda/backend/fa3.rs:495\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":"mistralrs-paged-attn/src/cuda/backend/fa3.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"778073ab4ccbf0abcf115ea586f2e61cf7d118ac5c3d1211288878b0ca57b9fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1401-1413 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6810-6822 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7252-7264 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7723-7735 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8245-8257 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1401\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85b71e2e3c31143dd8fe1ae59e4ab7ba32c8e25669b9f0ae5fe0fba79a465f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): mistralrs-core/src/xlora_models/llama.rs:552-564 | mistralrs-core/src/xlora_models/mistral.rs:519-531 | mistralrs-core/src/xlora_models/mixtral.rs:649-661 | mistralrs-core/src/xlora_models/phi2.rs:493-505 | mistralrs-core/src/xlora_models/phi3.rs:469-481 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/llama.rs\u0060 and \u0060mistralrs-core/src/xlora_models/mistral.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 274 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 \u0060mistralrs-core/src/xlora_models/llama.rs:552\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":"mistralrs-core/src/xlora_models/llama.rs"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"891af54df9bc8cd0b31ef8eb8adf34354c9ffe6eeefc836ef1b9880eea1bb082"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): mistralrs-core/src/models/gemma.rs:416-428 | mistralrs-core/src/models/gemma2.rs:489-501 | mistralrs-core/src/models/starcoder2.rs:480-492 | mistralrs-core/src/vision_models/muse_glimmer/text.rs:513-525 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 707 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 \u0060mistralrs-core/src/models/gemma.rs:416\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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"e135540fdb35ef8ba6ba36cd899b2a8abad6e03cab9550d7b702fa531e9f9eff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): mistralrs-core/src/models/glm4_moe.rs:881-893 | mistralrs-core/src/models/glm4_moe.rs:926-938 | mistralrs-core/src/models/glm4_moe_lite.rs:1015-1027 | mistralrs-core/src/models/glm4_moe_lite.rs:1058-1070 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/glm4_moe.rs\u0060 and \u0060mistralrs-core/src/models/glm4_moe_lite.rs\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 596 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":"mistralrs-core/src/models/glm4_moe.rs"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"715f8a27334a09be448b0d789e0ffa7b45142d14692503cc59e10b120422ea19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 4): mistralrs-core/src/vision_models/phi3/mod.rs:594-618 | mistralrs-core/src/vision_models/phi3/mod.rs:626-650 | mistralrs-core/src/vision_models/phi4/image_embedding.rs:217-241 | mistralrs-core/src/vision_models/phi4/image_embedding.rs:249-273 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/phi3/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi4/image_embedding.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 98 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 \u0060mistralrs-core/src/vision_models/phi3/mod.rs:594\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":"mistralrs-core/src/vision_models/phi3/mod.rs"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd753ba5199e784278afd0613816edc90196e176c09f6c0faf83b9a3d45d483"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 4): mistralrs-core/src/xlora_models/gemma.rs:286-298 | mistralrs-core/src/xlora_models/mistral.rs:283-294 | mistralrs-core/src/xlora_models/mixtral.rs:196-207 | mistralrs-core/src/xlora_models/phi3.rs:171-182 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/mistral.rs\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 538 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 \u0060mistralrs-core/src/xlora_models/gemma.rs:286\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c1905677b3cf248d2c83ff605229f167f663a29ee2d50bf285c3c01dd3c4df3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): mistralrs-quant/src/hqq/mod.rs:159-171 | mistralrs-quant/src/hqq/mod.rs:242-254 | mistralrs-quant/src/hqq/mod.rs:336-348 | mistralrs-quant/src/hqq/mod.rs:485-497 \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 \u0060mistralrs-quant/src/hqq/mod.rs:159\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":"mistralrs-quant/src/hqq/mod.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"12eea3f48b86350db1b569dd48e9fce551fd8e23c31270d30b64a6eef2f4cdc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 4): mistralrs/src/model_builder_trait.rs:789-800 | mistralrs/src/model_builder_trait.rs:942-954 | mistralrs/src/model_builder_trait.rs:1401-1411 | mistralrs/src/model_builder_trait.rs:1566-1577 \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 \u0060mistralrs/src/model_builder_trait.rs:789\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":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"781f846ff38e903c61a9651ab8ab4a3bcd3cf6b2dd1d38af6cdbda581dccb0df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 3): mistralrs-cli/src/commands/bench.rs:119-127 | mistralrs-cli/src/commands/run/mod.rs:55-63 | mistralrs-cli/src/commands/serve.rs:62-74 \u2014 before extracting anything, compare \u0060mistralrs-cli/src/commands/run/mod.rs\u0060 and \u0060mistralrs-cli/src/commands/serve.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 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":"mistralrs-cli/src/commands/bench.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e05c6d15715ab3754b1e9d0be74fd8178940487946d2208a4fe13abea4062b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): mistralrs-core/src/embedding_models/embedding_gemma.rs:539-551 | mistralrs-core/src/models/gemma2.rs:610-622 | mistralrs-core/src/vision_models/gemma3/text.rs:858-870 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 175 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 \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs:539\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":"mistralrs-core/src/embedding_models/embedding_gemma.rs"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e0cceee77abf3443a47db2cff1b6447c4a47e6f9229580ce37753eeca32a216"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): mistralrs-core/src/models/flint.rs:867-879 | mistralrs-core/src/models/qwen3.rs:493-504 | mistralrs-core/src/models/qwen3_moe.rs:673-684 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/qwen3.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 396 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 \u0060mistralrs-core/src/models/flint.rs:867\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"888555aee6ebfddfb4325b9e34d53b74621fbebd753d10bac35757bf216154c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): mistralrs-core/src/models/gemma.rs:208-223 | mistralrs-core/src/models/phi2.rs:304-319 | mistralrs-core/src/vision_models/gemma3/text.rs:258-270 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/phi2.rs\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 418 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 \u0060mistralrs-core/src/models/gemma.rs:208\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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"7631426dd03e4934ca18a3ea59161a5ec54374116b5ffeea3c41b63f63164517"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): mistralrs-core/src/models/qwen3_next.rs:1086-1098 | mistralrs-core/src/vision_models/qwen3_5/text.rs:1551-1563 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:887-899 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/qwen3_next.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 176 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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":1086}}}],"partialFingerprints":{"codehealthFindingId/v1":"692b6980e1ff354084f674fcd2a2e63d81e1b9c59b3c82055f5572fa16d55fc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): mistralrs-core/src/pipeline/cuda_graph.rs:3619-3631 | mistralrs-core/src/pipeline/cuda_graph.rs:3664-3676 | mistralrs-core/src/pipeline/cuda_graph.rs:3709-3721 \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 \u0060mistralrs-core/src/pipeline/cuda_graph.rs:3619\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":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":3619}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a8fe63afbf9e96ca025dd6ed3aa5e29aeeeaf0daa85be86ab4ec6b67bc8e13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1671-1683 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1979-1991 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4908-4920 \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. 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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1671}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b57410c33f5df37034ef173b15cf20a903db4f69830b310a800b4bbe659bc92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4786-4798 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1076-1088 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6655-6667 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 445 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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4786\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":4786}}}],"partialFingerprints":{"codehealthFindingId/v1":"369b4bbb5cc75b13588ab2762431b2980ec9a5958fedd6d9935c78ec6fbf081c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): mistralrs-core/src/sampler.rs:966-977 | mistralrs-core/src/sampler.rs:1515-1527 | mistralrs-core/src/sampler.rs:1683-1694 \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 \u0060mistralrs-core/src/sampler.rs:966\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, \u0060mistralrs-core/src/sampler.rs:1513\u0060 calls \u0060clone\u0060 and \u0060mistralrs-core/src/sampler.rs:1681\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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0949b43e81dcc3cd04469810592b71ab097041d0ecb2c4b89759c03ae237791"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): mistralrs-core/src/sampler.rs:1179-1191 | mistralrs-core/src/sampler.rs:1259-1271 | mistralrs-core/src/sampler.rs:1729-1740 \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 \u0060mistralrs-core/src/sampler.rs:1179\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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"801ed543d88f305314685bb19d2afcc3015d37cc74b2f822475ce1c8e4cd584c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): mistralrs-core/src/vision_models/grid_processor.rs:1036-1048 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:256-268 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:822-834 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:1036\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b2edf4de7e7277328011cc576519d4ac5839760be0847ef3bd2fba1d2ea9529"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): mistralrs-core/src/vision_models/grid_processor.rs:1362-1374 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:562-574 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1170-1182 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:1362\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a54e702d05e82ed927219c499b1741638de669f2f558a281738de982a5511b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): mistralrs-core/src/vision_models/grid_processor.rs:1963-1975 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1044-1056 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1609-1621 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:1963\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1963}}}],"partialFingerprints":{"codehealthFindingId/v1":"435acb3ff9ac39446c8b1ec39e1adb72e5e364d5e44f05b86c1cf344541de73d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:288-300 | mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:525-537 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:457-468 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 288 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 \u0060mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:288\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":"mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"27da70741b6b486b5315fb30188c22351093413c6611c7bc193fcd09941c5e48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): mistralrs-core/src/vision_models/qwen3_5/config.rs:382-394 | mistralrs-core/src/vision_models/qwen3_5_moe/config.rs:192-204 | mistralrs-core/src/vision_models/qwen4_exp/config.rs:372-384 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/config.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/config.rs\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 2 separate duplicated blocks between them, totalling at least 101 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060mistralrs-core/src/vision_models/qwen3_5/config.rs:396\u0060 calls \u0060linear_key_dim\u0060 and \u0060mistralrs-core/src/vision_models/qwen4_exp/config.rs:386\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":"mistralrs-core/src/vision_models/qwen3_5/config.rs"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"714b2bb824fd89ddb55c681ec12fe015d1731af62904e1a5dd2bc533905bc342"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): mistralrs-core/src/xlora_models/classifier.rs:46-58 | mistralrs-core/src/xlora_models/classifier.rs:109-121 | mistralrs-core/src/xlora_models/classifier.rs:201-213 \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 \u0060mistralrs-core/src/xlora_models/classifier.rs:46\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":"mistralrs-core/src/xlora_models/classifier.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c8008ff3a0fd377fa28f70ee721a730f444709fc8354777f8b466edc481d8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): mistralrs-quant/src/safetensors.rs:745-757 | mistralrs-quant/src/safetensors.rs:795-807 | mistralrs-quant/src/safetensors.rs:870-882 \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. 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":"mistralrs-quant/src/safetensors.rs"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc60fa0d3d4160c6881d9afcba61f15209fdb887b2ef42e468104c5e73aa5e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-cli/src/commands/doctor.rs:28-40 | mistralrs-core/src/diagnostics.rs:433-445 \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":"mistralrs-cli/src/commands/doctor.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"670292b159b839e39ded1fc9191325906c6b9906514d2d6b13facd455b8588a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-cli/src/commands/quant/gguf_discovery.rs:136-148 | mistralrs-cli/src/commands/quant/gguf_discovery.rs:161-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 \u0060mistralrs-cli/src/commands/quant/gguf_discovery.rs: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":"mistralrs-cli/src/commands/quant/gguf_discovery.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"38151ca117a16ec2e4a81aef2f13b368ea6eea80515f7d49849d7700531b108d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-cli/src/commands/run/interactive.rs:1895-1907 | mistralrs-cli/src/commands/run/interactive.rs:2021-2033 \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 \u0060mistralrs-cli/src/commands/run/interactive.rs:1895\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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1895}}}],"partialFingerprints":{"codehealthFindingId/v1":"a17e650fb17ed96bbc567e2bd263b40eb113bd787a3f5d7470f46d4fd7d35aa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): mistralrs-cli/src/commands/run/interactive.rs:2049-2060 | mistralrs/src/model.rs:738-750 \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 \u0060mistralrs-cli/src/commands/run/interactive.rs:2049\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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":2049}}}],"partialFingerprints":{"codehealthFindingId/v1":"101edfa34e67b601dcb37259bb1ad928e57ea4f655dc0c1dff8f2c713d76a1d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): mistralrs-code-exec/src/shell.rs:208-220 | mistralrs-code-exec/src/shell.rs:270-281 \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 \u0060mistralrs-code-exec/src/shell.rs:208\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":"mistralrs-code-exec/src/shell.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe2fe291dfbe43e929b27c589bb257d3bdc144caf299b8640c7496bd3456fc97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201313 lines \u00D7 3): mistralrs-core/src/attention/backends/cpu/full.rs:212-224 | mistralrs-core/src/attention/backends/cpu/full.rs:469-481 | mistralrs-core/src/attention/backends/cpu/full.rs:587-590 \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. 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":"mistralrs-core/src/attention/backends/cpu/full.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d7d8d1422cff6ce54eb717433ef0286d0881687c58e5cc04058c439ebb4ef76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/diffusion_models/clip/text.rs:142-154 | mistralrs-core/src/vision_models/clip.rs:175-187 \u2014 before extracting anything, compare \u0060mistralrs-core/src/diffusion_models/clip/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/clip.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 36 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":"mistralrs-core/src/diffusion_models/clip/text.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e3838be7f1dfc7255b4ad06f29dba24c23d30508281bd419180e15164f5607"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/embedding_models/embedding_gemma.rs:185-197 | mistralrs-core/src/vision_models/gemma3/text.rs:158-170 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma3/text.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 286 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 \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs:185\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":"mistralrs-core/src/embedding_models/embedding_gemma.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8b22f19f372cecbb7fc927da4dfdcaa29426b649782f96fe83eb0ab5e5b0627"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/engine/add_request.rs:1174-1186 | mistralrs-core/src/engine/add_request.rs:1211-1223 \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 \u0060request\u0060 to \u0060TokenizationRequest\u0060 in one and \u0060DetokenizationRequest\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":"mistralrs-core/src/engine/add_request.rs"},"region":{"startLine":1174}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d4ff74d700163eef31a92f33347bfb92117e2633832d5b82c548c1f9721db5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/gguf/normal_config.rs:1421-1433 | mistralrs-core/src/gguf/normal_config.rs:2459-2471 \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 \u0060mistralrs-core/src/gguf/normal_config.rs:1421\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":"mistralrs-core/src/gguf/normal_config.rs"},"region":{"startLine":1421}}}],"partialFingerprints":{"codehealthFindingId/v1":"272e8fd3a1604fce7422dd9ef0903b7da517ab3570b46f426aae0c2bb2ef8cbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): mistralrs-core/src/gguf/normal_config.rs:1801-1812 | mistralrs-core/src/gguf/normal_config.rs:1871-1883 \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 \u0060mistralrs-core/src/gguf/normal_config.rs:1801\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, \u0060mistralrs-core/src/gguf/normal_config.rs:1869\u0060 calls \u0060into\u0060, \u0060has_tensor_marker\u0060 and \u0060mistralrs-core/src/gguf/normal_config.rs:1801\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":"mistralrs-core/src/gguf/normal_config.rs"},"region":{"startLine":1801}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b122fa48a891db0a4b2a5ab2ffafb09d029b092054f39e21c9a858278795be0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/kv_cache/mod.rs:1204-1216 | mistralrs-core/src/kv_cache/mod.rs:1352-1364 \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, \u0060mistralrs-core/src/kv_cache/mod.rs:1202\u0060 calls \u0060cache\u0060, \u0060hybrid\u0060, \u0060num_layers\u0060 and \u0060mistralrs-core/src/kv_cache/mod.rs:1351\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":"mistralrs-core/src/kv_cache/mod.rs"},"region":{"startLine":1204}}}],"partialFingerprints":{"codehealthFindingId/v1":"458a8be0001b3bb85414c8e0b87902efe9b63e0be0beed559e6ab205acf59976"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/layers.rs:1037-1049 | mistralrs-core/src/layers.rs:2315-2327 \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":"mistralrs-core/src/layers.rs"},"region":{"startLine":1037}}}],"partialFingerprints":{"codehealthFindingId/v1":"f43cfd8127d214c23b09288be3fef8667fea03f9c8b2750c357000f60f7f4a0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/layers.rs:1193-1205 | mistralrs-core/src/layers.rs:1283-1295 \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 \u0060mistralrs-core/src/layers.rs:1193\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":"mistralrs-core/src/layers.rs"},"region":{"startLine":1193}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d8b9c8e183e581172d310775d93105f9b346aad281a460938134eceae8f18b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/lora/loralinear.rs:146-158 | mistralrs-core/src/lora/qloralinear.rs:191-203 \u2014 before extracting anything, compare \u0060mistralrs-core/src/lora/loralinear.rs\u0060 and \u0060mistralrs-core/src/lora/qloralinear.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 151 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. 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":"mistralrs-core/src/lora/loralinear.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"53509c343682dc8ffa4a8778891c24a0a4640e9c95d053f24fe49cc944ba0bbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): mistralrs-core/src/mla/forward.rs:241-253 | mistralrs-core/src/mla/forward.rs:397-408 \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":"mistralrs-core/src/mla/forward.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab0029d35030e7d043623736502f90cd518e33e95f06b3873c9d2f86349eb5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/model_loader.rs:765-777 | mistralrs-core/src/toml_selector.rs:1041-1053 \u2014 before extracting anything, compare \u0060mistralrs-core/src/model_loader.rs\u0060 and \u0060mistralrs-core/src/toml_selector.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 199 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 \u0060mistralrs-core/src/model_loader.rs:765\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":"mistralrs-core/src/model_loader.rs"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"2076158f077730f1b6c3936b61dc6723968e353cfd59a5ec377e462fc04244a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/models/flint.rs:436-448 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:288-300 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 194 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 \u0060mistralrs-core/src/models/flint.rs:436\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ef0d5d1dd52dc648ec02cf69e709e8fdea68be70e02150935d46ea0e520faf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): mistralrs-core/src/models/flint.rs:776-786 | mistralrs-core/src/models/qwen3_next.rs:730-742 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/qwen3_next.rs\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 229 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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"97dad0d76b2cf342604e3aa98a98dde7f8b8a7e71f143a207d2ebf17e8282d09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/models/gemma2.rs:581-593 | mistralrs-core/src/vision_models/gemma3/text.rs:752-764 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma2.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma3/text.rs\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 411 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 \u0060mistralrs-core/src/models/gemma2.rs:581\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":"mistralrs-core/src/models/gemma2.rs"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f8129241fe2c78cefd3d50916454fc37ab4aedb9e26823452e3158f51054bbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/models/glm4_moe.rs:867-879 | mistralrs-core/src/models/glm4_moe.rs:907-919 \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":"mistralrs-core/src/models/glm4_moe.rs"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"792498515f5bd1a0729a98d1f8f13fe492d49e98811f497af1f5d0a2ca65ec9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/models/lfm2.rs:1137-1149 | mistralrs-core/src/models/lfm3.rs:1059-1071 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/lfm2.rs\u0060 and \u0060mistralrs-core/src/models/lfm3.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 402 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 \u0060mistralrs-core/src/models/lfm2.rs:1137\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":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":1137}}}],"partialFingerprints":{"codehealthFindingId/v1":"0377149693baad7bf20ffd5954e08bc8cba3736f5b02e0e06813051b27946b48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/models/quantized_llama.rs:151-164 | mistralrs-core/src/xlora_models/quantized_llama.rs:275-288 \u2014 \u0060mistralrs-core/src/models/quantized_llama.rs\u0060 and \u0060mistralrs-core/src/xlora_models/quantized_llama.rs\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 4 separate duplicated blocks between them, totalling at least 58 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":"mistralrs-core/src/models/quantized_llama.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"a967209c1d26059f0162ce47c3a22cb6cfa79e546e64f031137b71fbfe276990"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/ops.rs:1597-1610 | mistralrs-core/src/ops.rs:1839-1852 \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":"mistralrs-core/src/ops.rs"},"region":{"startLine":1597}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea68f751c8b4598bac153b459a810813314603452e0fbf12788275df1dd6fd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/ops.rs:5764-5779 | mistralrs-core/src/ops.rs:6197-6212 \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 \u0060mistralrs-core/src/ops.rs:5764\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":5764}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdd88cd5646f3ec8e26d68c45ec98e5a3d7e2ea3a3cfadfff461b5c76cb86705"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/pipeline/amoe.rs:128-140 | mistralrs-core/src/pipeline/amoe.rs:170-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060mistralrs-core/src/pipeline/amoe.rs:128\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":"mistralrs-core/src/pipeline/amoe.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"54ee4a3b31e0bf8c45b78f16b713faa3cff78b4f028aba6c2c5a3299bad87e3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): mistralrs-core/src/pipeline/inputs_processor.rs:1014-1026 | mistralrs-core/src/pipeline/inputs_processor.rs:1685-1695 \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 \u0060mistralrs-core/src/pipeline/inputs_processor.rs:1014\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":"mistralrs-core/src/pipeline/inputs_processor.rs"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f640542dff1a5c51e99b1674c7aa078c798aeba1f51baed3a1d175fd61cf7d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): mistralrs-core/src/pipeline/inputs_processor.rs:1318-1329 | mistralrs-core/src/pipeline/inputs_processor.rs:1356-1368 \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 \u0060mistralrs-core/src/pipeline/inputs_processor.rs:1356\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":"mistralrs-core/src/pipeline/inputs_processor.rs"},"region":{"startLine":1318}}}],"partialFingerprints":{"codehealthFindingId/v1":"77fcb0aa888ddb38a9b22da342e34752797ed4ac9ae4a19614a01116b209f585"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:506-518 | mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:708-720 \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 \u0060mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:506\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":"mistralrs-core/src/pipeline/loaders/embedding_loaders.rs"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"370fccab3a4ab6300dc0e5362a927b3fc870d2b54478bbc7665ec68f111cd309"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1001-1013 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1033-1045 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1001\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"108dec2d506c4ad64637493528d2cc6d4709822fee392fb4b459b50c8282f72f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1688-1700 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1996-2008 \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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1688}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1f80384f00c3aba773a3cb07b4b9dd648a8824ed95d77d3986f5aa55eb9373"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6898-6910 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7343-7355 \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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":6898}}}],"partialFingerprints":{"codehealthFindingId/v1":"af2967f5dd11d730e0eb376e04e826e4fb97871d85b367adda60ea46466dab62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1816-1828 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2725-2737 \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":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":1816}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b0ed323abb82ee3d04daf9e02340c5aaae34f7c0c63993948c8e8ff2b7d454"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3690-3702 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5248-5260 \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 \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3690\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":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":3690}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b714a08ceb7d63f117300d259b324dedb4721318bdcd5f64acbeacf7e602ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1884-1896 | mistralrs-core/src/pipeline/normal.rs:1734-1746 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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. 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1884}}}],"partialFingerprints":{"codehealthFindingId/v1":"24bc40763cf46428380090a381d982182692c35997249cd704e2614cf85ac014"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/pipeline/prompt_chunks.rs:69-81 | mistralrs-core/src/pipeline/prompt_chunks.rs:106-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 \u0060mistralrs-core/src/pipeline/prompt_chunks.rs:69\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":"mistralrs-core/src/pipeline/prompt_chunks.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd903b5f697e8a2c7a152ff65d325a6402f602928485c29c3191ef8c913a7e90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): mistralrs-core/src/sampler.rs:1486-1503 | mistralrs-core/src/sampler.rs:1656-1672 \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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":1486}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e9844749e25ced9495d083df668ccfa59481cffe21492ac86d3cd92d01fc7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/speculative/proposer.rs:495-507 | mistralrs-core/src/vision_models/gemma4/mtp.rs:309-321 \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 \u0060mistralrs-core/src/speculative/proposer.rs:495\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":"mistralrs-core/src/speculative/proposer.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"48eb2fdac60b540e6edfadb4b2150f4d8f325256aab0313a35733028b86ea20d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): mistralrs-core/src/utils/gguf_metadata.rs:416-427 | mistralrs-core/src/utils/gguf_metadata.rs:641-653 \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 \u0060mistralrs-core/src/utils/gguf_metadata.rs:416\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":"mistralrs-core/src/utils/gguf_metadata.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"d98f0ad6de4f096442d66b83374007ab5e87788462560b189793fed56ec849d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/utils/memory_usage.rs:259-271 | mistralrs-core/src/utils/memory_usage.rs:291-303 \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":"mistralrs-core/src/utils/memory_usage.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"295e0d732804919bc14a90a9130d47f6dd6c6d3ee18d1c18040dda3012883461"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201313 lines \u00D7 2): mistralrs-core/src/utils/tiktoken.rs:123-135 | mistralrs-core/src/utils/tokenizer.rs:121-128 \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 \u0060mistralrs-core/src/utils/tiktoken.rs:123\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":"mistralrs-core/src/utils/tiktoken.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b25cfc4c5ddec9e5cafdb465f885a8ce979ae2ed5a53cfadde0190c8f22583b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/utils/varbuilder_utils.rs:138-150 | mistralrs-core/src/utils/varbuilder_utils.rs:155-167 \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 \u0060mistralrs-core/src/utils/varbuilder_utils.rs:138\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":"mistralrs-core/src/utils/varbuilder_utils.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f33c2af599ca7fc00fcb9f1721b4d6234f872e808316947340f8db3e1faa145"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs:616-628 | mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:556-569 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 98 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 \u0060mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:556\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":"mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"6af8d1e792309abb305d0ffe87d079772101d426d0650cd56b6371594728d382"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:1138-1150 | mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:1391-1401 \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 \u0060mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:1138\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":"mistralrs-core/src/vision_models/gemma4/inputs_processor.rs"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a57435075637bbe19c3bd254db1743a5a2601011e826096ab1534c56882a138"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:736-748 | mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:962-974 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/idefics3/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 120 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 \u0060mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:736\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, \u0060mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:750\u0060 calls \u0060is_some_and\u0060, \u0060ImageRgb8\u0060, \u0060to_rgb8\u0060 and \u0060mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:975\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":"mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"4752e899fd318262e7ed4098892e23e3e13235b68a047cd2185efbfa2c8e6af2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/vision_models/idefics2/mod.rs:639-651 | mistralrs-core/src/vision_models/siglip.rs:455-467 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics2/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/siglip.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 256 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 \u0060mistralrs-core/src/vision_models/idefics2/mod.rs:639\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 \u0060\u0026VisionConfig\u0060 in one and \u0060\u0026SiglipVisionConfig\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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8c0f591a961b4437b78e26dad85bc578997c0813992e49b822721cc12fd94e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/vision_models/lfm3_omni/audio.rs:249-261 | mistralrs-core/src/vision_models/lfm3_omni/generation.rs:259-271 \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 \u0060mistralrs-core/src/vision_models/lfm3_omni/audio.rs: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":"mistralrs-core/src/vision_models/lfm3_omni/audio.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ba7d096c4e80f5302456a49bf876ae987b67a7b7d8b47aaea36c368d35863c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 2): mistralrs-core/src/vision_models/llama4/vision.rs:567-576 | mistralrs-core/src/vision_models/mllama/vision.rs:507-519 \u2014 \u0060mistralrs-core/src/vision_models/llama4/vision.rs\u0060 and \u0060mistralrs-core/src/vision_models/mllama/vision.rs\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 6 separate duplicated blocks between them, totalling at least 67 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 \u0060mistralrs-core/src/vision_models/mllama/vision.rs:507\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":"mistralrs-core/src/vision_models/llama4/vision.rs"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ed105c64078cc3426e067eb8e976540b49d2906b928d99da71cfd903d93c953"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:179-191 | mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:244-256 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 222 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 \u0060mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:179\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":"mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6147cea720e13cfb051b12ecf79d142dda866cc727f718c97c861ba7694b3e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:432-444 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:390-402 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 288 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 \u0060mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:432\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":"mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c19259a25845ec46b27447e6537d680be4cef1f703571e5a0e2828d3fb3cbc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/speculative.rs:610-622 | mistralrs-core/src/vision_models/qwen4_exp/speculative.rs:111-123 \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":"mistralrs-core/src/vision_models/qwen3_5/speculative.rs"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c574b83f38382e2ec7c7fcad607c7ecefdd3f123611a2ea90537949ea7ff4b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/text.rs:1371-1383 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:801-813 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs\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 26 separate duplicated blocks between them, totalling at least 469 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 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs:1371\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, \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs:1369\u0060 calls \u0060checkpoint_lanes\u0060, \u0060dim\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:800\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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":1371}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8a28d4a724847ead7e28246c22ee97afb753df895a783e856d7fe16df140d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/xlora_models/gemma2.rs:648-660 | mistralrs-core/src/xlora_models/phi2.rs:571-583 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 and \u0060mistralrs-core/src/xlora_models/phi2.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 304 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 \u0060mistralrs-core/src/xlora_models/gemma2.rs:648\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, \u0060mistralrs-core/src/xlora_models/gemma2.rs:647\u0060 calls \u0060get\u0060, \u0060device\u0060 and \u0060mistralrs-core/src/xlora_models/phi2.rs:570\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":"mistralrs-core/src/xlora_models/gemma2.rs"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"857455e8b52b891fa18813bf2ba90cdf67839e2bd858c90369fdb61cfeca80d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/xlora_models/mixtral.rs:383-395 | mistralrs-core/src/xlora_models/quantized_llama.rs:123-135 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/mixtral.rs\u0060 and \u0060mistralrs-core/src/xlora_models/quantized_llama.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 118 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":"mistralrs-core/src/xlora_models/mixtral.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"be4c3e677d9003dff267f416627b3efb509ca17ce7ff3256cb91cf25527bbbb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/xlora_models/quantized_llama.rs:343-355 | mistralrs-core/src/xlora_models/quantized_llama.rs:645-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 \u0060mistralrs-core/src/xlora_models/quantized_llama.rs:343\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":"mistralrs-core/src/xlora_models/quantized_llama.rs"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb173a1dfb56d0435a5fdd6e317bde8be1d92cb9c9e818dcba6282cd18d07261"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-flash-attn/src/flash.rs:40-55 | mistralrs-flash-attn/src/flash.rs:526-541 \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":"mistralrs-flash-attn/src/flash.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"52a11e8d90215a831dd5986ac314527a26fe17569ee3bbc1b19991e02e5a6222"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-pyo3/src/lib.rs:158-170 | mistralrs-server-core/src/chat_completion.rs:813-825 \u2014 before extracting anything, compare \u0060mistralrs-pyo3/src/lib.rs\u0060 and \u0060mistralrs-server-core/src/chat_completion.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 89 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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c43bddf04a21e511f49bec33adf87591670a788f8c51b8af804f0d9187dd3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-pyo3/src/lib.rs:187-199 | mistralrs-server-core/src/chat_completion.rs:827-839 \u2014 before extracting anything, compare \u0060mistralrs-pyo3/src/lib.rs\u0060 and \u0060mistralrs-server-core/src/chat_completion.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 89 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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"f56424605b4dcc975691f3e38e25438cfdd28581f5026a4455385b21f2ccaae2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-pyo3/src/lib.rs:201-213 | mistralrs-server-core/src/chat_completion.rs:846-858 \u2014 before extracting anything, compare \u0060mistralrs-pyo3/src/lib.rs\u0060 and \u0060mistralrs-server-core/src/chat_completion.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 89 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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c765b78decd62327ca8f1461583841ffa285f9fb074ce45960f16e8b66c297"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-pyo3/src/lib.rs:1945-1957 | mistralrs-pyo3/src/lib.rs:2435-2447 \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 \u0060mistralrs-pyo3/src/lib.rs:1945\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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":1945}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb34fc3b3489105ed1bc7f7f32cb5a941f81f2ff777b13315eeb261f6401dd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-quant/src/afq/ops.rs:447-459 | mistralrs-quant/src/afq/ops.rs:551-563 \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 \u0060mistralrs-quant/src/afq/ops.rs:447\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":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca0dda66160f9535cdb4a75be8a5f96834c17d3a711886d79e16fc9076a5fa57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-quant/src/afq/ops.rs:2128-2140 | mistralrs-quant/src/afq/ops.rs:2640-2652 \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 \u0060mistralrs-quant/src/afq/ops.rs:2128\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, \u0060mistralrs-quant/src/afq/ops.rs:2654\u0060 calls \u0060slice_ptr\u0060, \u0060layout\u0060, \u0060start_offset\u0060 and \u0060mistralrs-quant/src/afq/ops.rs:2141\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":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":2128}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eaeba1f6151286d739a1856f3c9b9774b7a3d5724ed69aeb72794cb9d3b83a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): mistralrs-quant/src/afq/ops.rs:2141-2152 | mistralrs-quant/src/afq/ops.rs:2655-2667 \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 \u0060mistralrs-quant/src/afq/ops.rs:2141\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":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":2141}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d23763273c7ef96e2b01bd58114f86835ca1b07977b3129e20ac2f3c108825"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-quant/src/cublaslt/api.rs:55-67 | mistralrs-quant/src/cublaslt/api.rs:367-379 \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":"mistralrs-quant/src/cublaslt/api.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f38bf48cdd9736dcd0e574b92c78f68a3e6256d40486e14558dc769184f8e1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:61-75 | mistralrs-quant/src/cutile/fp8_w8a16.rs:109-123 \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 \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs:61\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":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c518a740ec9a5cceebd4337266ecc197d19e578a99f6d4afc38b08eaeb42e9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:580-592 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:1024-1035 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fused_moe.rs\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe_fp8.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 298 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 \u0060mistralrs-quant/src/cutile/fused_moe.rs:580\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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"54cb53d483a77d4b22f8db85bdd736b78d692d908d92ebca6370c906b0122032"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:829-841 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:746-758 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fused_moe.rs\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe_fp8.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 298 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 \u0060mistralrs-quant/src/cutile/fused_moe.rs:829\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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"18fe8578c42cc079f9741d8e2db464f9c8d3f470bf40609bf638f14ec9d96609"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_gemv.rs:342-354 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1199-1210 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/nvfp4_gemv.rs\u0060 and \u0060mistralrs-quant/src/cutile/nvfp4_matmul.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 98 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 \u0060mistralrs-quant/src/cutile/nvfp4_gemv.rs:342\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":"mistralrs-quant/src/cutile/nvfp4_gemv.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7860758c4f34c5c17cadeb8d0cd55c6278fb2fa5fff893a9f86c8b001cbcfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_glu.rs:332-344 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:416-428 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/nvfp4_glu.rs\u0060 and \u0060mistralrs-quant/src/cutile/nvfp4_matmul.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 70 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":"mistralrs-quant/src/cutile/nvfp4_glu.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"733e7a83afd01b62917b96e167dc9dbe024b14ffce51e04345b85acc8107b4a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_matmul.rs:158-170 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:262-274 \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":"mistralrs-quant/src/cutile/nvfp4_matmul.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"4caad8a9690594c7e2ca761881f023aedfed314ee6c7e9d706bfea2189431a2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_matmul.rs:739-751 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1325-1337 \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 \u0060mistralrs-quant/src/cutile/nvfp4_matmul.rs:739\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":"mistralrs-quant/src/cutile/nvfp4_matmul.rs"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"50a50b1d65f3ef618429c62b834c426653439065c83da1e65dd683294c305fd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:728-740 | mistralrs-quant/src/distributed/layers.rs:1310-1320 \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 \u0060mistralrs-quant/src/distributed/layers.rs:728\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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"49151070acf4861c08d3844c7e6b2c0c277a36999efbd131e751c0a1275213f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-quant/src/hqq/mod.rs:225-237 | mistralrs-quant/src/hqq/mod.rs:313-325 \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 \u0060mistralrs-quant/src/hqq/mod.rs: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":"mistralrs-quant/src/hqq/mod.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"187b87c6a880cdfc1c7250c2c2cd17e29eedbd3b449b23c8eb8a0115719f6c97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-quant/src/metal_kernels/mod.rs:1166-1178 | mistralrs-quant/src/metal_kernels/mod.rs:1232-1244 \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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf00d8bb43072e657cb31d6e18ab10f82ce2e35b6f18967d26541228dda5a65b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-quant/src/metal_kernels/mod.rs:4088-4100 | mistralrs-quant/src/metal_kernels/mod.rs:4123-4135 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:4088\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":4088}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3efbdb5be7977c8f21d280223fae6f8938d590a7f2df4ba6447a45e731be712"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-quant/src/metal_kernels/mod.rs:4787-4799 | mistralrs-quant/src/metal_kernels/mod.rs:4858-4870 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:4787\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":4787}}}],"partialFingerprints":{"codehealthFindingId/v1":"912c755635d22b04ec27c5631e3676595308dc512f820635cf29ba7c48d8eba1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 2): mistralrs-quant/src/unquantized/mod.rs:185-197 | mistralrs-quant/src/unquantized/mod.rs:234-242 \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 \u0060mistralrs-quant/src/unquantized/mod.rs:185\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":"mistralrs-quant/src/unquantized/mod.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5a4535c42df4650b87eb839798aa51aa6c39594c8449aa1eb87694477845cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-server-core/src/mistralrs_for_server_builder.rs:760-772 | mistralrs-server-core/src/mistralrs_for_server_builder.rs:938-950 \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":"mistralrs-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f033628e48381fdf6dd369391f5ab54a29c4321e6d61124069c339626efbdde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-server-core/src/mistralrs_for_server_builder.rs:924-936 | mistralrs-server-core/src/mistralrs_for_server_builder.rs:1148-1160 \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, \u0060mistralrs-server-core/src/mistralrs_for_server_builder.rs:1146\u0060 calls \u0060get_model_dtype\u0060, \u0060get_auto_device_map_params\u0060 and \u0060mistralrs-server-core/src/mistralrs_for_server_builder.rs:923\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":"mistralrs-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"64719278b026d64fcb9b1c6878ab1421da922bdf459ddf3afa20a218784258ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-server-core/src/mistralrs_for_server_builder.rs:1042-1054 | mistralrs-server-core/src/mistralrs_for_server_builder.rs:1216-1228 \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":"mistralrs-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7681006c228365b455990bae4e01ceacdbb57c55d52ef638f49cc57336c21fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs/src/messages.rs:518-534 | mistralrs/src/messages.rs:1228-1244 \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 \u0060mistralrs/src/messages.rs:1228\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":"mistralrs/src/messages.rs"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"3827ceef571d57757f519560f0c0f4c1f21df54cbf284673c64c841c73fda41d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs/src/model.rs:687-699 | mistralrs/src/model.rs:765-777 \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 \u0060mistralrs/src/model.rs:687\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":"mistralrs/src/model.rs"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"23fd164600a25dc52d7231e7f3c7b628a18c4b03e5715c4af3e3b3a1472a9a88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs/src/model_builder_trait.rs:1230-1242 | mistralrs/src/model_builder_trait.rs:1646-1658 \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 \u0060mistralrs/src/model_builder_trait.rs:1230\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":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f0566128ec90ad6bad65dd73fc207e6a26814d1703cc49e1a98d353a95f36c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 28): mistralrs-core/src/models/flint.rs:403-414 | mistralrs-core/src/models/gemma2.rs:255-269 | mistralrs-core/src/models/glm4.rs:255-269 | mistralrs-core/src/models/glm4_moe.rs:323-334 | mistralrs-core/src/models/gpt_oss.rs:288-299 | mistralrs-core/src/models/granite.rs:1584-1595 | mistralrs-core/src/models/hunyuan_v1_dense.rs:234-245 | mistralrs-core/src/models/hunyuan_v1_moe.rs:420-431 | mistralrs-core/src/models/llama.rs:116-130 | mistralrs-core/src/models/mistral.rs:256-270 | mistralrs-core/src/models/mixtral.rs:192-206 | mistralrs-core/src/models/phi3_5_moe.rs:222-236 | mistralrs-core/src/models/qwen2.rs:286-300 | mistralrs-core/src/models/qwen3.rs:241-255 | mistralrs-core/src/models/qwen3_moe.rs:244-258 | mistralrs-core/src/models/qwen3_next.rs:328-339 | mistralrs-core/src/models/smollm3.rs:133-147 | mistralrs-core/src/models/starcoder2.rs:268-282 | mistralrs-core/src/vision_models/llama4/text.rs:488-502 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:90-104 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:259-273 | mistralrs-core/src/vision_models/muse_glimmer/text.rs:283-294 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:250-261 | mistralrs-core/src/vision_models/qwen2vl/text.rs:251-262 | mistralrs-core/src/vision_models/qwen3_5/text.rs:375-386 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:243-254 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:247-261 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:353-364 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 190 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 \u0060mistralrs-core/src/models/flint.rs:403\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"d080e77789e20dfe96c2861585734fff30708103dd25e4889f7a811e2089f153"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 23): mistralrs-core/src/models/flint.rs:393-404 | mistralrs-core/src/models/gemma.rs:198-209 | mistralrs-core/src/models/gemma2.rs:245-256 | mistralrs-core/src/models/gpt_oss.rs:278-289 | mistralrs-core/src/models/hunyuan_v1_dense.rs:224-235 | mistralrs-core/src/models/hunyuan_v1_moe.rs:410-421 | mistralrs-core/src/models/lfm2.rs:519-530 | mistralrs-core/src/models/lfm3.rs:495-506 | mistralrs-core/src/models/llama.rs:106-117 | mistralrs-core/src/models/mistral.rs:246-257 | mistralrs-core/src/models/mixtral.rs:182-193 | mistralrs-core/src/models/phi2.rs:294-305 | mistralrs-core/src/models/phi3_5_moe.rs:212-223 | mistralrs-core/src/models/qwen2.rs:276-287 | mistralrs-core/src/models/qwen3.rs:231-242 | mistralrs-core/src/models/qwen3_moe.rs:234-245 | mistralrs-core/src/models/qwen3_next.rs:318-329 | mistralrs-core/src/models/smollm3.rs:123-134 | mistralrs-core/src/models/starcoder2.rs:258-269 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:80-91 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:249-260 | mistralrs-core/src/vision_models/mllama/text.rs:194-205 | mistralrs-core/src/vision_models/voxtral/mod.rs:159-170 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/gemma.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 152 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 \u0060mistralrs-core/src/models/flint.rs:393\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, \u0060mistralrs-core/src/models/gemma.rs:214\u0060 calls \u0060is_none\u0060 and \u0060mistralrs-core/src/models/lfm2.rs:532\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6749782ff75ec888d5be58a58414e1c17b5114de5515695ac58bf3b730ad634"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 18): mistralrs-core/src/models/flint.rs:389-399 | mistralrs-core/src/models/gemma.rs:194-204 | mistralrs-core/src/models/gpt_oss.rs:275-284 | mistralrs-core/src/models/hunyuan_v1_dense.rs:220-230 | mistralrs-core/src/models/hunyuan_v1_moe.rs:406-416 | mistralrs-core/src/models/llama.rs:102-112 | mistralrs-core/src/models/mistral.rs:242-252 | mistralrs-core/src/models/mixtral.rs:178-188 | mistralrs-core/src/models/phi2.rs:290-300 | mistralrs-core/src/models/phi3_5_moe.rs:208-218 | mistralrs-core/src/models/qwen3.rs:227-237 | mistralrs-core/src/models/qwen3_moe.rs:230-240 | mistralrs-core/src/models/qwen3_next.rs:313-324 | mistralrs-core/src/models/smollm3.rs:119-129 | mistralrs-core/src/models/starcoder2.rs:254-264 | mistralrs-core/src/vision_models/gemma3/text.rs:245-254 | mistralrs-core/src/vision_models/mllama/text.rs:191-200 | mistralrs-core/src/vision_models/voxtral/mod.rs:156-165 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/gemma.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 152 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 \u0060mistralrs-core/src/models/flint.rs:389\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, \u0060mistralrs-core/src/models/hunyuan_v1_dense.rs:218\u0060 calls \u0060forward\u0060 and \u0060mistralrs-core/src/models/gemma.rs:193\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"574c980d72e5879c651bafc95ad60902c563a3c31f3a5b8db99d2c2279cdd6c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 13): mistralrs-core/src/models/deepseek2.rs:827-838 | mistralrs-core/src/models/deepseek3.rs:890-901 | mistralrs-core/src/models/glm4_moe.rs:727-738 | mistralrs-core/src/models/glm4_moe_lite.rs:837-848 | mistralrs-core/src/models/mixtral.rs:480-491 | mistralrs-core/src/models/qwen2.rs:511-522 | mistralrs-core/src/vision_models/gemma3/text.rs:530-542 | mistralrs-core/src/vision_models/gemma3n/text.rs:1473-1485 | mistralrs-core/src/vision_models/mllama/text.rs:770-782 | mistralrs-core/src/vision_models/phi3/mod.rs:1274-1285 | mistralrs-core/src/vision_models/phi4/mod.rs:389-400 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:475-486 | mistralrs-core/src/vision_models/qwen2vl/text.rs:477-488 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:827\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, \u0060mistralrs-core/src/vision_models/mllama/text.rs:784\u0060 calls \u0060pp\u0060 and \u0060mistralrs-core/src/models/deepseek2.rs:839\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ffea12641f06262d56b08b183c5725e1bf5b829cbf614350ebcaa563e27462a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 13): mistralrs-core/src/models/glm4.rs:590-599 | mistralrs-core/src/models/hunyuan_v1_dense.rs:552-561 | mistralrs-core/src/models/hunyuan_v1_moe.rs:1046-1055 | mistralrs-core/src/models/mistral.rs:600-610 | mistralrs-core/src/models/mixtral.rs:538-548 | mistralrs-core/src/models/phi3.rs:546-557 | mistralrs-core/src/models/phi3_5_moe.rs:619-630 | mistralrs-core/src/models/qwen3.rs:553-563 | mistralrs-core/src/models/qwen3_moe.rs:733-743 | mistralrs-core/src/models/starcoder2.rs:540-550 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:552-561 | mistralrs-core/src/vision_models/phi3/mod.rs:1349-1359 | mistralrs-core/src/vision_models/phi4/mod.rs:511-521 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/glm4.rs\u0060 and \u0060mistralrs-core/src/models/hunyuan_v1_dense.rs\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 508 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 \u0060mistralrs-core/src/models/glm4.rs:590\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 \u0060ctx\u0060 to \u0060\u0026mut ModelForwardContext\u003C\u0027_\u003E\u0060 in one and \u0060\u0026mut crate::pipeline::ModelForwardContext\u003C\u0027_\u003E\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":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd65a3b1ee4ac297dc8f381c3084df8c60709c02d0b681fd1153a72de63f0ff3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 10): mistralrs-core/src/models/deepseek2.rs:955-967 | mistralrs-core/src/models/deepseek3.rs:1018-1030 | mistralrs-core/src/models/gemma.rs:468-480 | mistralrs-core/src/models/gemma2.rs:544-556 | mistralrs-core/src/models/glm4_moe.rs:834-845 | mistralrs-core/src/models/glm4_moe_lite.rs:971-982 | mistralrs-core/src/models/llama.rs:494-506 | mistralrs-core/src/models/phi2.rs:547-559 | mistralrs-core/src/models/qwen2.rs:574-585 | mistralrs-core/src/models/smollm3.rs:513-525 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060ctx\u0060 to \u0060\u0026mut ModelForwardContext\u003C\u0027_\u003E\u0060 in one and \u0060\u0026mut crate::pipeline::ModelForwardContext\u003C\u0027_\u003E\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"d17cff01ab35f96b0a612536e94d398e6905eea169d1f471cf8e4e8d663eb620"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 9): mistralrs-core/src/models/deepseek2.rs:725-736 | mistralrs-core/src/models/deepseek3.rs:788-799 | mistralrs-core/src/models/glm4_moe.rs:625-636 | mistralrs-core/src/models/glm4_moe_lite.rs:734-745 | mistralrs-core/src/models/mixtral.rs:339-350 | mistralrs-core/src/xlora_models/llama.rs:357-368 | mistralrs-core/src/xlora_models/mistral.rs:337-348 | mistralrs-core/src/xlora_models/mixtral.rs:464-475 | mistralrs-core/src/xlora_models/phi3.rs:302-313 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:725\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, \u0060mistralrs-core/src/models/deepseek2.rs:722\u0060 calls \u0060pp\u0060 and \u0060mistralrs-core/src/xlora_models/llama.rs:354\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"602bfce7e6fcb4520c5bef89a942baf4556838eac8c5371d0279a4468d233314"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 8): mistralrs-quant/src/metal_kernels/mod.rs:524-535 | mistralrs-quant/src/metal_kernels/mod.rs:570-581 | mistralrs-quant/src/metal_kernels/mod.rs:616-627 | mistralrs-quant/src/metal_kernels/mod.rs:3266-3277 | mistralrs-quant/src/metal_kernels/mod.rs:3389-3399 | mistralrs-quant/src/metal_kernels/mod.rs:3453-3463 | mistralrs-quant/src/metal_kernels/mod.rs:3517-3527 | mistralrs-quant/src/metal_kernels/mod.rs:3582-3592 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:524\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"78eb8d9b2b7a3f771822a2bf22c2b951abbc2a8ccf1a320f6dd3f25579aae2f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 7): mistralrs-core/src/embedding_models/qwen3_embedding.rs:249-260 | mistralrs-core/src/models/glm4.rs:335-346 | mistralrs-core/src/models/llama.rs:283-294 | mistralrs-core/src/models/mistral.rs:330-341 | mistralrs-core/src/models/qwen2.rs:362-373 | mistralrs-core/src/models/qwen3.rs:318-329 | mistralrs-core/src/models/smollm3.rs:299-310 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/models/glm4.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 137 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 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:249\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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"50f4cf55ef634c0f5da9ce2c12bcf0252f6d56c887c3ec67d16eca444c548d86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): mistralrs-core/src/embedding_models/qwen3_embedding.rs:101-112 | mistralrs-core/src/models/qwen3.rs:112-123 | mistralrs-core/src/models/qwen3_moe.rs:115-126 | mistralrs-core/src/vision_models/llama4/text.rs:338-349 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:113-124 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:219-230 \u2014 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/models/qwen3.rs\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 26 separate duplicated blocks between them, totalling at least 364 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 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:101\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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc210107d10d52cd683b168355fcd1e2e59930ff5726cc9dcda12e50e5bdbc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): mistralrs-core/src/embedding_models/qwen3_embedding.rs:371-382 | mistralrs-core/src/models/glm4.rs:485-496 | mistralrs-core/src/models/hunyuan_v1_dense.rs:450-461 | mistralrs-core/src/models/hunyuan_v1_moe.rs:944-955 | mistralrs-core/src/models/qwen2.rs:476-487 | mistralrs-core/src/models/qwen3.rs:444-455 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/models/glm4.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 137 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 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:371\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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a35f516a449c5043a38550a7200831f2a740290f394d0387208bb9be4730dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): mistralrs-core/src/models/gemma.rs:391-402 | mistralrs-core/src/models/gemma2.rs:464-475 | mistralrs-core/src/vision_models/gemma3/text.rs:503-514 | mistralrs-core/src/vision_models/gemma3n/text.rs:1443-1454 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:436-447 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:556-567 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 707 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 \u0060mistralrs-core/src/models/gemma.rs:391\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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcbf570818a772660aad5c5f62423a7e541058cda2a6107a94763a83896a1b6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): mistralrs-core/src/vision_models/grid_processor.rs:1007-1018 | mistralrs-core/src/vision_models/grid_processor.rs:1316-1327 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:230-241 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:520-531 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:796-807 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1128-1139 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:1007\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"9789106b3f0fb26ba47e2a1351ac292133bf953bff4e13552669c8ac485f219c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): mistralrs-core/src/embedding_models/qwen3_embedding.rs:103-114 | mistralrs-core/src/models/glm4.rs:136-147 | mistralrs-core/src/models/glm4_moe.rs:188-199 | mistralrs-core/src/models/qwen3.rs:114-125 | mistralrs-core/src/models/qwen3_moe.rs:117-128 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/models/glm4.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 137 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 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:103\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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de78f81db4ca1324d01fccb8a21384211ccbd5a7c104b54c050e5fa44429ef5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): mistralrs-core/src/embedding_models/qwen3_embedding.rs:125-136 | mistralrs-core/src/models/glm4.rs:158-169 | mistralrs-core/src/models/glm4_moe.rs:210-221 | mistralrs-core/src/models/qwen3.rs:136-147 | mistralrs-core/src/models/qwen3_moe.rs:139-150 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/models/glm4.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 137 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 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:125\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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b84bf853c5bfc7b48cb392a12379636c54b61ca89cb56f693a08bc976ee1bda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): mistralrs-core/src/embedding_models/qwen3_embedding.rs:145-156 | mistralrs-core/src/models/qwen3.rs:156-167 | mistralrs-core/src/models/qwen3_moe.rs:159-170 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:156-167 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:262-273 \u2014 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/models/qwen3.rs\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 26 separate duplicated blocks between them, totalling at least 364 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 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:145\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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"c044cabb3be4578848d5e1ad1497b5f5f2eb68530ce1427f47284246559ebda3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): mistralrs-core/src/models/flint.rs:537-548 | mistralrs-core/src/models/qwen3_moe.rs:366-377 | mistralrs-core/src/models/qwen3_next.rs:413-424 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:319-330 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:105-116 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/qwen3_moe.rs\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 479 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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0193a38bef8e2491bfce881351815e822a2973ce456efc92994fccbe8cc9f47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 5): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4299-4308 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6869-6881 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7311-7323 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7779-7791 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8301-8313 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4299\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":4299}}}],"partialFingerprints":{"codehealthFindingId/v1":"ded719abe8c9ecf0a29fb42e016510cf7ccd9a0f7b31a7f968cd45da7cfbb077"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): mistralrs-core/src/xlora_models/gemma.rs:601-612 | mistralrs-core/src/xlora_models/mistral.rs:597-608 | mistralrs-core/src/xlora_models/mixtral.rs:727-738 | mistralrs-core/src/xlora_models/phi2.rs:567-578 | mistralrs-core/src/xlora_models/starcoder2.rs:582-593 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/mistral.rs\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 538 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 \u0060mistralrs-core/src/xlora_models/gemma.rs:601\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, \u0060mistralrs-core/src/xlora_models/gemma.rs:600\u0060 calls \u0060sqrt\u0060 and \u0060mistralrs-core/src/xlora_models/mistral.rs:596\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b18ebfd8a39a51fb12be35f86d582087bd659f6c1d56cce96ad4a9026e0c237"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): mistralrs-quant/src/metal_kernels/mod.rs:480-491 | mistralrs-quant/src/metal_kernels/mod.rs:518-529 | mistralrs-quant/src/metal_kernels/mod.rs:564-575 | mistralrs-quant/src/metal_kernels/mod.rs:610-621 | mistralrs-quant/src/metal_kernels/mod.rs:655-666 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:480\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef00bb8b641f8ac16711cebe39bd43cf32c81040bb847831a86384cadcfee71d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 4): mistralrs-core/src/embedding_models/embedding_gemma.rs:389-400 | mistralrs-core/src/models/gemma.rs:358-368 | mistralrs-core/src/models/gemma2.rs:431-441 | mistralrs-core/src/models/phi3_5_moe.rs:491-501 \u2014 \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma.rs\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 133 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 \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs:389\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":"mistralrs-core/src/embedding_models/embedding_gemma.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"b208cd42ba3ae933649dc35172f20ae1380d7bb3c6741cedc18cc2ee32a70345"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): mistralrs-core/src/model_loader.rs:752-763 | mistralrs-core/src/model_loader.rs:786-797 | mistralrs-core/src/toml_selector.rs:1028-1039 | mistralrs-core/src/toml_selector.rs:1062-1073 \u2014 before extracting anything, compare \u0060mistralrs-core/src/model_loader.rs\u0060 and \u0060mistralrs-core/src/toml_selector.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 199 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 \u0060mistralrs-core/src/model_loader.rs:752\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":"mistralrs-core/src/model_loader.rs"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"e923b9135716618a042b36a3ea24196d115e939e090258d22b798e9f2c84ecfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): mistralrs-core/src/models/flint.rs:867-879 | mistralrs-core/src/models/glm4.rs:534-545 | mistralrs-core/src/models/qwen3.rs:493-504 | mistralrs-core/src/models/qwen3_moe.rs:673-684 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/glm4.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 240 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 \u0060mistralrs-core/src/models/flint.rs:867\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcafe7f15a6308af38aa1ab073dfc054309502f6dbb6b87df03b16b40cd96d9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 4): mistralrs-core/src/models/granite.rs:1544-1559 | mistralrs-core/src/models/llama.rs:81-98 | mistralrs-core/src/models/smollm3.rs:96-111 | mistralrs-core/src/xlora_models/llama.rs:77-94 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/granite.rs\u0060 and \u0060mistralrs-core/src/models/llama.rs\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 244 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 \u0060mistralrs-core/src/models/granite.rs:1544\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, \u0060mistralrs-core/src/models/granite.rs:1561\u0060 calls \u0060Some\u0060 and \u0060mistralrs-core/src/models/llama.rs:98\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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":1544}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed83c2e4433359a6123b46b857ee722da313b88d553781c1a6e1f2e4f806971"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): mistralrs-core/src/models/phi3.rs:147-160 | mistralrs-core/src/vision_models/phi3/mod.rs:239-252 | mistralrs-core/src/vision_models/phi4/mod.rs:108-121 | mistralrs-core/src/xlora_models/phi3.rs:122-135 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/phi3.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi3/mod.rs\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 638 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 \u0060mistralrs-core/src/models/phi3.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/phi3.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ac30014f52afc36fbe254cb88ed412e8c126b856de5f2e834ae9199322104b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 4): mistralrs-core/src/pipeline/multimodal.rs:1149-1159 | mistralrs-core/src/pipeline/multimodal.rs:1253-1264 | mistralrs-core/src/pipeline/normal.rs:1201-1211 | mistralrs-core/src/pipeline/normal.rs:1329-1340 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:1149\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ebc3b1ef70ce1002568b37ee5c595aa0f4da4db4e0adda19cb08c842ff5f14f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): mistralrs-core/src/vision_models/qwen3_5/mod.rs:97-108 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:85-96 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:637-648 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:83-94 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs\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 24 separate duplicated blocks between them, totalling at least 425 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 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs:97\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":"mistralrs-core/src/vision_models/qwen3_5/mod.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"729c35067951e34448976a383626b8de4858ef513b97bb64409f9e8cacce9c40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): mistralrs-core/src/xlora_models/gemma.rs:379-390 | mistralrs-core/src/xlora_models/mistral.rs:375-386 | mistralrs-core/src/xlora_models/phi3.rs:341-353 | mistralrs-core/src/xlora_models/starcoder2.rs:364-375 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/mistral.rs\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 538 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 \u0060mistralrs-core/src/xlora_models/gemma.rs:379\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, \u0060mistralrs-core/src/xlora_models/gemma.rs:391\u0060 calls \u0060clone\u0060 and \u0060mistralrs-core/src/xlora_models/mistral.rs:387\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"6590262acb62735e7b97e6d7cac005b07bbba3013155c68b11175616b11acde7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): mistralrs-quant/src/blockwise_fp8/ops.rs:1110-1121 | mistralrs-quant/src/blockwise_fp8/ops.rs:1145-1156 | mistralrs-quant/src/blockwise_fp8/ops.rs:1299-1310 | mistralrs-quant/src/blockwise_fp8/ops.rs:1338-1349 \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 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:1110\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1110}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade0a3b9f6cfaa3016fe69268eebb4d6bb346c80aa826e5ad1a23ad6f1c474de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): mistralrs-quant/src/hqq/hqq_op.rs:152-167 | mistralrs-quant/src/hqq/hqq_op.rs:265-280 | mistralrs-quant/src/hqq/hqq_op.rs:382-397 | mistralrs-quant/src/hqq/hqq_op.rs:501-516 \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 \u0060mistralrs-quant/src/hqq/hqq_op.rs:152\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":"mistralrs-quant/src/hqq/hqq_op.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c88e0f06ce967acbc66ccc90ac67f808f8f1ee9db535a606daf5adf3673e26d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): mistralrs/src/model_builder_trait.rs:854-865 | mistralrs/src/model_builder_trait.rs:1014-1025 | mistralrs/src/model_builder_trait.rs:1217-1228 | mistralrs/src/model_builder_trait.rs:1633-1644 \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 \u0060mistralrs/src/model_builder_trait.rs:854\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, \u0060mistralrs/src/model_builder_trait.rs:1013\u0060 calls \u0060Some\u0060 and \u0060mistralrs/src/model_builder_trait.rs:853\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":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"608ec49f6c70f8000175413231084aaf7b9a81bb26d4b85caf99bae40473b525"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): mistralrs-core/src/cuda/gdn.rs:2359-2370 | mistralrs-core/src/cuda/gdn.rs:2673-2684 | mistralrs-core/src/cuda/gdn.rs:2972-2983 \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. 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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":2359}}}],"partialFingerprints":{"codehealthFindingId/v1":"a63a3df6b7fb26be23b5b610663d15c4889b73c77c1c3a47f3e86e5a28613298"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): mistralrs-core/src/layers.rs:1158-1169 | mistralrs-core/src/layers.rs:1248-1259 | mistralrs-core/src/layers.rs:1517-1528 \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 \u0060mistralrs-core/src/layers.rs:1158\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":"mistralrs-core/src/layers.rs"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d27aac310b496a2234a039a94646e12759ae184346e924f0fd66e2bc9c0f11c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): mistralrs-core/src/models/deepseek2.rs:457-468 | mistralrs-core/src/models/deepseek3.rs:458-469 | mistralrs-core/src/models/glm4_moe_lite.rs:422-433 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:457\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"71c92f15eda3ce2d6e8e43dea5e25a67dd77d98156912383dee64760306737fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): mistralrs-core/src/models/granite.rs:1487-1498 | mistralrs-core/src/models/granite.rs:1773-1784 | mistralrs-core/src/vision_models/llama4/text.rs:696-707 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/granite.rs\u0060 and \u0060mistralrs-core/src/vision_models/llama4/text.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 151 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 \u0060mistralrs-core/src/models/granite.rs:1487\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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":1487}}}],"partialFingerprints":{"codehealthFindingId/v1":"89084a71ccaa4eb2ef2b8753cf1562ef72f06520db31b3454cbb00f339310ec7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): mistralrs-core/src/models/llama.rs:220-231 | mistralrs-core/src/models/smollm3.rs:237-248 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:193-204 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/llama.rs\u0060 and \u0060mistralrs-core/src/models/smollm3.rs\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 727 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 \u0060mistralrs-core/src/models/llama.rs:220\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":"mistralrs-core/src/models/llama.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"3808a3135ff7a566cf4996cdf1f6475961f33472ddc2d2c1e6fa56a40d515d10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): mistralrs-core/src/ops.rs:5597-5608 | mistralrs-core/src/ops.rs:6026-6037 | mistralrs-core/src/ops.rs:6362-6373 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060mistralrs-core/src/ops.rs:5609\u0060 calls \u0060is_some_and\u0060, \u0060dtype\u0060 and \u0060mistralrs-core/src/ops.rs:6374\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":5597}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe2477683aa252cedbb82c6482cf03f044a66d7eb4a0a9fd47062b068c25634d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/lfm3.rs:243-254 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5135-5146 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:7161-7172 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/lfm3.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 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":"mistralrs-core/src/pipeline/loaders/lfm3.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"8af6245e6dd5e51516ed9bea1971b14774602eeaca529d2217ddb4fa5a5cfc4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): mistralrs-core/src/vision_models/gemma4/mod.rs:539-550 | mistralrs-core/src/vision_models/gemma4/mod.rs:662-673 | mistralrs-core/src/vision_models/gemma4/mod.rs:852-863 \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 \u0060mistralrs-core/src/vision_models/gemma4/mod.rs:539\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":"mistralrs-core/src/vision_models/gemma4/mod.rs"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd998513f0bd3352b6f779771dc79c67302bf513241aefaae5db0b7d16304b74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): mistralrs-core/src/vision_models/grid_processor.rs:1846-1857 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:986-997 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1551-1562 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:1846\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1846}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e3c6bd40ca4f44231246039fb4ea7e408ab1893153464821e1892382ab1131"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): mistralrs-core/src/vision_models/grid_processor.rs:1934-1946 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1023-1035 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1588-1600 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:1934\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1934}}}],"partialFingerprints":{"codehealthFindingId/v1":"3666ab7a96fe90409a54b209e44e7a311e32b209e3726efd6c611115a427ca1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:336-347 | mistralrs-core/src/vision_models/mllama/text.rs:280-291 | mistralrs-core/src/vision_models/mllama/text.rs:639-650 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs\u0060 and \u0060mistralrs-core/src/vision_models/mllama/text.rs\u0060 as WHOLE FILES: this scan already matched 4 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 \u0060mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:336\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":"mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eade9690ae79a4b48359a6bceeb9969950dc8d05b2b0a0a1f18c4ed3d33685c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): mistralrs-quant/src/cutile/fp8_gemm.rs:353-364 | mistralrs-quant/src/cutile/fp8_w8a8.rs:537-548 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:921-931 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fp8_gemm.rs\u0060 and \u0060mistralrs-quant/src/cutile/fp8_w8a8.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 88 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 \u0060mistralrs-quant/src/cutile/fp8_gemm.rs:353\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":"mistralrs-quant/src/cutile/fp8_gemm.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3be480ce8736e0f396d2580c83a60cc6cbdb0d813c4359e9ccb50305f59038"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 3): mistralrs-quant/src/distributed/layers.rs:461-472 | mistralrs-quant/src/distributed/layers.rs:835-846 | mistralrs-quant/src/distributed/layers.rs:1641-1649 \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 \u0060mistralrs-quant/src/distributed/layers.rs:461\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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"44673f684ca740b62b04ceabe9f46842f22d109211aaa13fa969053f3c59743c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): mistralrs-quant/src/moe/cuda.rs:231-242 | mistralrs-quant/src/moe/cuda.rs:267-278 | mistralrs-quant/src/moe/cuda.rs:307-318 \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 \u0060mistralrs-quant/src/moe/cuda.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/moe/cuda.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"017839a5c76041a2a6ba2ea65638a6925e6a27e723f08229cb507f0887094d8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): mistralrs/src/model_builder_trait.rs:869-880 | mistralrs/src/model_builder_trait.rs:1232-1243 | mistralrs/src/model_builder_trait.rs:1648-1659 \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 \u0060mistralrs/src/model_builder_trait.rs:869\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, \u0060mistralrs/src/model_builder_trait.rs:866\u0060 calls \u0060clone\u0060 and \u0060mistralrs/src/model_builder_trait.rs:1231\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":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"0714beaf0a722a663b40f4c946081b54c7e3092bc42aa79f14e248d9f128a90c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): mistralrs-cli/src/commands/config.rs:120-130 | mistralrs-cli/src/commands/serve.rs:137-148 \u2014 before extracting anything, compare \u0060mistralrs-cli/src/commands/config.rs\u0060 and \u0060mistralrs-cli/src/commands/serve.rs\u0060 as WHOLE FILES: this scan already matched 3 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. 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, \u0060mistralrs-cli/src/commands/serve.rs:149\u0060 calls \u0060with_agent_permission\u0060, \u0060into\u0060, \u0060with_approval_broker\u0060 and \u0060mistralrs-cli/src/commands/config.rs:131\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":"mistralrs-cli/src/commands/config.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"37074ca42127501d6bd5aa4d2b8898b00e931a8d3676e4fc0e83651d60925042"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-cli/src/commands/quantize.rs:224-235 | mistralrs-cli/src/commands/serve.rs:1140-1151 \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":"mistralrs-cli/src/commands/quantize.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd75aae8c66eab0e1409bf4db750acd6d12b822573a39b2a1db466d5cf6bcd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-cli/src/commands/quantize.rs:659-670 | mistralrs-cli/src/commands/quantize.rs:694-705 \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":"mistralrs-cli/src/commands/quantize.rs"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac6a97dd73673fe87e4876a4f9c4443d298dfe0cd2bcc8f7676a84550fb64aea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): mistralrs-code-exec/src/lib.rs:312-324 | mistralrs-code-exec/src/shell.rs:335-346 \u2014 before extracting anything, compare \u0060mistralrs-code-exec/src/lib.rs\u0060 and \u0060mistralrs-code-exec/src/shell.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 64 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 \u0060mistralrs-code-exec/src/lib.rs:312\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":"mistralrs-code-exec/src/lib.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8e01feb4be3e266eb300521ecc61d891cebded7202b40ceeabd04c070c72b57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/cuda/dflash_context.rs:237-248 | mistralrs-core/src/cuda/dflash_context.rs:362-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 \u0060mistralrs-core/src/cuda/dflash_context.rs:237\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":"mistralrs-core/src/cuda/dflash_context.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fb0a1a1ee8fae1ed351f4af2958193cf0ab98cbdf1ea7b454b8b70d0f1d8f45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:5100-5113 | mistralrs-core/src/cuda/gdn.rs:5136-5149 \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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":5100}}}],"partialFingerprints":{"codehealthFindingId/v1":"b179ab80d6fc5cd20ad2c9cc0c08350a7ac1a55846a31023c3446bf3d839e169"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/kv_cache/mod.rs:267-278 | mistralrs-core/src/kv_cache/mod.rs:281-292 \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 \u0060mistralrs-core/src/kv_cache/mod.rs:267\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":"mistralrs-core/src/kv_cache/mod.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f839eaf435513eb2298811286351505689a39708c4a6894b0ef2c578b8510fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): mistralrs-core/src/layers.rs:881-900 | mistralrs-core/src/layers.rs:2217-2236 \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 \u0060mistralrs-core/src/layers.rs:881\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 \u0060\u0026PhiRopeConfig\u0060 in one and \u0060\u0026Phi4MMConfig\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":"mistralrs-core/src/layers.rs"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a61e609b0a63a8c3a613fa8259763c01aff293e52f6aa57528f479695ccc18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/model_loader.rs:904-915 | mistralrs-core/src/toml_selector.rs:1224-1235 \u2014 before extracting anything, compare \u0060mistralrs-core/src/model_loader.rs\u0060 and \u0060mistralrs-core/src/toml_selector.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 199 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 \u0060mistralrs-core/src/model_loader.rs:904\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":"mistralrs-core/src/model_loader.rs"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"5239f8b84f443806fc7eab0e487e7d5f66de98a06475a3f389963c5df972ac0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/models/deepseek2.rs:110-121 | mistralrs-core/src/models/deepseek3.rs:111-122 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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. 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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff4a3ba03ef1455f2d52e5f0d961f5a55ac2038f643ada8c20ef3c35daee730"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/models/glm4.rs:462-473 | mistralrs-core/src/models/glm4_moe.rs:747-758 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/glm4.rs\u0060 and \u0060mistralrs-core/src/models/glm4_moe.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 359 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 \u0060mistralrs-core/src/models/glm4.rs:462\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":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"f07add5372e3d27de48d8f9a6a02abe44c2ea2348b1fbab65e57caa43133c026"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/models/glm4_moe.rs:187-198 | mistralrs-core/src/models/gpt_oss.rs:170-181 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/glm4_moe.rs\u0060 and \u0060mistralrs-core/src/models/gpt_oss.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 199 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 \u0060mistralrs-core/src/models/glm4_moe.rs:187\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":"mistralrs-core/src/models/glm4_moe.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa0716232e7da90e2d98a03b7d010e9d679b13bb2d0ded877794845cf9bafe36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): mistralrs-core/src/models/lfm2.rs:1076-1086 | mistralrs-core/src/models/lfm3.rs:983-994 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/lfm2.rs\u0060 and \u0060mistralrs-core/src/models/lfm3.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 402 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 \u0060mistralrs-core/src/models/lfm2.rs:1076\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":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"e440b5b4bb4ada292bc39e48084612b103d5fcb3efd209265ed4e923787f6273"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/models/phi3_5_moe.rs:444-455 | mistralrs-core/src/models/starcoder2.rs:369-380 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/phi3_5_moe.rs\u0060 and \u0060mistralrs-core/src/models/starcoder2.rs\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 373 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. 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":"mistralrs-core/src/models/phi3_5_moe.rs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f0ceada56deda5c45d194090a9f64c1ebed049f2ff239867112069c3eb4927"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/models/qwen3_next.rs:356-367 | mistralrs-core/src/vision_models/qwen3_5/text.rs:406-417 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/qwen3_next.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 176 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 \u0060mistralrs-core/src/models/qwen3_next.rs:356\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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"b046569c1e926aea3684db5e72c8f83848e78fa4318af11706133a8d35d1bec4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/paged_attention/cache_engine.rs:302-313 | mistralrs-core/src/paged_attention/cache_engine.rs:490-501 \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 \u0060mistralrs-core/src/paged_attention/cache_engine.rs:302\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":"mistralrs-core/src/paged_attention/cache_engine.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"e43039f2d4e49825e3de7eab29298411b2de21c636a0bc909837ff8bb5287c42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/paged_attention/layers/paged_attention.rs:2635-2646 | mistralrs-core/src/paged_attention/layers/paged_attention.rs:2655-2666 \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 \u0060mistralrs-core/src/paged_attention/layers/paged_attention.rs:2635\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":"mistralrs-core/src/paged_attention/layers/paged_attention.rs"},"region":{"startLine":2635}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae0eb9adb0ab7237180782a947e04e3d4b2c6673e3f999243577f2a446f4c742"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/pipeline/embedding.rs:232-243 | mistralrs-core/src/pipeline/normal.rs:703-714 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/embedding.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 178 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 \u0060mistralrs-core/src/pipeline/embedding.rs:232\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, \u0060mistralrs-core/src/pipeline/normal.rs:716\u0060 calls \u0060clone\u0060 and \u0060mistralrs-core/src/pipeline/embedding.rs:246\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":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b14366e401dd9cc5cf054a9abe78b5255117bcaa9f4daa5387b04be6379f817"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/checkpoint_inventory.rs:99-110 | mistralrs-core/src/pipeline/loaders/checkpoint_inventory.rs:128-139 \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, \u0060mistralrs-core/src/pipeline/loaders/checkpoint_inventory.rs:126\u0060 calls \u0060Fn\u0060 and \u0060mistralrs-core/src/pipeline/loaders/checkpoint_inventory.rs: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":"mistralrs-core/src/pipeline/loaders/checkpoint_inventory.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"86dba27e5719bd28aef5d930680e2af09e38ee1555a4ddd43f84522db76269fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:864-875 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5504-5522 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:864\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0c9ed912c165ef8a6f0621f132d8125da378ebb6d0bd747b5beaf98b7bfb98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5403-5414 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5427-5438 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5403\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":5403}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd30e872827bbdeb2aac13949f6d2535298f72f129c4f0fe197598c98ca69a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9158-9169 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9173-9184 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9158\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":9158}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a8b41123beed525d027f0cc6d75aff8b68020136e52770b565d63640cd3fd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:10258-10269 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6899-6910 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 445 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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:10258\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":10258}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da88a201c0540234ebbc69096c425ed49d3a31c05482b0ed6ff1ecce898fab8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3985-3996 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4236-4247 \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":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":3985}}}],"partialFingerprints":{"codehealthFindingId/v1":"543663b017ef03ce5fb7a78b1d81927ca883f245b5799e914acbbcc55cf9b6fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5567-5578 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6843-6854 \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 \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5567\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":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":5567}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25b022af13e2023ada0b2289bb180be8abd0c947f06a5e2a0159b3da52933f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): mistralrs-core/src/pipeline/mod.rs:2369-2378 | mistralrs-core/src/pipeline/mod.rs:2950-2961 \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 \u0060mistralrs-core/src/pipeline/mod.rs:2369\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":"mistralrs-core/src/pipeline/mod.rs"},"region":{"startLine":2369}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9464c772076bafa0fa58e918a5ca0d68887c7b9da2ffc2fc702c5b17dc55d67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:671-682 | mistralrs-core/src/pipeline/normal.rs:709-720 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:671\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f19b22bed243e441854902c08adba69c8e42a8b6ad47af9d8f69053203b44d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2853-2864 | mistralrs-core/src/pipeline/normal.rs:2515-2526 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:2853\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, \u0060mistralrs-core/src/pipeline/normal.rs:2514\u0060 calls \u0060is_xlora\u0060 and \u0060mistralrs-core/src/pipeline/multimodal.rs:2852\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2853}}}],"partialFingerprints":{"codehealthFindingId/v1":"2659942aa1dbaa3f2b20d419682e6fafe4e57bc8dde6a67c07b913c33211138f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/response.rs:533-544 | mistralrs-core/src/response.rs:551-562 \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 \u0060mistralrs-core/src/response.rs:533\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":"mistralrs-core/src/response.rs"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b55b0fa7e16795c2011567507631a7d060dab2461f0a2244fbaa6e5eb4304f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/speculative/dflash.rs:2063-2074 | mistralrs-core/src/speculative/dflash.rs:2102-2113 \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 \u0060mistralrs-core/src/speculative/dflash.rs:2063\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":"mistralrs-core/src/speculative/dflash.rs"},"region":{"startLine":2063}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dc0200f2ad3b78ba606756d6557b4734f978660fbddca8521ead014275115a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/tools/parsers/deepseek.rs:67-78 | mistralrs-core/src/tools/parsers/harmony.rs:24-35 \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 \u0060mistralrs-core/src/tools/parsers/deepseek.rs:67\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":"mistralrs-core/src/tools/parsers/deepseek.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"d52eb6acd1ca4b25f41fd0f5baf3325d37c5ae97fac075048ca764f24a5814f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/utils/gguf_metadata.rs:490-501 | mistralrs-core/src/utils/gguf_metadata.rs:511-522 \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 \u0060mistralrs-core/src/utils/gguf_metadata.rs:511\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":"mistralrs-core/src/utils/gguf_metadata.rs"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1708e3e30e5e8439046111c53b112c3d20fe85bf5977a5c91266ca5b975b184"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:704-715 | mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:719-730 \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":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e134bfca29ad6d443cb0bff1dd81152f3bf34ad55397cf81010215204da73c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3/text.rs:327-338 | mistralrs-core/src/vision_models/gemma3n/text.rs:850-861 \u2014 \u0060mistralrs-core/src/vision_models/gemma3/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma3n/text.rs\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 214 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 \u0060mistralrs-core/src/vision_models/gemma3/text.rs:327\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":"mistralrs-core/src/vision_models/gemma3/text.rs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"b15b8387b8e9d2859fa76bf47f93b197c9dd1c2804c9e57c85169bcb9f4acafd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/audio.rs:1392-1403 | mistralrs-core/src/vision_models/gemma4/audio.rs:1075-1083 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/audio.rs\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 20 separate duplicated blocks between them, totalling at least 352 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 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs:1392\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, \u0060mistralrs-core/src/vision_models/gemma4/audio.rs:1074\u0060 calls \u0060dim\u0060, \u0060div_ceil\u0060 and \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs:1391\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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c52618f9e8372fe436b3ba120251b86d1b7367f7f54dc1bf2cd7fb0e023fad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/audio_processing.rs:68-78 | mistralrs-core/src/vision_models/gemma4/audio_processing.rs:190-201 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/audio_processing.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/audio_processing.rs\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 43 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":"mistralrs-core/src/vision_models/gemma3n/audio_processing.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"cadaaee2553bb29d746a7ebb4a734c5c00f1a30166f34f6487eb24c4f5f3af47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs:190-198 | mistralrs-core/src/vision_models/phi4/inputs_processor.rs:217-228 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi4/inputs_processor.rs\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 33 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 \u0060mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs:190\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":"mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"032e97f59d308410654761554ede72d060eb1ce09ad9461dea0a44bfb4676ae6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/mod.rs:377-393 | mistralrs-core/src/vision_models/gemma4/mod.rs:689-706 \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 \u0060mistralrs-core/src/vision_models/gemma4/mod.rs:377\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":"mistralrs-core/src/vision_models/gemma4/mod.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8219f973acb50a9d9e35d91c175cd528a54abfe708d0f2b62786932a6c61aef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/vision_models/grid_processor.rs:471-482 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:254-265 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 1008 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:471\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"847fa7b4ab31c637bdfbc2439d29b62250fa59e2ca3d0fe7fd3f3413051f6e37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): mistralrs-core/src/vision_models/grid_processor.rs:506-530 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:289-313 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 1008 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:506\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"87038ab12a7710ba53855ab2e4d8b244b93ccf745211f0850a24aca7a25153d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:135-147 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:123-135 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 288 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 \u0060mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5d490eb07b9be4c618622eca46ba954cbb8d62d1997299d9038d273794682a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/speculative.rs:172-182 | mistralrs-core/src/vision_models/qwen3_5/speculative.rs:622-633 \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 \u0060mistralrs-core/src/vision_models/qwen3_5/speculative.rs:622\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 \u0060config\u0060 to \u0060crate::speculative::MtpConfig\u0060 in one and \u0060SpeculativeConfig\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":"mistralrs-core/src/vision_models/qwen3_5/speculative.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"235adc9c1044ac5ff570ce7c3dc31f296a4d5b7346e715fa4124d78ef1d62176"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): mistralrs-core/src/xlora_models/classifier.rs:55-65 | mistralrs-core/src/xlora_models/classifier.rs:68-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060mistralrs-core/src/xlora_models/classifier.rs:68\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":"mistralrs-core/src/xlora_models/classifier.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"135ffdce89d72a7f3575f9f1e39ab13523b265fc29c7d7aa30e986a0f4cd38fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/xlora_models/mixtral.rs:368-379 | mistralrs-core/src/xlora_models/quantized_llama.rs:108-119 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/mixtral.rs\u0060 and \u0060mistralrs-core/src/xlora_models/quantized_llama.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 118 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 \u0060mistralrs-core/src/xlora_models/mixtral.rs:368\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":"mistralrs-core/src/xlora_models/mixtral.rs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4253d520d5fe6736cd4b4d4f20a7f46d3e327cf182d1f6a290dc18e369ffcc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-flash-attn/src/flash.rs:901-912 | mistralrs-flash-attn/src/flash.rs:1046-1057 \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 \u0060mistralrs-flash-attn/src/flash.rs:901\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":"mistralrs-flash-attn/src/flash.rs"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"b850c29c1202b052f7b157254365f036f0d0afe0e6be5525c070e4efae39f74b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): mistralrs-paged-attn/src/metal/backend/paged_attention.rs:589-599 | mistralrs-paged-attn/src/metal/backend/paged_attention.rs:649-660 \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 \u0060mistralrs-paged-attn/src/metal/backend/paged_attention.rs:589\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":"mistralrs-paged-attn/src/metal/backend/paged_attention.rs"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d288894731ccbd7fc3300c82c8a615e9f3692c2f4481a9ca05f79c8691b911"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-pyo3/src/util.rs:404-415 | mistralrs-server-core/src/video.rs:149-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060mistralrs-pyo3/src/util.rs:404\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":"mistralrs-pyo3/src/util.rs"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"c712bd1027013246d49e8322f8cf70993c566109a0d7f6a0f6e03d2f6bb8dc09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-quant/src/afq/group.rs:176-187 | mistralrs-quant/src/afq/group.rs:296-307 \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 \u0060mistralrs-quant/src/afq/group.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/afq/group.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fbf9e7a8bfd5b3430adeaebd52698d4e378799fb0dbc2feabb98dbd6c631526"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201320 lines \u00D7 2): mistralrs-quant/src/afq/ops.rs:141-156 | mistralrs-quant/src/afq/ops.rs:385-404 \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 \u0060mistralrs-quant/src/afq/ops.rs:141\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":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c732097eb9496c75a48e496855bec84f3b78751b6a357b44185cf49b1627bbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-quant/src/afq/ops.rs:201-212 | mistralrs-quant/src/afq/ops.rs:587-598 \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 \u0060mistralrs-quant/src/afq/ops.rs:201\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":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5094e29f5f5b13e3dfa6e0cfc17946889c9a2f4fe0379e89b3085fafbddeb68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-quant/src/afq/ops.rs:2289-2300 | mistralrs-quant/src/afq/ops.rs:2836-2847 \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 \u0060mistralrs-quant/src/afq/ops.rs:2289\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, \u0060mistralrs-quant/src/afq/ops.rs:2835\u0060 calls \u0060slice_ptr\u0060, \u0060layout\u0060, \u0060start_offset\u0060 and \u0060mistralrs-quant/src/afq/ops.rs:2288\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":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":2289}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f1e98a0b866305fe3760847b08d17a6683446e4f07d42d9f2d97be35676c88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:124-135 | mistralrs-quant/src/blockwise_fp8/ops.rs:173-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"65048b03eb083228440c79650aabe1ccee1f260cf0716bc4e17aeeeafaed5bc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:395-406 | mistralrs-quant/src/blockwise_fp8/ops.rs:428-439 \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 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:395\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa9b56281a71c784a9fca9b0eae6fb01875dd50ab1240b611c3407546fb5272f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:501-512 | mistralrs-quant/src/cutile/fp8_w8a8.rs:600-611 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs\u0060 and \u0060mistralrs-quant/src/cutile/fp8_w8a8.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 212 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 \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs:501\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":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc21c523357da53f5b34b03e90092847a3de9d61250c8a466377544b7c36ab0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_matmul.rs:634-645 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1129-1140 \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 \u0060mistralrs-quant/src/cutile/nvfp4_matmul.rs:634\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, \u0060mistralrs-quant/src/cutile/nvfp4_matmul.rs:1128\u0060 calls \u0060storage_and_layout\u0060 and \u0060mistralrs-quant/src/cutile/nvfp4_matmul.rs:633\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":"mistralrs-quant/src/cutile/nvfp4_matmul.rs"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6065b45508aa95fa42b4069629a1655aa0dcbf38081446e532b02c658a3cd41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_matmul.rs:755-766 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1297-1308 \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 \u0060mistralrs-quant/src/cutile/nvfp4_matmul.rs:755\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":"mistralrs-quant/src/cutile/nvfp4_matmul.rs"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"9864e79335dc487aaf86549510bec4721a7b2aa6b0d408ff59f141dcd925682c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-quant/src/cutile/routed_lora.rs:198-209 | mistralrs-quant/src/cutile/routed_lora.rs:221-232 \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 after the matched lines, \u0060mistralrs-quant/src/cutile/routed_lora.rs:211\u0060 calls \u0060broadcast_scalar\u0060 and \u0060mistralrs-quant/src/cutile/routed_lora.rs:233\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":"mistralrs-quant/src/cutile/routed_lora.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"bae999ee753fddf3fa045969f4739cc0e8323fdd6d165b5245a728a3f5191db2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:585-596 | mistralrs-quant/src/distributed/layers.rs:985-996 \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 \u0060mistralrs-quant/src/distributed/layers.rs:585\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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"8175d0fe7a28fe59d513b9b3c42a0ad86f20471de832a11388e5a3d79e484b43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:1455-1465 | mistralrs-quant/src/distributed/layers.rs:1685-1696 \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 \u0060mistralrs-quant/src/distributed/layers.rs:1455\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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":1455}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d54cf9611b853d21a4ccd2c024b36f03e31463a731b54aa483bb4c8c97ff5df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-quant/src/distributed/mod.rs:555-566 | mistralrs-quant/src/distributed/mod.rs:704-715 \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 \u0060mistralrs-quant/src/distributed/mod.rs:555\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":"mistralrs-quant/src/distributed/mod.rs"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"256bb25b736c80ad4b408ae2929094ddd5379c20a0e3a8faa8fc8655a990d149"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmq.rs:458-480 | mistralrs-quant/src/gguf/fast_mmq.rs:538-560 \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":"mistralrs-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae973348e640a8cdb063467e76fc0e7218d8c7655abfd7f95b276eb146d6df50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-quant/src/mxfp4/ops.rs:71-82 | mistralrs-quant/src/mxfp4/ops.rs:421-432 \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, \u0060mistralrs-quant/src/mxfp4/ops.rs:420\u0060 calls \u0060storage_and_layout\u0060 and \u0060mistralrs-quant/src/mxfp4/ops.rs:69\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":"mistralrs-quant/src/mxfp4/ops.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"542f582f33b3afd18980167facecf556f6305125ae1660a4867201bb0ef30443"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-quant/src/utils/ops.rs:2043-2054 | mistralrs-quant/src/utils/ops.rs:2845-2856 \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 \u0060mistralrs-quant/src/utils/ops.rs:2043\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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":2043}}}],"partialFingerprints":{"codehealthFindingId/v1":"a27736cd68c80df58419b7a2fa4ec76a589597fc3fe2df369acbee061ec388f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): mistralrs-quant/src/utils/ops.rs:2405-2416 | mistralrs-quant/src/utils/ops.rs:2575-2585 \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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":2405}}}],"partialFingerprints":{"codehealthFindingId/v1":"49bd24c8707e058eb027846595705c0ae0aa9e14524e0023656ee24ac4fecc03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): mistralrs-server-core/src/mistralrs_for_server_builder.rs:778-789 | mistralrs-server-core/src/mistralrs_for_server_builder.rs:980-990 \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 \u0060mistralrs-server-core/src/mistralrs_for_server_builder.rs:778\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":"mistralrs-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"56927167b20affd483e5c96c73da9452905f8e0957315c5bd0a768efb4a1fe85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs/src/blocking.rs:50-61 | mistralrs/src/blocking.rs:68-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. 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 \u0060builder\u0060 to \u0060TextModelBuilder\u0060 in one and \u0060ModelBuilder\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":"mistralrs/src/blocking.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"a57945f6b41a3732c099e1ef2083bb658f5ce15a10b717490676f4a023aa260b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs/src/model_builder_trait.rs:531-542 | mistralrs/src/model_builder_trait.rs:609-620 \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 after the matched lines, \u0060mistralrs/src/model_builder_trait.rs:543\u0060 calls \u0060clone\u0060 and \u0060mistralrs/src/model_builder_trait.rs:621\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":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"82fe04fe57b8a4f49f5b95cc8ce7bcbf95f9ff5a3121d3f5cf4161688d2720aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 31): mistralrs-core/src/models/flint.rs:442-450 | mistralrs-core/src/models/gemma.rs:237-245 | mistralrs-core/src/models/gemma2.rs:285-293 | mistralrs-core/src/models/glm4.rs:284-292 | mistralrs-core/src/models/glm4_moe.rs:349-357 | mistralrs-core/src/models/gpt_oss.rs:314-322 | mistralrs-core/src/models/granite.rs:1610-1618 | mistralrs-core/src/models/hunyuan_v1_dense.rs:260-268 | mistralrs-core/src/models/hunyuan_v1_moe.rs:446-454 | mistralrs-core/src/models/llama.rs:145-153 | mistralrs-core/src/models/mistral.rs:285-293 | mistralrs-core/src/models/mixtral.rs:221-229 | mistralrs-core/src/models/phi2.rs:333-343 | mistralrs-core/src/models/phi3.rs:224-232 | mistralrs-core/src/models/phi3_5_moe.rs:251-259 | mistralrs-core/src/models/qwen2.rs:315-323 | mistralrs-core/src/models/qwen3.rs:270-278 | mistralrs-core/src/models/qwen3_moe.rs:273-281 | mistralrs-core/src/models/qwen3_next.rs:353-361 | mistralrs-core/src/models/smollm3.rs:162-170 | mistralrs-core/src/models/starcoder2.rs:297-305 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:120-128 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:294-302 | mistralrs-core/src/vision_models/muse_glimmer/text.rs:308-318 | mistralrs-core/src/vision_models/phi3/mod.rs:315-323 | mistralrs-core/src/vision_models/phi4/mod.rs:184-192 | mistralrs-core/src/vision_models/qwen3_5/text.rs:403-411 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:268-276 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:275-283 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:378-386 | mistralrs-core/src/vision_models/voxtral/mod.rs:196-204 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/gemma.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 152 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 \u0060mistralrs-core/src/models/flint.rs:442\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, \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:280\u0060 calls \u0060sigmoid\u0060, \u0060to_dtype\u0060, \u0060dtype\u0060 and \u0060mistralrs-core/src/models/flint.rs:452\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca931bfb09bbf40160d94357d38ef3f6f2887cbdd22666aec68cf21acd1c2942"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 25): mistralrs-core/src/embedding_models/qwen3_embedding.rs:255-264 | mistralrs-core/src/models/flint.rs:716-725 | mistralrs-core/src/models/gpt_oss.rs:657-667 | mistralrs-core/src/models/granite.rs:1485-1494 | mistralrs-core/src/models/granite.rs:1771-1780 | mistralrs-core/src/models/hunyuan_v1_dense.rs:315-324 | mistralrs-core/src/models/hunyuan_v1_moe.rs:805-814 | mistralrs-core/src/models/llama.rs:289-298 | mistralrs-core/src/models/mistral.rs:336-345 | mistralrs-core/src/models/mixtral.rs:345-354 | mistralrs-core/src/models/phi3.rs:349-358 | mistralrs-core/src/models/qwen2.rs:368-377 | mistralrs-core/src/models/qwen3.rs:324-333 | mistralrs-core/src/models/qwen3_moe.rs:498-507 | mistralrs-core/src/models/smollm3.rs:305-314 | mistralrs-core/src/vision_models/llama4/text.rs:694-703 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:360-369 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:342-351 | mistralrs-core/src/vision_models/phi3/mod.rs:440-449 | mistralrs-core/src/vision_models/phi4/mod.rs:269-279 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:447-456 | mistralrs-core/src/xlora_models/llama.rs:363-372 | mistralrs-core/src/xlora_models/mistral.rs:343-352 | mistralrs-core/src/xlora_models/mixtral.rs:470-479 | mistralrs-core/src/xlora_models/phi3.rs:308-317 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/models/flint.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 68 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 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:255\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, \u0060mistralrs-core/src/models/phi3.rs:346\u0060 calls \u0060set_device\u0060, \u0060pp\u0060 and \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:252\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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba74037e4212abeb531a31b828ab6bb63b3fb09e51d91278959e4dd1c08f306f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 22): mistralrs-core/src/embedding_models/embedding_gemma.rs:433-443 | mistralrs-core/src/models/deepseek2.rs:869-879 | mistralrs-core/src/models/deepseek3.rs:932-942 | mistralrs-core/src/models/gemma.rs:384-394 | mistralrs-core/src/models/gemma2.rs:457-467 | mistralrs-core/src/models/glm4_moe.rs:768-778 | mistralrs-core/src/models/glm4_moe_lite.rs:879-889 | mistralrs-core/src/models/llama.rs:413-423 | mistralrs-core/src/models/mistral.rs:492-502 | mistralrs-core/src/models/mixtral.rs:447-457 | mistralrs-core/src/models/phi2.rs:474-484 | mistralrs-core/src/models/phi3.rs:462-472 | mistralrs-core/src/models/phi3_5_moe.rs:531-541 | mistralrs-core/src/models/starcoder2.rs:445-455 | mistralrs-core/src/vision_models/gemma3/text.rs:492-502 | mistralrs-core/src/vision_models/phi3/mod.rs:1243-1253 | mistralrs-core/src/vision_models/phi4/mod.rs:358-368 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:439-449 | mistralrs-core/src/vision_models/qwen2vl/text.rs:441-451 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:429-439 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:549-559 | mistralrs-core/src/vision_models/voxtral/mod.rs:661-671 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs\u0060 and \u0060mistralrs-core/src/models/deepseek2.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 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 \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs:433\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, \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs:430\u0060 calls \u0060pp\u0060 and \u0060mistralrs-core/src/vision_models/phi3/mod.rs:1240\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":"mistralrs-core/src/embedding_models/embedding_gemma.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"79cbbe878581a9f9d347a40fefa09a128aa1abb36387f5b65542a43bcc49dff0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 22): mistralrs-quant/src/metal_kernels/mod.rs:286-296 | mistralrs-quant/src/metal_kernels/mod.rs:325-335 | mistralrs-quant/src/metal_kernels/mod.rs:364-374 | mistralrs-quant/src/metal_kernels/mod.rs:403-413 | mistralrs-quant/src/metal_kernels/mod.rs:442-452 | mistralrs-quant/src/metal_kernels/mod.rs:695-705 | mistralrs-quant/src/metal_kernels/mod.rs:742-752 | mistralrs-quant/src/metal_kernels/mod.rs:789-799 | mistralrs-quant/src/metal_kernels/mod.rs:2027-2037 | mistralrs-quant/src/metal_kernels/mod.rs:3260-3270 | mistralrs-quant/src/metal_kernels/mod.rs:3383-3392 | mistralrs-quant/src/metal_kernels/mod.rs:3447-3456 | mistralrs-quant/src/metal_kernels/mod.rs:3511-3520 | mistralrs-quant/src/metal_kernels/mod.rs:3576-3585 | mistralrs-quant/src/metal_kernels/mod.rs:3638-3648 | mistralrs-quant/src/metal_kernels/mod.rs:4082-4092 | mistralrs-quant/src/metal_kernels/mod.rs:4117-4127 | mistralrs-quant/src/metal_kernels/mod.rs:4154-4164 | mistralrs-quant/src/metal_kernels/mod.rs:4528-4537 | mistralrs-quant/src/metal_kernels/mod.rs:4590-4599 | mistralrs-quant/src/metal_kernels/mod.rs:4969-4978 | mistralrs-quant/src/metal_kernels/mod.rs:5011-5020 \u2014 all 22 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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:286\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, \u0060mistralrs-quant/src/metal_kernels/mod.rs:4541\u0060 calls \u0060is_some\u0060 and \u0060mistralrs-quant/src/metal_kernels/mod.rs:4601\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"529ed96fc4e326391b5b36240b8d5aa8b4357b8b2328af46a925c7e5b2fe453d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 14): mistralrs-core/src/models/flint.rs:778-788 | mistralrs-core/src/models/glm4.rs:440-450 | mistralrs-core/src/models/granite.rs:1948-1958 | mistralrs-core/src/models/hunyuan_v1_dense.rs:409-419 | mistralrs-core/src/models/hunyuan_v1_moe.rs:903-913 | mistralrs-core/src/models/lfm2.rs:1017-1027 | mistralrs-core/src/models/lfm3.rs:916-926 | mistralrs-core/src/models/llama.rs:346-356 | mistralrs-core/src/models/mistral.rs:415-425 | mistralrs-core/src/models/qwen3.rs:403-413 | mistralrs-core/src/models/qwen3_moe.rs:577-587 | mistralrs-core/src/models/smollm3.rs:362-372 | mistralrs-core/src/vision_models/llama4/text.rs:795-805 | mistralrs-core/src/vision_models/mllama/text.rs:749-759 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/glm4.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 240 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 \u0060mistralrs-core/src/models/flint.rs:778\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, \u0060mistralrs-core/src/models/flint.rs:775\u0060 calls \u0060validate\u0060, \u0060pp\u0060 and \u0060mistralrs-core/src/models/glm4.rs:439\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d389875af2bdf8f7cd59f8f89e5a51e21334b8f2ce8f619ecb7c6a6607b2435"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 12): mistralrs-core/src/models/flint.rs:846-856 | mistralrs-core/src/models/glm4.rs:513-523 | mistralrs-core/src/models/hunyuan_v1_dense.rs:478-488 | mistralrs-core/src/models/hunyuan_v1_moe.rs:972-982 | mistralrs-core/src/models/mistral.rs:519-529 | mistralrs-core/src/models/mixtral.rs:474-484 | mistralrs-core/src/models/phi3.rs:487-497 | mistralrs-core/src/models/qwen2.rs:505-515 | mistralrs-core/src/models/qwen3.rs:472-482 | mistralrs-core/src/models/qwen3_moe.rs:652-662 | mistralrs-core/src/vision_models/phi3/mod.rs:1268-1278 | mistralrs-core/src/vision_models/phi4/mod.rs:383-393 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/glm4.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 240 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 \u0060mistralrs-core/src/models/flint.rs:846\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, \u0060mistralrs-core/src/models/qwen3_moe.rs:650\u0060 calls \u0060clone\u0060 and \u0060mistralrs-core/src/models/glm4.rs:511\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"440eb5546746fef79b1d4b498bf553b295a06fb88c0797736a6fc10b4f8d19c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 12): mistralrs-core/src/models/glm4.rs:492-502 | mistralrs-core/src/models/hunyuan_v1_dense.rs:457-467 | mistralrs-core/src/models/hunyuan_v1_moe.rs:951-961 | mistralrs-core/src/models/llama.rs:419-429 | mistralrs-core/src/models/mistral.rs:498-508 | mistralrs-core/src/models/mixtral.rs:453-463 | mistralrs-core/src/models/qwen2.rs:483-493 | mistralrs-core/src/models/qwen3.rs:451-461 | mistralrs-core/src/vision_models/llama4/text.rs:854-864 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:445-455 | mistralrs-core/src/vision_models/qwen2vl/text.rs:447-457 | mistralrs-core/src/vision_models/voxtral/mod.rs:667-677 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/glm4.rs\u0060 and \u0060mistralrs-core/src/models/hunyuan_v1_dense.rs\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 508 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 \u0060mistralrs-core/src/models/glm4.rs:492\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":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae8fab3be75333375aa9764657f89f100eb6fb84302b05f2738a50b4248f6fdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 10): mistralrs-core/src/models/deepseek2.rs:726-736 | mistralrs-core/src/models/deepseek3.rs:789-799 | mistralrs-core/src/models/glm4_moe.rs:626-636 | mistralrs-core/src/models/glm4_moe_lite.rs:735-745 | mistralrs-core/src/models/mixtral.rs:340-350 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:355-365 | mistralrs-core/src/xlora_models/llama.rs:358-368 | mistralrs-core/src/xlora_models/mistral.rs:338-348 | mistralrs-core/src/xlora_models/mixtral.rs:465-475 | mistralrs-core/src/xlora_models/phi3.rs:303-313 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:726\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, \u0060mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:353\u0060 calls \u0060load\u0060, \u0060set_device\u0060, \u0060pp\u0060 and \u0060mistralrs-core/src/models/deepseek2.rs:725\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"be7f3bfa8381236d7ab3a016a0a9e03438b4c817ab3d9fff42a2d2f470715ab6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 9): mistralrs-core/src/models/gemma.rs:347-357 | mistralrs-core/src/models/gemma2.rs:420-430 | mistralrs-core/src/models/mixtral.rs:406-415 | mistralrs-core/src/models/phi2.rs:431-440 | mistralrs-core/src/models/phi3.rs:408-417 | mistralrs-core/src/models/phi3_5_moe.rs:480-489 | mistralrs-core/src/models/qwen2.rs:433-442 | mistralrs-core/src/models/starcoder2.rs:405-414 | mistralrs-core/src/vision_models/gemma3/text.rs:433-443 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 707 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, \u0060mistralrs-core/src/vision_models/gemma3/text.rs:444\u0060 calls \u0060sqrt\u0060 and \u0060mistralrs-core/src/models/mixtral.rs:417\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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4515c5ea14da2d806e6ee80a92f6e186c276732638b940bb1e698dc8178659f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 8): mistralrs-quant/src/cutile/fp8_gemm.rs:356-366 | mistralrs-quant/src/cutile/fp8_w8a8.rs:540-550 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:923-933 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:325-335 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:652-662 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1154-1164 | mistralrs-quant/src/nvfp4/decode.rs:126-136 | mistralrs-quant/src/nvfp4/portable.rs:315-325 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fp8_gemm.rs\u0060 and \u0060mistralrs-quant/src/cutile/fp8_w8a8.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 88 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 \u0060mistralrs-quant/src/cutile/fp8_gemm.rs:356\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":"mistralrs-quant/src/cutile/fp8_gemm.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d1e6e37924d5f996580af2057957c6e38e73aa253b6aee4be2f4052a6df1d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 7): mistralrs-core/src/embedding_models/qwen3_embedding.rs:348-358 | mistralrs-core/src/models/glm4.rs:458-468 | mistralrs-core/src/models/glm4_moe.rs:743-753 | mistralrs-core/src/models/hunyuan_v1_dense.rs:427-437 | mistralrs-core/src/models/hunyuan_v1_moe.rs:921-931 | mistralrs-core/src/models/qwen3.rs:421-431 | mistralrs-core/src/models/qwen3_moe.rs:595-605 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/models/glm4.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 137 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 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:348\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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"312ee333225d7334766c96d41fea0ffffe40e99e5ffe69a8457d8fa5ee83cc4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): mistralrs-core/src/embedding_models/qwen3_embedding.rs:103-113 | mistralrs-core/src/models/glm4.rs:136-146 | mistralrs-core/src/models/glm4_moe.rs:188-198 | mistralrs-core/src/models/gpt_oss.rs:171-181 | mistralrs-core/src/models/qwen3.rs:114-124 | mistralrs-core/src/models/qwen3_moe.rs:117-127 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/models/glm4.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 137 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 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:103\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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"605ae0313543140b2e1b1d65c4625a8ffb644bd98f0f0896e3277f733689b855"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): mistralrs-core/src/models/gemma.rs:272-282 | mistralrs-core/src/models/gemma2.rs:323-333 | mistralrs-core/src/models/mistral.rs:320-330 | mistralrs-core/src/models/qwen2.rs:352-362 | mistralrs-core/src/vision_models/gemma3/text.rs:331-341 | mistralrs-core/src/vision_models/muse_glimmer/text.rs:361-371 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 707 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 \u0060mistralrs-core/src/models/gemma.rs:272\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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"44bcd802465ea48b7ffd17721ecddf6994a1a11e4dd4c46b00cbd1ecb77d182f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): mistralrs/src/model_builder_trait.rs:580-590 | mistralrs/src/model_builder_trait.rs:659-669 | mistralrs/src/model_builder_trait.rs:802-813 | mistralrs/src/model_builder_trait.rs:957-968 | mistralrs/src/model_builder_trait.rs:1130-1141 | mistralrs/src/model_builder_trait.rs:1579-1590 \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 \u0060mistralrs/src/model_builder_trait.rs:580\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":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"111c20209aa9a8f21c70a997d7434acc6b27fa24ded457e7c86a142bb7d45071"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 5): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2758-2768 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6735-6745 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7177-7187 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7653-7661 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8175-8183 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2758\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":2758}}}],"partialFingerprints":{"codehealthFindingId/v1":"12fbec50fb6cdb41ea114633edbbca36fbfb1c679f104da07620a78fad6e0fb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): mistralrs-core/src/xlora_models/gemma.rs:485-495 | mistralrs-core/src/xlora_models/gemma2.rs:515-525 | mistralrs-core/src/xlora_models/mistral.rs:481-491 | mistralrs-core/src/xlora_models/mixtral.rs:612-622 | mistralrs-core/src/xlora_models/phi2.rs:467-477 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 498 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 \u0060mistralrs-core/src/xlora_models/gemma.rs:485\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f7dafada9e927f8b42360c7d57f1c097b4967fd4c65bb36870e0ac8f8467224"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): mistralrs-cli/src/commands/run/interactive.rs:894-904 | mistralrs-cli/src/commands/run/interactive.rs:1576-1586 | mistralrs-cli/src/commands/run/interactive.rs:1884-1894 | mistralrs-cli/src/commands/run/interactive.rs:2008-2018 \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 \u0060mistralrs-cli/src/commands/run/interactive.rs:894\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, \u0060mistralrs-cli/src/commands/run/interactive.rs:893\u0060 calls \u0060format_sampling_params\u0060 and \u0060mistralrs-cli/src/commands/run/interactive.rs:1883\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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":894}}}],"partialFingerprints":{"codehealthFindingId/v1":"43cf62ae36b718bce22a2e73597e447a433700ca6359e25360f7ef3ef8538eae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201324 lines \u00D7 4): mistralrs-core/src/layers.rs:936-950 | mistralrs-core/src/layers.rs:953-975 | mistralrs-core/src/layers.rs:2259-2273 | mistralrs-core/src/layers.rs:2276-2299 \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 \u0060mistralrs-core/src/layers.rs:953\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060\u0026PhiRopeConfig\u0060 in one and \u0060\u0026Phi4MMConfig\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":"mistralrs-core/src/layers.rs"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c82990ed45200233e17627b4109a7f045d049b3859c56fed8b5c63eaaa2ce70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): mistralrs-core/src/models/deepseek2.rs:780-790 | mistralrs-core/src/models/deepseek3.rs:843-853 | mistralrs-core/src/models/glm4_moe.rs:680-690 | mistralrs-core/src/models/glm4_moe_lite.rs:790-800 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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. 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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ab6bd13db9e76333c49a56f044b3fab909ec00314832689dcfbdc005367f51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4785-4795 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8419-8429 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1075-1085 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6654-6664 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 445 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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":4785}}}],"partialFingerprints":{"codehealthFindingId/v1":"378a11e8f46867192ba057817db22b84a0ec19ffff14638e872befb09bcf2062"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:228-238 | mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:270-280 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:385-395 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:427-437 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/mod.rs\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 396 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 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:228\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":"mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"8451e9ef1500b54d0ebce9561ad92af0559fa8a1624a6418f6cda5c07cc0439c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): mistralrs-core/src/vision_models/qwen3_vl/mod.rs:737-747 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:812-822 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:183-193 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:258-268 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_vl/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs\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 25 separate duplicated blocks between them, totalling at least 658 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 \u0060mistralrs-core/src/vision_models/qwen3_vl/mod.rs:737\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":"mistralrs-core/src/vision_models/qwen3_vl/mod.rs"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13c3c336b33e7c24a9b782a29b1a217acd4c56fb941efc1ce1926bb3036ed75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): mistralrs-core/src/xlora_models/gemma2.rs:648-658 | mistralrs-core/src/xlora_models/phi2.rs:571-581 | mistralrs-core/src/xlora_models/quantized_llama.rs:805-815 | mistralrs-core/src/xlora_models/quantized_phi3.rs:473-483 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 and \u0060mistralrs-core/src/xlora_models/phi2.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 304 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 \u0060mistralrs-core/src/xlora_models/gemma2.rs:648\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, \u0060mistralrs-core/src/xlora_models/gemma2.rs:647\u0060 calls \u0060get\u0060, \u0060device\u0060 and \u0060mistralrs-core/src/xlora_models/phi2.rs:570\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":"mistralrs-core/src/xlora_models/gemma2.rs"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"775a259959afa9fdca9e9dd361e903be79f04f2cf3a6f9fcb4d12c74311f4c60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-core/src/cuda/gdn.rs:971-981 | mistralrs-core/src/cuda/gdn.rs:1095-1105 | mistralrs-core/src/cuda/gdn.rs:1206-1216 \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 \u0060mistralrs-core/src/cuda/gdn.rs:971\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d68d159846e392c9f3c6e6522d1b05f43b87fd4c5002a929c73ebc4ef6d0534"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-core/src/embedding_models/embedding_gemma.rs:437-447 | mistralrs-core/src/vision_models/gemma3/text.rs:496-506 | mistralrs-core/src/vision_models/gemma3n/text.rs:1436-1446 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma3/text.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 286 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":"mistralrs-core/src/embedding_models/embedding_gemma.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6fb86ab8dbc5deda9b93d88de5d2e457c7d4b762339a744a1a02aad19fd4ff1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-core/src/gdn/weights.rs:223-233 | mistralrs-core/src/gdn/weights.rs:252-262 | mistralrs-core/src/gdn/weights.rs:293-303 \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 \u0060mistralrs-core/src/gdn/weights.rs:223\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":"mistralrs-core/src/gdn/weights.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0ad813c1374d59fa1f5803bc976dd284a57b6284a76abcc02126767637d4779"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): mistralrs-core/src/models/deepseek2.rs:1054-1074 | mistralrs-core/src/models/deepseek3.rs:1119-1139 | mistralrs-core/src/models/glm4_moe_lite.rs:1073-1093 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:1054\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, \u0060mistralrs-core/src/models/deepseek2.rs:1051\u0060 calls \u0060Plain\u0060, \u0060pp\u0060, \u0060add\u0060 and \u0060mistralrs-core/src/models/glm4_moe_lite.rs:1072\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2be9c40819dacc552729a64fd1eb11e8052bd52276f97597f886b73af607ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): mistralrs-core/src/models/llama.rs:499-509 | mistralrs-core/src/models/smollm3.rs:518-528 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:541-550 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/llama.rs\u0060 and \u0060mistralrs-core/src/models/smollm3.rs\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 727 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 \u0060mistralrs-core/src/models/llama.rs:499\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":"mistralrs-core/src/models/llama.rs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5d7e4c0a16969c790491b662c5cf80e8d9098f4b171e35d82b99019ccd8c92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-core/src/models/phi3.rs:183-193 | mistralrs-core/src/vision_models/phi3/mod.rs:274-284 | mistralrs-core/src/vision_models/phi4/mod.rs:143-153 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/phi3.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi3/mod.rs\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 638 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 \u0060mistralrs-core/src/models/phi3.rs: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":"mistralrs-core/src/models/phi3.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8c8ec465f687b17ee9b41cb3d0964d6eca7f731b8c940f2a982f940260e515"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-core/src/models/qwen3_next.rs:196-208 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:101-113 | mistralrs-core/src/vision_models/qwen4_exp/qsa.rs:119-129 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/qwen3_next.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 461 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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"334865732cd6d214db486a3f13022c4d881d0511c91537935e39d4f58d6c0c0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-core/src/ops.rs:202-212 | mistralrs-core/src/ops.rs:525-535 | mistralrs-core/src/ops.rs:649-659 \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":"mistralrs-core/src/ops.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d2a9c1ee3eecc1a9a4903c0e0b85e7e9226a0094cf06f77fd887cbd395a1430"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1013-1023 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3804-3814 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4591-4600 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1013\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"06bce2ac900ff20c9b891dd800ea1958dc66dff4efe965a2ace9591e01b79636"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1338-1348 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3118-3128 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3467-3477 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1338\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1338}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a9ce3697e51799ac2e18bbe4d4dc650e19f9c8a906392747bfcd7db1eb69bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7817-7827 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8339-8349 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6599-6609 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 445 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. 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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":7817}}}],"partialFingerprints":{"codehealthFindingId/v1":"f37aab9591c3773a02ff9adff6627c1b99da57b84e8dc9da454d4f19ace075d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-core/src/vision_models/gemma3/text.rs:451-461 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:407-417 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:527-537 \u2014 \u0060mistralrs-core/src/vision_models/gemma3/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_vl/text.rs\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 15 separate duplicated blocks between them, totalling at least 140 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 \u0060mistralrs-core/src/vision_models/gemma3/text.rs:451\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":"mistralrs-core/src/vision_models/gemma3/text.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f8a2edf2bb3af07f8c9ba810ab6a730495c55598cc917a6c0613f5c736202d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:1240-1256 | mistralrs-core/src/vision_models/phi4/inputs_processor.rs:630-640 | mistralrs-core/src/vision_models/phi4/inputs_processor.rs:866-881 \u2014 \u0060mistralrs-core/src/vision_models/gemma4/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi4/inputs_processor.rs\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 46 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 \u0060mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:1240\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":"mistralrs-core/src/vision_models/gemma4/inputs_processor.rs"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba5bef1f7f29261b4ac8e1496841b76a0aea5f59d8f9a2cd293ef6d08fcd5549"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-core/src/vision_models/grid_processor.rs:2067-2077 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1132-1142 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1697-1707 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:2067\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":2067}}}],"partialFingerprints":{"codehealthFindingId/v1":"09d8f04d773b535c3315c83596c5f4acc28e4549acba892788f35e083d076941"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-core/src/vision_models/idefics2/mod.rs:638-648 | mistralrs-core/src/vision_models/idefics3/vision.rs:436-446 | mistralrs-core/src/vision_models/siglip.rs:454-464 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics2/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/idefics3/vision.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 221 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 \u0060mistralrs-core/src/vision_models/idefics2/mod.rs:638\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 \u0060\u0026VisionConfig\u0060 in one and \u0060\u0026Idefics3VisionConfig\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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"a68e6882675000509c98a1b274f2eecbbf03b2dc38060871afd93a30d9d46559"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): mistralrs-core/src/vision_models/muse_glimmer/text.rs:227-236 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:195-205 | mistralrs-core/src/vision_models/qwen2vl/text.rs:196-206 \u2014 \u0060mistralrs-core/src/vision_models/muse_glimmer/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/text.rs\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 10 separate duplicated blocks between them, totalling at least 145 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":"mistralrs-core/src/vision_models/muse_glimmer/text.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"3175111f28c80df052b0695d38010d011134ac401a936b6eb3af96ac231d05b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): mistralrs-quant/src/cutile/fp8_gemm.rs:144-155 | mistralrs-quant/src/cutile/fp8_w8a16.rs:211-222 | mistralrs-quant/src/cutile/fp8_w8a8.rs:216-227 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fp8_gemm.rs\u0060 and \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 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. 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":"mistralrs-quant/src/cutile/fp8_gemm.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac44085ff7bf08c4b46d58bbf8fdf26efa2f5d96762fb104b5aa7ca5a173f6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-quant/src/gemv/mod.rs:350-360 | mistralrs-quant/src/gemv/mod.rs:422-432 | mistralrs-quant/src/gemv/mod.rs:493-503 \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":"mistralrs-quant/src/gemv/mod.rs"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6fbd2e8d03bad3531744a45ae94138a3a7cbfc90d45378020d89198ec73ba5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-quant/src/hqq/mod.rs:268-278 | mistralrs-quant/src/hqq/mod.rs:362-372 | mistralrs-quant/src/hqq/mod.rs:511-521 \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 \u0060mistralrs-quant/src/hqq/mod.rs:268\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":"mistralrs-quant/src/hqq/mod.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"a183d16a21a44befe5dca9c81f2d48686c7799cd0742a9b1bdfa1d796e717752"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-quant/src/metal_kernels/mod.rs:1796-1806 | mistralrs-quant/src/metal_kernels/mod.rs:1861-1871 | mistralrs-quant/src/metal_kernels/mod.rs:1931-1941 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:1796\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":1796}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dba2aeffca53738de25c885b0043471ce8f44ea3005cc57486fd537490f0689"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-cli/src/args/mod.rs:888-898 | mistralrs-cli/src/args/mod.rs:979-989 \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":"mistralrs-cli/src/args/mod.rs"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17aa1183db0ad177d51d0c5f4cf440ce112a044ec0021c7fa541c1a5e40a765"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-cli/src/commands/run/mod.rs:115-125 | mistralrs-cli/src/commands/serve.rs:129-139 \u2014 before extracting anything, compare \u0060mistralrs-cli/src/commands/run/mod.rs\u0060 and \u0060mistralrs-cli/src/commands/serve.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060mistralrs-cli/src/commands/serve.rs:127\u0060 calls \u0060default\u0060 and \u0060mistralrs-cli/src/commands/run/mod.rs:113\u0060 does not \u2014 after which the two agree again for 5 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":"mistralrs-cli/src/commands/run/mod.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3cee9640d3ca1be80d41cb12b51aa7bb1451734ed2b1e0e01e6506b2606835"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): mistralrs-core/src/attention/backends/cpu/full.rs:436-443 | mistralrs-core/src/attention/backends/cpu/single_q.rs:201-211 \u2014 before extracting anything, compare \u0060mistralrs-core/src/attention/backends/cpu/full.rs\u0060 and \u0060mistralrs-core/src/attention/backends/cpu/single_q.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 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 \u0060mistralrs-core/src/attention/backends/cpu/full.rs:436\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":"mistralrs-core/src/attention/backends/cpu/full.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"2204b9c1152e636a38d68e8b766dffc82f8de81de2bb582b8a9b30daf559cf25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/distributed.rs:267-277 | mistralrs-core/src/distributed.rs:307-317 \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 \u0060mistralrs-core/src/distributed.rs:267\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":"mistralrs-core/src/distributed.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"933001276f25dc3604df95e6f13727b539a92290e25e12286df4523a072197a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): mistralrs-core/src/engine/mod.rs:2312-2322 | mistralrs-core/src/engine/mod.rs:2423-2431 \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 \u0060mistralrs-core/src/engine/mod.rs:2312\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":"mistralrs-core/src/engine/mod.rs"},"region":{"startLine":2312}}}],"partialFingerprints":{"codehealthFindingId/v1":"af39bf8ee65885751fbe845ccd1c271af3f1ab9385a75ffe39fe6e6402ffdc4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): mistralrs-core/src/gguf/lfm2_vl_bindings.rs:39-49 | mistralrs-core/src/gguf/lfm3_vl_bindings.rs:48-57 \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":"mistralrs-core/src/gguf/lfm2_vl_bindings.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ef9756b1dee122323f93dab52d5c819bafa6e9b3842dea54af97f948b7d6959"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): mistralrs-core/src/gguf/multimodal_binding_utils.rs:84-94 | mistralrs-core/src/gguf/qwen_multimodal_bindings.rs:259-268 \u2014 before extracting anything, compare \u0060mistralrs-core/src/gguf/multimodal_binding_utils.rs\u0060 and \u0060mistralrs-core/src/gguf/qwen_multimodal_bindings.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 40 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. 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":"mistralrs-core/src/gguf/multimodal_binding_utils.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ce17c4b304ce5bc09dc2d2366d05b7dc96308615a87ca6a4b1e648ada94ff8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/gguf/normal_config.rs:261-271 | mistralrs-core/src/gguf/normal_config.rs:322-332 \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":"mistralrs-core/src/gguf/normal_config.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d8d4225790974047c8424f6d935b57f93c8729a639c27596f85e637486798e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): mistralrs-core/src/kv_cache/mod.rs:1261-1269 | mistralrs-core/src/kv_cache/mod.rs:1318-1328 \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 \u0060mistralrs-core/src/kv_cache/mod.rs:1261\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":"mistralrs-core/src/kv_cache/mod.rs"},"region":{"startLine":1261}}}],"partialFingerprints":{"codehealthFindingId/v1":"7247aecfae4be3ba0dd9ba2ebb5b70401579ceeb85d7aeaff7282d5441758784"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): mistralrs-core/src/mla/forward.rs:190-200 | mistralrs-core/src/mla/forward.rs:387-396 \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":"mistralrs-core/src/mla/forward.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"a04aec5c5aab4a9c2bc56f8d1abd242e4200c17a75e5847f939751e8fbd75f1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): mistralrs-core/src/models/gemma2.rs:563-582 | mistralrs-core/src/models/qwen2.rs:592-611 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma2.rs\u0060 and \u0060mistralrs-core/src/models/qwen2.rs\u0060 as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 475 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 \u0060mistralrs-core/src/models/gemma2.rs:563\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":"mistralrs-core/src/models/gemma2.rs"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"71dfb752aa2b4a6f61842ded33f107576a77aec1470c387e637ee1420502796c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): mistralrs-core/src/models/glm4.rs:342-352 | mistralrs-core/src/vision_models/gemma4/text.rs:993-1002 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/glm4.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/text.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 52 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 \u0060mistralrs-core/src/models/glm4.rs:342\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":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"d58c0f83956f37dcf05163c12ed61cbf34ec03a5fc738d1b0c53d2b1617d0dfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/models/glm4_moe.rs:735-745 | mistralrs-core/src/models/granite.rs:1974-1984 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/glm4_moe.rs\u0060 and \u0060mistralrs-core/src/models/granite.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 233 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 \u0060mistralrs-core/src/models/glm4_moe.rs:735\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":"mistralrs-core/src/models/glm4_moe.rs"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5d959efbf8a4f103f38ad6fa4007804c5ac700390106f898d66f43e8d8e52ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/models/lfm2.rs:1111-1121 | mistralrs-core/src/models/lfm3.rs:1023-1033 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/lfm2.rs\u0060 and \u0060mistralrs-core/src/models/lfm3.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 402 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 \u0060mistralrs-core/src/models/lfm2.rs:1111\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":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb492f1843756660cb491e289caee909ef571c70306ad4b0966163982bc4600"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/models/phi2.rs:442-452 | mistralrs-core/src/xlora_models/phi2.rs:413-423 \u2014 \u0060mistralrs-core/src/models/phi2.rs\u0060 and \u0060mistralrs-core/src/xlora_models/phi2.rs\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 7 separate duplicated blocks between them, totalling at least 85 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":"mistralrs-core/src/models/phi2.rs"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"e89dedd415c211f27d54f0456423e170c50081d408340dc19c7218fe178dab95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): mistralrs-core/src/models/phi3.rs:421-430 | mistralrs-core/src/vision_models/gemma3/text.rs:447-457 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/phi3.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma3/text.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 199 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 \u0060mistralrs-core/src/models/phi3.rs:421\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, \u0060mistralrs-core/src/vision_models/gemma3/text.rs:444\u0060 calls \u0060sqrt\u0060 and \u0060mistralrs-core/src/models/phi3.rs:417\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":"mistralrs-core/src/models/phi3.rs"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"76cb6919521b27c2c025999d5557b13291b7cc2c4d82d5061edfdfc4cf0b0608"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): mistralrs-core/src/models/qwen3_next.rs:280-290 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:196-205 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/qwen3_next.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 461 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 \u0060mistralrs-core/src/models/qwen3_next.rs:280\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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d6b863167f5af1843a9a9ba4b3522b2eeecef9ecb3ca99fec25d28336febf2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201311 lines \u00D7 2): mistralrs-core/src/models/qwen3_next.rs:607-612 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:437-447 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/qwen3_next.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 461 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 \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:437\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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"52afedffd23b27a0986b8352d09f9ecab39b774ee6088a8f0c26abf225ff8b0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/ops.rs:934-944 | mistralrs-core/src/ops.rs:1016-1026 \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":"mistralrs-core/src/ops.rs"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"eabbaa0b494d36d1af7bcbf9020a3d55fdc57eb8e7bcd1e7834f3f0448a2983a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/ops.rs:1066-1076 | mistralrs-core/src/ops.rs:1301-1311 \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":"mistralrs-core/src/ops.rs"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"34f15d73e19f2d964c7bb1863df78b965a4b1dd92c6c9e8f26a12b42527b1fcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/ops.rs:5743-5753 | mistralrs-core/src/ops.rs:6173-6183 \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 \u0060mistralrs-core/src/ops.rs:5743\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":5743}}}],"partialFingerprints":{"codehealthFindingId/v1":"b70aeaf2b9f7bc9022a225a1489e24eaa685805e3345c76079be6c597c4afe74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/paged_attention/layers/paged_attention.rs:1807-1817 | mistralrs-core/src/paged_attention/layers/paged_attention.rs:1828-1839 \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 \u0060mistralrs-core/src/paged_attention/layers/paged_attention.rs:1828\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":"mistralrs-core/src/paged_attention/layers/paged_attention.rs"},"region":{"startLine":1807}}}],"partialFingerprints":{"codehealthFindingId/v1":"6302ec1fcaaa0b0d66f6e4b605dd3b68830f7388eaa4d59cde25aeec9a2a3ae2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/pipeline/diffusion.rs:126-137 | mistralrs-core/src/pipeline/speech.rs:228-239 \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 \u0060mistralrs-core/src/pipeline/diffusion.rs:126\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":"mistralrs-core/src/pipeline/diffusion.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb298c0a8345785da0b9e58233d2d50a3325641afbf78fd68889b52190efc993"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1328-1338 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1357-1367 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1328\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1328}}}],"partialFingerprints":{"codehealthFindingId/v1":"da7bc5cfafa5da89138f78ae4fa7a1c7e473e88a88d1e2dcaddf5cba8155a298"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3108-3118 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3137-3147 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3108\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":3108}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b52f45b2da4281e658a1303616cd125cc265dcc92f6c91ea4adc11f6a3df68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3457-3467 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3486-3496 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3457\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":3457}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b89bab3f64eb4a6c6adaac893c13b7cec21e003b9c7cc379b1965b3f99e0505"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9326-9336 | mistralrs-core/src/vision_models/voxtral/mod.rs:708-718 \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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":9326}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e9d300b95ebf9ca1687eda08c6035886e054b79b7a4274cb399684e146c57b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:896-906 | mistralrs-core/src/pipeline/normal.rs:902-911 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:896\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"34c4cefda119ea04f4096ca6760c536927e1942d9d67c2e5d0a73925adf5b3d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2823-2833 | mistralrs-core/src/pipeline/normal.rs:2435-2445 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:2823\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2823}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c8c95d721f479dc6b593e54782bad0e59a84507778ed536ea4275d30a3e1155"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/pipeline/prompt_chunks.rs:57-67 | mistralrs-core/src/pipeline/prompt_chunks.rs:93-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060mistralrs-core/src/pipeline/prompt_chunks.rs:57\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":"mistralrs-core/src/pipeline/prompt_chunks.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a088f0a4663e8d9999b22ba983773cc91fd823d3d2cf0d70eda030d31a6bdc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): mistralrs-core/src/speculative/dflash.rs:3337-3347 | mistralrs-core/src/speculative/dflash.rs:3559-3568 \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":"mistralrs-core/src/speculative/dflash.rs"},"region":{"startLine":3337}}}],"partialFingerprints":{"codehealthFindingId/v1":"473b12a8fffc6d499e5139e2a75709340b256454b1ba44e7790a7d8642eb6b8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/mod.rs:141-151 | mistralrs-core/src/vision_models/gemma4/mod.rs:153-163 \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 \u0060mistralrs-core/src/vision_models/gemma4/mod.rs:141\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":"mistralrs-core/src/vision_models/gemma4/mod.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e79d729b1836030779238131c193fbfa3d394da126cbb76d4595104e3d0ead8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/mod.rs:441-451 | mistralrs-core/src/vision_models/phi3/mod.rs:979-989 \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 \u0060mistralrs-core/src/vision_models/gemma4/mod.rs:441\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":"mistralrs-core/src/vision_models/gemma4/mod.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"463472d89dc5c27fc2b268d4d3f6483654096cc0fdb962dc9f20279286c6cf00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/vision_models/grid_processor.rs:494-504 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:277-287 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 1008 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:494\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ed3f36db01ed2fc25c1a18790d0b48872e4a7f6cc9420a280df8f1189d309cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/vision_models/idefics2/mod.rs:490-500 | mistralrs-core/src/vision_models/idefics2/mod.rs:845-855 \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 \u0060mistralrs-core/src/vision_models/idefics2/mod.rs:490\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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"09019494d282aac5d07ffc074149d7b0cc37c8e7c109415550ab19658d181459"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/vision_models/idefics2/mod.rs:593-603 | mistralrs-core/src/vision_models/siglip.rs:401-411 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics2/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/siglip.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 256 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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a0c5e3807faff6f8d76075439da405cfe983f2e3ab6842bb4a25adae4ec0654"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201311 lines \u00D7 3): mistralrs-core/src/vision_models/clip.rs:137-138 | mistralrs-core/src/vision_models/idefics3/vision.rs:250-260 | mistralrs-core/src/vision_models/siglip.rs:254-264 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics3/vision.rs\u0060 and \u0060mistralrs-core/src/vision_models/siglip.rs\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 276 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 \u0060mistralrs-core/src/vision_models/idefics3/vision.rs: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":"mistralrs-core/src/vision_models/clip.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f1fdeface8728bcf04f6b4deb8acb3ebbcf991ec188e8d7079221b0d237cbbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/vision_models/lfm3_vl/mod.rs:246-256 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:515-525 \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":"mistralrs-core/src/vision_models/lfm3_vl/mod.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"174c211adc6cc130aa9945a413660cacad980818de069704445680343daafe75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/vision_models/llama4/vision.rs:273-283 | mistralrs-core/src/vision_models/mllama/vision.rs:294-304 \u2014 \u0060mistralrs-core/src/vision_models/llama4/vision.rs\u0060 and \u0060mistralrs-core/src/vision_models/mllama/vision.rs\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 6 separate duplicated blocks between them, totalling at least 67 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":"mistralrs-core/src/vision_models/llama4/vision.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"001089b0f601822c88101e80acde61fc9c60b4e0c9d135b19ee1d341f654ecd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava15.rs:183-193 | mistralrs-core/src/vision_models/llava/llava_next.rs:143-153 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/llava/llava15.rs\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava_next.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 109 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, \u0060mistralrs-core/src/vision_models/llava/llava_next.rs:155\u0060 calls \u0060get\u0060, \u0060to_device\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava15.rs:195\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":"mistralrs-core/src/vision_models/llava/llava15.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"73fdb3e022cf337f2722493eb92d39b3b0c079319f5d1b6167b33b106a61766b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/vision_models/phi3/mod.rs:1210-1220 | mistralrs-core/src/vision_models/phi4/mod.rs:331-341 \u2014 \u0060mistralrs-core/src/vision_models/phi3/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi4/mod.rs\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 48 separate duplicated blocks between them, totalling at least 586 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 \u0060mistralrs-core/src/vision_models/phi3/mod.rs:1210\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":"mistralrs-core/src/vision_models/phi3/mod.rs"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"096fcc680e69d7df850fa3688cf7a0e1576087626e39e64015b415e5ffc84367"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:601-611 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:452-462 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/vision.rs\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 15 separate duplicated blocks between them, totalling at least 182 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":"mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"0022f75738bba4d3ddc4b0303e348c6a1389f39754c1662c9921319334959f0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/text.rs:122-132 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:142-152 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs\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 26 separate duplicated blocks between them, totalling at least 469 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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"a742d34623ed7f00fc638a12d44ab59272ad477ad0ab7ee38664db65ba14de1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/text.rs:225-235 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:154-164 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs\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 26 separate duplicated blocks between them, totalling at least 469 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 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e48b548af75c1a11148bba252e317526046f9dad4c5248e0179d605a796c30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/text.rs:511-521 | mistralrs-core/src/vision_models/qwen3_5/text.rs:528-538 \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 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs:511\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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0937646d5b3cd5d617f8c7c349bc51321a58717167abec1eff2cfcd8d424b54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): mistralrs-core/src/vision_models/voxtral/encoder.rs:80-90 | mistralrs-core/src/vision_models/voxtral/mod.rs:127-136 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/voxtral/encoder.rs\u0060 and \u0060mistralrs-core/src/vision_models/voxtral/mod.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 36 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 \u0060mistralrs-core/src/vision_models/voxtral/encoder.rs:80\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":"mistralrs-core/src/vision_models/voxtral/encoder.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"595ab778ba9113cedf91334b8719556cbb4b64ff2170fcd0d8585e73556b3941"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-flash-attn/src/flash.rs:60-70 | mistralrs-flash-attn/src/flash.rs:552-562 \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 \u0060mistralrs-flash-attn/src/flash.rs:60\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":"mistralrs-flash-attn/src/flash.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"a660ec6e6c4c2bb071cde55b4689848bfc433084f8b3be5acf21abec0a4964c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-pyo3/src/util.rs:559-570 | mistralrs-server-core/src/video.rs:386-397 \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":"mistralrs-pyo3/src/util.rs"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb4b17eca1525972772885240b7d7948d13e42c63527ad2c855131a6ca7a6740"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): mistralrs-quant/src/afq/mod.rs:302-312 | mistralrs-quant/src/gguf/mod.rs:578-587 \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 \u0060mistralrs-quant/src/afq/mod.rs:302\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":"mistralrs-quant/src/afq/mod.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"711ded66a25e1762b34391665b7b7011b465f58d987d1a9c6cacc81596cf005d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:539-549 | mistralrs-quant/src/blockwise_fp8/ops.rs:674-684 \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 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:539\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"d263dc3e78a4822b92f8f5492464f2f8115971a28e7d4087cacae332dc20bd25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:1247-1257 | mistralrs-quant/src/mxfp4/ops.rs:415-425 \u2014 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs\u0060 and \u0060mistralrs-quant/src/mxfp4/ops.rs\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 59 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 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:1247\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"657c9c482ec8891dae1a9b78748433db0846045832904183f6d6b55a31439337"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_gemm.rs:159-169 | mistralrs-quant/src/cutile/mod.rs:361-371 \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 \u0060mistralrs-quant/src/cutile/fp8_gemm.rs:159\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":"mistralrs-quant/src/cutile/fp8_gemm.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d4c296da1c0d8cd04e964d1dcda1447194711f712d0a72a9f4de5d5b7aa7dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201311 lines \u00D7 4): mistralrs-quant/src/cutile/fused_moe.rs:98-99 | mistralrs-quant/src/cutile/fused_moe.rs:105-115 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:111-112 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:118-128 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fused_moe.rs\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe_fp8.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 298 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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1ba8b4dc00dd6d665f80cc39252db4a28e5074c84fd0f3d7a90ef74fa07efac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-quant/src/cutile/gdn_prefill.rs:355-367 | mistralrs-quant/src/cutile/gdn_prefill.rs:411-423 \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":"mistralrs-quant/src/cutile/gdn_prefill.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa740c0674afb8f18598215b3dd4fa631ffc3ecd44afed406774e005308f714"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_gemv.rs:63-84 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:167-188 \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 \u0060mistralrs-quant/src/cutile/nvfp4_gemv.rs: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":"mistralrs-quant/src/cutile/nvfp4_gemv.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5bffd56efae217786e0fc3f37baff67415f8d31051de20d70ef07e1838303f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_gemv.rs:451-461 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:470-480 \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 \u0060mistralrs-quant/src/cutile/nvfp4_gemv.rs:451\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":"mistralrs-quant/src/cutile/nvfp4_gemv.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e40ec8d2a5e33c050ce425bcba7dae0df94e2d008af522c33dafe27accfef5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-quant/src/hqq/mod.rs:839-850 | mistralrs-quant/src/hqq/mod.rs:884-895 \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 \u0060mistralrs-quant/src/hqq/mod.rs:839\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":"mistralrs-quant/src/hqq/mod.rs"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"e204f5bf378a4cbc878008748937b82188367aaefd43247540a1f2df8f6f805c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-quant/src/metal_kernels/mod.rs:1592-1603 | mistralrs-quant/src/metal_kernels/mod.rs:1668-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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:1592\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":1592}}}],"partialFingerprints":{"codehealthFindingId/v1":"416410ba8b8b2b5c50699b740a313382a51c4f6e0d5df2809923ae49a8c1bb23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-quant/src/moe/cuda.rs:244-254 | mistralrs-quant/src/moe/cuda.rs:280-290 \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 \u0060mistralrs-quant/src/moe/cuda.rs:244\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":"mistralrs-quant/src/moe/cuda.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4051c8004325828aac861b6b0b5e87c43db1d01ae4f12978640a2868330f551"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-quant/src/mxfp4/ops.rs:59-69 | mistralrs-quant/src/mxfp4/ops.rs:407-417 \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 \u0060mistralrs-quant/src/mxfp4/ops.rs:59\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, \u0060mistralrs-quant/src/mxfp4/ops.rs:418\u0060 calls \u0060layout\u0060 and \u0060mistralrs-quant/src/mxfp4/ops.rs:71\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":"mistralrs-quant/src/mxfp4/ops.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdeb401fcfa08d291cb09efd0e48aa5194d65cf7a2f06c5ab3aba8368ef87a03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-quant/src/pertensor_fp8/mod.rs:349-359 | mistralrs-quant/src/pertensor_fp8/mod.rs:401-411 \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":"mistralrs-quant/src/pertensor_fp8/mod.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46c6384dd242a0eeace877b7eac24e0deed794994501a86afa91fbd76ef2de3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-quant/src/rotary/mod.rs:596-606 | mistralrs-quant/src/rotary/mod.rs:708-718 \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 \u0060mistralrs-quant/src/rotary/mod.rs:596\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, \u0060mistralrs-quant/src/rotary/mod.rs:719\u0060 calls \u0060new_buffer\u0060, \u0060shape\u0060, \u0060elem_count\u0060 and \u0060mistralrs-quant/src/rotary/mod.rs:607\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":"mistralrs-quant/src/rotary/mod.rs"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"2558402ebffce96dc4a2a02d8af2b1f77238db84e02c82f62b1d99f5a54718a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-quant/src/safetensors.rs:373-385 | mistralrs-quant/src/safetensors.rs:416-428 \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":"mistralrs-quant/src/safetensors.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"782e64eaea8818fa3b8befa778f38ebf3f89d24ba9f2af9f9e3dd8a94e7c996e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs/src/anymoe.rs:44-54 | mistralrs/src/anymoe.rs:68-78 \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 \u0060mistralrs/src/anymoe.rs:44\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":"mistralrs/src/anymoe.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c2a0d8bfdc518d045c20b8da56c4549abede4d3884533cf052239726ed7209"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): mistralrs/src/gguf_lora_model.rs:71-80 | mistralrs/src/gguf_xlora_model.rs:80-90 \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 \u0060mistralrs/src/gguf_lora_model.rs: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":"mistralrs/src/gguf_lora_model.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e09c29f14a82f18cbe1f4798a4e68f9e56e3c4b340be6f918fd542a27349f1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 33): mistralrs-core/src/embedding_models/qwen3_embedding.rs:253-262 | mistralrs-core/src/models/deepseek2.rs:729-738 | mistralrs-core/src/models/deepseek3.rs:792-801 | mistralrs-core/src/models/flint.rs:714-723 | mistralrs-core/src/models/glm4.rs:339-348 | mistralrs-core/src/models/glm4_moe.rs:629-638 | mistralrs-core/src/models/glm4_moe_lite.rs:738-747 | mistralrs-core/src/models/gpt_oss.rs:655-664 | mistralrs-core/src/models/granite.rs:1483-1492 | mistralrs-core/src/models/granite.rs:1769-1778 | mistralrs-core/src/models/hunyuan_v1_dense.rs:313-322 | mistralrs-core/src/models/hunyuan_v1_moe.rs:803-812 | mistralrs-core/src/models/llama.rs:287-296 | mistralrs-core/src/models/mistral.rs:334-343 | mistralrs-core/src/models/mixtral.rs:343-352 | mistralrs-core/src/models/phi3.rs:347-356 | mistralrs-core/src/models/qwen2.rs:366-375 | mistralrs-core/src/models/qwen3.rs:322-331 | mistralrs-core/src/models/qwen3_moe.rs:496-505 | mistralrs-core/src/models/smollm3.rs:303-312 | mistralrs-core/src/vision_models/gemma4/text.rs:990-999 | mistralrs-core/src/vision_models/llama4/text.rs:692-701 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:358-367 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:340-349 | mistralrs-core/src/vision_models/mllama/text.rs:284-293 | mistralrs-core/src/vision_models/mllama/text.rs:643-652 | mistralrs-core/src/vision_models/phi3/mod.rs:438-447 | mistralrs-core/src/vision_models/phi4/mod.rs:267-276 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:445-454 | mistralrs-core/src/xlora_models/llama.rs:361-370 | mistralrs-core/src/xlora_models/mistral.rs:341-350 | mistralrs-core/src/xlora_models/mixtral.rs:468-477 | mistralrs-core/src/xlora_models/phi3.rs:306-315 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/models/deepseek2.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060mistralrs-core/src/models/phi3.rs:346\u0060 calls \u0060set_device\u0060, \u0060pp\u0060 and \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:252\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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"daea8444089474877e821677f1d6e0083e7cb6d6cd1738fca49957051aff91e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 32): mistralrs-core/src/models/flint.rs:392-401 | mistralrs-core/src/models/gemma.rs:197-206 | mistralrs-core/src/models/gemma2.rs:244-253 | mistralrs-core/src/models/glm4.rs:244-253 | mistralrs-core/src/models/glm4_moe.rs:312-321 | mistralrs-core/src/models/gpt_oss.rs:277-286 | mistralrs-core/src/models/granite.rs:1573-1582 | mistralrs-core/src/models/hunyuan_v1_dense.rs:223-232 | mistralrs-core/src/models/hunyuan_v1_moe.rs:409-418 | mistralrs-core/src/models/lfm2.rs:518-527 | mistralrs-core/src/models/lfm3.rs:494-503 | mistralrs-core/src/models/llama.rs:105-114 | mistralrs-core/src/models/mistral.rs:245-254 | mistralrs-core/src/models/mixtral.rs:181-190 | mistralrs-core/src/models/phi2.rs:293-302 | mistralrs-core/src/models/phi3_5_moe.rs:211-220 | mistralrs-core/src/models/qwen2.rs:275-284 | mistralrs-core/src/models/qwen3.rs:230-239 | mistralrs-core/src/models/qwen3_moe.rs:233-242 | mistralrs-core/src/models/qwen3_next.rs:317-326 | mistralrs-core/src/models/smollm3.rs:122-131 | mistralrs-core/src/models/starcoder2.rs:257-266 | mistralrs-core/src/vision_models/gemma3/text.rs:247-256 | mistralrs-core/src/vision_models/mllama/text.rs:193-202 | mistralrs-core/src/vision_models/muse_glimmer/text.rs:272-281 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:239-248 | mistralrs-core/src/vision_models/qwen2vl/text.rs:240-249 | mistralrs-core/src/vision_models/qwen3_5/text.rs:364-373 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:232-241 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:236-245 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:342-351 | mistralrs-core/src/vision_models/voxtral/mod.rs:158-167 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/gemma.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 152 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 \u0060mistralrs-core/src/models/flint.rs:392\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, \u0060mistralrs-core/src/models/granite.rs:1571\u0060 calls \u0060flash_params\u0060 and \u0060mistralrs-core/src/models/flint.rs:389\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f77f3a88cd788df314cc0a8c2dd76ade54503647814b6edfad8452c97148454"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 23): mistralrs-core/src/embedding_models/embedding_gemma.rs:434-443 | mistralrs-core/src/models/deepseek2.rs:870-879 | mistralrs-core/src/models/deepseek3.rs:933-942 | mistralrs-core/src/models/gemma.rs:385-394 | mistralrs-core/src/models/gemma2.rs:458-467 | mistralrs-core/src/models/glm4_moe.rs:769-778 | mistralrs-core/src/models/glm4_moe_lite.rs:880-889 | mistralrs-core/src/models/llama.rs:414-423 | mistralrs-core/src/models/mistral.rs:493-502 | mistralrs-core/src/models/mixtral.rs:448-457 | mistralrs-core/src/models/phi2.rs:475-484 | mistralrs-core/src/models/phi3.rs:463-472 | mistralrs-core/src/models/phi3_5_moe.rs:532-541 | mistralrs-core/src/models/starcoder2.rs:446-455 | mistralrs-core/src/vision_models/gemma3/text.rs:493-502 | mistralrs-core/src/vision_models/llama4/text.rs:849-858 | mistralrs-core/src/vision_models/phi3/mod.rs:1244-1253 | mistralrs-core/src/vision_models/phi4/mod.rs:359-368 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:440-449 | mistralrs-core/src/vision_models/qwen2vl/text.rs:442-451 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:430-439 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:550-559 | mistralrs-core/src/vision_models/voxtral/mod.rs:662-671 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs\u0060 and \u0060mistralrs-core/src/models/deepseek2.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 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 \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs:434\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":"mistralrs-core/src/embedding_models/embedding_gemma.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"772218942ba12ec87cc6257bd59f01170a50c2e1b8cb0500973359645f20b1ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 22): mistralrs-core/src/embedding_models/embedding_gemma.rs:432-441 | mistralrs-core/src/models/deepseek2.rs:868-877 | mistralrs-core/src/models/deepseek3.rs:931-940 | mistralrs-core/src/models/gemma.rs:383-392 | mistralrs-core/src/models/gemma2.rs:456-465 | mistralrs-core/src/models/glm4_moe.rs:767-776 | mistralrs-core/src/models/glm4_moe_lite.rs:878-887 | mistralrs-core/src/models/llama.rs:412-421 | mistralrs-core/src/models/mistral.rs:491-500 | mistralrs-core/src/models/mixtral.rs:446-455 | mistralrs-core/src/models/phi2.rs:473-482 | mistralrs-core/src/models/phi3.rs:461-470 | mistralrs-core/src/models/phi3_5_moe.rs:530-539 | mistralrs-core/src/models/starcoder2.rs:444-453 | mistralrs-core/src/vision_models/gemma3/text.rs:491-500 | mistralrs-core/src/vision_models/gemma4/text.rs:1717-1726 | mistralrs-core/src/vision_models/phi3/mod.rs:1242-1251 | mistralrs-core/src/vision_models/phi4/mod.rs:357-366 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:438-447 | mistralrs-core/src/vision_models/qwen2vl/text.rs:440-449 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:428-437 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:548-557 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs\u0060 and \u0060mistralrs-core/src/models/deepseek2.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 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 \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs:432\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, \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs:430\u0060 calls \u0060pp\u0060 and \u0060mistralrs-core/src/vision_models/phi3/mod.rs:1240\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":"mistralrs-core/src/embedding_models/embedding_gemma.rs"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"82178736c5f8d566d7850a969a2243a5e966f21012ae5c02f0b2ef655f7e19a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 22): mistralrs-core/src/models/flint.rs:391-400 | mistralrs-core/src/models/gemma.rs:196-205 | mistralrs-core/src/models/glm4.rs:243-252 | mistralrs-core/src/models/glm4_moe.rs:311-320 | mistralrs-core/src/models/gpt_oss.rs:276-285 | mistralrs-core/src/models/granite.rs:1572-1581 | mistralrs-core/src/models/hunyuan_v1_dense.rs:222-231 | mistralrs-core/src/models/hunyuan_v1_moe.rs:408-417 | mistralrs-core/src/models/llama.rs:104-113 | mistralrs-core/src/models/mistral.rs:244-253 | mistralrs-core/src/models/mixtral.rs:180-189 | mistralrs-core/src/models/phi2.rs:292-301 | mistralrs-core/src/models/phi3_5_moe.rs:210-219 | mistralrs-core/src/models/qwen3.rs:229-238 | mistralrs-core/src/models/qwen3_moe.rs:232-241 | mistralrs-core/src/models/qwen3_next.rs:316-325 | mistralrs-core/src/models/smollm3.rs:121-130 | mistralrs-core/src/models/starcoder2.rs:256-265 | mistralrs-core/src/vision_models/gemma3/text.rs:246-255 | mistralrs-core/src/vision_models/llama4/text.rs:476-485 | mistralrs-core/src/vision_models/mllama/text.rs:192-201 | mistralrs-core/src/vision_models/voxtral/mod.rs:157-166 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/gemma.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 152 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 \u0060mistralrs-core/src/models/flint.rs:391\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, \u0060mistralrs-core/src/models/granite.rs:1571\u0060 calls \u0060flash_params\u0060 and \u0060mistralrs-core/src/models/flint.rs:389\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"be79d2e8bd79fe9d4739d4fe4589bbf9d142c8dc74793c29bd7042a5b6797aba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 16): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:436-447 | mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:639-650 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1277-1288 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1658-1669 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1966-1977 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2689-2700 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4117-4128 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4490-4501 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4895-4906 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:711-722 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:937-948 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1158-1169 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2310-2321 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3668-3679 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3889-3898 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5695-5706 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/embedding_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 180 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 \u0060mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:436\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":"mistralrs-core/src/pipeline/loaders/embedding_loaders.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"af11a9582bf993f268f7078be76b1ebd449f3511911216d983a16e6b199bab94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 14): mistralrs-core/src/models/flint.rs:849-858 | mistralrs-core/src/models/glm4.rs:516-525 | mistralrs-core/src/models/hunyuan_v1_dense.rs:481-490 | mistralrs-core/src/models/hunyuan_v1_moe.rs:975-984 | mistralrs-core/src/models/mistral.rs:522-531 | mistralrs-core/src/models/mixtral.rs:477-486 | mistralrs-core/src/models/qwen2.rs:508-517 | mistralrs-core/src/models/qwen3.rs:475-484 | mistralrs-core/src/models/qwen3_moe.rs:655-664 | mistralrs-core/src/vision_models/gemma3/text.rs:527-537 | mistralrs-core/src/vision_models/phi3/mod.rs:1271-1280 | mistralrs-core/src/vision_models/phi4/mod.rs:386-395 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:472-481 | mistralrs-core/src/vision_models/qwen2vl/text.rs:474-483 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/glm4.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 240 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 \u0060mistralrs-core/src/models/flint.rs:849\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"b204a4564c42ce36c56e1c5cf4b59e22fd298110b306177b67c4083896aeeedb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 11): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1525-1534 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1832-1841 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2132-2141 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2548-2557 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3260-3269 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3602-3611 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5119-5128 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:819-828 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1263-1272 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3991-4000 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5800-5809 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 445 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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1525}}}],"partialFingerprints":{"codehealthFindingId/v1":"76e6bb1e43a1e218d9689515cd65f29898b2c62815e566d09e09565e24382302"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 11): mistralrs-quant/src/cutile/fp8_gemm.rs:349-358 | mistralrs-quant/src/cutile/fp8_gemm.rs:359-368 | mistralrs-quant/src/cutile/fp8_w8a16.rs:455-464 | mistralrs-quant/src/cutile/fp8_w8a8.rs:533-542 | mistralrs-quant/src/cutile/fp8_w8a8.rs:543-552 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:926-935 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:328-337 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:655-664 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1157-1166 | mistralrs-quant/src/nvfp4/decode.rs:129-138 | mistralrs-quant/src/nvfp4/portable.rs:318-327 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fp8_gemm.rs\u0060 and \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 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":"mistralrs-quant/src/cutile/fp8_gemm.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"157c923a3637fe715f56a2deb2ac068bcfe61c0f17fd6bbd464917168cdff808"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 10): mistralrs-quant/src/cutile/fused_moe.rs:82-91 | mistralrs-quant/src/cutile/fused_moe.rs:123-132 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:96-105 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:135-144 | mistralrs-quant/src/cutile/gdn_prefill.rs:269-278 | mistralrs-quant/src/cutile/qsa.rs:100-109 | mistralrs-quant/src/cutile/qsa.rs:306-315 | mistralrs-quant/src/cutile/qsa.rs:363-372 | mistralrs-quant/src/cutile/qsa_decode.rs:95-104 | mistralrs-quant/src/cutile/qsa_decode.rs:173-182 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fused_moe.rs\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe_fp8.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 298 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 \u0060mistralrs-quant/src/cutile/fused_moe.rs: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060mistralrs-quant/src/cutile/gdn_prefill.rs:266\u0060 calls \u0060broadcast_scalar\u0060, \u0060offset_tile\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe.rs:80\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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff5345da63d08d2798f3063bb73bbc4d6c5b01c69aa38cc574f99477f8106681"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 9): mistralrs-core/src/models/deepseek2.rs:951-959 | mistralrs-core/src/models/deepseek3.rs:1014-1022 | mistralrs-core/src/models/glm4_moe.rs:830-838 | mistralrs-core/src/models/glm4_moe_lite.rs:967-975 | mistralrs-core/src/models/mixtral.rs:527-535 | mistralrs-core/src/models/phi2.rs:543-551 | mistralrs-core/src/models/phi3.rs:535-543 | mistralrs-core/src/models/phi3_5_moe.rs:608-616 | mistralrs-core/src/models/starcoder2.rs:528-537 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:951\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 \u0060ctx\u0060 to \u0060\u0026mut ModelForwardContext\u003C\u0027_\u003E\u0060 in one and \u0060\u0026mut crate::pipeline::ModelForwardContext\u003C\u0027_\u003E\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e58f6e37a4771609e970132db4e7a31b71bd53b0bac45c8112fe7fedfc8d6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 8): mistralrs-core/src/embedding_models/embedding_gemma.rs:430-439 | mistralrs-core/src/models/qwen3_next.rs:817-826 | mistralrs-core/src/vision_models/gemma3/text.rs:489-498 | mistralrs-core/src/vision_models/gemma4/text.rs:1715-1724 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:444-453 | mistralrs-core/src/vision_models/muse_glimmer/text.rs:472-481 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:426-435 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:546-555 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma3/text.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 286 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 \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs: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":"mistralrs-core/src/embedding_models/embedding_gemma.rs"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d31aa4973688f2f1b9e30e9803b683202f69421c077584a9f8e65049e4924ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): mistralrs-core/src/embedding_models/embedding_gemma.rs:292-301 | mistralrs-core/src/models/gemma.rs:286-295 | mistralrs-core/src/models/gemma2.rs:337-346 | mistralrs-core/src/models/qwen3_next.rs:868-877 | mistralrs-core/src/vision_models/gemma3/text.rs:345-354 | mistralrs-core/src/xlora_models/gemma.rs:345-354 | mistralrs-core/src/xlora_models/gemma2.rs:354-363 \u2014 \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma.rs\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 133 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":"mistralrs-core/src/embedding_models/embedding_gemma.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"031f63e7b67a5190eb2a21bae974be858fcadf24d581dff86f9ef7e4a68b8620"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 7): mistralrs-core/src/models/deepseek2.rs:960-969 | mistralrs-core/src/models/deepseek3.rs:1023-1032 | mistralrs-core/src/models/gemma.rs:473-482 | mistralrs-core/src/models/glm4_moe.rs:839-847 | mistralrs-core/src/models/glm4_moe_lite.rs:976-984 | mistralrs-core/src/models/granite.rs:2254-2263 | mistralrs-core/src/models/phi2.rs:552-561 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:960\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 \u0060ctx\u0060 to \u0060\u0026mut ModelForwardContext\u003C\u0027_\u003E\u0060 in one and \u0060\u0026mut crate::pipeline::ModelForwardContext\u003C\u0027_\u003E\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b9eaf43fea513597c8f88f62261f69a98eb3d06dabc1b51bca929c576aec30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): mistralrs-core/src/models/gemma.rs:391-400 | mistralrs-core/src/models/gemma2.rs:464-473 | mistralrs-core/src/models/qwen3_next.rs:832-841 | mistralrs-core/src/vision_models/gemma3/text.rs:503-512 | mistralrs-core/src/vision_models/gemma3n/text.rs:1443-1452 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:436-445 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:556-565 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 707 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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"f345e3bc170a037d7896ddc64980fe56c7ffdef75b55a76097458511f40459df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): mistralrs-core/src/pipeline/multimodal.rs:1161-1170 | mistralrs-core/src/pipeline/multimodal.rs:1218-1227 | mistralrs-core/src/pipeline/multimodal.rs:1270-1279 | mistralrs-core/src/pipeline/normal.rs:1160-1169 | mistralrs-core/src/pipeline/normal.rs:1213-1222 | mistralrs-core/src/pipeline/normal.rs:1270-1279 | mistralrs-core/src/pipeline/normal.rs:1346-1355 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:1161\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1161}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ffcc80ed00c71e6c8b3d782fd2446ac8ac2ed53b3666282143441dfba0a57f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): mistralrs-core/src/xlora_models/gemma.rs:605-615 | mistralrs-core/src/xlora_models/mistral.rs:601-611 | mistralrs-core/src/xlora_models/mixtral.rs:731-741 | mistralrs-core/src/xlora_models/phi2.rs:571-580 | mistralrs-core/src/xlora_models/quantized_llama.rs:805-814 | mistralrs-core/src/xlora_models/quantized_phi3.rs:473-482 | mistralrs-core/src/xlora_models/starcoder2.rs:586-596 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/mistral.rs\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 538 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 \u0060mistralrs-core/src/xlora_models/gemma.rs:605\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed1f57c9cdd3f116dd31434597a2bd58fdbd6129dbbc4f42df29eb5a0e4bfabc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): mistralrs-quant/src/cutile/mxfp8_gemm.rs:539-548 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:323-332 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:650-659 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:694-703 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1152-1161 | mistralrs-quant/src/nvfp4/decode.rs:124-133 | mistralrs-quant/src/nvfp4/portable.rs:313-322 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/mxfp8_gemm.rs\u0060 and \u0060mistralrs-quant/src/cutile/nvfp4_matmul.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 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":"mistralrs-quant/src/cutile/mxfp8_gemm.rs"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"314a1689473d0e2bb57a7ddac77f8490950085c28a4c45405ce1577d106733a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 6): mistralrs-core/src/models/gpt_oss.rs:517-526 | mistralrs-core/src/models/lfm2.rs:330-338 | mistralrs-core/src/models/qwen3_moe.rs:403-411 | mistralrs-core/src/models/qwen3_next.rs:474-482 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:378-386 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:142-150 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gpt_oss.rs\u0060 and \u0060mistralrs-core/src/models/lfm2.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 111 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 \u0060mistralrs-core/src/models/gpt_oss.rs:517\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":"mistralrs-core/src/models/gpt_oss.rs"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"255dfbf2d77704422642388e146fa0a396afc1405145ae92772d1c5fca1cae38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:737-746 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2906-2915 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4329-4338 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2190-2199 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3778-3787 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4470-4479 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/embedding_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 180 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, \u0060mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:748\u0060 calls \u0060head_dim\u0060 and \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2917\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":"mistralrs-core/src/pipeline/loaders/embedding_loaders.rs"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc642eeeb7b2f861191ceff0b12a6b0e8b2b29b626d4c8fefe97917a85950bf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): mistralrs-core/src/embedding_models/embedding_gemma.rs:538-547 | mistralrs-core/src/models/gemma2.rs:609-618 | mistralrs-core/src/vision_models/gemma3/text.rs:857-866 | mistralrs-core/src/vision_models/gemma3n/text.rs:1958-1967 | mistralrs-core/src/vision_models/gemma4/text.rs:2614-2623 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 175 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060mistralrs-core/src/vision_models/gemma4/text.rs:2611\u0060 calls \u0060Some\u0060, \u0060pp\u0060, \u0060add\u0060 and \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs:537\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":"mistralrs-core/src/embedding_models/embedding_gemma.rs"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bda1f37c021d2257cb13377d6a1f7eaa5110931ba1af4344ef38affed38be6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 5): mistralrs-core/src/embedding_models/qwen3_embedding.rs:447-456 | mistralrs-core/src/xlora_models/mistral.rs:590-598 | mistralrs-core/src/xlora_models/mixtral.rs:720-728 | mistralrs-core/src/xlora_models/phi3.rs:541-550 | mistralrs-core/src/xlora_models/starcoder2.rs:574-583 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/xlora_models/mistral.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 81 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 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:447\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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05879af14359ad2fcfbf3f6b976b56aed80328552dea05068c275029cee8006"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 5): mistralrs-core/src/models/deepseek2.rs:814-823 | mistralrs-core/src/models/deepseek3.rs:877-886 | mistralrs-core/src/models/glm4_moe.rs:714-723 | mistralrs-core/src/models/glm4_moe_lite.rs:824-833 | mistralrs-core/src/models/gpt_oss.rs:720-728 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:814\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb0320a6d408a7a737919466186567d158ed4f7edf62c8731c9e659e9c9f8db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): mistralrs-core/src/embedding_models/qwen3_embedding.rs:138-147 | mistralrs-core/src/models/flint.rs:279-288 | mistralrs-core/src/models/qwen3.rs:149-158 | mistralrs-core/src/models/qwen3_moe.rs:152-161 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/models/flint.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 68 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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc8e28f3b196f4d0614cdcc1a4c0cefa4f284babdc54fbaeb523408550d804c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): mistralrs-core/src/models/deepseek2.rs:480-489 | mistralrs-core/src/models/deepseek3.rs:481-490 | mistralrs-core/src/models/glm4_moe_lite.rs:445-454 | mistralrs-core/src/vision_models/llama4/text.rs:520-528 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:480\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"963e67f868febfb7b08b30684ce31534a77af866d42b70cb021bf2704b42ddd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 4): mistralrs-core/src/models/phi3.rs:170-179 | mistralrs-core/src/models/phi3_5_moe.rs:197-206 | mistralrs-core/src/vision_models/phi3/mod.rs:262-269 | mistralrs-core/src/vision_models/phi4/mod.rs:131-138 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/phi3.rs\u0060 and \u0060mistralrs-core/src/models/phi3_5_moe.rs\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 343 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 \u0060mistralrs-core/src/models/phi3.rs:170\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":"mistralrs-core/src/models/phi3.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"07431dd0cc33b97477a7dec10691fe2417f581115b7e23d7d2bc49cc3328b37f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): mistralrs-core/src/ops.rs:5721-5730 | mistralrs-core/src/ops.rs:5933-5942 | mistralrs-core/src/ops.rs:6144-6153 | mistralrs-core/src/ops.rs:6462-6471 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/ops.rs"},"region":{"startLine":5721}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aae4cba724c05451a52893a133af0275de5a66808625d8981bc0563a6278299"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:71-80 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:345-354 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:10394-10403 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:200-209 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/embedding_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 180 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":"mistralrs-core/src/pipeline/loaders/embedding_loaders.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"5836e6b86219312ce3eaa52c3442a7b8c278014357e08e9419172aef17b40d1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:731-740 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1866-1875 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2558-2567 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4384-4393 \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 \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs:731\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":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef9224514686f5bf6258fc85e609d013a51bf1cb9c4ca995579aa00dc198b6da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1144-1156 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1173-1185 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1709-1721 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1738-1750 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\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 45 separate duplicated blocks between them, totalling at least 1082 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 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1144\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":"mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs"},"region":{"startLine":1144}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b1c03e18f78167e5b39d24b0f1d6d8876ba67aa758c52a4fa6a17a0f39b43d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:479-488 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:635-644 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:1090-1099 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:534-543 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/mod.rs\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 396 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 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:479\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":"mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b64d2212125425970dec693cdf577898f961b6b6042aaa10128344f01c3e1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): mistralrs-quant/src/cutile/fused_moe.rs:269-278 | mistralrs-quant/src/cutile/fused_moe.rs:280-289 | mistralrs-quant/src/cutile/fused_moe.rs:291-300 | mistralrs-quant/src/cutile/fused_moe.rs:302-311 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be0c493921e606cfbb75e4478de094539c71a9ffa408f07ad49cf54ad2eb73d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): mistralrs-quant/src/cutile/fused_moe.rs:314-323 | mistralrs-quant/src/cutile/fused_moe.rs:325-334 | mistralrs-quant/src/cutile/fused_moe.rs:336-345 | mistralrs-quant/src/cutile/fused_moe.rs:347-356 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"f56a1becb0f3ce967205f6f3dd3c13c6e1e7445950ce45a21d9bf11a38575ac4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): mistralrs-quant/src/cutile/qsa.rs:422-434 | mistralrs-quant/src/cutile/qsa.rs:440-452 | mistralrs-quant/src/cutile/qsa_decode.rs:235-247 | mistralrs-quant/src/cutile/qsa_decode.rs:253-265 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/qsa.rs\u0060 and \u0060mistralrs-quant/src/cutile/qsa_decode.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 134 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":"mistralrs-quant/src/cutile/qsa.rs"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"713d2610e9dde0c6be5edcc2614b53d69f6ac97cd526dec04f909c5de681ce17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): mistralrs-quant/src/distributed/layers.rs:464-473 | mistralrs-quant/src/distributed/layers.rs:838-847 | mistralrs-quant/src/distributed/layers.rs:1425-1434 | mistralrs-quant/src/distributed/layers.rs:1641-1650 \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 \u0060mistralrs-quant/src/distributed/layers.rs:464\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, \u0060mistralrs-quant/src/distributed/layers.rs:1637\u0060 calls \u0060is_some\u0060 and \u0060mistralrs-quant/src/distributed/layers.rs:1424\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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf2835c08b944ddafdff34aeca645bac9d35d6d473a13ecccff2a2156454601d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): mistralrs-quant/src/gguf/packed_affine.rs:703-712 | mistralrs-quant/src/gguf/packed_affine.rs:716-725 | mistralrs-quant/src/gguf/packed_affine.rs:729-738 | mistralrs-quant/src/gguf/packed_affine.rs:742-751 \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 \u0060mistralrs-quant/src/gguf/packed_affine.rs:703\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":"mistralrs-quant/src/gguf/packed_affine.rs"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d75084384a5d451bec2a9950d2d8cc27bfe5c6a2788ef8d14f342c7b3c5bb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): mistralrs-quant/src/mxfp4/ops.rs:138-147 | mistralrs-quant/src/mxfp4/ops.rs:199-208 | mistralrs-quant/src/mxfp4/ops.rs:500-509 | mistralrs-quant/src/mxfp4/ops.rs:568-577 \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 \u0060mistralrs-quant/src/mxfp4/ops.rs:138\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":"mistralrs-quant/src/mxfp4/ops.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"38594e2f690ad22459d60775445d09203f987ad823f1ae7cd07ae8cb88aa88c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 3): mistralrs-code-exec/src/lib.rs:463-471 | mistralrs-code-exec/src/shell.rs:193-202 | mistralrs-code-exec/src/shell.rs:257-264 \u2014 before extracting anything, compare \u0060mistralrs-code-exec/src/lib.rs\u0060 and \u0060mistralrs-code-exec/src/shell.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 64 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 \u0060mistralrs-code-exec/src/lib.rs:463\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":"mistralrs-code-exec/src/lib.rs"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"77fd422c82d81ced076d4e631e192e79586e95efb6d0e9486d783f0de610c5d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-core/src/cuda/gdn.rs:1717-1726 | mistralrs-core/src/cuda/gdn.rs:5949-5958 | mistralrs-core/src/cuda/gdn.rs:6193-6202 \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 \u0060mistralrs-core/src/cuda/gdn.rs:1717\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":1717}}}],"partialFingerprints":{"codehealthFindingId/v1":"31401bde47fdc41a43058b97ba022b13255fd946350735ac0818192b60ccd984"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): mistralrs-core/src/layers.rs:1207-1225 | mistralrs-core/src/layers.rs:1297-1315 | mistralrs-core/src/layers.rs:1566-1584 \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 \u0060mistralrs-core/src/layers.rs:1207\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 \u0060\u0026llama4::TextConfig\u0060 in one and \u0060\u0026smollm3::Config\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":"mistralrs-core/src/layers.rs"},"region":{"startLine":1207}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7bed20c2ce96b056bf13db8050c528203eebb83bae21a664fce7138043dbf2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-core/src/metal/gdn.rs:843-852 | mistralrs-core/src/metal/gdn.rs:882-891 | mistralrs-core/src/metal/ssm.rs:184-193 \u2014 before extracting anything, compare \u0060mistralrs-core/src/metal/gdn.rs\u0060 and \u0060mistralrs-core/src/metal/ssm.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 68 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, \u0060mistralrs-core/src/metal/gdn.rs:840\u0060 calls \u0060set_input_buffer\u0060, \u0060Some\u0060 and \u0060mistralrs-core/src/metal/gdn.rs:878\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":"mistralrs-core/src/metal/gdn.rs"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"40880eb2248c35fda6827e03aac897205c3f2aac742307494389bce71eec7f99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-core/src/ops.rs:5889-5898 | mistralrs-core/src/ops.rs:6334-6343 | mistralrs-core/src/ops.rs:6652-6661 \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 \u0060mistralrs-core/src/ops.rs:5889\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":5889}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b2045831689e6b0487360b446e8230f1df626e2f1388269304bc10baded1f88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-core/src/pipeline/embedding.rs:573-582 | mistralrs-core/src/pipeline/multimodal.rs:1110-1119 | mistralrs-core/src/pipeline/normal.rs:1136-1145 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/embedding.rs\u0060 and \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 178 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 \u0060mistralrs-core/src/pipeline/embedding.rs:573\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":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"211dbb595e0c536645b58547f3aa1ade9771763e12015163327a3d620e8a1b5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-core/src/pipeline/ggml.rs:557-566 | mistralrs-core/src/pipeline/gguf.rs:1592-1601 | mistralrs-core/src/pipeline/gguf.rs:1603-1612 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/ggml.rs\u0060 and \u0060mistralrs-core/src/pipeline/gguf.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 75 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 \u0060mistralrs-core/src/pipeline/ggml.rs:557\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":"mistralrs-core/src/pipeline/ggml.rs"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"843d23a8f51ce4ae6d797adceef1e7ea57230dae177f06553b6f0b247d47adad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:634-643 | mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:653-662 | mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:422-431 \u2014 \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/idefics3/inputs_processor.rs\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 10 separate duplicated blocks between them, totalling at least 146 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 \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:634\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":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7eca103240decae1c40d7f709d5e0957e84d6ffa115c5949ff8a5d7fb9ed1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-core/src/vision_models/gemma4/mod.rs:389-398 | mistralrs-core/src/vision_models/gemma4/mod.rs:565-574 | mistralrs-core/src/vision_models/gemma4/mod.rs:702-711 \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 \u0060mistralrs-core/src/vision_models/gemma4/mod.rs:389\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":"mistralrs-core/src/vision_models/gemma4/mod.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a24cf1a7813c8c8d5110d4daaab24cd9ce3479eb1657739f771abec4c4446bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-core/src/vision_models/grid_processor.rs:1759-1768 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:914-923 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1479-1488 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1759}}}],"partialFingerprints":{"codehealthFindingId/v1":"b542e7bd246d84b5e834e51b1b6c39acbb89fe6858820faa91ec2324f63cc153"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-core/src/vision_models/grid_processor.rs:2013-2022 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1076-1085 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1641-1650 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1086\u0060 calls \u0060context\u0060 and \u0060mistralrs-core/src/vision_models/grid_processor.rs:2024\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":2013}}}],"partialFingerprints":{"codehealthFindingId/v1":"297a0caacc5f7b7559cb383d3a3753fb4a8aec64a9faa2fbe79b9de001f93408"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-core/src/vision_models/llama4/vision.rs:202-211 | mistralrs-core/src/vision_models/mllama/text.rs:566-575 | mistralrs-core/src/vision_models/mllama/vision.rs:221-230 \u2014 \u0060mistralrs-core/src/vision_models/llama4/vision.rs\u0060 and \u0060mistralrs-core/src/vision_models/mllama/vision.rs\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 6 separate duplicated blocks between them, totalling at least 67 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 \u0060mistralrs-core/src/vision_models/llama4/vision.rs:202\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":"mistralrs-core/src/vision_models/llama4/vision.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaba10c3002182d4e27d0ed09c76fff75b9a6751b26aa3592a55ec671c270224"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:839-847 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:571-580 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:692-701 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_vl/text.rs\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 18 separate duplicated blocks between them, totalling at least 207 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 \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:839\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":"mistralrs-core/src/vision_models/qwen3_5_moe/text.rs"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2982fd36d822bf599c6309bd2189674c716893c74f523af528c889101a6a5e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:139-148 | mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:325-334 | mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:613-622 \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 \u0060mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:139\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":"mistralrs-paged-attn/src/cuda/backend/flashinfer.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f32a37bbe93408b3caff9a6b46dfbe97217cd491e13a30ca95a612dd6d6cf3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-paged-attn/src/cuda/backend/mla.rs:47-56 | mistralrs-paged-attn/src/cuda/backend/mla.rs:334-343 | mistralrs-paged-attn/src/cuda/backend/mla.rs:689-698 \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 \u0060mistralrs-paged-attn/src/cuda/backend/mla.rs: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":"mistralrs-paged-attn/src/cuda/backend/mla.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4da34f648db2d283dfdf42717d816956f2632d47e1bc633a7a544a90d4939a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-pyo3/src/lib.rs:2206-2215 | mistralrs-pyo3/src/lib.rs:2238-2247 | mistralrs-pyo3/src/lib.rs:2617-2626 \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 \u0060mistralrs-pyo3/src/lib.rs:2206\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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":2206}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d18962d38b6d1eb3d37ebef5b110a46878f4853e492f1ea7933c456d52d620"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-quant/src/bitsandbytes/op.rs:449-458 | mistralrs-quant/src/bitsandbytes/op.rs:462-471 | mistralrs-quant/src/bitsandbytes/op.rs:475-484 \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 \u0060mistralrs-quant/src/bitsandbytes/op.rs:449\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":"mistralrs-quant/src/bitsandbytes/op.rs"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5ed6b33c048069fb502f6600074194b60a8687e52b28d78cd2b1850f256717b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-quant/src/blockwise_fp8/deepgemm.rs:527-536 | mistralrs-quant/src/blockwise_fp8/deepgemm.rs:630-639 | mistralrs-quant/src/blockwise_fp8/ops.rs:2061-2070 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/blockwise_fp8/deepgemm.rs\u0060 and \u0060mistralrs-quant/src/blockwise_fp8/ops.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 65 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 \u0060mistralrs-quant/src/blockwise_fp8/deepgemm.rs:527\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":"mistralrs-quant/src/blockwise_fp8/deepgemm.rs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d90a70a078e5f53936ed00d951507955c654e79e08ad2b4f54c9cdae1ad2bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-quant/src/blockwise_fp8/ops.rs:78-87 | mistralrs-quant/src/blockwise_fp8/ops.rs:394-403 | mistralrs-quant/src/blockwise_fp8/ops.rs:427-436 \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 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:78\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdaac754fc9b5e729504ac88b943208f578309b35c8c6b03a763e8f97e82b00a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-quant/src/cutile/routed_lora.rs:165-175 | mistralrs-quant/src/cutile/routed_lora.rs:193-203 | mistralrs-quant/src/cutile/routed_lora.rs:216-226 \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 \u0060mistralrs-quant/src/cutile/routed_lora.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/routed_lora.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d35bd225fb996ce83268095378b9c5f35bed2e0c6d1316d4bfd2f6559abe39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-quant/src/moe/cuda.rs:246-255 | mistralrs-quant/src/moe/cuda.rs:282-291 | mistralrs-quant/src/moe/cuda.rs:323-332 \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 \u0060mistralrs-quant/src/moe/cuda.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/moe/cuda.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"63da3740d24a06486763acc857acfe7c1817782ee50600955ec3c8291f50451c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-cli/src/commands/quantize.rs:562-571 | mistralrs-cli/src/commands/quantize.rs:609-618 \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":"mistralrs-cli/src/commands/quantize.rs"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6422fd3007cd593c4a053c3f656ee7ab33f56c87033792e44680d2670a3156"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:4435-4444 | mistralrs-core/src/cuda/gdn.rs:4818-4827 \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 \u0060mistralrs-core/src/cuda/gdn.rs:4435\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":4435}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8ecb56f9a7dac9efdeda8a72a4fb5bef9578d2faf62aaf93264ad8e5cc5c9f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/diffusion_models/clip/text.rs:220-229 | mistralrs-core/src/vision_models/clip.rs:251-260 \u2014 before extracting anything, compare \u0060mistralrs-core/src/diffusion_models/clip/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/clip.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 36 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":"mistralrs-core/src/diffusion_models/clip/text.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"a68be17ad33098db266a21508d1308a35cbad9e6f0d553a705624ce6fa9e21be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/distributed.rs:175-184 | mistralrs-core/src/distributed.rs:221-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 \u0060mistralrs-core/src/distributed.rs:175\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":"mistralrs-core/src/distributed.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"559dc4d7344ec85ee4a75c875ef76074780b980692a44dfda01411f5eff85b00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/engine/agentic_loop.rs:568-577 | mistralrs-core/src/engine/agentic_loop.rs:768-777 \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 \u0060mistralrs-core/src/engine/agentic_loop.rs:568\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, \u0060mistralrs-core/src/engine/agentic_loop.rs:767\u0060 calls \u0060Some\u0060 and \u0060mistralrs-core/src/engine/agentic_loop.rs:567\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":"mistralrs-core/src/engine/agentic_loop.rs"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a18168c9f9da0c6a80f4192c31baa413b8cb57c2cbcde2a9e12813b16225e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/gguf/normal_config.rs:1393-1404 | mistralrs-core/src/gguf/normal_config.rs:1439-1450 \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 \u0060mistralrs-core/src/gguf/normal_config.rs:1393\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":"mistralrs-core/src/gguf/normal_config.rs"},"region":{"startLine":1393}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1fb4f6dc900684b9624133a0327443c6bd6aaeb88e713c4041d4c9cb6a69191"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/kv_cache/hybrid_cache.rs:2094-2103 | mistralrs-core/src/kv_cache/hybrid_cache.rs:4072-4081 \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":"mistralrs-core/src/kv_cache/hybrid_cache.rs"},"region":{"startLine":2094}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb115121ad0acb54514974420d59a413a4609d057530835ada1e41f2b0ec12a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/layers.rs:3080-3089 | mistralrs-core/src/layers.rs:3213-3222 \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 \u0060mistralrs-core/src/layers.rs:3080\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":"mistralrs-core/src/layers.rs"},"region":{"startLine":3080}}}],"partialFingerprints":{"codehealthFindingId/v1":"16b269baf7ddbe6cb6d82951b0d58c4e89bec9323f1eeb9996b59c3519d0b715"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/models/gpt_oss.rs:837-846 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6362-6371 \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 \u0060mistralrs-core/src/models/gpt_oss.rs:837\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":"mistralrs-core/src/models/gpt_oss.rs"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"9248cdf65535006bebb6116317801ca8b70dbdd0dccd2049511bba58a5b789e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/models/granite.rs:1417-1426 | mistralrs-core/src/models/granite.rs:1437-1446 \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 \u0060mistralrs-core/src/models/granite.rs:1417\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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b2421a1137fb22520467c0211604acecd9ff881c3935c62e6be832d5b96273"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/models/lfm2.rs:899-908 | mistralrs-core/src/models/lfm3.rs:773-782 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/lfm2.rs\u0060 and \u0060mistralrs-core/src/models/lfm3.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 402 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":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e170ff2e10d7be16de91c9a327f919e80d5aa0811edcbde6e5151b3cce7f86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/models/lfm2.rs:1245-1254 | mistralrs-core/src/models/lfm3.rs:1256-1265 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/lfm2.rs\u0060 and \u0060mistralrs-core/src/models/lfm3.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 402 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 \u0060mistralrs-core/src/models/lfm2.rs:1245\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":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":1245}}}],"partialFingerprints":{"codehealthFindingId/v1":"09d3788390053d866839732d3bdb4c8a50f06d3f1728689f14b49279fc15a517"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 2): mistralrs-core/src/models/phi3_5_moe.rs:317-323 | mistralrs-core/src/models/phi3_5_moe.rs:342-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. 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":"mistralrs-core/src/models/phi3_5_moe.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"321ef1e451f805936a6166bab8c6226d24aedeb94b3390e731bdd6c5aa4c6e7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/models/qwen3_next.rs:692-701 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:474-483 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/qwen3_next.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 461 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 \u0060mistralrs-core/src/models/qwen3_next.rs:692\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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c04551313581c741b205d1f64b5e29a49240d23b41fc00475544df353fbc9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/moe/experts/backends.rs:770-779 | mistralrs-core/src/moe/experts/backends.rs:817-826 \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 \u0060mistralrs-core/src/moe/experts/backends.rs:770\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":"mistralrs-core/src/moe/experts/backends.rs"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"18eb59bd9f3cf2028f2f3f69f57d8b6514cf7c89028dcb69334894e59d430fa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/moe/experts/mod.rs:110-119 | mistralrs-core/src/moe/experts/mod.rs:201-210 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060mistralrs-core/src/moe/experts/mod.rs:109\u0060 calls \u0060pp\u0060, \u0060set_device\u0060, \u0060clone\u0060 and \u0060mistralrs-core/src/moe/experts/mod.rs:200\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":"mistralrs-core/src/moe/experts/mod.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"22450b76ce8d4ff0881ba71942f8c978cbf2d975d59d347f46a8fc4b81290d46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/ops.rs:3897-3906 | mistralrs-core/src/ops.rs:4024-4033 \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 \u0060mistralrs-core/src/ops.rs:3897\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":3897}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6802cacf962178df084ced43affeca2e9dcb6c3cff0663eb0273cc35e23d39d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/ops.rs:4518-4527 | mistralrs-core/src/ops.rs:5496-5505 \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 \u0060mistralrs-core/src/ops.rs:4518\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":4518}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d3f3959acf3ed909dfa1f2dffa7fd04115bef0e5eefa638053c91c5cef1af0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/ops.rs:4535-4545 | mistralrs-core/src/ops.rs:4682-4692 \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 \u0060mistralrs-core/src/ops.rs:4535\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, \u0060mistralrs-core/src/ops.rs:4679\u0060 calls \u0060device_ptr_mut\u0060 and \u0060mistralrs-core/src/ops.rs:4532\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":4535}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed4a9ebc7b438f2fcb64122d20d5eb2060f29ad6d6940e06c0c55396e4c50b66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/ops.rs:6039-6048 | mistralrs-core/src/ops.rs:6378-6387 \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":"mistralrs-core/src/ops.rs"},"region":{"startLine":6039}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6c0225578e9b21461576b8732a0548252a34445d220f824e9fdf2e3f3f3ff4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/paged_attention/cache_engine.rs:307-316 | mistralrs-core/src/paged_attention/cache_engine.rs:393-402 \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 \u0060mistralrs-core/src/paged_attention/cache_engine.rs:307\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":"mistralrs-core/src/paged_attention/cache_engine.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf697288af8a7872aef194157398e5401654c8d0b2f22fbc982302899fc31f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/paged_attention/layers/paged_attention.rs:685-694 | mistralrs-core/src/paged_attention/layers/paged_attention.rs:735-744 \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":"mistralrs-core/src/paged_attention/layers/paged_attention.rs"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"cffdac667dcec11fe39bad48dea6025381dbfb9f4f4fe5b67064f312d44810b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): mistralrs-core/src/pipeline/chat_template.rs:612-621 | mistralrs-core/src/pipeline/chat_template.rs:645-653 \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 \u0060mistralrs-core/src/pipeline/chat_template.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/chat_template.rs"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"28cea74fcb6a35226566e6ae839590ae36d78f88796f4e84880fbd06d47c25a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/pipeline/embedding.rs:273-282 | mistralrs-core/src/pipeline/normal.rs:759-768 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/embedding.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 178 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 \u0060mistralrs-core/src/pipeline/embedding.rs:273\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":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8c35db0604deac7c130275eb92d6db2e6a1289b5ec6557cc5cea64e0506a1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1137-1145 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1947-1956 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 445 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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1137\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1137}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd48018c449970066a1e4c1849a75dab32e27592f29a6874b8cb31aabc73f10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7806-7815 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8328-8337 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7806\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":7806}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b43ac027f5f7609f1978c7ef474f60c5759f357716a7b7e039d36ca1a4ea3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1612-1621 | mistralrs-core/src/pipeline/normal.rs:279-288 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:1612\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1612}}}],"partialFingerprints":{"codehealthFindingId/v1":"647e738c2eb558c37bb4ce20ef7f2ec3528ca7d92653cfb6de4d234d73e94faa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/pipeline/paths.rs:172-181 | mistralrs-core/src/pipeline/paths.rs:252-261 \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 \u0060mistralrs-core/src/pipeline/paths.rs:172\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":"mistralrs-core/src/pipeline/paths.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f9e4ef7f9fa52982f0d313fc875698b48ce90997a411122eb77e39de3cd08a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/speculative/dflash.rs:2654-2663 | mistralrs-core/src/speculative/dflash.rs:3533-3542 \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 \u0060mistralrs-core/src/speculative/dflash.rs:2654\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":"mistralrs-core/src/speculative/dflash.rs"},"region":{"startLine":2654}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b25b389d95c378d283b08155d8c671324d9d93f77b14889c839203d7560d6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/speculative/verifier.rs:562-571 | mistralrs-core/src/speculative/verifier.rs:575-584 \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 \u0060mistralrs-core/src/speculative/verifier.rs:562\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":"mistralrs-core/src/speculative/verifier.rs"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f5d6fb21354dca7e429acfe281e262544b9a65e876352932835e77b391a848a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs:687-696 | mistralrs-core/src/vision_models/phi4/inputs_processor.rs:1675-1684 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi4/inputs_processor.rs\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 33 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 \u0060mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs:687\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":"mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"d300891fbd5f54a02f755d2e51b3ab2a24b410e8a72f460e47575c09eb08ad7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/text.rs:1836-1845 | mistralrs-core/src/vision_models/gemma4/text.rs:2356-2365 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/text.rs\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 7 separate duplicated blocks between them, totalling at least 70 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 \u0060mistralrs-core/src/vision_models/gemma3n/text.rs:1836\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":"mistralrs-core/src/vision_models/gemma3n/text.rs"},"region":{"startLine":1836}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf37ef316ac7422b42d8b575be1ac751ebb5b66273d7e61aef2ddb8e6bd5f11e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/text.rs:1847-1856 | mistralrs-core/src/vision_models/gemma4/text.rs:2367-2376 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/text.rs\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 7 separate duplicated blocks between them, totalling at least 70 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 \u0060mistralrs-core/src/vision_models/gemma3n/text.rs:1847\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":"mistralrs-core/src/vision_models/gemma3n/text.rs"},"region":{"startLine":1847}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9adff6bd85f23b85c4b132438c3e33fd8fba155fea5ff7aeb6fd3afbf4f3d3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:398-405 | mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:1740-1749 \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":"mistralrs-core/src/vision_models/gemma4/inputs_processor.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"abbe849e87edcdb498bed9cc98a17299b3e577662c05db0a3edd06bad0271a64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/vision_models/grid_processor.rs:2082-2091 | mistralrs-core/src/vision_models/grid_processor.rs:2142-2151 \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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:2082\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":2082}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab1d677487d839992a886250891934515fcdc4449bacbb3b5648c527379f1448"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:458-466 | mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:289-298 \u2014 \u0060mistralrs-core/src/vision_models/idefics3/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/mistral3/inputs_processor.rs\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 13 separate duplicated blocks between them, totalling at least 194 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 \u0060mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:458\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":"mistralrs-core/src/vision_models/idefics3/inputs_processor.rs"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a411a1b5c4c4bb4810a75ef3d3394c17a163b1cf0ffb416f8b7345b6f6ecb7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:531-540 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:540-549 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/llava/llava_llm/llama.rs\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 216 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 \u0060mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:531\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":"mistralrs-core/src/vision_models/llava/llava_llm/llama.rs"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0a4e257299f833cd8b4728374c90f2e747cea7ed6267241f02bfd7a0513c79a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/vision_models/phi3/mod.rs:1231-1240 | mistralrs-core/src/xlora_models/phi3.rs:407-416 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/phi3/mod.rs\u0060 and \u0060mistralrs-core/src/xlora_models/phi3.rs\u0060 as WHOLE FILES: this scan already matched 8 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/phi3/mod.rs"},"region":{"startLine":1231}}}],"partialFingerprints":{"codehealthFindingId/v1":"04f2babaedf4e28f1c96cdbcc47954c80018cc79620b676e909118fb3561a27e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:266-275 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:452-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 \u0060mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:266\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":"mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"0279efb0a1e80ea1259ea36ed7a8c44297504dbdb68b345f8cd7230da4297f51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/vision_models/phi4/inputs_processor.rs:1096-1105 | mistralrs-core/src/vision_models/phi4/inputs_processor.rs:1124-1133 \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 \u0060mistralrs-core/src/vision_models/phi4/inputs_processor.rs:1096\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":"mistralrs-core/src/vision_models/phi4/inputs_processor.rs"},"region":{"startLine":1096}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ee05e5872bff58a6b9b20035bf5d43817c7023dfccfc084eba54ab1f7cb3ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:366-375 | mistralrs-core/src/vision_models/qwen2vl/text.rs:367-376 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/text.rs\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 42 separate duplicated blocks between them, totalling at least 716 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":"mistralrs-core/src/vision_models/qwen2_5_vl/text.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b82054c4f1e5b857c1fb5e417bc1c0a3a9e2d447430fef0cbc8b2879429b332"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/speculative.rs:848-857 | mistralrs-core/src/vision_models/qwen4_exp/speculative.rs:257-266 \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":"mistralrs-core/src/vision_models/qwen3_5/speculative.rs"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a10f85d1d7d1ab04dba327ea8e0b7067775fcd90e426e41b31401515701cfa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/text.rs:871-880 | mistralrs-core/src/vision_models/qwen4_exp/text.rs:272-281 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen4_exp/text.rs\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 7 separate duplicated blocks between them, totalling at least 83 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 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs:871\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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"3167d221e7c8eda094f934293d158683e437d0b05392786e1d636368692907fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/text.rs:1464-1473 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:835-844 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs\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 26 separate duplicated blocks between them, totalling at least 469 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 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs:1464\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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":1464}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9995606875a2b690500389a05afed2d8d67897968b51ba068d39cbcebcdcb1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/xlora_models/mistral.rs:549-558 | mistralrs-core/src/xlora_models/phi3.rs:499-508 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/mistral.rs\u0060 and \u0060mistralrs-core/src/xlora_models/phi3.rs\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 436 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 \u0060mistralrs-core/src/xlora_models/mistral.rs:549\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":"mistralrs-core/src/xlora_models/mistral.rs"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"090a7f021a05a656ff8d1748ea8da697ebb29a3c9a9c23400529a211b9701f2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/xlora_models/mixtral.rs:679-688 | mistralrs-core/src/xlora_models/starcoder2.rs:532-541 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/mixtral.rs\u0060 and \u0060mistralrs-core/src/xlora_models/starcoder2.rs\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 445 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 \u0060mistralrs-core/src/xlora_models/mixtral.rs:679\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":"mistralrs-core/src/xlora_models/mixtral.rs"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b84d3927dd148da64d69ceb26cf0e46958b2031c983df54ee8da41b59357b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:79-88 | mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:247-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 \u0060mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:79\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":"mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"226b267c498fc9e4fb26c2c2721771146a14c070f2bb825b9848c244bae80e34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/afq/group.rs:110-119 | mistralrs-quant/src/afq/group.rs:224-233 \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":"mistralrs-quant/src/afq/group.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8fa820883e47a134a46d35647234740683d2dbba1fe1ed4474ffb49a5e94b34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/afq/mod.rs:160-169 | mistralrs-quant/src/mxfp4/mod.rs:64-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 \u0060mistralrs-quant/src/afq/mod.rs: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":"mistralrs-quant/src/afq/mod.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"33afae398c3e8608922683adeb57b3812d1b74998d453c52a1247ed1b5904026"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:1016-1025 | mistralrs-quant/src/blockwise_fp8/ops.rs:1179-1188 \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 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:1016\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"d051d66754d7683accc4a68c264440b3dfbe1fe90a49934d6e5cf3e27695b116"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:1093-1102 | mistralrs-quant/src/blockwise_fp8/ops.rs:1278-1287 \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 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:1093\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4be2c8124ee34d3fa913267c6862d42e39d9bf09b25fd26bee48d4aa1c23d3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:1128-1137 | mistralrs-quant/src/blockwise_fp8/ops.rs:1317-1326 \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 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:1128\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"66f71ed00df4bc2ceee8f95e044848158b66813fac3d54fe42a9c8e0962ee7e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-quant/src/cublaslt/matmul.rs:494-515 | mistralrs-quant/src/cublaslt/matmul.rs:591-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 \u0060mistralrs-quant/src/cublaslt/matmul.rs:494\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, \u0060mistralrs-quant/src/cublaslt/matmul.rs:590\u0060 calls \u0060device_ptr_mut\u0060, \u0060stream\u0060 and \u0060mistralrs-quant/src/cublaslt/matmul.rs:493\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":"mistralrs-quant/src/cublaslt/matmul.rs"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa7a579d54367f99124bb0156c3b03c993666237f823b99f277e6c0c310e0d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:318-327 | mistralrs-quant/src/cutile/fp8_w8a8.rs:311-320 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs\u0060 and \u0060mistralrs-quant/src/cutile/fp8_w8a8.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 212 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 \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs:318\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":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f48e77bd8413edb430c36f2d8d875f15a57a3faf688373627037dcf1cc25eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:270-279 | mistralrs-quant/src/cutile/fused_moe.rs:315-324 \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 \u0060mistralrs-quant/src/cutile/fused_moe.rs:270\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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"0188a7900c84cf4f4ad18da74f11d01d36f4599edb480ae5ec762a03bc04e994"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:281-290 | mistralrs-quant/src/cutile/fused_moe.rs:326-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 \u0060mistralrs-quant/src/cutile/fused_moe.rs:281\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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84b136040bd5d2478fe6c296bde47bf34da449c0fa11e5d9f64bed9971650ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-quant/src/cutile/fused_moe_fp8.rs:281-290 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:292-301 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:302-313 \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 \u0060mistralrs-quant/src/cutile/fused_moe_fp8.rs:302\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":"mistralrs-quant/src/cutile/fused_moe_fp8.rs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f08fa747b8e5dde4a942aadeec95fed1520270d0e743b12dee6a865276ad8c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-quant/src/cutile/fused_moe_fp8.rs:326-335 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:337-346 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:347-358 \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 \u0060mistralrs-quant/src/cutile/fused_moe_fp8.rs:347\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":"mistralrs-quant/src/cutile/fused_moe_fp8.rs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"f638e9fb355527dbe6875b77dd1d9469f5ab05073bcd0f68a44dd0438c72adae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_gemv.rs:86-132 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:190-236 \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 \u0060mistralrs-quant/src/cutile/nvfp4_gemv.rs:86\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":"mistralrs-quant/src/cutile/nvfp4_gemv.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"49853df58d42812cf16804848b9ee1482626b24a016dee59c1743fbeb3bc697d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/cutile/qsa.rs:730-739 | mistralrs-quant/src/cutile/qsa_decode.rs:617-626 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/qsa.rs\u0060 and \u0060mistralrs-quant/src/cutile/qsa_decode.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 134 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 \u0060args\u0060 to \u0060\u0026QsaAttentionArgs\u003C\u0027_\u003E\u0060 in one and \u0060\u0026QsaDecodeArgs\u003C\u0027_\u003E\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":"mistralrs-quant/src/cutile/qsa.rs"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a63ba7cb5613b593442c2bd7b27f9fd66bb88af811d8a7788716653464e9b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:1121-1130 | mistralrs-quant/src/distributed/layers.rs:1540-1549 \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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":1121}}}],"partialFingerprints":{"codehealthFindingId/v1":"9765f83f31ba0bb65fb9ddc1e0549f5e4ff997f2f22caebc4d893dbdd9d71875"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/distributed/mod.rs:588-597 | mistralrs-quant/src/distributed/mod.rs:737-746 \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 \u0060mistralrs-quant/src/distributed/mod.rs:588\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":"mistralrs-quant/src/distributed/mod.rs"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"f493ebeb31e0e82f3ea0b8672e17ee7b8ebafd42b7594778b82770113f46c053"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/distributed/mod.rs:619-628 | mistralrs-quant/src/distributed/mod.rs:768-777 \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 \u0060mistralrs-quant/src/distributed/mod.rs:619\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":"mistralrs-quant/src/distributed/mod.rs"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f0a298225350be466448ad757907efaff72c6914d23cfd9db37b0cc01b6163"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/metal_kernels/mod.rs:1388-1397 | mistralrs-quant/src/metal_kernels/mod.rs:1399-1408 \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 after the matched lines, \u0060mistralrs-quant/src/metal_kernels/mod.rs:1398\u0060 calls \u0060set_param\u0060 and \u0060mistralrs-quant/src/metal_kernels/mod.rs:1409\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":1388}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03301c2797530cc83bc4226be1670cadfe9d3238212f45cc752f5492e05559d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/metal_kernels/mod.rs:2764-2773 | mistralrs-quant/src/metal_kernels/mod.rs:2868-2877 \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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":2764}}}],"partialFingerprints":{"codehealthFindingId/v1":"b123fb8cc15595de6bf41fd81ec5ccb3dcf9e8fb381de40e728f4bd78a5350a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/mxfp4/metal_ops.rs:81-90 | mistralrs-quant/src/mxfp4/metal_ops.rs: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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060mistralrs-quant/src/mxfp4/metal_ops.rs:81\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":"mistralrs-quant/src/mxfp4/metal_ops.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff49fb7622b1220201a4a7c3ae64205628bc4a61f579003d8fd4b4a108164275"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/safetensors.rs:676-685 | mistralrs-quant/src/safetensors.rs:690-699 \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 \u0060mistralrs-quant/src/safetensors.rs:676\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":"mistralrs-quant/src/safetensors.rs"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df83a1a81347e31d5b414172924c1aec63013504c68767e14bfbce6061d4401"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): mistralrs/src/anymoe.rs:141-150 | mistralrs/src/model_builder_trait.rs:1083-1091 \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 \u0060mistralrs/src/anymoe.rs:141\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":"mistralrs/src/anymoe.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a575ff23d1f95c8b5378ae283dede0a0d39d31d6b94e536f21c67d797166d16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): mistralrs/src/model.rs:439-447 | mistralrs/src/model.rs:524-533 \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 \u0060mistralrs/src/model.rs:439\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":"mistralrs/src/model.rs"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"32186583fcaf1dd46977bea271001f8f5c9fb769d41fb08f9041890c02fa0251"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs/src/model_builder_trait.rs:1382-1391 | mistralrs/src/model_builder_trait.rs:1512-1521 \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":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":1382}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8aa8cf1accd4656c0333cb46c8bc1c6dc33507e32c27b1a50861e8a386e1021"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 27): mistralrs-core/src/models/deepseek2.rs:873-881 | mistralrs-core/src/models/deepseek3.rs:936-944 | mistralrs-core/src/models/gemma.rs:388-396 | mistralrs-core/src/models/gemma2.rs:461-469 | mistralrs-core/src/models/glm4.rs:490-498 | mistralrs-core/src/models/glm4_moe.rs:772-780 | mistralrs-core/src/models/glm4_moe_lite.rs:883-891 | mistralrs-core/src/models/hunyuan_v1_dense.rs:455-463 | mistralrs-core/src/models/hunyuan_v1_moe.rs:949-957 | mistralrs-core/src/models/llama.rs:417-425 | mistralrs-core/src/models/mistral.rs:496-504 | mistralrs-core/src/models/mixtral.rs:451-459 | mistralrs-core/src/models/phi2.rs:478-486 | mistralrs-core/src/models/phi3.rs:466-474 | mistralrs-core/src/models/phi3_5_moe.rs:535-543 | mistralrs-core/src/models/qwen2.rs:481-489 | mistralrs-core/src/models/qwen3.rs:449-457 | mistralrs-core/src/models/qwen3_moe.rs:625-633 | mistralrs-core/src/models/starcoder2.rs:449-457 | mistralrs-core/src/vision_models/llama4/text.rs:852-860 | mistralrs-core/src/vision_models/phi3/mod.rs:1247-1255 | mistralrs-core/src/vision_models/phi4/mod.rs:362-370 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:443-451 | mistralrs-core/src/vision_models/qwen2vl/text.rs:445-453 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:433-441 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:553-561 | mistralrs-core/src/vision_models/voxtral/mod.rs:665-673 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:873\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"775f9202e7b2f4911126c42902ff870d876242865a002fa39cfb055eb5a6cb21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 21): mistralrs-core/src/models/deepseek2.rs:963-970 | mistralrs-core/src/models/deepseek3.rs:1026-1033 | mistralrs-core/src/models/gemma.rs:476-483 | mistralrs-core/src/models/glm4.rs:593-600 | mistralrs-core/src/models/glm4_moe.rs:841-848 | mistralrs-core/src/models/glm4_moe_lite.rs:978-985 | mistralrs-core/src/models/granite.rs:2256-2264 | mistralrs-core/src/models/hunyuan_v1_dense.rs:555-562 | mistralrs-core/src/models/hunyuan_v1_moe.rs:1049-1056 | mistralrs-core/src/models/mistral.rs:604-611 | mistralrs-core/src/models/mixtral.rs:542-549 | mistralrs-core/src/models/phi2.rs:555-562 | mistralrs-core/src/models/phi3.rs:550-558 | mistralrs-core/src/models/phi3_5_moe.rs:623-631 | mistralrs-core/src/models/qwen3.rs:557-564 | mistralrs-core/src/models/qwen3_moe.rs:737-744 | mistralrs-core/src/models/qwen3_next.rs:1047-1055 | mistralrs-core/src/models/starcoder2.rs:543-551 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:555-562 | mistralrs-core/src/vision_models/phi3/mod.rs:1352-1360 | mistralrs-core/src/vision_models/phi4/mod.rs:514-522 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:963\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 \u0060ctx\u0060 to \u0060\u0026mut ModelForwardContext\u003C\u0027_\u003E\u0060 in one and \u0060\u0026mut crate::pipeline::ModelForwardContext\u003C\u0027_\u003E\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d162c17cf0f937d08586c161b011d6fdb288f4883638c3ee5fa6ba7f2137bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 16): mistralrs-core/src/models/gemma.rs:590-598 | mistralrs-core/src/models/gemma2.rs:707-715 | mistralrs-core/src/models/glm4.rs:709-717 | mistralrs-core/src/models/hunyuan_v1_dense.rs:677-685 | mistralrs-core/src/models/llama.rs:617-625 | mistralrs-core/src/models/mistral.rs:718-726 | mistralrs-core/src/models/phi2.rs:666-674 | mistralrs-core/src/models/phi3.rs:661-669 | mistralrs-core/src/models/qwen2.rs:721-729 | mistralrs-core/src/models/qwen3.rs:695-703 | mistralrs-core/src/models/smollm3.rs:636-644 | mistralrs-core/src/models/starcoder2.rs:657-665 | mistralrs-core/src/vision_models/gemma3/text.rs:932-940 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:630-638 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:674-682 | mistralrs-core/src/vision_models/phi3/mod.rs:1497-1505 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 707 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 \u0060mistralrs-core/src/models/gemma.rs:590\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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0a756fb9b9e81b55d6246ffdd9d444c9f1aedc4fd067d29ce186c6ab904193"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 15): mistralrs-core/src/embedding_models/qwen3_embedding.rs:351-359 | mistralrs-core/src/models/gemma.rs:364-372 | mistralrs-core/src/models/gemma2.rs:437-445 | mistralrs-core/src/models/glm4.rs:461-469 | mistralrs-core/src/models/glm4_moe.rs:746-754 | mistralrs-core/src/models/mixtral.rs:427-435 | mistralrs-core/src/models/qwen2.rs:455-463 | mistralrs-core/src/models/qwen3.rs:424-432 | mistralrs-core/src/models/qwen3_moe.rs:598-606 | mistralrs-core/src/models/starcoder2.rs:425-433 | mistralrs-core/src/xlora_models/gemma.rs:444-452 | mistralrs-core/src/xlora_models/gemma2.rs:475-483 | mistralrs-core/src/xlora_models/mistral.rs:441-449 | mistralrs-core/src/xlora_models/mixtral.rs:571-579 | mistralrs-core/src/xlora_models/starcoder2.rs:430-438 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/models/glm4.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 137 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 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:351\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, \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:350\u0060 calls \u0060head_dim\u0060 and \u0060mistralrs-core/src/models/gemma.rs:363\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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3caaf98243a56b3008a35094de1bfc75fa7056fb612c566a598e7986bb1187f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 14): mistralrs-quant/src/cutile/fused_moe.rs:81-89 | mistralrs-quant/src/cutile/fused_moe.rs:122-130 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:95-103 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:134-142 | mistralrs-quant/src/cutile/gdn_prefill.rs:268-276 | mistralrs-quant/src/cutile/qsa.rs:66-74 | mistralrs-quant/src/cutile/qsa.rs:77-85 | mistralrs-quant/src/cutile/qsa.rs:88-96 | mistralrs-quant/src/cutile/qsa.rs:99-107 | mistralrs-quant/src/cutile/qsa.rs:294-302 | mistralrs-quant/src/cutile/qsa.rs:305-313 | mistralrs-quant/src/cutile/qsa.rs:362-370 | mistralrs-quant/src/cutile/qsa_decode.rs:94-102 | mistralrs-quant/src/cutile/qsa_decode.rs:172-180 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fused_moe.rs\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe_fp8.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 298 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, \u0060mistralrs-quant/src/cutile/gdn_prefill.rs:266\u0060 calls \u0060broadcast_scalar\u0060, \u0060offset_tile\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe.rs:80\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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e601c0e1cbedde0e31bf4729151a52fa97b48a9667fd93adf80ca4cae003736"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 13): mistralrs-quant/src/cutile/fused_moe.rs:122-130 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:134-142 | mistralrs-quant/src/cutile/gdn_prefill.rs:268-276 | mistralrs-quant/src/cutile/qsa.rs:66-74 | mistralrs-quant/src/cutile/qsa.rs:77-85 | mistralrs-quant/src/cutile/qsa.rs:88-96 | mistralrs-quant/src/cutile/qsa.rs:99-107 | mistralrs-quant/src/cutile/qsa.rs:294-302 | mistralrs-quant/src/cutile/qsa.rs:305-313 | mistralrs-quant/src/cutile/qsa.rs:362-370 | mistralrs-quant/src/cutile/qsa_decode.rs:94-102 | mistralrs-quant/src/cutile/qsa_decode.rs:172-180 | mistralrs-quant/src/cutile/routed_lora.rs:172-180 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fused_moe.rs\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe_fp8.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 298 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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"073ffecd28135bddfddf47bfbd455b8ec1672f12f41b957e5e4314f80a68f1df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 12): mistralrs-core/src/models/flint.rs:788-796 | mistralrs-core/src/models/glm4.rs:450-458 | mistralrs-core/src/models/granite.rs:1958-1966 | mistralrs-core/src/models/hunyuan_v1_dense.rs:419-427 | mistralrs-core/src/models/hunyuan_v1_moe.rs:913-921 | mistralrs-core/src/models/llama.rs:356-364 | mistralrs-core/src/models/mistral.rs:425-433 | mistralrs-core/src/models/qwen3.rs:413-421 | mistralrs-core/src/models/qwen3_moe.rs:587-595 | mistralrs-core/src/models/qwen3_next.rs:748-756 | mistralrs-core/src/models/smollm3.rs:372-380 | mistralrs-core/src/vision_models/llama4/text.rs:805-813 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/glm4.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 240 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, \u0060mistralrs-core/src/models/qwen3_next.rs:744\u0060 calls \u0060is_empty\u0060 and \u0060mistralrs-core/src/models/flint.rs:786\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"dea835cbf83f2fa7e8ccd4e7d2c538b07dde99c1bf5d3a18da122dad557ee221"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 12): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1520-1528 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1827-1835 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2127-2135 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2543-2551 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3255-3263 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3597-3605 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5114-5122 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5545-5553 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:814-822 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1258-1266 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1502-1510 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5795-5803 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 445 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, \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5555\u0060 calls \u0060moe_layers\u0060, \u0060contains\u0060 and \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1530\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1520}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd0b7f9bebb4b133f298fdeeb2345fbc9ed30f39085874dd54ffde98a9dd889b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 10): mistralrs-core/src/layers.rs:1192-1200 | mistralrs-core/src/layers.rs:1215-1223 | mistralrs-core/src/layers.rs:1282-1290 | mistralrs-core/src/layers.rs:1305-1313 | mistralrs-core/src/layers.rs:1382-1390 | mistralrs-core/src/layers.rs:1551-1559 | mistralrs-core/src/layers.rs:1574-1582 | mistralrs-core/src/layers.rs:2379-2387 | mistralrs-core/src/layers.rs:2477-2485 | mistralrs-core/src/layers.rs:2524-2532 \u2014 all 10 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 \u0060mistralrs-core/src/layers.rs:1192\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":"mistralrs-core/src/layers.rs"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"5979078818dae1588254b2a3a6414af77c041e7b0f3a4d3ddfc1b6957013a7b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 10): mistralrs-core/src/models/deepseek2.rs:959-968 | mistralrs-core/src/models/deepseek3.rs:1022-1031 | mistralrs-core/src/models/gemma.rs:472-481 | mistralrs-core/src/models/glm4_moe.rs:838-846 | mistralrs-core/src/models/glm4_moe_lite.rs:975-983 | mistralrs-core/src/models/granite.rs:2252-2261 | mistralrs-core/src/models/llama.rs:498-507 | mistralrs-core/src/models/phi2.rs:551-560 | mistralrs-core/src/models/smollm3.rs:517-526 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:539-548 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:959\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 \u0060ctx\u0060 to \u0060\u0026mut ModelForwardContext\u003C\u0027_\u003E\u0060 in one and \u0060\u0026mut crate::pipeline::ModelForwardContext\u003C\u0027_\u003E\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f53717ad4c2b712556f537ed9c44c0bfd5fd1d82bf08f066cb7f2ba06ba0f20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 10): mistralrs-core/src/models/flint.rs:742-750 | mistralrs-core/src/models/gemma.rs:314-322 | mistralrs-core/src/models/hunyuan_v1_dense.rs:341-349 | mistralrs-core/src/models/hunyuan_v1_moe.rs:831-839 | mistralrs-core/src/models/mistral.rs:362-370 | mistralrs-core/src/models/phi3.rs:375-383 | mistralrs-core/src/models/qwen3.rs:350-358 | mistralrs-core/src/models/qwen3_moe.rs:524-532 | mistralrs-core/src/vision_models/phi3/mod.rs:466-474 | mistralrs-core/src/vision_models/phi4/mod.rs:296-304 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/gemma.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 152 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 \u0060mistralrs-core/src/models/flint.rs:742\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03b549663795ba05562cc8ea99e1ff033d694cb4ffbd1591852382b6e908850"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 10): mistralrs-paged-attn/src/cuda/backend/fa3.rs:460-468 | mistralrs-quant/src/cutile/fp8_gemm.rs:356-364 | mistralrs-quant/src/cutile/fp8_w8a8.rs:540-548 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:923-931 | mistralrs-quant/src/cutile/mxfp8_gemm.rs:541-549 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:325-333 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:652-660 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1154-1162 | mistralrs-quant/src/nvfp4/decode.rs:126-134 | mistralrs-quant/src/nvfp4/portable.rs:315-323 \u2014 before extracting anything, compare \u0060mistralrs-paged-attn/src/cuda/backend/fa3.rs\u0060 and \u0060mistralrs-quant/src/cutile/nvfp4_gemv.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 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 \u0060mistralrs-paged-attn/src/cuda/backend/fa3.rs:460\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":"mistralrs-paged-attn/src/cuda/backend/fa3.rs"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"2db49720655e30f548f7e6196a766b2c094d77eab682935c88a8938f2cb599ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 9): mistralrs-core/src/models/deepseek2.rs:817-825 | mistralrs-core/src/models/deepseek3.rs:880-888 | mistralrs-core/src/models/glm4_moe.rs:717-725 | mistralrs-core/src/models/glm4_moe_lite.rs:827-835 | mistralrs-core/src/models/gpt_oss.rs:722-730 | mistralrs-core/src/models/mixtral.rs:415-423 | mistralrs-core/src/models/phi3.rs:417-425 | mistralrs-core/src/models/qwen2.rs:442-450 | mistralrs-core/src/vision_models/gemma3n/text.rs:1338-1345 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:817\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf74189a0c7aaa446cf63e411f15edc152afe66d1d2c5ed5c893688a326b9b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 9): mistralrs-core/src/xlora_models/gemma.rs:268-277 | mistralrs-core/src/xlora_models/gemma2.rs:273-282 | mistralrs-core/src/xlora_models/llama.rs:91-100 | mistralrs-core/src/xlora_models/mistral.rs:258-267 | mistralrs-core/src/xlora_models/mixtral.rs:171-180 | mistralrs-core/src/xlora_models/phi2.rs:261-270 | mistralrs-core/src/xlora_models/phi3.rs:146-155 | mistralrs-core/src/xlora_models/quantized_phi3.rs:184-193 | mistralrs-core/src/xlora_models/starcoder2.rs:245-254 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 498 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 \u0060mistralrs-core/src/xlora_models/gemma.rs:268\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4a7f9e2eb45d469f049b50814f9b5a938abb2681357b62f5db38580afcdf1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8): mistralrs-paged-attn/src/cuda/backend/fa3.rs:495-503 | mistralrs-quant/src/cutile/fp8_gemm.rs:351-359 | mistralrs-quant/src/cutile/fp8_w8a8.rs:535-543 | mistralrs-quant/src/cutile/gdn_prefill.rs:712-720 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:330-338 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:657-665 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1159-1167 | mistralrs-quant/src/nvfp4/decode.rs:131-139 \u2014 before extracting anything, compare \u0060mistralrs-paged-attn/src/cuda/backend/fa3.rs\u0060 and \u0060mistralrs-quant/src/cutile/nvfp4_gemv.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 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 \u0060mistralrs-paged-attn/src/cuda/backend/fa3.rs:495\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":"mistralrs-paged-attn/src/cuda/backend/fa3.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"681ee87e8dd0865fcd4c7fc5acefb02b6b054973aa4d2606763b0ae87f91d0dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): mistralrs-core/src/embedding_models/embedding_gemma.rs:393-402 | mistralrs-core/src/models/gemma.rs:362-370 | mistralrs-core/src/models/gemma2.rs:435-443 | mistralrs-core/src/vision_models/gemma3/text.rs:452-461 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:408-417 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:528-537 \u2014 \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma.rs\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 133 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 \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs:393\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, \u0060mistralrs-core/src/vision_models/gemma3/text.rs:449\u0060 calls \u0060then\u0060, \u0060set_nm_device\u0060, \u0060pp\u0060 and \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs:392\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":"mistralrs-core/src/embedding_models/embedding_gemma.rs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e337c4f48c629eded8616d9702d62214bc1b7585c37d547c6d5b7a0e78f4a38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1558-1566 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1866-1874 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2166-2174 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5154-5162 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6944-6952 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7408-7416 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1558\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1558}}}],"partialFingerprints":{"codehealthFindingId/v1":"526487bf8f4fa37b32451528faab45d6710cfe7064ba7545a8a93879a8b7f3a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): mistralrs-core/src/xlora_models/classifier.rs:55-63 | mistralrs-core/src/xlora_models/classifier.rs:68-76 | mistralrs-core/src/xlora_models/classifier.rs:118-126 | mistralrs-core/src/xlora_models/classifier.rs:131-139 | mistralrs-core/src/xlora_models/classifier.rs:210-218 | mistralrs-core/src/xlora_models/classifier.rs:223-231 \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 \u0060mistralrs-core/src/xlora_models/classifier.rs:55\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":"mistralrs-core/src/xlora_models/classifier.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"4389b55e5757f04cce36dd95038815816e6aed2243313a3e50ffcf9be4332109"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 6): mistralrs-core/src/xlora_models/gemma.rs:442-449 | mistralrs-core/src/xlora_models/gemma2.rs:473-480 | mistralrs-core/src/xlora_models/mistral.rs:439-446 | mistralrs-core/src/xlora_models/mixtral.rs:569-576 | mistralrs-core/src/xlora_models/phi2.rs:424-432 | mistralrs-core/src/xlora_models/phi3.rs:405-412 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 498 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 \u0060mistralrs-core/src/xlora_models/gemma.rs: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060mistralrs-core/src/xlora_models/mistral.rs:438\u0060 calls \u0060head_dim\u0060 and \u0060mistralrs-core/src/xlora_models/gemma.rs:441\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"8809562c264e9a7966308ef51f31c16d83f44bd1949c57b8313b2fd7515690d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 6): mistralrs-core/src/xlora_models/gemma2.rs:620-628 | mistralrs-core/src/xlora_models/phi2.rs:554-562 | mistralrs-core/src/xlora_models/phi3.rs:532-540 | mistralrs-core/src/xlora_models/quantized_llama.rs:784-790 | mistralrs-core/src/xlora_models/quantized_phi3.rs:446-454 | mistralrs-core/src/xlora_models/starcoder2.rs:565-573 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 and \u0060mistralrs-core/src/xlora_models/phi2.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 304 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 \u0060mistralrs-core/src/xlora_models/gemma2.rs:620\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":"mistralrs-core/src/xlora_models/gemma2.rs"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d9b9fbb4e73c70235715a8e5fb17af65209b862953e0367477c7c60ee067a06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): mistralrs-core/src/embedding_models/qwen3_embedding.rs:413-421 | mistralrs-core/src/models/glm4.rs:556-564 | mistralrs-core/src/models/mistral.rs:557-565 | mistralrs-core/src/models/qwen3.rs:515-523 | mistralrs-core/src/models/qwen3_moe.rs:695-703 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/models/glm4.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 137 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 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:413\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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"b514e64f45dfd7d1c7f316898aaa847d3a654e99e8c3b5b53fe1f05050a005be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): mistralrs-core/src/models/llama.rs:382-390 | mistralrs-core/src/models/mistral.rs:436-444 | mistralrs-core/src/models/phi3.rs:428-436 | mistralrs-core/src/models/phi3_5_moe.rs:497-505 | mistralrs-core/src/models/smollm3.rs:398-406 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/llama.rs\u0060 and \u0060mistralrs-core/src/models/mistral.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 397 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 \u0060mistralrs-core/src/models/llama.rs:382\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060mistralrs-core/src/models/mistral.rs:435\u0060 calls \u0060head_dim\u0060 and \u0060mistralrs-core/src/models/phi3.rs:427\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":"mistralrs-core/src/models/llama.rs"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"405e020a36ad3ce59d1bdde1430ccb5facdb028e9f92da30fbfbde7b0c3dad41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): mistralrs-core/src/models/qwen3_moe.rs:408-416 | mistralrs-core/src/models/qwen3_next.rs:479-487 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:383-391 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:147-155 | mistralrs-core/src/vision_models/qwen4_exp/text.rs:156-164 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/qwen3_moe.rs\u0060 and \u0060mistralrs-core/src/models/qwen3_next.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 332 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 \u0060mistralrs-core/src/models/qwen3_moe.rs:408\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":"mistralrs-core/src/models/qwen3_moe.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e8d3f3deb6ae4b21656ffaebf50d02fdd042d38674de78d3c88e0bee73e5cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20139 lines \u00D7 6): mistralrs-core/src/vision_models/conformer/encoder.rs:82-90 | mistralrs-core/src/vision_models/idefics3/vision.rs:277-285 | mistralrs-core/src/vision_models/lfm2_vl/vision.rs:209-217 | mistralrs-core/src/vision_models/llama4/text.rs:427-432 | mistralrs-core/src/vision_models/mllama/vision.rs:202-210 | mistralrs-core/src/vision_models/siglip.rs:275-283 \u2014 \u0060mistralrs-core/src/vision_models/idefics3/vision.rs\u0060 and \u0060mistralrs-core/src/vision_models/lfm2_vl/vision.rs\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 7 separate duplicated blocks between them, totalling at least 52 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. 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, \u0060mistralrs-core/src/vision_models/conformer/encoder.rs:80\u0060 calls \u0060qkv_projections\u0060 and \u0060mistralrs-core/src/vision_models/llama4/text.rs:427\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":"mistralrs-core/src/vision_models/conformer/encoder.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"4551ff7c8b0e2d32c1454c915fc00eee8b4854588b023c7dd1d23d038a13f695"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:219-227 | mistralrs-core/src/vision_models/qwen2vl/text.rs:220-228 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:211-219 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:212-220 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:318-326 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/text.rs\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 42 separate duplicated blocks between them, totalling at least 716 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 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:219\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":"mistralrs-core/src/vision_models/qwen2_5_vl/text.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"956c02e790b390d9a6f54f30d8c6779017b3a5717474512f6e42313039be1444"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): mistralrs-core/src/vision_models/qwen3_5/text.rs:870-878 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:566-574 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:401-409 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:521-529 | mistralrs-core/src/vision_models/qwen4_exp/text.rs:271-279 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs\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 26 separate duplicated blocks between them, totalling at least 469 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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"440280b7db54c4efb8c44dca51f5ce29261cbca80547f0d8c1f93beb75fe6f23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 5): mistralrs-quant/src/blockwise_fp8/deepgemm.rs:518-525 | mistralrs-quant/src/blockwise_fp8/deepgemm.rs:602-610 | mistralrs-quant/src/blockwise_fp8/deepgemm.rs:621-628 | mistralrs-quant/src/blockwise_fp8/ops.rs:2033-2040 | mistralrs-quant/src/blockwise_fp8/ops.rs:2042-2050 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/blockwise_fp8/deepgemm.rs\u0060 and \u0060mistralrs-quant/src/blockwise_fp8/ops.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 65 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 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":"mistralrs-quant/src/blockwise_fp8/deepgemm.rs"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"2303f01965cc5b00c5b48ae4a39faa99f4bdf31d29fce9bb0abc323829a444a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): mistralrs-quant/src/utils/ops.rs:292-300 | mistralrs-quant/src/utils/ops.rs:306-314 | mistralrs-quant/src/utils/ops.rs:320-328 | mistralrs-quant/src/utils/ops.rs:334-342 | mistralrs-quant/src/utils/ops.rs:348-356 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"591629e856203f040abc7686790fa15c585382802798291ac3acff1f4e755009"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): mistralrs-cli/src/ui/handlers/api.rs:176-184 | mistralrs-cli/src/ui/handlers/api.rs:228-236 | mistralrs-cli/src/ui/handlers/api.rs:280-288 | mistralrs-cli/src/ui/handlers/api.rs:332-340 \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 \u0060mistralrs-cli/src/ui/handlers/api.rs:176\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":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f69b52456b4343579807b3beb8118294cafddff2bfe23950e58c4f9448f8a77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): mistralrs-core/src/gdn/weights.rs:225-233 | mistralrs-core/src/gdn/weights.rs:254-262 | mistralrs-core/src/gdn/weights.rs:295-303 | mistralrs-core/src/layers.rs:3666-3674 \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 \u0060mistralrs-core/src/gdn/weights.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/gdn/weights.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c18ef9a6a0bd399106e6feab2413b82355f45c777106bc190e46c37fa9624d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): mistralrs-core/src/models/lfm2.rs:500-508 | mistralrs-core/src/models/qwen3.rs:212-220 | mistralrs-core/src/models/qwen3_moe.rs:215-223 | mistralrs-core/src/models/qwen3_next.rs:298-306 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/lfm2.rs\u0060 and \u0060mistralrs-core/src/models/qwen3.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 129 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 \u0060mistralrs-core/src/models/lfm2.rs:500\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":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"f405fd99d3f14712fed90a890721d0eb6d6e2e41a91659577c172a0ce27e56e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): mistralrs-core/src/models/llama.rs:166-174 | mistralrs-core/src/models/smollm3.rs:183-191 | mistralrs-core/src/vision_models/llama4/text.rs:332-340 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:140-148 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/llama.rs\u0060 and \u0060mistralrs-core/src/models/smollm3.rs\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 727 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 \u0060mistralrs-core/src/models/llama.rs:166\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":"mistralrs-core/src/models/llama.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"e138b54d43f924b9e7202ce6f74a8f44fa58bab6b8ce3aaa2a26cbc94e778dc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): mistralrs-core/src/ops.rs:4320-4328 | mistralrs-core/src/ops.rs:5726-5734 | mistralrs-core/src/ops.rs:6154-6162 | mistralrs-core/src/ops.rs:6502-6510 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060mistralrs-core/src/ops.rs:4319\u0060 calls \u0060contiguous\u0060 and \u0060mistralrs-core/src/ops.rs:5725\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":4320}}}],"partialFingerprints":{"codehealthFindingId/v1":"87391cd1b5e0e978bdd0bc24e58cfb174e36b04771065d9dd93312ae864507dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2583-2591 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3293-3301 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3635-3643 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8417-8425 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2583\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":2583}}}],"partialFingerprints":{"codehealthFindingId/v1":"741e3616bcee93175a9aa4288a911ed83a3591b6e20abba9fc1abf437d03bd98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:318-326 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:475-483 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:964-972 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:410-418 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/mod.rs\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 396 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 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:318\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":"mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"3887e1bff9f3da63c9b93b2c9ea157ed50cd543d56df6d18f29a937c3e72dbe5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): mistralrs-quant/src/blockwise_fp8/deepgemm.rs:517-525 | mistralrs-quant/src/blockwise_fp8/deepgemm.rs:601-609 | mistralrs-quant/src/blockwise_fp8/deepgemm.rs:620-628 | mistralrs-quant/src/nvfp4/cutlass.rs:257-265 \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":"mistralrs-quant/src/blockwise_fp8/deepgemm.rs"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33e3da0e85859e8f3b899f259fb65227317f16fb0f9c2f721813bf563c8bfa8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 4): mistralrs-quant/src/metal_kernels/mod.rs:1363-1371 | mistralrs-quant/src/metal_kernels/mod.rs:1511-1519 | mistralrs-quant/src/metal_kernels/mod.rs:4769-4777 | mistralrs-quant/src/metal_kernels/mod.rs:4833-4840 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":1363}}}],"partialFingerprints":{"codehealthFindingId/v1":"c462a454fe5c6e359711873a327e8806cb0ec0bb61a5683a6e5777c04ef0b2ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): mistralrs-server-core/src/responses_types/content.rs:236-244 | mistralrs-server-core/src/responses_types/content.rs:507-515 | mistralrs-server-core/src/responses_types/items.rs:182-190 | mistralrs-server-core/src/responses_types/items.rs:483-491 \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 \u0060mistralrs-server-core/src/responses_types/content.rs:236\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":"mistralrs-server-core/src/responses_types/content.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"a47f56014515e04f44fdee6be0cb6f04eb24765bba836d16aa4bab84c581dec3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): mistralrs-cli/src/commands/serve.rs:731-739 | mistralrs-cli/src/commands/serve.rs:763-771 | mistralrs-cli/src/commands/serve.rs:796-804 \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 \u0060mistralrs-cli/src/commands/serve.rs:731\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":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"185d8a507e7a0e034460c9c1994516e5f120ade68f47a8e1fb72989b9f12f374"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): mistralrs-core/src/lora/mod.rs:163-171 | mistralrs-core/src/lora/mod.rs:215-223 | mistralrs-core/src/lora/qloralinear.rs:41-49 \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":"mistralrs-core/src/lora/mod.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff5f287c4e7d5cc29b202ad2379c486b7be8998e91be9d20ae47b686cae6308"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): mistralrs-core/src/models/granite.rs:1417-1424 | mistralrs-core/src/models/granite.rs:1437-1444 | mistralrs-core/src/models/granite.rs:1722-1730 \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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea3d200195e695e19ed68a02a4d6bd85526b79489d9f9b70a3527de87c2311bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): mistralrs-core/src/models/hunyuan_v1_dense.rs:514-522 | mistralrs-core/src/models/hunyuan_v1_moe.rs:1008-1016 | mistralrs-core/src/models/phi2.rs:532-540 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/hunyuan_v1_dense.rs\u0060 and \u0060mistralrs-core/src/models/hunyuan_v1_moe.rs\u0060 as WHOLE FILES: this scan already matched 55 separate duplicated blocks between them, totalling at least 766 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 \u0060mistralrs-core/src/models/hunyuan_v1_dense.rs:514\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":"mistralrs-core/src/models/hunyuan_v1_dense.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"a919c13d52a26c85d07d6b19d4e855bd95a960b6a53086eb759df4ba1d00734e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): mistralrs-core/src/ops.rs:1161-1169 | mistralrs-core/src/ops.rs:1380-1388 | mistralrs-core/src/ops.rs:2967-2974 \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 \u0060mistralrs-core/src/ops.rs:1161\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":1161}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a1a4d7ba334352e83c9a67b81ad5f821fca1dada3af35fb88da4a8eba97780"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): mistralrs-core/src/paged_attention/cache_engine.rs:258-267 | mistralrs-core/src/paged_attention/cache_engine.rs:307-315 | mistralrs-core/src/paged_attention/cache_engine.rs:393-401 \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 \u0060mistralrs-core/src/paged_attention/cache_engine.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/paged_attention/cache_engine.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"7acf733c5a805036136ea34e3721bc806b73db3233d5bcfd38c78894bd1f5c28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7364-7372 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8380-8388 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5347-5355 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 445 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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":7364}}}],"partialFingerprints":{"codehealthFindingId/v1":"a76edb73e67d2ef8506938fef000af3ef851e91730e99cb478168d8d86a26aaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 3): mistralrs-core/src/vision_models/grid_processor.rs:1697-1705 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:868-874 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1433-1439 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:1697\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1697}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dffef9c930d80cd16d21e84aae0a87fade8317b98daf661653722e7999574b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:328-336 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:300-308 | mistralrs-core/src/vision_models/qwen3_vl/vision.rs:401-409 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/vision.rs\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 15 separate duplicated blocks between them, totalling at least 182 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":"mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c2e72783cf600b5498560120a3a34d1575669ff1d8aa01f2c3a7f58b5e9ed13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): mistralrs-core/src/xlora_models/gemma.rs:549-557 | mistralrs-core/src/xlora_models/mistral.rs:543-551 | mistralrs-core/src/xlora_models/mixtral.rs:673-681 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/mistral.rs\u0060 as WHOLE FILES: this scan already matched 37 separate duplicated blocks between them, totalling at least 538 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 \u0060mistralrs-core/src/xlora_models/gemma.rs:549\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc979e41cbaddc5087ef78537108b962488c8f5e518a328656c368d59a665dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): mistralrs-pyo3/src/lib.rs:1585-1593 | mistralrs-pyo3/src/lib.rs:1861-1869 | mistralrs-pyo3/src/lib.rs:2351-2359 \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 \u0060mistralrs-pyo3/src/lib.rs:1585\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 \u0060request\u0060 to \u0060Py\u003CChatCompletionRequest\u003E\u0060 in one and \u0060Py\u003CCompletionRequest\u003E\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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":1585}}}],"partialFingerprints":{"codehealthFindingId/v1":"64f0915c38ac23ad5b43f17e448f606d72a9bb4ccdc6cc0cce56068adcdbccef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): mistralrs-quant/src/blockwise_fp8/mod.rs:1116-1124 | mistralrs-quant/src/pertensor_fp8/mod.rs:674-682 | mistralrs-quant/src/unquantized/mod.rs:459-467 \u2014 \u0060mistralrs-quant/src/blockwise_fp8/mod.rs\u0060 and \u0060mistralrs-quant/src/pertensor_fp8/mod.rs\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 186 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 \u0060mistralrs-quant/src/blockwise_fp8/mod.rs:1116\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, \u0060mistralrs-quant/src/blockwise_fp8/mod.rs:1125\u0060 calls \u0060acquire\u0060 and \u0060mistralrs-quant/src/unquantized/mod.rs:468\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":"mistralrs-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":1116}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c9e13b9428c8abcb1ed1f1108801e1b22c6e6a1ba4977e6591a942ff4d3128"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): mistralrs-quant/src/cutile/fp8_gemm.rs:361-369 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:928-936 | mistralrs-quant/src/cutile/gdn_prefill.rs:722-730 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fp8_gemm.rs\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe_fp8.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 70 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 \u0060mistralrs-quant/src/cutile/fp8_gemm.rs:361\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":"mistralrs-quant/src/cutile/fp8_gemm.rs"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f170c96019059ad9fe7c303bc418f3dc20932929625a41808004a514c85e1e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): mistralrs-quant/src/cutile/fp8_w8a16.rs:65-73 | mistralrs-quant/src/cutile/fp8_w8a16.rs:113-121 | mistralrs-quant/src/cutile/fp8_w8a8.rs:67-75 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs\u0060 and \u0060mistralrs-quant/src/cutile/fp8_w8a8.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 212 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 \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs:65\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, \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs:74\u0060 calls \u0060convert_tile\u0060 and \u0060mistralrs-quant/src/cutile/fp8_w8a8.rs:76\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":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b477c6a964d8a267fa1c2bcfc476e1727461593b009b119cb31f32e25745859"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-quant/src/cutile/fused_moe.rs:374-383 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:371-380 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:409-418 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fused_moe.rs\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe_fp8.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 298 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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d022def80ac30f190b8ab53321118b3110876061cd36c8d5f5c51b3c88c4b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): mistralrs-quant/src/gguf/fast_mmvq.rs:438-446 | mistralrs-quant/src/gguf/fast_mmvq.rs:895-903 | mistralrs-quant/src/gguf/fast_mmvq.rs:1138-1146 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060mistralrs-quant/src/gguf/fast_mmvq.rs:894\u0060 calls \u0060cuda_stream\u0060 and \u0060mistralrs-quant/src/gguf/fast_mmvq.rs:436\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":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"70e1e2559b3b6268e4911d1030139b461f0e12c94f661f1bf40e47065d977579"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): mistralrs-quant/src/hqq/mod.rs:187-195 | mistralrs-quant/src/hqq/mod.rs:272-280 | mistralrs-quant/src/hqq/mod.rs:442-450 \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 \u0060mistralrs-quant/src/hqq/mod.rs: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 \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":"mistralrs-quant/src/hqq/mod.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3a894c5fa3ff60bdf897dd7b93feabddad2a2912e817ed896e3d668af9967d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): mistralrs-quant/src/hqq/mod.rs:469-482 | mistralrs-quant/src/hqq/mod.rs:533-545 | mistralrs-quant/src/hqq/mod.rs:556-568 \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 \u0060mistralrs-quant/src/hqq/mod.rs:533\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":"mistralrs-quant/src/hqq/mod.rs"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b51acd6a11292851c4dcd93a92761c89f487b6b4ca3adf910011635bc675f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 3): mistralrs-quant/src/uqff/reader.rs:242-248 | mistralrs-quant/src/uqff/reader.rs:264-272 | mistralrs-quant/src/uqff/reader.rs:289-295 \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 \u0060mistralrs-quant/src/uqff/reader.rs:264\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":"mistralrs-quant/src/uqff/reader.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"2129e8a6549e005d14aa9070c87538a7d1019bd6b591ba52e9aa39fa8da10c1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): mistralrs/src/model.rs:1006-1013 | mistralrs/src/model.rs:1115-1123 | mistralrs/src/model.rs:1148-1155 \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 \u0060mistralrs/src/model.rs:1006\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":"mistralrs/src/model.rs"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a66da276f7a6e6c45796309df5548d65003613bfee38043d0ecbc745352bfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-cli/src/commands/quantize.rs:201-209 | mistralrs-cli/src/commands/serve.rs:1117-1125 \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 \u0060mistralrs-cli/src/commands/quantize.rs: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":"mistralrs-cli/src/commands/quantize.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcacd3637254c75c662ec72974c0ca59a79a7623ff55b3993bc6a6eb4d645369"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/attention/backends/cpu/avx.rs:34-42 | mistralrs-core/src/attention/backends/cpu/avx.rs:277-285 \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 \u0060mistralrs-core/src/attention/backends/cpu/avx.rs:34\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":"mistralrs-core/src/attention/backends/cpu/avx.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa5d05d315836aee3cf769fe3eaf0472bc1c2b3eb2b8fe8a7e822269d9f1aa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): mistralrs-core/src/attention/backends/cpu/avx.rs:644-652 | mistralrs-core/src/attention/backends/cpu/avx.rs:787-794 \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 \u0060mistralrs-core/src/attention/backends/cpu/avx.rs: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":"mistralrs-core/src/attention/backends/cpu/avx.rs"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad1bb9bc08f0a66c1fea6cf9917c4865f9aff9bc592a9867c7d659a3a0ece5a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/attention/backends/cpu/neon.rs:3-11 | mistralrs-core/src/attention/backends/cpu/neon.rs:137-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 \u0060mistralrs-core/src/attention/backends/cpu/neon.rs:3\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":"mistralrs-core/src/attention/backends/cpu/neon.rs"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"90744966299dae56d71c0ddce72271b7270e4662d05db34121aa67a251c130ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/attention/backends/flash.rs:68-76 | mistralrs-core/src/attention/backends/flash.rs:159-167 \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 \u0060mistralrs-core/src/attention/backends/flash.rs: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060mistralrs-core/src/attention/backends/flash.rs:77\u0060 calls \u0060Some\u0060 and \u0060mistralrs-core/src/attention/backends/flash.rs:168\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":"mistralrs-core/src/attention/backends/flash.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b9081889f16b529ac9a17f46d66f52660610b9536f9575b99b0380e6e9cac29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/cuda/gated_add.rs:92-100 | mistralrs-core/src/cuda/rounded_rope.rs:113-121 \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 \u0060mistralrs-core/src/cuda/gated_add.rs:92\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":"mistralrs-core/src/cuda/gated_add.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed8f055d5ca2826ab7c0446a28e9acfc36a81fc49f5aaf0d65c252c03ea2d47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:1133-1141 | mistralrs-core/src/cuda/gdn.rs:1246-1255 \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 \u0060mistralrs-core/src/cuda/gdn.rs:1133\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a527aaecdc9e55fcd96cc69a083d2a0b3ba5da96e08413e16f5540fb0186b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/embedding_models/inputs_processor.rs:24-32 | mistralrs-core/src/pipeline/inputs_processor.rs:162-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. 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":"mistralrs-core/src/embedding_models/inputs_processor.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1600159f81432aa4138d79a928bc91717369be85edf3e21efaea974baad175"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/embedding_models/qwen3_embedding.rs:376-384 | mistralrs-core/src/models/flint.rs:826-834 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/models/flint.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 68 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 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:376\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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc9b9e80cb3b50050983b9102f70a920fcf0ca9ffa41e5f57985ab93a14c328c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/lib.rs:872-880 | mistralrs-core/src/lib.rs:920-928 \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 \u0060mistralrs-core/src/lib.rs:872\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":"mistralrs-core/src/lib.rs"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcac4f8e0d252deea9a22e003350345fb75d5f47e65873fbce5e71338bc646cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/lib.rs:2528-2536 | mistralrs-core/src/lib.rs:2591-2599 \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 \u0060mistralrs-core/src/lib.rs:2528\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":"mistralrs-core/src/lib.rs"},"region":{"startLine":2528}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b083c9ec8209910434b22ca7afd85f694c5253941cf54e050518848f3ce5e7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/metal/gdn.rs:55-69 | mistralrs-core/src/metal/ssm.rs:45-59 \u2014 before extracting anything, compare \u0060mistralrs-core/src/metal/gdn.rs\u0060 and \u0060mistralrs-core/src/metal/ssm.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 68 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 \u0060mistralrs-core/src/metal/gdn.rs:55\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":"mistralrs-core/src/metal/gdn.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa34d9c4aa1b84cd8af17f96a5369c4db9bd2f1672e42c0c39e1c36709bb335"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/metal/gdn.rs:163-171 | mistralrs-core/src/metal/gdn.rs:274-282 \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 \u0060mistralrs-core/src/metal/gdn.rs:163\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":"mistralrs-core/src/metal/gdn.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a370c5b448889cb393fa84b11c3047e3d4bce2c6106e5185c58ef09040f7b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/metal/gdn.rs:179-187 | mistralrs-core/src/metal/gdn.rs:294-302 \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 \u0060mistralrs-core/src/metal/gdn.rs:179\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":"mistralrs-core/src/metal/gdn.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb22b0e0242d5590572d76380dc7ee6fd105866b1c746bdbf268e16d0ec6a04c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/metal/gdn.rs:754-762 | mistralrs-core/src/metal/gdn.rs:939-947 \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 \u0060mistralrs-core/src/metal/gdn.rs:754\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":"mistralrs-core/src/metal/gdn.rs"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4bb4cfdf0aad4b7538e95fa9bb5784d523cff483740f1ad908805e2c70f63fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/models/glm4.rs:228-236 | mistralrs-core/src/models/glm4_moe.rs:290-298 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/glm4.rs\u0060 and \u0060mistralrs-core/src/models/glm4_moe.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 359 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 \u0060mistralrs-core/src/models/glm4.rs:228\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":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"45671538bd83d249a338f030826f2d9cfc6a651f07771a74cdb42a24a57f0fbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): mistralrs-core/src/models/gpt_oss.rs:358-365 | mistralrs-core/src/models/gpt_oss.rs:396-404 \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":"mistralrs-core/src/models/gpt_oss.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a9c4f2b10c3fb21a6e1712d60fad013eaa4242c4a46cb5d24b2e4d40dfa6755"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/models/llama.rs:251-259 | mistralrs-core/src/models/smollm3.rs:267-275 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/llama.rs\u0060 and \u0060mistralrs-core/src/models/smollm3.rs\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 727 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. 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":"mistralrs-core/src/models/llama.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef98e0425b441fca5236e261e9cd90e8bdb6fd378702ba06c6c337acd479afb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/models/mixtral.rs:512-520 | mistralrs-core/src/models/starcoder2.rs:513-521 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/mixtral.rs\u0060 and \u0060mistralrs-core/src/models/starcoder2.rs\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 495 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 \u0060mistralrs-core/src/models/mixtral.rs:512\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":"mistralrs-core/src/models/mixtral.rs"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4f8589bc9ca30716a4e40e16d97a24c7b3621a2be55695994131d4265c86683"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/models/phi3_5_moe.rs:597-605 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:507-515 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/phi3_5_moe.rs\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 174 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 \u0060mistralrs-core/src/models/phi3_5_moe.rs:597\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":"mistralrs-core/src/models/phi3_5_moe.rs"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b264d3bbf99788b6188d2eefeed24d9cf5ea94b2c06aef060a36432f986ecb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/models/qwen3_next.rs:1190-1198 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:527-535 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/qwen3_next.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 461 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 \u0060mistralrs-core/src/models/qwen3_next.rs:1190\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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5e609cae742dde311849f408a650705e735056a445fa02ccb48457cf610c31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/moe/experts/mod.rs:181-189 | mistralrs-core/src/moe/experts/mod.rs:252-260 \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 \u0060mistralrs-core/src/moe/experts/mod.rs: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":"mistralrs-core/src/moe/experts/mod.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0593bd7e0515f9d03f0bc7f314abeead57bd327f1d3dedb8e1783bfdeaaf4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/ops.rs:1130-1138 | mistralrs-core/src/ops.rs:2189-2197 \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 \u0060mistralrs-core/src/ops.rs:1130\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, \u0060mistralrs-core/src/ops.rs:2187\u0060 calls \u0060F32\u0060 and \u0060mistralrs-core/src/ops.rs:1129\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"26eea2f353ebd9634736f00068d0244480e678b7c9127338853a2962f326dbd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/ops.rs:2101-2109 | mistralrs-core/src/ops.rs:2258-2266 \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 \u0060mistralrs-core/src/ops.rs:2101\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":2101}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72571c3e97feaa2f989e0c1862f2492a6dd504e9b56c5030ba826d51f56bb95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/ops.rs:2771-2779 | mistralrs-core/src/ops.rs:2814-2822 \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 \u0060mistralrs-core/src/ops.rs:2771\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: \u0060mistralrs-core/src/ops.rs:2771\u0060 is reached only past a guard at line 2760 that tests \u0060pending.producer_stream\u0060 and leaves the function early, and \u0060mistralrs-core/src/ops.rs:2814\u0060 reads \u0060pending.producer_stream\u0060 with no such check. What separates these copies is not which lines they run but which PRECONDITION they enforce, so one of them is operating on state the other one refuses. Decide which is intended BEFORE unifying them \u2014 extract the shared part and whichever copy is missing the check keeps running unchecked, and if the guard is the correct behaviour then that hole is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/ops.rs"},"region":{"startLine":2771}}}],"partialFingerprints":{"codehealthFindingId/v1":"658d1c4919e29e912e59c222edb469d7e8b1f3293c829befa6a5c0cf7100e512"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): mistralrs-core/src/ops.rs:4213-4219 | mistralrs-core/src/ops.rs:4841-4849 \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 \u0060mistralrs-core/src/ops.rs:4841\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":4213}}}],"partialFingerprints":{"codehealthFindingId/v1":"3381f20eea37d083683cf3c865a40dfd4eaf06076d0db66f83eb13971599e05b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/ops.rs:4491-4499 | mistralrs-core/src/ops.rs:5458-5466 \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 \u0060mistralrs-core/src/ops.rs:4491\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":4491}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccb6d3e2d7d7ff4dda3204e21700236bf6f0c738023ac525b05d656a76afd25e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/ops.rs:4845-4853 | mistralrs-quant/src/metal_fp8.rs:76-84 \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 \u0060mistralrs-core/src/ops.rs:4845\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":4845}}}],"partialFingerprints":{"codehealthFindingId/v1":"c692b4adecd5978e3910038425cc689d36bc11fa4121228da064094f63a49db4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/paged_attention/scheduler.rs:1076-1084 | mistralrs-core/src/paged_attention/scheduler.rs:1112-1120 \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":"mistralrs-core/src/paged_attention/scheduler.rs"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8cbfd78a6f12f1a92d19fa7ec3a3d9ec480d3e6798cb4ddeabdc98e55708e23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): mistralrs-core/src/pipeline/auto.rs:172-178 | mistralrs-core/src/pipeline/auto.rs:188-196 \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":"mistralrs-core/src/pipeline/auto.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b58ca854e7b5883522cfbfd610d5edb1219c351d22ad807ea1ded3c80b7d7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/pipeline/gguf.rs:1378-1386 | mistralrs-core/src/pipeline/normal.rs:1414-1422 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/gguf.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 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 \u0060mistralrs-core/src/pipeline/gguf.rs:1378\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":"mistralrs-core/src/pipeline/gguf.rs"},"region":{"startLine":1378}}}],"partialFingerprints":{"codehealthFindingId/v1":"49858d276aa42a55d64a41a44693e99bbf74b2738074d9a69bc82bc80e4b868f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/pipeline/inputs_processor.rs:1515-1524 | mistralrs-core/src/pipeline/inputs_processor.rs:1532-1541 \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 \u0060mistralrs-core/src/pipeline/inputs_processor.rs:1515\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":"mistralrs-core/src/pipeline/inputs_processor.rs"},"region":{"startLine":1515}}}],"partialFingerprints":{"codehealthFindingId/v1":"1426a844eefc6ae0b624e9c1f7ed5eb1cd272c1ca3e6ef8c5445e7f4c1334a2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7597-7605 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8113-8121 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7597\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":7597}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6992f75f38a610aa95d78cb3f241fb951fd398391ec613e988980a072644b6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:507-515 | mistralrs-core/src/pipeline/normal.rs:640-648 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:507\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"655336824b4204bb96acc0d066909ebace98b91607fbb9c549cfceeba542c944"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1659-1667 | mistralrs-core/src/pipeline/normal.rs:305-313 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1659}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad127b64251ab0cacaf477a92ac05a65fec0dd8725f01a3fd22b2e70535349a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2062-2070 | mistralrs-core/src/pipeline/normal.rs:2450-2458 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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. 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2062}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7befaed6d69e0cd7371dde631adb7ad311e86b7600d42af7191f013c2dfca7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2119-2127 | mistralrs-core/src/pipeline/normal.rs:2416-2424 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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. 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2119}}}],"partialFingerprints":{"codehealthFindingId/v1":"c94fc5803c9e7e84dd8dbe606c4f1ecaa4928961529369b925e1ba5efbbf62ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2950-2958 | mistralrs-core/src/pipeline/normal.rs:2558-2566 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:2950\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2950}}}],"partialFingerprints":{"codehealthFindingId/v1":"033c0394ad96554984297d415b73280fe282d1c7798bc27dc7062c0d5c40b7f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/sampler.rs:420-428 | mistralrs-core/src/sampler.rs:506-514 \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 \u0060mistralrs-core/src/sampler.rs:420\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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"61818840471cb330fd7578555084947f62a5a842053ea66800c2018db1013ac0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/sampler.rs:1757-1765 | mistralrs-core/src/sampler.rs:1928-1936 \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 \u0060mistralrs-core/src/sampler.rs:1757\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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":1757}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05eff6d7455aa4701f073caab7938a2caae615de261978c8aae5ff67c6572d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/search/mod.rs:117-125 | mistralrs-core/src/search/mod.rs:136-144 \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 \u0060mistralrs-core/src/search/mod.rs: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":"mistralrs-core/src/search/mod.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"803aba7d52db3325aa631660534e469417a0eea444f1c498b25c08f1bdf9c53f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/speech_models/dia/audio.rs:25-33 | mistralrs-core/src/speech_models/dia/audio.rs:132-140 \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":"mistralrs-core/src/speech_models/dia/audio.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6aec447d889a6c88a1ccc0ac4fd7f36907c7833bbc35f9f41cfa524b9f4d26e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/speech_models/dia/audio.rs:51-59 | mistralrs-core/src/speech_models/dia/audio.rs:155-163 \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 \u0060mistralrs-core/src/speech_models/dia/audio.rs:51\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":"mistralrs-core/src/speech_models/dia/audio.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0660b9dc4c2d8e1fb58ec761cdacc99c01781e476c536d08e6d27036a40450b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/audio.rs:693-704 | mistralrs-core/src/vision_models/gemma4/audio.rs:721-729 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/audio.rs\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 20 separate duplicated blocks between them, totalling at least 352 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 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs:693\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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"f737f31221ebba5f27ca55215975fa5dfdcaf19e1154d9b91af0b8dd9357d722"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/audio.rs:862-871 | mistralrs-core/src/vision_models/gemma4/audio.rs:353-362 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/audio.rs\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 20 separate duplicated blocks between them, totalling at least 352 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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdabf578145a6c0101edbc2932cbcee39245a31a49d488a1a5c91cdfb81534c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/audio.rs:1414-1422 | mistralrs-core/src/vision_models/gemma4/audio.rs:1105-1113 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/audio.rs\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 20 separate duplicated blocks between them, totalling at least 352 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 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs:1414\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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":1414}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdcaf54ff119aac08d2b3d3b7d5e4dc46981d6271a59d68646e1f223a1023553"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs:597-605 | mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs:657-665 \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 \u0060mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs:597\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":"mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"950c39708e26412c0da102d73eb02d81420e1a0794e8ec1b4c07231978fadd99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:1430-1438 | mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:1744-1752 \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 \u0060mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:1430\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":"mistralrs-core/src/vision_models/gemma4/inputs_processor.rs"},"region":{"startLine":1430}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b09d87b3915a6de7c8b1f55f42173f856b9f33aad4e9a5bebcd01445065100"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/text.rs:591-599 | mistralrs-core/src/vision_models/gemma4/text.rs:624-632 \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 \u0060mistralrs-core/src/vision_models/gemma4/text.rs:591\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":"mistralrs-core/src/vision_models/gemma4/text.rs"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"788bafd542f2339f3ea39a147b2548eba7bba9f5ca29a8d62f440047e09c9b3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/vision.rs:263-271 | mistralrs-core/src/vision_models/gemma4/vision.rs:273-281 \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":"mistralrs-core/src/vision_models/gemma4/vision.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"37cfdc6bf9fb4252e1ea1255c2dd55a3077d8e394609463318059b068e25ea8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): mistralrs-core/src/vision_models/grid_processor.rs:1853-1860 | mistralrs-core/src/vision_models/grid_processor.rs:1896-1904 \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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:1853\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1853}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d8ffab960ce77ed4511e7fc48427e99cd037880d780fa0891615ab84da33c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:383-391 | mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:432-440 \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":"mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"af73916640cd44b82c312d2b6ba6e2f1a66fbc8645dd9e7a14c413f8b34b7058"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:179-187 | mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:234-242 \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":"mistralrs-core/src/vision_models/idefics3/inputs_processor.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"94d104adffffb988011524dd91e218e600013505a56238f37b7ced06f2316f79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/vision_models/lfm3_audio/inputs_processor.rs:161-169 | mistralrs-core/src/vision_models/lfm3_omni/inputs_processor.rs:323-331 \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":"mistralrs-core/src/vision_models/lfm3_audio/inputs_processor.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a3019c989608361a25bdf2a51f30bc46b57a81517242782692dc61401ab19e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava15.rs:150-158 | mistralrs-core/src/vision_models/llava/llava_next.rs:109-117 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/llava/llava15.rs\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava_next.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 109 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. 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":"mistralrs-core/src/vision_models/llava/llava15.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d252f5124698666d8a9ba5c23532f4be16f858ba524e6c3542538e83b9952d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:415-423 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:381-389 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 288 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 \u0060mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:415\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":"mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee610ec34e347bebef9a65c3262a9c9385912a22516b78969b18d7bbb573f78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): mistralrs-core/src/vision_models/phi4/inputs_processor.rs:928-936 | mistralrs-core/src/vision_models/phi4/inputs_processor.rs:1030-1036 \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 \u0060mistralrs-core/src/vision_models/phi4/inputs_processor.rs:928\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":"mistralrs-core/src/vision_models/phi4/inputs_processor.rs"},"region":{"startLine":928}}}],"partialFingerprints":{"codehealthFindingId/v1":"3096348a77c441bbe89dce937d996b1aac6df52c7637189dd5a29eff183bf36e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/text.rs:1298-1306 | mistralrs-core/src/vision_models/qwen4_exp/text.rs:581-589 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen4_exp/text.rs\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 7 separate duplicated blocks between them, totalling at least 83 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 before the matched lines, \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs:1296\u0060 calls \u0060clone\u0060 and \u0060mistralrs-core/src/vision_models/qwen4_exp/text.rs:580\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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":1298}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e887c6c752c5403f391553c8a176b0016ab6e7710f45762bf6d26dee487a8df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_vl/mod.rs:177-185 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:286-294 \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":"mistralrs-core/src/vision_models/qwen3_vl/mod.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ed83b98395429c2d1748a5ee0f40cc6ef01bd090a9517f26b4066dd9f3e7f81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): mistralrs-core/src/xlora_models/classifier.rs:177-184 | mistralrs-core/src/xlora_models/classifier.rs:187-195 \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 \u0060mistralrs-core/src/xlora_models/classifier.rs: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. 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":"mistralrs-core/src/xlora_models/classifier.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f3b46a23fec68e3ac2f3ef599a853848042add132586ff3be1b4a9ad7b1bee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): mistralrs-core/src/xlora_models/quantized_llama.rs:792-799 | mistralrs-core/src/xlora_models/quantized_phi3.rs:460-468 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/quantized_llama.rs\u0060 and \u0060mistralrs-core/src/xlora_models/quantized_phi3.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 219 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 \u0060mistralrs-core/src/xlora_models/quantized_llama.rs:792\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":"mistralrs-core/src/xlora_models/quantized_llama.rs"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"377c0140ce577f96ceeded713b831162752060bfbf781cc6dd48b7c822beff4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-mcp/src/transport.rs:910-918 | mistralrs-mcp/src/transport.rs:1013-1021 \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":"mistralrs-mcp/src/transport.rs"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe1887220ad575902eabb22698714ffb6149b88da040a4378d97efdf4e0d3512"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:628-636 | mistralrs-paged-attn/src/cuda/backend/mla.rs:696-704 \u2014 before extracting anything, compare \u0060mistralrs-paged-attn/src/cuda/backend/flashinfer.rs\u0060 and \u0060mistralrs-paged-attn/src/cuda/backend/mla.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 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 \u0060mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:628\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":"mistralrs-paged-attn/src/cuda/backend/flashinfer.rs"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eaf50b8ae178bf1df9bc28b85fc16797b832627d28b8cbda26d06257067a4ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-pyo3/src/lib.rs:322-330 | mistralrs-server-core/src/chat_completion.rs:1057-1066 \u2014 before extracting anything, compare \u0060mistralrs-pyo3/src/lib.rs\u0060 and \u0060mistralrs-server-core/src/chat_completion.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 89 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 \u0060mistralrs-pyo3/src/lib.rs:322\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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"90bd992d2f293824514fc299508abc2cbf4d301ece9147420ad136eb277714d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:465-473 | mistralrs-quant/src/blockwise_fp8/ops.rs:519-527 \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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"b27705238803cbf19b2c3b7217f33fa35680b9371a8ae332de5722b6639d961b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:1264-1272 | mistralrs-quant/src/mxfp4/ops.rs:432-440 \u2014 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs\u0060 and \u0060mistralrs-quant/src/mxfp4/ops.rs\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 59 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 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:1264\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1264}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c9d61e34749d157f9d1b20aa4fbee8221166096bcb21fbf075456811475314"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:1856-1864 | mistralrs-quant/src/blockwise_fp8/ops.rs:1865-1873 \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 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:1856\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1856}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c7362985c8c85bcbf01648c1c292cd9b17320a143918f5df3e382ff49f04e0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:491-499 | mistralrs-quant/src/distributed/layers.rs:865-873 \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 \u0060mistralrs-quant/src/distributed/layers.rs:491\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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ba5ba75ecfdb6b52a2078a0a974a7c85347554a50dca9523186503d05ff330"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/hqq/mod.rs:380-388 | mistralrs-quant/src/hqq/mod.rs:395-403 \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 \u0060mistralrs-quant/src/hqq/mod.rs:380\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":"mistralrs-quant/src/hqq/mod.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9f1443d00accf82dd2045ccc8325e2440d3bb031e1ce678da5f1c22ac55872c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/lib.rs:1006-1014 | mistralrs-quant/src/lib.rs:1021-1029 \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 \u0060mistralrs-quant/src/lib.rs:1006\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 \u0060layer\u0060 to \u0060\u0026Conv1d\u0060 in one and \u0060\u0026Conv2d\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":"mistralrs-quant/src/lib.rs"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4ac17a31748d1eb25b7b2a355054b2f293a29629fafa6ec370bce8b3e400d77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): mistralrs-quant/src/metal_kernels/mod.rs:1403-1411 | mistralrs-quant/src/metal_kernels/mod.rs:1434-1441 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:1403\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, \u0060mistralrs-quant/src/metal_kernels/mod.rs:1432\u0060 calls \u0060set_input_buffer\u0060, \u0060Some\u0060, \u0060set_param\u0060 and \u0060mistralrs-quant/src/metal_kernels/mod.rs:1403\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":1403}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e15fcea8ce3888d9c6f23dec9021a992e06210622b7170c606163ab2d256e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/metal_kernels/mod.rs:2852-2860 | mistralrs-quant/src/metal_kernels/mod.rs:2967-2975 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:2852\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":2852}}}],"partialFingerprints":{"codehealthFindingId/v1":"0113618515f13c29e443a5817d6b069d3670a73ea32222ce7383d1dac6d0a551"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/mxfp4/metal_ops.rs:11-19 | mistralrs-quant/src/mxfp4/metal_ops.rs:186-194 \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":"mistralrs-quant/src/mxfp4/metal_ops.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"231c0d7648c820882a6b95c68638621b0c17d1ac7fffccd4033dbef58a66ac7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/mxfp4/ops.rs:96-104 | mistralrs-quant/src/mxfp4/ops.rs:157-165 \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 \u0060mistralrs-quant/src/mxfp4/ops.rs:96\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":"mistralrs-quant/src/mxfp4/ops.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ecce1a4b3b29b423fdec2521eccf5d37f79fa552b298a50b748db19197f6f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-server-core/src/chat_completion.rs:409-417 | mistralrs-server-core/src/responses.rs:1231-1239 \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 \u0060mistralrs-server-core/src/chat_completion.rs:409\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":"mistralrs-server-core/src/chat_completion.rs"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"724cd5f3e16ea810ffa945a6d234c6e0f564eaf9ec5f4419936c5fb4f3e93a7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-server-core/src/responses.rs:1505-1513 | mistralrs-server-core/src/responses.rs:1579-1587 \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 \u0060mistralrs-server-core/src/responses.rs:1505\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":"mistralrs-server-core/src/responses.rs"},"region":{"startLine":1505}}}],"partialFingerprints":{"codehealthFindingId/v1":"2400d1181f5834e79f09cfbd7c32d0574f60f34f9396796dd26f3871be179c03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 38): mistralrs-core/src/models/flint.rs:357-368 | mistralrs-core/src/models/gemma.rs:177-188 | mistralrs-core/src/models/gemma2.rs:218-229 | mistralrs-core/src/models/glm4.rs:220-231 | mistralrs-core/src/models/glm4_moe.rs:282-293 | mistralrs-core/src/models/gpt_oss.rs:258-269 | mistralrs-core/src/models/hunyuan_v1_dense.rs:201-212 | mistralrs-core/src/models/hunyuan_v1_moe.rs:384-395 | mistralrs-core/src/models/lfm2.rs:490-501 | mistralrs-core/src/models/lfm3.rs:551-562 | mistralrs-core/src/models/mistral.rs:216-227 | mistralrs-core/src/models/mixtral.rs:161-172 | mistralrs-core/src/models/phi2.rs:273-284 | mistralrs-core/src/models/phi3.rs:161-172 | mistralrs-core/src/models/phi3_5_moe.rs:188-199 | mistralrs-core/src/models/qwen2.rs:250-261 | mistralrs-core/src/models/qwen3.rs:202-213 | mistralrs-core/src/models/qwen3_moe.rs:205-216 | mistralrs-core/src/models/qwen3_next.rs:288-299 | mistralrs-core/src/models/starcoder2.rs:237-248 | mistralrs-core/src/vision_models/gemma3/text.rs:192-203 | mistralrs-core/src/vision_models/mllama/text.rs:172-183 | mistralrs-core/src/vision_models/phi3/mod.rs:253-264 | mistralrs-core/src/vision_models/phi4/mod.rs:122-133 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:211-222 | mistralrs-core/src/vision_models/qwen2vl/text.rs:212-223 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:203-214 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:204-215 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:310-321 | mistralrs-core/src/vision_models/voxtral/encoder.rs:91-102 | mistralrs-core/src/vision_models/voxtral/mod.rs:137-148 | mistralrs-core/src/xlora_models/gemma.rs:258-269 | mistralrs-core/src/xlora_models/gemma2.rs:263-274 | mistralrs-core/src/xlora_models/mistral.rs:248-259 | mistralrs-core/src/xlora_models/mixtral.rs:161-172 | mistralrs-core/src/xlora_models/phi2.rs:251-262 | mistralrs-core/src/xlora_models/phi3.rs:136-147 | mistralrs-core/src/xlora_models/starcoder2.rs:235-246 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/gemma.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 152 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 \u0060mistralrs-core/src/models/flint.rs:357\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, \u0060mistralrs-core/src/models/phi3.rs:174\u0060 calls \u0060position_ids_vec\u0060 and \u0060mistralrs-core/src/models/gemma.rs:190\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"3727ad8bbcd3e54fd926a4f1d49adda76411263de4875939bff4e3a895154c0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 32): mistralrs-core/src/models/flint.rs:443-450 | mistralrs-core/src/models/gemma.rs:238-245 | mistralrs-core/src/models/gemma2.rs:286-293 | mistralrs-core/src/models/glm4.rs:285-292 | mistralrs-core/src/models/glm4_moe.rs:350-357 | mistralrs-core/src/models/gpt_oss.rs:315-322 | mistralrs-core/src/models/granite.rs:1611-1618 | mistralrs-core/src/models/hunyuan_v1_dense.rs:261-268 | mistralrs-core/src/models/hunyuan_v1_moe.rs:447-454 | mistralrs-core/src/models/llama.rs:146-153 | mistralrs-core/src/models/mistral.rs:286-293 | mistralrs-core/src/models/mixtral.rs:222-229 | mistralrs-core/src/models/phi2.rs:334-343 | mistralrs-core/src/models/phi3.rs:225-232 | mistralrs-core/src/models/phi3_5_moe.rs:252-259 | mistralrs-core/src/models/qwen2.rs:316-323 | mistralrs-core/src/models/qwen3.rs:271-278 | mistralrs-core/src/models/qwen3_moe.rs:274-281 | mistralrs-core/src/models/qwen3_next.rs:354-361 | mistralrs-core/src/models/smollm3.rs:163-170 | mistralrs-core/src/models/starcoder2.rs:298-305 | mistralrs-core/src/vision_models/llama4/text.rs:518-525 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:121-128 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:295-302 | mistralrs-core/src/vision_models/muse_glimmer/text.rs:309-318 | mistralrs-core/src/vision_models/phi3/mod.rs:316-323 | mistralrs-core/src/vision_models/phi4/mod.rs:185-192 | mistralrs-core/src/vision_models/qwen3_5/text.rs:404-411 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:269-276 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:276-283 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:379-386 | mistralrs-core/src/vision_models/voxtral/mod.rs:197-204 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/gemma.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 152 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 \u0060mistralrs-core/src/models/flint.rs:443\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, \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:280\u0060 calls \u0060sigmoid\u0060, \u0060to_dtype\u0060, \u0060dtype\u0060 and \u0060mistralrs-core/src/models/flint.rs:452\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c80fc601027ac032f0d90f8fe69e17b84a97f0c1fed90af913f55a5e4ffda12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 25): mistralrs-quant/src/metal_kernels/mod.rs:289-297 | mistralrs-quant/src/metal_kernels/mod.rs:328-336 | mistralrs-quant/src/metal_kernels/mod.rs:367-375 | mistralrs-quant/src/metal_kernels/mod.rs:406-414 | mistralrs-quant/src/metal_kernels/mod.rs:445-453 | mistralrs-quant/src/metal_kernels/mod.rs:698-706 | mistralrs-quant/src/metal_kernels/mod.rs:745-753 | mistralrs-quant/src/metal_kernels/mod.rs:792-800 | mistralrs-quant/src/metal_kernels/mod.rs:1798-1807 | mistralrs-quant/src/metal_kernels/mod.rs:1863-1872 | mistralrs-quant/src/metal_kernels/mod.rs:1933-1942 | mistralrs-quant/src/metal_kernels/mod.rs:2030-2038 | mistralrs-quant/src/metal_kernels/mod.rs:3263-3271 | mistralrs-quant/src/metal_kernels/mod.rs:3386-3393 | mistralrs-quant/src/metal_kernels/mod.rs:3450-3457 | mistralrs-quant/src/metal_kernels/mod.rs:3514-3521 | mistralrs-quant/src/metal_kernels/mod.rs:3579-3586 | mistralrs-quant/src/metal_kernels/mod.rs:3641-3649 | mistralrs-quant/src/metal_kernels/mod.rs:4085-4093 | mistralrs-quant/src/metal_kernels/mod.rs:4120-4128 | mistralrs-quant/src/metal_kernels/mod.rs:4157-4165 | mistralrs-quant/src/metal_kernels/mod.rs:4531-4538 | mistralrs-quant/src/metal_kernels/mod.rs:4593-4600 | mistralrs-quant/src/metal_kernels/mod.rs:4972-4979 | mistralrs-quant/src/metal_kernels/mod.rs:5014-5021 \u2014 all 25 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 \u0060mistralrs-quant/src/metal_kernels/mod.rs: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, \u0060mistralrs-quant/src/metal_kernels/mod.rs:4541\u0060 calls \u0060is_some\u0060 and \u0060mistralrs-quant/src/metal_kernels/mod.rs:4601\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fdf3605cd8d12ed70c14657729a7df6185da31b48de37e8317bd5b78244da99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 22): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:435-444 | mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:638-647 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1276-1285 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1657-1666 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1965-1974 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2688-2697 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4116-4125 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4489-4498 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4894-4903 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5707-5716 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9515-9522 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:10760-10767 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:710-719 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:936-945 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1157-1166 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2058-2067 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2309-2318 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3667-3676 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3888-3895 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4101-4110 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5206-5215 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5694-5703 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/embedding_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 180 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 \u0060mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:435\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":"mistralrs-core/src/pipeline/loaders/embedding_loaders.rs"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e2d49985e37b667b5f2509d694d57c100c02074cb8f5a0cac0dc486182a6e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 16): mistralrs-core/src/models/deepseek2.rs:816-823 | mistralrs-core/src/models/deepseek3.rs:879-886 | mistralrs-core/src/models/flint.rs:785-792 | mistralrs-core/src/models/glm4.rs:447-454 | mistralrs-core/src/models/glm4_moe.rs:716-723 | mistralrs-core/src/models/glm4_moe_lite.rs:826-833 | mistralrs-core/src/models/gpt_oss.rs:721-728 | mistralrs-core/src/models/granite.rs:1955-1962 | mistralrs-core/src/models/hunyuan_v1_dense.rs:416-423 | mistralrs-core/src/models/hunyuan_v1_moe.rs:910-917 | mistralrs-core/src/models/llama.rs:353-360 | mistralrs-core/src/models/mistral.rs:422-429 | mistralrs-core/src/models/qwen3.rs:410-417 | mistralrs-core/src/models/qwen3_moe.rs:584-591 | mistralrs-core/src/models/smollm3.rs:369-376 | mistralrs-core/src/vision_models/llama4/text.rs:802-809 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:816\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"1da5370edb5f47ed702e5f5b99ce019263c23f6c7963243bf1c06242e76432a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 14): mistralrs-core/src/models/deepseek2.rs:820-827 | mistralrs-core/src/models/deepseek3.rs:883-890 | mistralrs-core/src/models/glm4_moe.rs:720-727 | mistralrs-core/src/models/glm4_moe_lite.rs:830-837 | mistralrs-core/src/models/mixtral.rs:418-425 | mistralrs-core/src/models/phi3.rs:420-427 | mistralrs-core/src/models/qwen2.rs:445-452 | mistralrs-core/src/vision_models/gemma3/text.rs:446-453 | mistralrs-core/src/vision_models/gemma3n/text.rs:1340-1347 | mistralrs-core/src/vision_models/muse_glimmer/text.rs:441-448 | mistralrs-core/src/vision_models/phi3/mod.rs:1215-1222 | mistralrs-core/src/vision_models/phi4/mod.rs:336-343 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:410-417 | mistralrs-core/src/vision_models/qwen2vl/text.rs:411-418 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:820\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, \u0060mistralrs-core/src/vision_models/gemma3/text.rs:444\u0060 calls \u0060sqrt\u0060 and \u0060mistralrs-core/src/models/phi3.rs:417\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bb5caf827a506f255dfbef27e5b7f416a885a5e830ada8a8e706992ce6dd5ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 12): mistralrs-core/src/models/flint.rs:740-747 | mistralrs-core/src/models/gemma.rs:312-319 | mistralrs-core/src/models/gpt_oss.rs:682-689 | mistralrs-core/src/models/hunyuan_v1_dense.rs:339-346 | mistralrs-core/src/models/hunyuan_v1_moe.rs:829-836 | mistralrs-core/src/models/mistral.rs:360-367 | mistralrs-core/src/models/mixtral.rs:369-376 | mistralrs-core/src/models/phi3.rs:373-380 | mistralrs-core/src/models/qwen3.rs:348-355 | mistralrs-core/src/models/qwen3_moe.rs:522-529 | mistralrs-core/src/vision_models/phi3/mod.rs:464-471 | mistralrs-core/src/vision_models/phi4/mod.rs:294-301 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/gemma.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 152 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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f06e00d66e55ae89314cec7ea7a15269aa36181606989c30a76695605b3790f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 12): mistralrs-core/src/models/gemma.rs:502-510 | mistralrs-core/src/models/mistral.rs:630-638 | mistralrs-core/src/models/mixtral.rs:568-576 | mistralrs-core/src/models/phi3.rs:577-585 | mistralrs-core/src/models/qwen2.rs:633-641 | mistralrs-core/src/models/starcoder2.rs:569-577 | mistralrs-core/src/vision_models/llama4/vision.rs:352-360 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:579-586 | mistralrs-core/src/vision_models/phi3/mod.rs:1382-1390 | mistralrs-core/src/vision_models/phi4/mod.rs:644-652 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:569-577 | mistralrs-core/src/vision_models/qwen2vl/text.rs:571-579 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/mistral.rs\u0060 as WHOLE FILES: this scan already matched 36 separate duplicated blocks between them, totalling at least 416 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 \u0060mistralrs-core/src/models/gemma.rs:502\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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"c242cf2bf1fd5776fd6311a4c545a1069ff10078a96ce6f046d201d407a11c02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 11): mistralrs-core/src/embedding_models/qwen3_embedding.rs:351-358 | mistralrs-core/src/models/glm4.rs:461-468 | mistralrs-core/src/models/glm4_moe.rs:746-753 | mistralrs-core/src/models/hunyuan_v1_dense.rs:430-437 | mistralrs-core/src/models/hunyuan_v1_moe.rs:924-931 | mistralrs-core/src/models/qwen3.rs:424-431 | mistralrs-core/src/models/qwen3_moe.rs:598-605 | mistralrs-core/src/xlora_models/gemma.rs:444-451 | mistralrs-core/src/xlora_models/gemma2.rs:475-482 | mistralrs-core/src/xlora_models/mistral.rs:441-448 | mistralrs-core/src/xlora_models/mixtral.rs:571-578 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/models/glm4.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 137 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 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:351\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, \u0060mistralrs-core/src/xlora_models/mistral.rs:439\u0060 calls \u0060with_capacity\u0060, \u0060pp\u0060 and \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:350\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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"47cf82221f5d3c9a9e778627ba807e02c3072635258b57fc692f164d8b8c5d9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 8): mistralrs-core/src/vision_models/phi3/mod.rs:1230-1237 | mistralrs-core/src/vision_models/phi4/mod.rs:345-352 | mistralrs-core/src/xlora_models/gemma.rs:443-450 | mistralrs-core/src/xlora_models/gemma2.rs:474-481 | mistralrs-core/src/xlora_models/mistral.rs:440-447 | mistralrs-core/src/xlora_models/mixtral.rs:570-577 | mistralrs-core/src/xlora_models/phi2.rs:425-433 | mistralrs-core/src/xlora_models/phi3.rs:406-413 \u2014 \u0060mistralrs-core/src/vision_models/phi3/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi4/mod.rs\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 48 separate duplicated blocks between them, totalling at least 586 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 \u0060mistralrs-core/src/vision_models/phi3/mod.rs:1230\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, \u0060mistralrs-core/src/xlora_models/phi2.rs:424\u0060 calls \u0060with_capacity\u0060 and \u0060mistralrs-core/src/vision_models/phi3/mod.rs:1229\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":"mistralrs-core/src/vision_models/phi3/mod.rs"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebf30022e21b8dd94dac446b606ceac1c91860d3c8c25237afcd2114945a035e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 8): mistralrs-core/src/vision_models/qwen3_5/mod.rs:223-230 | mistralrs-core/src/vision_models/qwen3_5/mod.rs:284-291 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:206-213 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:267-274 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:743-750 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:818-825 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:189-196 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:264-271 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs\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 24 separate duplicated blocks between them, totalling at least 425 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 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs:223\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":"mistralrs-core/src/vision_models/qwen3_5/mod.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f71945a00525fbf67023d3ce5c08c20c14c3f89369807f118b953d7075a42f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): mistralrs-core/src/models/mixtral.rs:426-433 | mistralrs-core/src/models/qwen2.rs:453-461 | mistralrs-core/src/models/starcoder2.rs:423-431 | mistralrs-core/src/vision_models/llama4/text.rs:830-837 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:418-426 | mistralrs-core/src/vision_models/qwen2vl/text.rs:419-427 | mistralrs-core/src/xlora_models/starcoder2.rs:429-436 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/mixtral.rs\u0060 and \u0060mistralrs-core/src/models/qwen2.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 556 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 \u0060mistralrs-core/src/models/mixtral.rs: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, \u0060mistralrs-core/src/models/starcoder2.rs:422\u0060 calls \u0060pp\u0060 and \u0060mistralrs-core/src/models/mixtral.rs:425\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":"mistralrs-core/src/models/mixtral.rs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"28a519fcbe0fa72e42aa687e8c19b9c25731d0ea0db1cf79704366f4ce6367b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): mistralrs-quant/src/blockwise_fp8/deepgemm.rs:514-521 | mistralrs-quant/src/blockwise_fp8/deepgemm.rs:523-530 | mistralrs-quant/src/blockwise_fp8/deepgemm.rs:607-615 | mistralrs-quant/src/blockwise_fp8/deepgemm.rs:617-624 | mistralrs-quant/src/blockwise_fp8/deepgemm.rs:626-633 | mistralrs-quant/src/blockwise_fp8/ops.rs:1856-1863 | mistralrs-quant/src/blockwise_fp8/ops.rs:1865-1872 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/blockwise_fp8/deepgemm.rs\u0060 and \u0060mistralrs-quant/src/blockwise_fp8/ops.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 65 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 \u0060mistralrs-quant/src/blockwise_fp8/deepgemm.rs:514\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":"mistralrs-quant/src/blockwise_fp8/deepgemm.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"e582ca60318a96a18afbac93c2f44498cc87378367b2742982672fc1d1879857"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): mistralrs-core/src/cuda/rounded_rope.rs:69-76 | mistralrs-quant/src/cutile/fp8_w8a8.rs:523-530 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:906-913 | mistralrs-quant/src/cutile/mxfp8_gemm.rs:525-532 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:640-647 | mistralrs-quant/src/nvfp4/portable.rs:303-310 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fp8_w8a8.rs\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe_fp8.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 83 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 \u0060mistralrs-core/src/cuda/rounded_rope.rs:69\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":"mistralrs-core/src/cuda/rounded_rope.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"d775a2c89b9bd3f115bb737c5dfdfeddde008e49cb08a8ae026482cb464d4fb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:536-543 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4735-4742 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1036-1043 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2416-2423 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2887-2894 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6310-6317 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/embedding_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 180 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":"mistralrs-core/src/pipeline/loaders/embedding_loaders.rs"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e371aeb9c974a332064939f33f540a240e113ed4ff3bdb8b5371b4200e94aa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): mistralrs-core/src/xlora_models/gemma.rs:497-504 | mistralrs-core/src/xlora_models/gemma2.rs:527-534 | mistralrs-core/src/xlora_models/mistral.rs:493-500 | mistralrs-core/src/xlora_models/mixtral.rs:624-631 | mistralrs-core/src/xlora_models/phi2.rs:479-486 | mistralrs-core/src/xlora_models/starcoder2.rs:481-488 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 498 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 \u0060mistralrs-core/src/xlora_models/gemma.rs:497\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, \u0060mistralrs-core/src/xlora_models/starcoder2.rs:490\u0060 calls \u0060get_mut\u0060, \u0060unwrap\u0060, \u0060merge_weights\u0060 and \u0060mistralrs-core/src/xlora_models/gemma.rs:506\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"af97425812dc16a9eb9809c538f895ee0c086b233d55d22e8cecdc10d69cf038"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 5): mistralrs-core/src/models/flint.rs:958-964 | mistralrs-core/src/models/gemma2.rs:568-574 | mistralrs-core/src/models/gpt_oss.rs:918-925 | mistralrs-core/src/models/qwen2.rs:596-602 | mistralrs-core/src/vision_models/muse_glimmer/text.rs:595-602 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 190 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 \u0060mistralrs-core/src/models/flint.rs:958\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"d061652aa09a28d13a85d9f1d74f0daec9c3f862c04500b5c444c0eda74476bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): mistralrs-cli/src/commands/config.rs:101-108 | mistralrs-cli/src/commands/config.rs:261-268 | mistralrs-cli/src/commands/run/mod.rs:106-113 | mistralrs-cli/src/commands/serve.rs:118-125 \u2014 before extracting anything, compare \u0060mistralrs-cli/src/commands/config.rs\u0060 and \u0060mistralrs-cli/src/commands/serve.rs\u0060 as WHOLE FILES: this scan already matched 3 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. 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, \u0060mistralrs-cli/src/commands/serve.rs:127\u0060 calls \u0060default\u0060 and \u0060mistralrs-cli/src/commands/run/mod.rs:116\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":"mistralrs-cli/src/commands/config.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"204a227986f3aa18af52d08f3e8750c31fca7f9abdd8f33250a973b1cb0f94e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): mistralrs-code-exec/src/lib.rs:464-471 | mistralrs-code-exec/src/lib.rs:532-539 | mistralrs-code-exec/src/shell.rs:196-202 | mistralrs-code-exec/src/shell.rs:258-264 \u2014 before extracting anything, compare \u0060mistralrs-code-exec/src/lib.rs\u0060 and \u0060mistralrs-code-exec/src/shell.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 64 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 \u0060mistralrs-code-exec/src/lib.rs:464\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":"mistralrs-code-exec/src/lib.rs"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"3baa3309a4a99c97ecf546e6e19d945cd617fd322e32ac2ab114251d50beef33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 4): mistralrs-core/src/engine/mod.rs:2296-2303 | mistralrs-core/src/engine/mod.rs:2371-2378 | mistralrs-core/src/engine/mod.rs:2390-2397 | mistralrs-core/src/engine/mod.rs:2416-2421 \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. 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":"mistralrs-core/src/engine/mod.rs"},"region":{"startLine":2296}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce34e5a7fd6d5c4c2921cadaa2ff85b028a129a7b3dbd70a2a3dc263712cedc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 4): mistralrs-core/src/models/deepseek2.rs:667-682 | mistralrs-core/src/models/deepseek3.rs:730-745 | mistralrs-core/src/models/glm4_moe.rs:570-582 | mistralrs-core/src/models/glm4_moe_lite.rs:676-691 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:667\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b6ef83359909b31846c5428540dca028a6a0a32df733607cd2f94993347142"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): mistralrs-core/src/models/lfm2.rs:1115-1122 | mistralrs-core/src/models/qwen3_next.rs:921-929 | mistralrs-core/src/vision_models/qwen3_5/text.rs:1032-1040 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:744-752 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/lfm2.rs\u0060 and \u0060mistralrs-core/src/models/qwen3_next.rs\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 161 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 \u0060mistralrs-core/src/models/lfm2.rs:1115\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":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"e43b67e01286699c60df485820e99222aa38cd33a7ba83b4ec3831f8c065e22f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): mistralrs-core/src/models/phi3.rs:424-431 | mistralrs-core/src/vision_models/gemma3/text.rs:450-458 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:406-414 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:526-534 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/phi3.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma3/text.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 199 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 \u0060mistralrs-core/src/models/phi3.rs:424\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":"mistralrs-core/src/models/phi3.rs"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"1def8b6f6b6a067335c5081da0421689c33224f4c51a51483d064a0ff07fac4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): mistralrs-core/src/vision_models/grid_processor.rs:1339-1346 | mistralrs-core/src/vision_models/muse_glimmer/inputs_processor.rs:844-850 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:543-550 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1151-1158 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:1339\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff5790819db73445d02068274679022208cd957a413822fcdb9817961237b045"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): mistralrs-core/src/vision_models/qwen3_5/mod.rs:192-199 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:175-182 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:699-706 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:145-152 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs\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 24 separate duplicated blocks between them, totalling at least 425 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 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs:192\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":"mistralrs-core/src/vision_models/qwen3_5/mod.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"278d798e46ef2c2963483c6a013f4038ae2d4709ad506ff1d43efbff0622554a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): mistralrs-core/src/vision_models/qwen3_5/mod.rs:255-262 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:238-245 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:776-783 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:222-229 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs\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 24 separate duplicated blocks between them, totalling at least 425 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 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs:255\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":"mistralrs-core/src/vision_models/qwen3_5/mod.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"df9a5ec338ef34f135f2b610980b2d3114c4fb65c60291a2dfe41a8f6d619b88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 4): mistralrs-quant/src/blockwise_fp8/mod.rs:688-693 | mistralrs-quant/src/mxfp4/mod.rs:111-116 | mistralrs-quant/src/mxfp4/mod.rs:133-140 | mistralrs-quant/src/mxfp4/mod.rs:687-692 \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 \u0060mistralrs-quant/src/blockwise_fp8/mod.rs:688\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":"mistralrs-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"22eb44b35dc89a854f66e6b0a8e4f85e95221dfd32b259bfcfaf69f7dd6b282a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): mistralrs-quant/src/hqq/mod.rs:174-181 | mistralrs-quant/src/hqq/mod.rs:258-265 | mistralrs-quant/src/hqq/mod.rs:352-359 | mistralrs-quant/src/hqq/mod.rs:501-508 \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 \u0060mistralrs-quant/src/hqq/mod.rs:174\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":"mistralrs-quant/src/hqq/mod.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd7aff835d9724cc902f9e409299d128b72343de2798260e8a39660b9a778b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): mistralrs-quant/src/metal_kernels/mod.rs:1592-1600 | mistralrs-quant/src/metal_kernels/mod.rs:1668-1676 | mistralrs-quant/src/metal_kernels/mod.rs:2720-2727 | mistralrs-quant/src/metal_kernels/mod.rs:2854-2862 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:1592\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, \u0060mistralrs-quant/src/metal_kernels/mod.rs:2852\u0060 calls \u0060type_to_name\u0060 and \u0060mistralrs-quant/src/metal_kernels/mod.rs:1591\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":1592}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc0ab542b82aa756f759c783ae66663432f22c044c19a5ecee82825f61408670"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-cli/src/args/mod.rs:466-473 | mistralrs-cli/src/commands/serve.rs:901-908 | mistralrs-cli/src/commands/serve.rs:911-918 \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. 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 \u0060model_type\u0060 to \u0060\u0026mut ModelType\u0060 in one and \u0060\u0026ModelType\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":"mistralrs-cli/src/args/mod.rs"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c6f355c928f05fd36782f48ed3f31087f2f8ac3de6ad7039b6cbb866669ded"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-core/src/model_loader.rs:448-455 | mistralrs-core/src/model_loader.rs:909-916 | mistralrs-core/src/toml_selector.rs:1229-1236 \u2014 before extracting anything, compare \u0060mistralrs-core/src/model_loader.rs\u0060 and \u0060mistralrs-core/src/toml_selector.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 199 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 \u0060mistralrs-core/src/model_loader.rs:448\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":"mistralrs-core/src/model_loader.rs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"192df5de489511fdb317a8e2c4f7a1a23ed8deaeb5c49854df74ef1e7ceabc88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-core/src/models/gemma2.rs:575-582 | mistralrs-core/src/models/qwen2.rs:603-610 | mistralrs-core/src/vision_models/gemma3/text.rs:745-752 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma2.rs\u0060 and \u0060mistralrs-core/src/models/qwen2.rs\u0060 as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 475 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 \u0060mistralrs-core/src/models/gemma2.rs:575\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":"mistralrs-core/src/models/gemma2.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"0681c0016422ec3a1bf6871c8c66f39179fcc0566c71988c8338d937a32af728"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-core/src/models/phi2.rs:452-460 | mistralrs-core/src/vision_models/mllama/text.rs:790-798 | mistralrs-core/src/xlora_models/llama.rs:569-576 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/phi2.rs\u0060 and \u0060mistralrs-core/src/vision_models/mllama/text.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 85 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 \u0060mistralrs-core/src/models/phi2.rs:452\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":"mistralrs-core/src/models/phi2.rs"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d87d9a6811d7e2a2c90d5e14c305eb2150b3a4678ee8ad21911790bb80358c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-core/src/moe/experts/backends.rs:922-929 | mistralrs-core/src/moe/experts/backends.rs:997-1004 | mistralrs-quant/src/moe/cutlass.rs:157-164 \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 \u0060mistralrs-core/src/moe/experts/backends.rs:922\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":"mistralrs-core/src/moe/experts/backends.rs"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"264b1f30966e7d388253e751a8fefe6df8495cdb7b39aa95ed82cd8181562061"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-core/src/ops.rs:4494-4501 | mistralrs-core/src/ops.rs:4657-4664 | mistralrs-core/src/ops.rs:5461-5468 \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 \u0060mistralrs-core/src/ops.rs:4494\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, \u0060mistralrs-core/src/ops.rs:4492\u0060 calls \u0060as_ref\u0060, \u0060storage_and_layout\u0060 and \u0060mistralrs-core/src/ops.rs:4655\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":4494}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f72fb751c0d724d9caa3e0dc02274fe1afb618e157b49f8424c50f7f02409a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-core/src/pipeline/embedding.rs:237-244 | mistralrs-core/src/pipeline/multimodal.rs:670-677 | mistralrs-core/src/pipeline/normal.rs:708-715 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/embedding.rs\u0060 and \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 178 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, \u0060mistralrs-core/src/pipeline/multimodal.rs:678\u0060 calls \u0060clone\u0060 and \u0060mistralrs-core/src/pipeline/embedding.rs:246\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":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da6068c22dacb0c1b10bf23df3e80f19666c0b1ee13615e7b2595e6c96eb0a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:730-736 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2880-2887 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3771-3777 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/embedding_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 216 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 \u0060mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:730\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":"mistralrs-core/src/pipeline/loaders/embedding_loaders.rs"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aacf2d5a35916c9ea1e0000c796b979a544ebca69730722e61565f2b96bd12f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/lfm3.rs:219-227 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:10620-10627 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:7140-7147 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/lfm3.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 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 \u0060mistralrs-core/src/pipeline/loaders/lfm3.rs:219\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":"mistralrs-core/src/pipeline/loaders/lfm3.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"83929b22f2f1b535c15626312fd9b210f5a09ee92c9590b6b826df9dc41eff8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-core/src/sampler.rs:1225-1232 | mistralrs-core/src/sampler.rs:1757-1764 | mistralrs-core/src/sampler.rs:1928-1935 \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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":1225}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf6652167b1d018184987a65b0af3b2948f9b1fe29871f339881567d60a7a43f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20138 lines \u00D7 4): mistralrs-core/src/vision_models/idefics2/mod.rs:687-694 | mistralrs-core/src/vision_models/idefics3/vision.rs:506-513 | mistralrs-core/src/vision_models/lfm2_vl/vision.rs:386-389 | mistralrs-core/src/vision_models/siglip.rs:529-536 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics2/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/idefics3/vision.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 221 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 \u0060mistralrs-core/src/vision_models/idefics2/mod.rs:687\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, \u0060mistralrs-core/src/vision_models/lfm2_vl/vision.rs:386\u0060 calls \u0060pp\u0060 and \u0060mistralrs-core/src/vision_models/idefics3/vision.rs:506\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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b40f17b15fa04a1eda55d8caee8681b25a2dc3415ce5b646d071e066f930e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-core/src/vision_models/idefics3/mod.rs:229-236 | mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:118-125 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:141-148 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/mod.rs\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 396 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 \u0060mistralrs-core/src/vision_models/idefics3/mod.rs: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":"mistralrs-core/src/vision_models/idefics3/mod.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"7442e403da9378176dca3f320b0cf148725b0b1bb8806ffdbb20044e27199d1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:82-89 | mistralrs-core/src/vision_models/qwen2vl/text.rs:83-90 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:70-77 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/text.rs\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 42 separate duplicated blocks between them, totalling at least 716 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":"mistralrs-core/src/vision_models/qwen2_5_vl/text.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"893222ae37a3d355b9b52d8c5e095f64f7aa32348643b0f93ea1a4967d6fbf73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-core/src/vision_models/qwen3_5/packed_visual.rs:147-154 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:920-927 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:366-373 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_vl/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs\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 25 separate duplicated blocks between them, totalling at least 658 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":"mistralrs-core/src/vision_models/qwen3_5/packed_visual.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"8489f3080ebcaffd6b5b3b23b6b5375afa0c5531a1239ee6de825adf677d2e7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-quant/src/afq/ops.rs:143-150 | mistralrs-quant/src/afq/ops.rs:387-394 | mistralrs-quant/src/afq/ops.rs:434-441 \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":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"130613e01b160145d8b865191dd864c826b6696b4df24dc9b6a09d03f0cfb28d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-quant/src/gguf/mod.rs:477-484 | mistralrs-quant/src/gptq/gptq_cpu.rs:21-28 | mistralrs-quant/src/gptq/gptq_cuda.rs:339-346 \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":"mistralrs-quant/src/gguf/mod.rs"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda5e68854990c8dc5cd7780e40244be4fb30d09a4c60be089df21304a846c52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs/src/model.rs:356-363 | mistralrs/src/model.rs:426-433 | mistralrs/src/model.rs:514-521 \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 \u0060mistralrs/src/model.rs:356\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":"mistralrs/src/model.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"231a151fe5f0b6159f9fdd1a76331b60fccccf438bc161e986d9dddab5ecd346"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-cli/src/commands/run/mod.rs:136-143 | mistralrs-cli/src/commands/run/mod.rs:165-172 \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":"mistralrs-cli/src/commands/run/mod.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"27dce24df27059d8e8a84408088a5d5b7b0574bdb54865904c007a6c0c03378d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-cli/src/commands/serve.rs:707-714 | mistralrs-cli/src/commands/serve.rs:764-771 \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 \u0060mistralrs-cli/src/commands/serve.rs:707\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":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"c66e4a060ae8b1977e2a9917fb3b3c52b5d88e7a41cfba95d1eb6fc6dd181b3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-cli/src/commands/serve.rs:879-886 | mistralrs-cli/src/commands/serve.rs:891-898 \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":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"29cf3dcad10641e80941d147a4f066624b79b4c3a1b692f160760f5b598bfc69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/attention/backends/cpu/neon.rs:268-275 | mistralrs-core/src/attention/backends/cpu/neon.rs:511-518 \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 \u0060mistralrs-core/src/attention/backends/cpu/neon.rs:268\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, \u0060mistralrs-core/src/attention/backends/cpu/neon.rs:519\u0060 calls \u0060out\u0060 and \u0060mistralrs-core/src/attention/backends/cpu/neon.rs:276\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":"mistralrs-core/src/attention/backends/cpu/neon.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"6355237d25f7842c738e7ce88df4faee9e831f79c6f80fd02ae24dc655f5970a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/attention/backends/cpu/neon.rs:288-295 | mistralrs-core/src/attention/backends/cpu/neon.rs:532-539 \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 \u0060mistralrs-core/src/attention/backends/cpu/neon.rs:288\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 \u0060b\u0060 to \u0060\u0026[half::f16]\u0060 in one and \u0060\u0026[half::bf16]\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":"mistralrs-core/src/attention/backends/cpu/neon.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ac767f87ae7ca27e0c9ffd9c51ac3ea53396f6512e4283e7ae8e093b808bfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): mistralrs-core/src/cuda/dflash_context.rs:165-172 | mistralrs-core/src/cuda/dflash_context.rs:294-300 \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 \u0060mistralrs-core/src/cuda/dflash_context.rs:165\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":"mistralrs-core/src/cuda/dflash_context.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"964cde99ff6d87b2df1ca79ee45eaa86b5ddbf030543594689c79c33d1e33308"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:3172-3179 | mistralrs-core/src/cuda/gdn.rs:3182-3189 \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 \u0060mistralrs-core/src/cuda/gdn.rs:3172\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":3172}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e43c6889eae2b19b671acf265f838cdc5fa1fa87a656c1601c1db8e4b9a4fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/decision.rs:87-94 | mistralrs-core/src/decision.rs:100-107 \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 \u0060mistralrs-core/src/decision.rs:87\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":"mistralrs-core/src/decision.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc761345933f51d71478006a44d6f4b2bae8fd7e5b971c0b36cb65be37cc927"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/diffusion_models/t5/mod.rs:525-532 | mistralrs-core/src/diffusion_models/t5/mod.rs:599-606 \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 \u0060mistralrs-core/src/diffusion_models/t5/mod.rs:525\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":"mistralrs-core/src/diffusion_models/t5/mod.rs"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"a08be1c8f1d667bc350f2b53e005a6a903a8387b5f62c02ae36cef1fa260d7fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/gdn/layer.rs:213-220 | mistralrs-core/src/gdn/layer.rs:336-343 \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 \u0060mistralrs-core/src/gdn/layer.rs:213\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":"mistralrs-core/src/gdn/layer.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ca43cb40b073bd68a4db578467530e246973f342a9c1721fb467d8df010c83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/gguf/normal_config.rs:1640-1647 | mistralrs-core/src/gguf/normal_config.rs:2376-2383 \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 \u0060mistralrs-core/src/gguf/normal_config.rs:1640\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":"mistralrs-core/src/gguf/normal_config.rs"},"region":{"startLine":1640}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2a9e427665d5194aba27985b344280fbec2437b8fac2f0cb45dc46a53198dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/kv_cache/hybrid_cache.rs:1204-1211 | mistralrs-core/src/kv_cache/hybrid_cache.rs:2064-2071 \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":"mistralrs-core/src/kv_cache/hybrid_cache.rs"},"region":{"startLine":1204}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff453d44181f467ae5ae3efc944c13d4a68f46f3ec62449f174ec0ec754e459"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/kv_cache/hybrid_cache.rs:1271-1278 | mistralrs-core/src/kv_cache/hybrid_cache.rs:2128-2135 \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 \u0060mistralrs-core/src/kv_cache/hybrid_cache.rs:1271\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":"mistralrs-core/src/kv_cache/hybrid_cache.rs"},"region":{"startLine":1271}}}],"partialFingerprints":{"codehealthFindingId/v1":"8804e1df975e2c3e95109f73bab8591041fbe9edc3ad448d932d0a5495fa0492"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/kv_cache/hybrid_cache.rs:1800-1807 | mistralrs-core/src/speculative/gdn_transitions.rs:165-172 \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 \u0060mistralrs-core/src/kv_cache/hybrid_cache.rs:1800\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":"mistralrs-core/src/kv_cache/hybrid_cache.rs"},"region":{"startLine":1800}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c736e3477b97c6f1caf78c75b8e3a3b7414a6add277eb7bf4269ba4c006631"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/layers.rs:1633-1640 | mistralrs-core/src/layers.rs:1944-1951 \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 \u0060mistralrs-core/src/layers.rs:1633\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":"mistralrs-core/src/layers.rs"},"region":{"startLine":1633}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ffda9ce12fcf8dbb0f09ca0388d5f370449f2fc9dde8e8ba57ebca110f970a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/lora/loralinear.rs:134-143 | mistralrs-core/src/lora/qloralinear.rs:179-188 \u2014 before extracting anything, compare \u0060mistralrs-core/src/lora/loralinear.rs\u0060 and \u0060mistralrs-core/src/lora/qloralinear.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 151 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. 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":"mistralrs-core/src/lora/loralinear.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"71d98068c74d0e412a612b28ed5479d64618c0fd7a40d1ac67106e4980408a70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/metal/gdn.rs:134-142 | mistralrs-core/src/metal/ssm.rs:95-103 \u2014 before extracting anything, compare \u0060mistralrs-core/src/metal/gdn.rs\u0060 and \u0060mistralrs-core/src/metal/ssm.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 68 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. 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":"mistralrs-core/src/metal/gdn.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e7a02275bef56ca940a6a837af2023515ee8c41ee1c8bd953e0a9e5299ebc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/metal/gdn.rs:319-326 | mistralrs-core/src/metal/gdn.rs:980-987 \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":"mistralrs-core/src/metal/gdn.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc1b0cf207ec46e425460000ccbb562530dd62744f5422d9da88a7bc9aadf41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/ops.rs:596-603 | mistralrs-core/src/ops.rs:758-765 \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 \u0060mistralrs-core/src/ops.rs:596\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"463ad8a40832d4702e2e05025e802667042a5fcff87facdc93d5e70524c96885"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/ops.rs:2049-2056 | mistralrs-core/src/ops.rs:2182-2189 \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":"mistralrs-core/src/ops.rs"},"region":{"startLine":2049}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b32e3b611fbed140203c968ec4fc7133aee841d0b5f3b4bdf455cee2d71af0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20138 lines \u00D7 5): mistralrs-core/src/ops.rs:2211-2214 | mistralrs-core/src/ops.rs:3947-3954 | mistralrs-core/src/ops.rs:4074-4081 | mistralrs-flash-attn/src/flash.rs:168-171 | mistralrs-flash-attn/src/flash.rs:738-741 \u2014 there are 5 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 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060mistralrs-core/src/ops.rs:3947\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, \u0060mistralrs-core/src/ops.rs:2214\u0060 calls \u0060device_ptr\u0060 and \u0060mistralrs-flash-attn/src/flash.rs:171\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":2211}}}],"partialFingerprints":{"codehealthFindingId/v1":"10579d220008351f7818d825e5f2e86904dc0a540b014f8c1be8c8704d8abaf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/ops.rs:7036-7043 | mistralrs-core/src/ops.rs:7092-7099 \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 \u0060mistralrs-core/src/ops.rs:7036\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":7036}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f34b2c0d568a5d8496b05eb2ee10729b1e39f45e89b7676a93abb9ceffc6f42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/paged_attention/cache_engine.rs:457-464 | mistralrs-core/src/paged_attention/cache_engine.rs:495-502 \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 \u0060mistralrs-core/src/paged_attention/cache_engine.rs:457\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":"mistralrs-core/src/paged_attention/cache_engine.rs"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"a19428947b5ff7edebdd2334ff908d8f9623a6a422e5bbb10027cedd6d8f1fab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/pipeline/chat_template.rs:511-518 | mistralrs-core/src/pipeline/chat_template.rs:582-589 \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 \u0060mistralrs-core/src/pipeline/chat_template.rs:511\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":"mistralrs-core/src/pipeline/chat_template.rs"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b8f80b3283fc32af211d636cbd53205ed5cdd23720b4951f5dfb9e1c289d54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/pipeline/hf.rs:655-662 | mistralrs-core/src/pipeline/hf.rs:679-686 \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":"mistralrs-core/src/pipeline/hf.rs"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"055e1fce39db55812ddccabc37bbf5531e7bc68dfb005d6000f5e8b0c3dd0b14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1308-1315 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4927-4934 \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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1308\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1308}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c689df3e248f4df918511fd23c2f38bc9f566bf123802758e1b7bceabec1f22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6502-6509 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6781-6788 \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 \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6502\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":"mistralrs-core/src/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":6502}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e0863550a417dbbcf6130680ea531d0a21d43689719f22db38d16e23b7978a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2761-2768 | mistralrs-core/src/pipeline/normal.rs:2325-2332 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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. 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2761}}}],"partialFingerprints":{"codehealthFindingId/v1":"b68f0168f264d5758b5cf5c1a64ac44a53bf3ff8c61d5d08ab74a48467cbdab7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/reasoning_parsers/harmony.rs:349-356 | mistralrs-core/src/reasoning_parsers/harmony.rs:388-395 \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":"mistralrs-core/src/reasoning_parsers/harmony.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"9631ce51902bd9c6353ed2eddfdf4ba0f354b653ad6ecbc176301efe15003598"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/utils/memory_usage.rs:247-254 | mistralrs-core/src/utils/memory_usage.rs:281-288 \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":"mistralrs-core/src/utils/memory_usage.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"373b6eb08fdbbefadf3a1780cff551e0e9c52ef02bfa9cf201f824d35f3d9779"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/vision_models/diffusion_gemma/mod.rs:282-289 | mistralrs-core/src/vision_models/gemma4/mod.rs:371-378 \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":"mistralrs-core/src/vision_models/diffusion_gemma/mod.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b6741cfbeaad7411a2b2aed5b9877514d166d542b842840f0dd5685daff6c50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:247-256 | mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:512-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:247\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":"mistralrs-core/src/vision_models/gemma4/inputs_processor.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d232c9fe532a7e3b01c6b2abf920aaa1cd2e4f717c082f97c23fc9fee4d760f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/mod.rs:365-372 | mistralrs-core/src/vision_models/gemma4/mod.rs:677-684 \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":"mistralrs-core/src/vision_models/gemma4/mod.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b19c3548291e728297f8aee6f41d9c8704b3835b45e00477e70ecf2faaf4d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/vision_models/grid_processor.rs:452-459 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:235-242 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 1008 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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e7d307c8af031b389a683658673b6aeac82e2ef1748f020e73a789fa1e471ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/vision_models/grid_processor.rs:587-594 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:373-380 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 1008 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:587\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"164e40a5b0a8c5730cbaec60f09b10dd90eee521a51bf537e3897f456f93036f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/vision_models/grid_processor.rs:641-654 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:608-621 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 1008 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:641\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c03d99c090dc3155739aa47b81687e27e9de52fca3fe7e367f87aaed293c9d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/vision_models/idefics2/mod.rs:1274-1281 | mistralrs-core/src/vision_models/llama4/mod.rs:170-177 \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 \u0060mistralrs-core/src/vision_models/idefics2/mod.rs:1274\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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":1274}}}],"partialFingerprints":{"codehealthFindingId/v1":"677e2dbb57a868f0593a877410c735e437d75f10b0970c99e83ce271529863ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/vision_models/idefics3/vision.rs:472-479 | mistralrs-core/src/vision_models/siglip.rs:505-512 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics3/vision.rs\u0060 and \u0060mistralrs-core/src/vision_models/siglip.rs\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 276 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":"mistralrs-core/src/vision_models/idefics3/vision.rs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f8864d8062d035714d80b62f6d73c96972bd9cc07da26d5945dc13cb48dbbc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/vision_models/lfm3_d1/mod.rs:168-175 | mistralrs-core/src/vision_models/lfm3_omni/mod.rs:375-382 \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 \u0060mistralrs-core/src/vision_models/lfm3_d1/mod.rs: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":"mistralrs-core/src/vision_models/lfm3_d1/mod.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"d911e2ba600d9a2e47c61a2c82c2f944f77c871a829a27b0c1854dd494242843"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2vl/mod.rs:63-70 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:593-600 \u2014 \u0060mistralrs-core/src/vision_models/qwen2vl/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_vl/mod.rs\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 55 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 \u0060mistralrs-core/src/vision_models/qwen2vl/mod.rs: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":"mistralrs-core/src/vision_models/qwen2vl/mod.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eb02fd2d19183567b2dcbf8ecf86d2696a104072e9517db2e720b873c23d277"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/vision_models/voxtral/encoder.rs:243-250 | mistralrs-core/src/vision_models/voxtral/encoder.rs:255-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 \u0060mistralrs-core/src/vision_models/voxtral/encoder.rs:243\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":"mistralrs-core/src/vision_models/voxtral/encoder.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"698db171335a060c4eb774ea30390bc010d1cec47b401d407e5e72c815e813ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (1\u20138 lines \u00D7 7): mistralrs-core/src/xlora_models/gemma.rs:278-285 | mistralrs-core/src/xlora_models/llama.rs:100-101 | mistralrs-core/src/xlora_models/mistral.rs:267-268 | mistralrs-core/src/xlora_models/mixtral.rs:180-181 | mistralrs-core/src/xlora_models/phi2.rs:271-275 | mistralrs-core/src/xlora_models/quantized_llama.rs:236-236 | mistralrs-core/src/xlora_models/starcoder2.rs:254-255 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/llama.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 163 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 \u0060mistralrs-core/src/xlora_models/gemma.rs:278\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, \u0060mistralrs-core/src/xlora_models/gemma.rs:278\u0060 calls \u0060forward\u0060 and \u0060mistralrs-core/src/xlora_models/llama.rs:100\u0060 does not \u2014 after which the two agree again for 5 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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"9414608fdcc160c779a7d42d03bc1ab78292f8832878714ba534cda7152ac702"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/xlora_models/gemma2.rs:582-589 | mistralrs-core/src/xlora_models/starcoder2.rs:527-534 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 and \u0060mistralrs-core/src/xlora_models/starcoder2.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 400 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 \u0060mistralrs-core/src/xlora_models/gemma2.rs:582\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":"mistralrs-core/src/xlora_models/gemma2.rs"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"8625096fbc9ab4892bb90f43222a74d7ff25c6f5e79911dc80d729d3eaac55e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/xlora_models/llama.rs:418-425 | mistralrs-core/src/xlora_models/phi2.rs:559-566 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/llama.rs\u0060 and \u0060mistralrs-core/src/xlora_models/phi2.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 184 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 \u0060mistralrs-core/src/xlora_models/llama.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/xlora_models/llama.rs"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"4657bf9fade993783aaf360a66f808cc6e37efff76a01d14c1e4813bcc5b1e05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/bitsandbytes/op.rs:156-163 | mistralrs-quant/src/bitsandbytes/op.rs:179-186 \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 \u0060mistralrs-quant/src/bitsandbytes/op.rs:156\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":"mistralrs-quant/src/bitsandbytes/op.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"37000d88f99172efedbbd32bb817104627e6fd561b1c4d57fa571ee074bd33da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/deepgemm.rs:612-619 | mistralrs-quant/src/blockwise_fp8/ops.rs:2052-2059 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/blockwise_fp8/deepgemm.rs\u0060 and \u0060mistralrs-quant/src/blockwise_fp8/ops.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 65 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":"mistralrs-quant/src/blockwise_fp8/deepgemm.rs"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"12216020d298ea9efcbc745cbcff3ced63c941154a5adb9ba7f74e23ccd9e03e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/mma.rs:194-201 | mistralrs-quant/src/blockwise_fp8/mma.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/blockwise_fp8/mma.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d5b287e14a668a57c33f28aca8d69081cf633071cc306efa3ea4f2ad74c1c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:1070-1077 | mistralrs-quant/src/mxfp4/ops.rs:68-75 \u2014 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs\u0060 and \u0060mistralrs-quant/src/mxfp4/ops.rs\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 59 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 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:1070\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"d442e079b691e7258155d9371604ec5e956a1b56c729e8fdff08dd52b3f12723"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:2151-2158 | mistralrs-quant/src/blockwise_fp8/ops.rs:2161-2168 \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 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:2151\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":2151}}}],"partialFingerprints":{"codehealthFindingId/v1":"1597d5bcad2de415e5fca677dfecf39f7f4e87f5f19e2b915b770827a49df675"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:399-406 | mistralrs-quant/src/cutile/fp8_w8a8.rs:459-466 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs\u0060 and \u0060mistralrs-quant/src/cutile/fp8_w8a8.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 212 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":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"67016ae295ffa3142bbcb74a02546405f26f30cd75c3267a37b6e5de5ccae9c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:585-593 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:484-491 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs\u0060 and \u0060mistralrs-quant/src/cutile/nvfp4_gemv.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 31 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 \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs:585\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":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b189b66d5e57a23b8b3f943cc9240434eb644d86a6d42fc0b32e8f20e2dcbed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20138 lines \u00D7 4): mistralrs-quant/src/cutile/nvfp4_gemv.rs:127-134 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:231-238 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:147-150 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:250-253 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/nvfp4_gemv.rs\u0060 and \u0060mistralrs-quant/src/cutile/nvfp4_matmul.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 98 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 \u0060mistralrs-quant/src/cutile/nvfp4_gemv.rs:127\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":"mistralrs-quant/src/cutile/nvfp4_gemv.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f2838b50a17feb8ec0b5467d09ab3ce08b02d34726b569fb4c63bea6d8fbfeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/cutile/routed_lora.rs:1609-1616 | mistralrs-quant/src/cutile/routed_lora.rs:1676-1683 \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":"mistralrs-quant/src/cutile/routed_lora.rs"},"region":{"startLine":1609}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8adaa587e3fce7ea264de4919c5b195294462eb289e5ca50fae5bfa15facac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmq.rs:928-935 | mistralrs-quant/src/gguf/fast_mmq.rs:1398-1405 \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 after the matched lines, \u0060mistralrs-quant/src/gguf/fast_mmq.rs:1407\u0060 calls \u0060slice_ptr\u0060 and \u0060mistralrs-quant/src/gguf/fast_mmq.rs:938\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":"mistralrs-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":928}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b3207930594f2b60a086b56101ac83a5f27b6226e433adc1dc5e37edb55661c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/hqq/mod.rs:385-394 | mistralrs-quant/src/hqq/mod.rs:542-551 \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 \u0060mistralrs-quant/src/hqq/mod.rs: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":"mistralrs-quant/src/hqq/mod.rs"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f6708c754e60a8fbe843d8ee22841ff73fa7d942926b0bcd0f9689cf2b51c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/lib.rs:709-716 | mistralrs-quant/src/lib.rs:728-735 \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":"mistralrs-quant/src/lib.rs"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cbe4261be32102861cac9fe10f69db87cad95a9214d54d278c77b074411d159"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/lora/dynamic/moe_cuda.rs:811-818 | mistralrs-quant/src/lora/dynamic/moe_cuda.rs:933-940 \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 \u0060launch\u0060 to \u0060RoutedLoraDirectLaunch\u0060 in one and \u0060RoutedLoraGroupedLaunch\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":"mistralrs-quant/src/lora/dynamic/moe_cuda.rs"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ae8674f7b823c27df631a230dbac5c72c45fd1e95d3c2fb5dbdde8b829e3d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/metal_kernels/mod.rs:4973-4980 | mistralrs-quant/src/metal_kernels/mod.rs:5195-5202 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:4973\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, \u0060mistralrs-quant/src/metal_kernels/mod.rs:5203\u0060 calls \u0060set_input_buffer\u0060, \u0060Some\u0060, \u0060set_output_buffer\u0060 and \u0060mistralrs-quant/src/metal_kernels/mod.rs:4981\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":4973}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf18f08525b799e05ba16c47dc2cf6e3c7ffd7fd7af9180ec15a49813bcfa6c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/mxfp4/metal_ops.rs:61-68 | mistralrs-quant/src/mxfp4/metal_ops.rs:264-271 \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 \u0060mistralrs-quant/src/mxfp4/metal_ops.rs:61\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, \u0060mistralrs-quant/src/mxfp4/metal_ops.rs:263\u0060 calls \u0060storage_and_layout\u0060 and \u0060mistralrs-quant/src/mxfp4/metal_ops.rs:59\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":"mistralrs-quant/src/mxfp4/metal_ops.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb89780adedcfea46ebfd94d16ae857efe7e7df38f7e0f82fcc3f8a9a763bec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/mxfp4/ops.rs:93-100 | mistralrs-quant/src/mxfp4/ops.rs:448-455 \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 \u0060mistralrs-quant/src/mxfp4/ops.rs: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060mistralrs-quant/src/mxfp4/ops.rs:102\u0060 calls \u0060layout\u0060 and \u0060mistralrs-quant/src/mxfp4/ops.rs:457\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":"mistralrs-quant/src/mxfp4/ops.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"d09691a09bd75c93a24918905ce72e4dfa314a40acc4e82526cf51a709e5dc09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/mxfp4/ops.rs:154-161 | mistralrs-quant/src/mxfp4/ops.rs:516-523 \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 \u0060mistralrs-quant/src/mxfp4/ops.rs:154\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, \u0060mistralrs-quant/src/mxfp4/ops.rs:163\u0060 calls \u0060layout\u0060 and \u0060mistralrs-quant/src/mxfp4/ops.rs:525\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":"mistralrs-quant/src/mxfp4/ops.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"b455a354506eec5a1da6dc14a655ee1220ce564e17d926aa3dbdae240d406e90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/mxfp4/ops.rs:451-458 | mistralrs-quant/src/mxfp4/ops.rs:519-526 \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 \u0060mistralrs-quant/src/mxfp4/ops.rs:451\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":"mistralrs-quant/src/mxfp4/ops.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"01677e037fd17c28511be89b425d5fd255e7db9d05745ced145aba97be9a956e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/nvfp4/decode.rs:164-171 | mistralrs-quant/src/nvfp4/portable.rs:349-356 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/nvfp4/decode.rs\u0060 and \u0060mistralrs-quant/src/nvfp4/portable.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 48 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 \u0060mistralrs-quant/src/nvfp4/decode.rs:164\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, \u0060mistralrs-quant/src/nvfp4/decode.rs:173\u0060 calls \u0060$kernel\u0060 and \u0060mistralrs-quant/src/nvfp4/portable.rs:358\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":"mistralrs-quant/src/nvfp4/decode.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a11e170c1cb74505b6e39784b489b0249aee843c67154e06cda65d0a4113ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/rotary/mod.rs:219-226 | mistralrs-quant/src/rotary/mod.rs:230-237 \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 \u0060mistralrs-quant/src/rotary/mod.rs:219\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":"mistralrs-quant/src/rotary/mod.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"51435e1a7e4326d5f162db304a50b76795643484a5884919040a814f3409bbb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/routed_moe/cuda.rs:226-233 | mistralrs-quant/src/routed_moe/cuda.rs:304-311 \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":"mistralrs-quant/src/routed_moe/cuda.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce3d50faa9676edb399f8a76fa5c0bca3361c196193827b1d1e27cb5b3c958b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/scalar_fp8/ops.rs:194-201 | mistralrs-quant/src/scalar_fp8/ops.rs:203-210 \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":"mistralrs-quant/src/scalar_fp8/ops.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4689d52e593c93176617bae8bb7d7e6a4dd16ca3e44e08964248cdb4a9b6f62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/utils/ops.rs:70-77 | mistralrs-quant/src/utils/ops.rs:711-718 \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 \u0060mistralrs-quant/src/utils/ops.rs:70\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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"beab9d3f7361b3cd3b318637b78978181e56587dc2c76b76f3f637015b410e98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/utils/ops.rs:2230-2237 | mistralrs-quant/src/utils/ops.rs:2454-2461 \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 \u0060mistralrs-quant/src/utils/ops.rs:2230\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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":2230}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d648f371dd05013c80c7bd459661e76736eb9752517e1db77293afca14418f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-sandbox/src/linux/namespaces.rs:82-89 | mistralrs-sandbox/src/linux/namespaces.rs:111-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 \u0060mistralrs-sandbox/src/linux/namespaces.rs:82\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":"mistralrs-sandbox/src/linux/namespaces.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"07fae908cc8a92da503a37ebfa7441801dd24ea1e61823a1dfe01df71aaed852"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-server-core/src/chat_completion.rs:1394-1401 | mistralrs-server-core/src/chat_completion.rs:1405-1412 \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":"mistralrs-server-core/src/chat_completion.rs"},"region":{"startLine":1394}}}],"partialFingerprints":{"codehealthFindingId/v1":"478a842f9ee39eb574e6fd57caceabfcc4d892ec4ce738fc6c926ccaa14513f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): mistralrs-server-core/src/openai.rs:139-146 | mistralrs-server-core/src/openai.rs:158-164 \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 \u0060mistralrs-server-core/src/openai.rs:139\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, \u0060mistralrs-server-core/src/openai.rs:164\u0060 calls \u0060insert\u0060, \u0060to_string\u0060 and \u0060mistralrs-server-core/src/openai.rs:146\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":"mistralrs-server-core/src/openai.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb91f3a56a839c437961d03630354ea67788aa069b8bd526489d341c1b4e5d58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-server-core/src/responses_types/items.rs:26-33 | mistralrs-server-core/src/responses_types/items.rs:880-887 \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 \u0060mistralrs-server-core/src/responses_types/items.rs: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":"mistralrs-server-core/src/responses_types/items.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"52ac7b43e708de4a76dffc1d6cf1b133e2f8fc3ac9965e6f3ece67d83f56531d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 38): mistralrs-core/src/models/flint.rs:353-359 | mistralrs-core/src/models/gemma.rs:173-179 | mistralrs-core/src/models/gemma2.rs:214-220 | mistralrs-core/src/models/glm4.rs:216-222 | mistralrs-core/src/models/glm4_moe.rs:278-284 | mistralrs-core/src/models/gpt_oss.rs:254-260 | mistralrs-core/src/models/hunyuan_v1_dense.rs:197-203 | mistralrs-core/src/models/hunyuan_v1_moe.rs:380-386 | mistralrs-core/src/models/lfm2.rs:486-492 | mistralrs-core/src/models/lfm3.rs:547-553 | mistralrs-core/src/models/mistral.rs:212-218 | mistralrs-core/src/models/mixtral.rs:157-163 | mistralrs-core/src/models/phi2.rs:269-275 | mistralrs-core/src/models/phi3.rs:157-163 | mistralrs-core/src/models/phi3_5_moe.rs:184-190 | mistralrs-core/src/models/qwen2.rs:246-252 | mistralrs-core/src/models/qwen3.rs:198-204 | mistralrs-core/src/models/qwen3_moe.rs:201-207 | mistralrs-core/src/models/starcoder2.rs:233-239 | mistralrs-core/src/vision_models/gemma3/text.rs:188-194 | mistralrs-core/src/vision_models/gemma4/text.rs:806-812 | mistralrs-core/src/vision_models/idefics2/mod.rs:827-833 | mistralrs-core/src/vision_models/mllama/text.rs:168-174 | mistralrs-core/src/vision_models/phi3/mod.rs:249-255 | mistralrs-core/src/vision_models/phi4/mod.rs:118-124 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:207-213 | mistralrs-core/src/vision_models/qwen2vl/text.rs:208-214 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:200-206 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:306-312 | mistralrs-core/src/vision_models/voxtral/encoder.rs:87-93 | mistralrs-core/src/vision_models/voxtral/mod.rs:133-139 | mistralrs-core/src/xlora_models/gemma.rs:254-260 | mistralrs-core/src/xlora_models/gemma2.rs:259-265 | mistralrs-core/src/xlora_models/mistral.rs:244-250 | mistralrs-core/src/xlora_models/mixtral.rs:157-163 | mistralrs-core/src/xlora_models/phi2.rs:247-253 | mistralrs-core/src/xlora_models/phi3.rs:132-138 | mistralrs-core/src/xlora_models/starcoder2.rs:231-237 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/gemma.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 152 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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"cafd6ed4eba1e43de227dd67854f414d166846aa2613910e6d80977ad903ff38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 34): mistralrs-core/src/models/flint.rs:443-451 | mistralrs-core/src/models/gemma.rs:238-246 | mistralrs-core/src/models/gemma2.rs:286-294 | mistralrs-core/src/models/glm4.rs:285-293 | mistralrs-core/src/models/glm4_moe.rs:350-358 | mistralrs-core/src/models/gpt_oss.rs:315-323 | mistralrs-core/src/models/granite.rs:1611-1619 | mistralrs-core/src/models/hunyuan_v1_dense.rs:261-269 | mistralrs-core/src/models/hunyuan_v1_moe.rs:447-455 | mistralrs-core/src/models/llama.rs:146-154 | mistralrs-core/src/models/mistral.rs:286-294 | mistralrs-core/src/models/mixtral.rs:222-230 | mistralrs-core/src/models/phi2.rs:334-344 | mistralrs-core/src/models/phi3.rs:225-233 | mistralrs-core/src/models/phi3_5_moe.rs:252-260 | mistralrs-core/src/models/qwen2.rs:316-324 | mistralrs-core/src/models/qwen3.rs:271-279 | mistralrs-core/src/models/qwen3_moe.rs:274-282 | mistralrs-core/src/models/qwen3_next.rs:354-362 | mistralrs-core/src/models/smollm3.rs:163-171 | mistralrs-core/src/models/starcoder2.rs:298-306 | mistralrs-core/src/vision_models/llama4/text.rs:518-526 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:121-129 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:295-303 | mistralrs-core/src/vision_models/muse_glimmer/text.rs:309-319 | mistralrs-core/src/vision_models/phi3/mod.rs:316-324 | mistralrs-core/src/vision_models/phi4/mod.rs:185-193 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:285-291 | mistralrs-core/src/vision_models/qwen2vl/text.rs:286-292 | mistralrs-core/src/vision_models/qwen3_5/text.rs:404-412 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:269-277 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:276-284 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:379-387 | mistralrs-core/src/vision_models/voxtral/mod.rs:197-205 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/gemma.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 152 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 \u0060mistralrs-core/src/models/flint.rs:443\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, \u0060mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:283\u0060 calls \u0060to_dtype\u0060, \u0060dtype\u0060 and \u0060mistralrs-core/src/models/flint.rs:443\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb149100fea304fde8794e4944b6c421ecb0f20a1934a8c7ddef4868ccce149"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 29): mistralrs-core/src/models/flint.rs:448-454 | mistralrs-core/src/models/gemma.rs:243-249 | mistralrs-core/src/models/gemma2.rs:291-297 | mistralrs-core/src/models/glm4.rs:290-296 | mistralrs-core/src/models/glm4_moe.rs:355-361 | mistralrs-core/src/models/gpt_oss.rs:320-326 | mistralrs-core/src/models/granite.rs:1616-1622 | mistralrs-core/src/models/hunyuan_v1_dense.rs:266-272 | mistralrs-core/src/models/hunyuan_v1_moe.rs:452-458 | mistralrs-core/src/models/llama.rs:151-157 | mistralrs-core/src/models/mistral.rs:291-297 | mistralrs-core/src/models/mixtral.rs:227-233 | mistralrs-core/src/models/phi3.rs:230-236 | mistralrs-core/src/models/phi3_5_moe.rs:257-263 | mistralrs-core/src/models/qwen2.rs:321-327 | mistralrs-core/src/models/qwen3.rs:276-282 | mistralrs-core/src/models/qwen3_moe.rs:279-285 | mistralrs-core/src/models/smollm3.rs:168-174 | mistralrs-core/src/models/starcoder2.rs:303-309 | mistralrs-core/src/vision_models/gemma3/text.rs:296-302 | mistralrs-core/src/vision_models/gemma4/text.rs:764-770 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:126-132 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:300-306 | mistralrs-core/src/vision_models/phi3/mod.rs:321-327 | mistralrs-core/src/vision_models/phi4/mod.rs:190-196 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:288-294 | mistralrs-core/src/vision_models/qwen2vl/text.rs:289-295 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:281-287 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:384-390 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/gemma.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 152 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 \u0060mistralrs-core/src/models/flint.rs:448\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda5a4750366c3f7eb3bd7527ccd173a703f71526bc863c2bdbcf0e7b2884be6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 16): mistralrs-core/src/models/gemma.rs:186-191 | mistralrs-core/src/models/gemma2.rs:227-232 | mistralrs-core/src/models/gpt_oss.rs:267-272 | mistralrs-core/src/models/hunyuan_v1_dense.rs:210-215 | mistralrs-core/src/models/hunyuan_v1_moe.rs:393-398 | mistralrs-core/src/models/lfm2.rs:499-504 | mistralrs-core/src/models/mistral.rs:225-230 | mistralrs-core/src/models/mixtral.rs:170-175 | mistralrs-core/src/models/phi2.rs:282-287 | mistralrs-core/src/models/qwen2.rs:259-264 | mistralrs-core/src/models/qwen3.rs:211-216 | mistralrs-core/src/models/qwen3_moe.rs:214-219 | mistralrs-core/src/models/qwen3_next.rs:297-302 | mistralrs-core/src/models/starcoder2.rs:246-251 | mistralrs-core/src/vision_models/mllama/text.rs:181-187 | mistralrs-core/src/vision_models/voxtral/mod.rs:146-152 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 707 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 \u0060mistralrs-core/src/models/gemma.rs:186\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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a671e821452a033dad01897da357984272584d027b020221becaf5add1b5627"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 15): mistralrs-core/src/models/deepseek2.rs:820-826 | mistralrs-core/src/models/deepseek3.rs:883-889 | mistralrs-core/src/models/glm4_moe.rs:720-726 | mistralrs-core/src/models/glm4_moe_lite.rs:830-836 | mistralrs-core/src/models/mixtral.rs:418-424 | mistralrs-core/src/models/phi3.rs:420-426 | mistralrs-core/src/models/qwen2.rs:445-451 | mistralrs-core/src/vision_models/gemma3/text.rs:446-452 | mistralrs-core/src/vision_models/gemma3n/text.rs:1340-1346 | mistralrs-core/src/vision_models/gemma4/text.rs:1651-1659 | mistralrs-core/src/vision_models/muse_glimmer/text.rs:441-447 | mistralrs-core/src/vision_models/phi3/mod.rs:1215-1221 | mistralrs-core/src/vision_models/phi4/mod.rs:336-342 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:410-416 | mistralrs-core/src/vision_models/qwen2vl/text.rs:411-417 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 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, \u0060mistralrs-core/src/vision_models/gemma3/text.rs:444\u0060 calls \u0060sqrt\u0060 and \u0060mistralrs-core/src/models/phi3.rs:417\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"1560e395bd1cfeb812cbdd96fee77ca3a0f7d8d6e1411f0d382ce0b47e571e86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 13): mistralrs-core/src/embedding_models/qwen3_embedding.rs:477-483 | mistralrs-core/src/models/deepseek2.rs:989-996 | mistralrs-core/src/models/deepseek2.rs:1029-1036 | mistralrs-core/src/models/deepseek3.rs:1052-1059 | mistralrs-core/src/models/deepseek3.rs:1093-1100 | mistralrs-core/src/models/flint.rs:989-995 | mistralrs-core/src/models/glm4_moe_lite.rs:1004-1011 | mistralrs-core/src/models/glm4_moe_lite.rs:1047-1054 | mistralrs-core/src/models/hunyuan_v1_dense.rs:581-587 | mistralrs-core/src/models/qwen3.rs:583-589 | mistralrs-core/src/models/qwen3_moe.rs:764-770 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:607-614 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:728-735 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/models/deepseek2.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43fa5b736ac4e12b4804db9ab0c958d4ce34433bbcfe9213974c48b06a02b2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 12): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1518-1524 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2541-2547 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2899-2905 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3253-3259 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3595-3601 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4322-4328 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5112-5118 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:812-818 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1256-1262 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1500-1506 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2183-2189 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5793-5799 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 445 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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1518\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1518}}}],"partialFingerprints":{"codehealthFindingId/v1":"af9b0bc609f20a937e5fc51b2c730dbcc8db2edb714fe986b78fcec705366475"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 10): mistralrs-core/src/models/deepseek2.rs:819-825 | mistralrs-core/src/models/deepseek3.rs:882-888 | mistralrs-core/src/models/glm4_moe.rs:719-725 | mistralrs-core/src/models/glm4_moe_lite.rs:829-835 | mistralrs-core/src/models/gpt_oss.rs:724-730 | mistralrs-core/src/models/mixtral.rs:417-423 | mistralrs-core/src/models/phi3.rs:419-425 | mistralrs-core/src/models/qwen2.rs:444-450 | mistralrs-core/src/vision_models/gemma3/text.rs:445-451 | mistralrs-core/src/vision_models/gemma3n/text.rs:1339-1345 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:819\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, \u0060mistralrs-core/src/vision_models/gemma3/text.rs:444\u0060 calls \u0060sqrt\u0060 and \u0060mistralrs-core/src/models/phi3.rs:417\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b802dfa63c5a2d58c4bcb533ae0488e20b69a78fff4cfa6e117796f5527ca9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 8): mistralrs-core/src/vision_models/qwen3_5/mod.rs:195-201 | mistralrs-core/src/vision_models/qwen3_5/mod.rs:258-264 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:178-184 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:241-247 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:702-708 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:779-785 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:148-154 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:225-231 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs\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 24 separate duplicated blocks between them, totalling at least 425 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 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs:195\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":"mistralrs-core/src/vision_models/qwen3_5/mod.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ef7f4cd74c3cdd59985cfce6e38f716fa84bc9f624652c8ca3d051a1ca9d314"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 7): mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:321-327 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:478-484 | mistralrs-core/src/vision_models/qwen3_5/mod.rs:398-404 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:383-389 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:967-973 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:413-419 | mistralrs-core/src/vision_models/qwen4_exp/mod.rs:378-384 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/mod.rs\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 396 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":"mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cacdb5dc3ffb14dea1e9b6bd11c8af905bf1fb61a08768b517d08492c443a2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20137 lines \u00D7 7): mistralrs-core/src/cuda/gated_add.rs:53-59 | mistralrs-core/src/cuda/rounded_rope.rs:67-73 | mistralrs-quant/src/cutile/fp8_w8a8.rs:521-527 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:904-910 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:304-310 | mistralrs-quant/src/embedding/packing.rs:28-31 | mistralrs-quant/src/nvfp4/portable.rs:301-307 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fp8_w8a8.rs\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe_fp8.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 83 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 \u0060mistralrs-core/src/cuda/gated_add.rs: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. 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, \u0060mistralrs-core/src/cuda/rounded_rope.rs:66\u0060 calls \u0060storage_and_layout\u0060 and \u0060mistralrs-core/src/cuda/gated_add.rs:52\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":"mistralrs-core/src/cuda/gated_add.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"1895d022f78801ab027825823b1f1a18f221623ff055cb03defa5ad926613ebb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): mistralrs-core/src/cuda/rounded_rope.rs:68-74 | mistralrs-quant/src/cutile/fp8_w8a8.rs:522-528 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:905-911 | mistralrs-quant/src/cutile/mxfp8_gemm.rs:524-530 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:305-311 | mistralrs-quant/src/nvfp4/portable.rs:302-308 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fp8_w8a8.rs\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe_fp8.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 83 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 \u0060mistralrs-core/src/cuda/rounded_rope.rs: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060mistralrs-quant/src/cutile/nvfp4_gemv.rs:302\u0060 calls \u0060storage_and_layout\u0060 and \u0060mistralrs-quant/src/cutile/fp8_w8a8.rs:519\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":"mistralrs-core/src/cuda/rounded_rope.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc7a8c8f16166c2db601dd5ddd833e26faac806b48050a4b8fafcd10fd1e973f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): mistralrs-core/src/xlora_models/gemma.rs:489-495 | mistralrs-core/src/xlora_models/gemma2.rs:519-525 | mistralrs-core/src/xlora_models/mistral.rs:485-491 | mistralrs-core/src/xlora_models/mixtral.rs:616-622 | mistralrs-core/src/xlora_models/phi2.rs:471-477 | mistralrs-core/src/xlora_models/starcoder2.rs:473-479 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 498 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 \u0060mistralrs-core/src/xlora_models/gemma.rs:489\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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12b368e4c5d95d61296a724d84f6d71248fe39f91a8b00673a3ce728ffb0f16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): mistralrs-quant/src/cutile/fp8_gemm.rs:340-346 | mistralrs-quant/src/cutile/fp8_w8a8.rs:524-530 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:907-913 | mistralrs-quant/src/cutile/mxfp8_gemm.rs:526-532 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:641-647 | mistralrs-quant/src/nvfp4/portable.rs:304-310 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fp8_gemm.rs\u0060 and \u0060mistralrs-quant/src/cutile/fp8_w8a8.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 88 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 \u0060mistralrs-quant/src/cutile/fp8_gemm.rs:340\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":"mistralrs-quant/src/cutile/fp8_gemm.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"49710f1704603b2df63ce9b29ad16233b4061e9587d66d48e1bc44b00cb54c2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): mistralrs-core/src/gdn/weights.rs:226-232 | mistralrs-core/src/gdn/weights.rs:255-261 | mistralrs-core/src/gdn/weights.rs:296-302 | mistralrs-core/src/layers.rs:3667-3673 | mistralrs-core/src/layers.rs:3729-3735 \u2014 there are 5 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 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060mistralrs-core/src/gdn/weights.rs:226\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":"mistralrs-core/src/gdn/weights.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bfa6c8b4cfd69ebd550cdfd30910f9e168b873e508cf501179daa054b1993f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): mistralrs-core/src/model_loader.rs:449-455 | mistralrs-core/src/model_loader.rs:498-504 | mistralrs-core/src/model_loader.rs:910-916 | mistralrs-core/src/toml_selector.rs:1194-1200 | mistralrs-core/src/toml_selector.rs:1230-1236 \u2014 before extracting anything, compare \u0060mistralrs-core/src/model_loader.rs\u0060 and \u0060mistralrs-core/src/toml_selector.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 199 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 \u0060mistralrs-core/src/model_loader.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/model_loader.rs"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"b361c44a7a1ce0be9830155f97c5693ea947529ad9ac6d0bfb6de7a583b2739b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): mistralrs-core/src/vision_models/gemma4/mod.rs:392-398 | mistralrs-core/src/vision_models/gemma4/mod.rs:568-574 | mistralrs-core/src/vision_models/gemma4/mod.rs:705-711 | mistralrs-core/src/vision_models/idefics3/mod.rs:230-236 | mistralrs-core/src/vision_models/mistral3/mod.rs:259-265 \u2014 there are 5 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 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060mistralrs-core/src/vision_models/gemma4/mod.rs:392\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":"mistralrs-core/src/vision_models/gemma4/mod.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"a67317d4161827ab956bce0bb1f5d0fc080e36d6f249735a1ec9d5568e6388ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): mistralrs-quant/src/hqq/hqq_op.rs:39-45 | mistralrs-quant/src/hqq/hqq_op.rs:148-154 | mistralrs-quant/src/hqq/hqq_op.rs:261-267 | mistralrs-quant/src/hqq/hqq_op.rs:378-384 | mistralrs-quant/src/hqq/hqq_op.rs:497-503 \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 \u0060mistralrs-quant/src/hqq/hqq_op.rs: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":"mistralrs-quant/src/hqq/hqq_op.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"788edd90a9215632284eff6aee56d967e076f615ed68a544576b86464dc964c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): mistralrs-core/src/ops.rs:1123-1130 | mistralrs-core/src/ops.rs:1352-1359 | mistralrs-core/src/ops.rs:2046-2053 | mistralrs-core/src/ops.rs:2179-2186 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060mistralrs-core/src/ops.rs:1120\u0060 calls \u0060try_from\u0060, \u0060map_err\u0060 and \u0060mistralrs-core/src/ops.rs:2043\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e1cc2d41a588e85acb0b5b2749887e6d1a48fc8f72453502e73bb531c73d32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): mistralrs-core/src/ops.rs:4473-4479 | mistralrs-core/src/ops.rs:5433-5439 | mistralrs-core/src/ops.rs:5705-5711 | mistralrs-core/src/ops.rs:6128-6134 \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 \u0060mistralrs-core/src/ops.rs:4473\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, \u0060mistralrs-core/src/ops.rs:5431\u0060 calls \u0060contiguous\u0060 and \u0060mistralrs-core/src/ops.rs:4470\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":4473}}}],"partialFingerprints":{"codehealthFindingId/v1":"1af8784633b4d1f35ad99a061e8549e2a0b52d1b9d7b3f83d5635b1d5de64e70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:530-536 | mistralrs-core/src/vision_models/qwen2vl/text.rs:532-538 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:517-523 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:638-644 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/text.rs\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 42 separate duplicated blocks between them, totalling at least 716 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, \u0060mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:538\u0060 calls \u0060clone\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_vl/text.rs:524\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":"mistralrs-core/src/vision_models/qwen2_5_vl/text.rs"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce657ff83598990906ed63dbf17719057ba59fb21542c7c0b021ed1a99bf5ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): mistralrs-core/src/vision_models/qwen3_5/text.rs:1467-1473 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:838-844 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:570-576 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:691-697 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs\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 26 separate duplicated blocks between them, totalling at least 469 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 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs:1467\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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4016c95bc23676ffc9f5aae4d56a56a5d854edc7dd846c594937e65278db473"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): mistralrs-core/src/vision_models/qwen3_5/text.rs:1719-1725 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:943-949 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:559-565 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:680-686 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs\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 26 separate duplicated blocks between them, totalling at least 469 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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":1719}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4af0da626989952204eb72e3cd9640354713b4c225a4a1bf53c11419b290f76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): mistralrs-quant/src/blockwise_fp8/ops.rs:1069-1075 | mistralrs-quant/src/blockwise_fp8/ops.rs:1248-1254 | mistralrs-quant/src/mxfp4/ops.rs:67-73 | mistralrs-quant/src/mxfp4/ops.rs:416-422 \u2014 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs\u0060 and \u0060mistralrs-quant/src/mxfp4/ops.rs\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 59 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, \u0060mistralrs-quant/src/mxfp4/ops.rs:423\u0060 calls \u0060storage_and_layout\u0060 and \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:1077\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d7b3583ff150b90605f81eea04fc121cdf9184d4c8f0082a854ed09b6a827b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): mistralrs-quant/src/mxfp4/ops.rs:95-101 | mistralrs-quant/src/mxfp4/ops.rs:156-162 | mistralrs-quant/src/mxfp4/ops.rs:450-456 | mistralrs-quant/src/mxfp4/ops.rs:518-524 \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 \u0060mistralrs-quant/src/mxfp4/ops.rs:95\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, \u0060mistralrs-quant/src/mxfp4/ops.rs:102\u0060 calls \u0060layout\u0060 and \u0060mistralrs-quant/src/mxfp4/ops.rs:457\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":"mistralrs-quant/src/mxfp4/ops.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee1d667c5e949f53889bb52fe7c93e7c7ac8e09c9fc7712b35930844000463d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 3): mistralrs-core/src/attention/backends/cpu/full.rs:516-526 | mistralrs-core/src/attention/backends/cpu/full.rs:623-635 | mistralrs-core/src/attention/backends/cpu/single_q.rs:315-325 \u2014 before extracting anything, compare \u0060mistralrs-core/src/attention/backends/cpu/full.rs\u0060 and \u0060mistralrs-core/src/attention/backends/cpu/single_q.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 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 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":"mistralrs-core/src/attention/backends/cpu/full.rs"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"badfa69c6b98ccdf952424bf1793404e83e8c44e8ff8d6ec752c5b046bfa584c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-core/src/cuda/gdn.rs:4261-4267 | mistralrs-core/src/cuda/gdn.rs:4722-4728 | mistralrs-core/src/cuda/gdn.rs:6150-6156 \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 \u0060mistralrs-core/src/cuda/gdn.rs:4261\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":4261}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c7651d9903fdacd4e5db5aa21b9656c21315e6bb49c6cfbb8ddcaed2012d38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-core/src/models/gemma2.rs:590-596 | mistralrs-core/src/vision_models/gemma3/text.rs:761-767 | mistralrs-core/src/vision_models/gemma3n/text.rs:1929-1935 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma2.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma3/text.rs\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 411 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 \u0060mistralrs-core/src/models/gemma2.rs:590\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":"mistralrs-core/src/models/gemma2.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b24155acaa0c39715b968c1e74ee9bee83579415e8480198ebc3b3e7346c4ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-core/src/models/granite.rs:313-319 | mistralrs-core/src/xlora_models/mixtral.rs:383-389 | mistralrs-core/src/xlora_models/quantized_llama.rs:123-129 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/mixtral.rs\u0060 and \u0060mistralrs-core/src/xlora_models/quantized_llama.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 118 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 \u0060mistralrs-core/src/models/granite.rs:313\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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf763fc0542773d9b34c8eb4c4fe58db68506547fb497a34bc8b5396e5f0dbf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 3): mistralrs-core/src/pipeline/diffusion.rs:121-126 | mistralrs-core/src/pipeline/gguf.rs:1310-1316 | mistralrs-core/src/pipeline/speech.rs:223-228 \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 \u0060mistralrs-core/src/pipeline/diffusion.rs:121\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":"mistralrs-core/src/pipeline/diffusion.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cee5390a36e36f4ad14e02993fd8f0a377c65f89b9843631170aed55c39fc08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): mistralrs-core/src/pipeline/embedding.rs:192-206 | mistralrs-core/src/pipeline/multimodal.rs:509-523 | mistralrs-core/src/pipeline/normal.rs:642-656 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/embedding.rs\u0060 and \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 178 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 \u0060mistralrs-core/src/pipeline/embedding.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e349e74a6b41e02e3c5c4ddfebc2638491f458a792c459a1987488c7f559aac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-core/src/pipeline/embedding.rs:637-643 | mistralrs-core/src/pipeline/multimodal.rs:1409-1415 | mistralrs-core/src/pipeline/normal.rs:1452-1458 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/embedding.rs\u0060 and \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 178 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 \u0060mistralrs-core/src/pipeline/embedding.rs:637\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":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c2e9716d9cfce9071a6a5caef7120e3bf46371cbd0b273d0480b761fbb85ec5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-core/src/pipeline/inputs_processor.rs:1148-1154 | mistralrs-core/src/pipeline/inputs_processor.rs:1165-1171 | mistralrs-core/src/pipeline/inputs_processor.rs:1245-1251 \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 \u0060mistralrs-core/src/pipeline/inputs_processor.rs:1148\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":"mistralrs-core/src/pipeline/inputs_processor.rs"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d9ab92edeceec4a3e5feab9a52839bc3e6783e91723ecd6ce646c89a75010a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-core/src/pipeline/isq.rs:1192-1198 | mistralrs-core/src/pipeline/isq.rs:1201-1207 | mistralrs-core/src/pipeline/isq.rs:1210-1216 \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 \u0060mistralrs-core/src/pipeline/isq.rs:1192\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":"mistralrs-core/src/pipeline/isq.rs"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"b405864b43f7c34ee1231d189f416b8430d17f13a2a8133309697e254ddaf826"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): mistralrs-core/src/speech_models/dia/model.rs:330-341 | mistralrs-core/src/speech_models/dia/model.rs:589-600 | mistralrs-core/src/speech_models/dia/model.rs:602-613 \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":"mistralrs-core/src/speech_models/dia/model.rs"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f8e2c46c198288967ccc2fb459bb5c0edc4cc957dce8efe5954fda6ffad729"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:408-415 | mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:448-455 | mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:280-287 \u2014 \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/idefics3/inputs_processor.rs\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 10 separate duplicated blocks between them, totalling at least 146 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 \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:408\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":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8e76fc587341c06a4d0611a2d92a8ca3045058817773aa93d25fb642af2612"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-core/src/vision_models/gemma4/mod.rs:374-380 | mistralrs-core/src/vision_models/gemma4/mod.rs:558-564 | mistralrs-core/src/vision_models/gemma4/mod.rs:686-692 \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":"mistralrs-core/src/vision_models/gemma4/mod.rs"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"62823313fa9351dfb760193522a3384c092a6b6ea05bd7933a38ede615cebff9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-core/src/vision_models/grid_processor.rs:1474-1480 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:668-674 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1276-1282 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:1474\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1474}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b76c0bf6313cd2e8ff9cc53c1a2f913f28202c9d6da74516ebedf5b0fab0615"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-core/src/vision_models/idefics2/mod.rs:612-618 | mistralrs-core/src/vision_models/idefics3/vision.rs:409-415 | mistralrs-core/src/vision_models/siglip.rs:420-426 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics2/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/idefics3/vision.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 221 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060\u0026VisionConfig\u0060 in one and \u0060\u0026Idefics3VisionConfig\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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"363905fe0c976034c66839071953d4c65a63feebb3387a582d44b9319d8a45be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): mistralrs-core/src/vision_models/idefics2/mod.rs:690-704 | mistralrs-core/src/vision_models/idefics3/vision.rs:509-523 | mistralrs-core/src/vision_models/siglip.rs:532-546 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics2/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/idefics3/vision.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 221 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 \u0060mistralrs-core/src/vision_models/idefics2/mod.rs:690\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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"2389e5012c6318ab4e72d73308f0b80b29b53affee17edaad239a589c021bfd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:579-586 | mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:109-116 | mistralrs-paged-attn/src/metal/backend/gather_kv.rs:64-71 \u2014 before extracting anything, compare \u0060mistralrs-paged-attn/src/cuda/backend/flashinfer.rs\u0060 and \u0060mistralrs-paged-attn/src/cuda/backend/gather_kv.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 39 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":"mistralrs-paged-attn/src/cuda/backend/flashinfer.rs"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"f780e6670ba53557d12d94bd3d96817a5998ba97f7514612ae1faf4ee9d57995"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:15-21 | mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:40-46 | mistralrs-paged-attn/src/metal/backend/mod.rs:51-57 \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 \u0060mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:15\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":"mistralrs-paged-attn/src/cuda/backend/gather_kv.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"1065d2bbdfec56ac860c1c06b836ba9a1cf3deb693bc8b51aed6f1278cdbf81f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-paged-attn/src/metal/kernels/mod.rs:573-579 | mistralrs-paged-attn/src/metal/kernels/mod.rs:717-723 | mistralrs-paged-attn/src/metal/kernels/mod.rs:987-993 \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 \u0060mistralrs-paged-attn/src/metal/kernels/mod.rs:573\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":"mistralrs-paged-attn/src/metal/kernels/mod.rs"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e20ade8be7686c2d4c7017a310afc7268cf322975903a06c579f93d0215957f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 3): mistralrs-quant/src/afq/ops.rs:1752-1757 | mistralrs-quant/src/afq/ops.rs:1870-1875 | mistralrs-quant/src/afq/ops.rs:1989-1995 \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 \u0060mistralrs-quant/src/afq/ops.rs:1752\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":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":1752}}}],"partialFingerprints":{"codehealthFindingId/v1":"54a43862160d946a3ced166fe9b1ca7ef028e06ce3049068e7d0ea283c101963"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-quant/src/blockwise_fp8/mod.rs:576-582 | mistralrs-quant/src/blockwise_fp8/mod.rs:622-628 | mistralrs-quant/src/blockwise_fp8/mod.rs:914-920 \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":"mistralrs-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e0f7c46cde664b975492ce64378abb6efa031d6b2df481c379283ea10eee132"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-quant/src/lora/dynamic/moe_cuda.rs:1012-1018 | mistralrs-quant/src/lora/dynamic/moe_cuda.rs:1031-1037 | mistralrs-quant/src/lora/dynamic/moe_cuda.rs:1050-1056 \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 \u0060mistralrs-quant/src/lora/dynamic/moe_cuda.rs:1012\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":"mistralrs-quant/src/lora/dynamic/moe_cuda.rs"},"region":{"startLine":1012}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd13b1cc94c405eed2d3732dafdec8bee3740e19afa78630695a1eec1b6ced7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-quant/src/lora/dynamic/moe_cuda.rs:1075-1081 | mistralrs-quant/src/lora/dynamic/moe_cuda.rs:1095-1101 | mistralrs-quant/src/lora/dynamic/moe_cuda.rs:1115-1121 \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 \u0060mistralrs-quant/src/lora/dynamic/moe_cuda.rs:1075\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":"mistralrs-quant/src/lora/dynamic/moe_cuda.rs"},"region":{"startLine":1075}}}],"partialFingerprints":{"codehealthFindingId/v1":"f011104d78b97b186aa24300ba822b4b839157cc46301f5ec7c98dda203b2e63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-quant/src/utils/ops.rs:622-628 | mistralrs-quant/src/utils/ops.rs:635-641 | mistralrs-quant/src/utils/ops.rs:648-654 \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 \u0060mistralrs-quant/src/utils/ops.rs:622\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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f4b26d809c6db18ded46d839e8126f5fbc8837f76a51a8f83c49c9e4b1c357d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): mistralrs-cli/src/commands/bench.rs:157-163 | mistralrs-cli/src/commands/run/mod.rs:127-132 \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":"mistralrs-cli/src/commands/bench.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"42ec81dbe80ad0b2ac08db689f2860bd402eb4be6a4830b92711700875c01b44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-cli/src/commands/run/interactive.rs:448-455 | mistralrs-cli/src/commands/run/interactive.rs:1727-1734 \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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"4270deb7547852f2baecfded36a5e092f76a0a0d4b7b3706e5c2bce6a0bfb23c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/attention/backends/cpu/avx.rs:68-74 | mistralrs-core/src/attention/backends/cpu/avx.rs:86-92 \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 \u0060mistralrs-core/src/attention/backends/cpu/avx.rs: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":"mistralrs-core/src/attention/backends/cpu/avx.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dadabccf6b58198a7cdae09dc9114c4fbb2b39beae4d7102b236d9515145c7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/attention/mod.rs:518-524 | mistralrs-core/src/attention/mod.rs:541-547 \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":"mistralrs-core/src/attention/mod.rs"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"194a91f4ebffa567b63ebc279ca1667c826d062f71546791e63396a8d9604ecf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/cuda/dflash_context.rs:97-103 | mistralrs-core/src/speculative/dflash.rs:868-874 \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":"mistralrs-core/src/cuda/dflash_context.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d6dc33363ec8aeed654a2294092ddb981736539d54cdaf84e077d3ad85cbefd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/cuda/dflash_context.rs:125-131 | mistralrs-core/src/speculative/dflash.rs:895-901 \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 \u0060mistralrs-core/src/cuda/dflash_context.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/cuda/dflash_context.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"4efdd748e5fd98ee62fc35428ce50d68c332158ccc4ee3961940aa52f4e1b143"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/cuda/dflash_context.rs:187-193 | mistralrs-core/src/cuda/dflash_context.rs:313-319 \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":"mistralrs-core/src/cuda/dflash_context.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4daeccbe751bc5fb429c46d10c8a475c9ed63657d01497d6aa65f59371c1bff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:6076-6081 | mistralrs-core/src/cuda/gdn.rs:6090-6096 \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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":6076}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fed8428002387e20148f757a498adeda55a4c5398a9db3fb73ba6cef24d19c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/cuda/speculative_rejection.rs:733-739 | mistralrs-core/src/cuda/speculative_rejection.rs:770-776 \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 \u0060mistralrs-core/src/cuda/speculative_rejection.rs:733\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":"mistralrs-core/src/cuda/speculative_rejection.rs"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b58a4b8f7c2d33790b3ba34a6c754c8bef3be3499b57c638b6cee22f7fd4c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/diffusion_models/clip/text.rs:239-246 | mistralrs-core/src/vision_models/clip.rs:270-277 \u2014 before extracting anything, compare \u0060mistralrs-core/src/diffusion_models/clip/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/clip.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 36 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060c\u0060 to \u0060\u0026ClipTextConfig\u0060 in one and \u0060\u0026ClipConfig\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":"mistralrs-core/src/diffusion_models/clip/text.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"062f6c2c99d0e5b105d2c4810668a7f215bbed09d54535cd034eb0c6984f7afc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/kv_cache/hybrid_cache.rs:111-117 | mistralrs-core/src/kv_cache/hybrid_cache.rs:300-306 \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 \u0060mistralrs-core/src/kv_cache/hybrid_cache.rs: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":"mistralrs-core/src/kv_cache/hybrid_cache.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"f776ee326173e5ff90013302e6d7bba78466c0d20ac964a0d2e40deb7b64bf58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/kv_cache/mod.rs:205-215 | mistralrs-core/src/kv_cache/mod.rs:217-227 \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":"mistralrs-core/src/kv_cache/mod.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa6224c4aace43d3bba595a84dfcc06bdd757ec824076061ebdf8fd24cdaead5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/kv_cache/mod.rs:1464-1470 | mistralrs-core/src/kv_cache/mod.rs:1565-1571 \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 \u0060mistralrs-core/src/kv_cache/mod.rs:1464\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":"mistralrs-core/src/kv_cache/mod.rs"},"region":{"startLine":1464}}}],"partialFingerprints":{"codehealthFindingId/v1":"0790e3de93d214bf75433a83c63c43138249f31eaed1ca7377ffa77d51855f0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/layers.rs:835-841 | mistralrs-core/src/layers.rs:842-848 \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":"mistralrs-core/src/layers.rs"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c14a9018d0bc00392892c6b586fc2bfa98258d42605e8329b731947d223eb02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/lib.rs:2487-2493 | mistralrs-core/src/lib.rs:2514-2520 \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 \u0060mistralrs-core/src/lib.rs:2487\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":"mistralrs-core/src/lib.rs"},"region":{"startLine":2487}}}],"partialFingerprints":{"codehealthFindingId/v1":"7602c202770da38c219b40737a1d4885ade95ffc0305c90c03bd39f6f15701bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/metal/gdn.rs:792-798 | mistralrs-core/src/metal/ssm.rs:182-188 \u2014 before extracting anything, compare \u0060mistralrs-core/src/metal/gdn.rs\u0060 and \u0060mistralrs-core/src/metal/ssm.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 68 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":"mistralrs-core/src/metal/gdn.rs"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"77c4a84616d6f77ca50245bc39828986ff7b2031cb032f23aaa31720e7a608bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/models/glm4.rs:82-93 | mistralrs-core/src/models/glm4_moe.rs:108-119 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/glm4.rs\u0060 and \u0060mistralrs-core/src/models/glm4_moe.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 359 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 \u0060mistralrs-core/src/models/glm4.rs:82\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":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"e88788d4a775b4dc5480221c107edf5bb1253dd27ab3919b248979bb494b1575"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/models/glm4_moe.rs:408-414 | mistralrs-core/src/models/glm4_moe_lite.rs:501-507 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/glm4_moe.rs\u0060 and \u0060mistralrs-core/src/models/glm4_moe_lite.rs\u0060 as WHOLE FILES: this scan already matched 44 separate duplicated blocks between them, totalling at least 596 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. 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":"mistralrs-core/src/models/glm4_moe.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"211980946b5011dbc4b198d7bac51bc40c5cfb71cf1f08f631c547b5daece6b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/models/qwen3_next.rs:629-635 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:466-472 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/qwen3_next.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 461 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 \u0060mistralrs-core/src/models/qwen3_next.rs:629\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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"465435054637cf4a7681af6a5661e7667c05438c00e47afb9b2af612c30bd56f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/moe/experts/backends.rs:837-843 | mistralrs-core/src/moe/experts/backends.rs:987-993 \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 \u0060mistralrs-core/src/moe/experts/backends.rs:837\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":"mistralrs-core/src/moe/experts/backends.rs"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f26531d884811914ea68da940f7f10cd06fc399e07835a6fcaec8e868f7d83d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/ops.rs:2021-2027 | mistralrs-core/src/ops.rs:2147-2153 \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":"mistralrs-core/src/ops.rs"},"region":{"startLine":2021}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f3653c6506d903dfa6703d13f129fc49494619a60746a22ef3ee622337fed2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/ops.rs:2686-2692 | mistralrs-core/src/ops.rs:3504-3510 \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":"mistralrs-core/src/ops.rs"},"region":{"startLine":2686}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ff719d8d11126e059fa8fb3a0df0a93c32e0a4177777db977fcebf857b2454"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/ops.rs:2987-2993 | mistralrs-core/src/ops.rs:3505-3511 \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":"mistralrs-core/src/ops.rs"},"region":{"startLine":2987}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef26e11c7cfecec1ef8aefa45add23ad3e058f74084553574039302aa31a1770"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/ops.rs:4637-4643 | mistralrs-core/src/ops.rs:6458-6464 \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 \u0060mistralrs-core/src/ops.rs:4637\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, \u0060mistralrs-core/src/ops.rs:6455\u0060 calls \u0060contiguous\u0060 and \u0060mistralrs-core/src/ops.rs:4635\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":4637}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b093007f3f1a18b59b959192880cc3ef5fb0792ea1800058805307a962edb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/ops.rs:5783-5789 | mistralrs-core/src/ops.rs:6219-6225 \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 \u0060mistralrs-core/src/ops.rs:5783\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, \u0060mistralrs-core/src/ops.rs:6215\u0060 calls \u0060device_ptr\u0060, \u0060add\u0060, \u0060start_offset\u0060 and \u0060mistralrs-core/src/ops.rs:5781\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":5783}}}],"partialFingerprints":{"codehealthFindingId/v1":"076861baafa44a434bfb1aa0913f6fbfe9ba57d3c66581ff791e8c8726807703"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/pipeline/cuda_graph.rs:2614-2626 | mistralrs-core/src/speculative/dflash.rs:1636-1648 \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 \u0060mistralrs-core/src/pipeline/cuda_graph.rs:2614\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 \u0060entries\u0060 to \u0060Vec\u003CCudaDecodeGraphEntry\u003E\u0060 in one and \u0060Vec\u003CDFlashCudaGraphEntry\u003E\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":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":2614}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7eb412e03f5a40fa4e1cce89f6fcf0de0728a2a62529630c5555e0ac57af2ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/pipeline/embedding.rs:248-254 | mistralrs-core/src/pipeline/gguf.rs:1317-1323 \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 \u0060mistralrs-core/src/pipeline/embedding.rs:248\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":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0f5a785b00166588054135d84487c9f1a3994a7ac4c4cb722f9807eb94fed61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/pipeline/hf.rs:665-672 | mistralrs-core/src/pipeline/hf.rs:689-696 \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 \u0060mistralrs-core/src/pipeline/hf.rs:665\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":"mistralrs-core/src/pipeline/hf.rs"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f42df20588536b2d8856448e87972e78fdab9412bf265a9568366bcf242ed8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/pipeline/inputs_processor.rs:930-936 | mistralrs-quant/src/distributed/layers.rs:2181-2188 \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 \u0060mistralrs-core/src/pipeline/inputs_processor.rs:930\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":"mistralrs-core/src/pipeline/inputs_processor.rs"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea2453976a0b310ee57a9b96456ca22815b46e307dea557f81ae4a44da481ef9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6252-6258 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9799-9805 \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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":6252}}}],"partialFingerprints":{"codehealthFindingId/v1":"49469c15893953c768d4ab2ef1f5dce0cbe34a155fe54c40645ea76a89eb2a74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/speculative/cache.rs:312-318 | mistralrs-core/src/speculative/paged_rows.rs:259-265 \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 \u0060mistralrs-core/src/speculative/cache.rs:312\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":"mistralrs-core/src/speculative/cache.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a3a6642d2618de989cfbdd20852422beafb1c7549eb50862c060b2e8e67a8d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/utils/tiktoken.rs:99-108 | mistralrs-core/src/utils/tokenizer.rs:109-115 \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 \u0060mistralrs-core/src/utils/tiktoken.rs:99\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, \u0060mistralrs-core/src/utils/tiktoken.rs:96\u0060 calls \u0060token_bytes_to_string\u0060, \u0060insert\u0060 and \u0060mistralrs-core/src/utils/tokenizer.rs:108\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":"mistralrs-core/src/utils/tiktoken.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a97ebb92440ad2d0a5abda7db897abb4a1efdd23421b751a7ecc82aa5b6ad0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3/mod.rs:130-136 | mistralrs-core/src/vision_models/idefics3/mod.rs:136-142 \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 \u0060mistralrs-core/src/vision_models/gemma3/mod.rs:130\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":"mistralrs-core/src/vision_models/gemma3/mod.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"4139f2d97c59253233fac6e8c53a600b3a0f24d4941252ad05723a4a104e292c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/audio_processing.rs:242-248 | mistralrs-core/src/vision_models/voxtral/audio_processing.rs:168-174 \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 \u0060mistralrs-core/src/vision_models/gemma3n/audio_processing.rs: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":"mistralrs-core/src/vision_models/gemma3n/audio_processing.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ceb4f7e03ec1053a3e8ef2d23b1aa80b4a40efb3750887550f1d17685d8904f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/text.rs:1265-1271 | mistralrs-core/src/vision_models/gemma4/text.rs:1578-1584 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/text.rs\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 7 separate duplicated blocks between them, totalling at least 70 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":"mistralrs-core/src/vision_models/gemma3n/text.rs"},"region":{"startLine":1265}}}],"partialFingerprints":{"codehealthFindingId/v1":"d611edd0803a775cb4a3bb041ba34d2835f7b4ac78a8a253190653e335340fb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/vision_models/lfm3_omni/audio.rs:329-335 | mistralrs-core/src/vision_models/lfm3_omni/generation.rs:348-354 \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 \u0060mistralrs-core/src/vision_models/lfm3_omni/audio.rs: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":"mistralrs-core/src/vision_models/lfm3_omni/audio.rs"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e514c86bf4eb86b50735c102bd009a967128fbe979bb42ff2b7875ae0088600"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/vision_models/llama4/vision.rs:349-355 | mistralrs-core/src/vision_models/mllama/vision.rs:398-404 \u2014 \u0060mistralrs-core/src/vision_models/llama4/vision.rs\u0060 and \u0060mistralrs-core/src/vision_models/mllama/vision.rs\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 6 separate duplicated blocks between them, totalling at least 67 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 \u0060mistralrs-core/src/vision_models/llama4/vision.rs:349\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":"mistralrs-core/src/vision_models/llama4/vision.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba617810a18c6c30d4bdcefc85fda4fa6ece9dc295cfa5b3ec84d0241388ae05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:310-316 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:379-384 \u2014 \u0060mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs\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 172 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 \u0060mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:310\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 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, \u0060mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:385\u0060 calls \u0060count_prefix_cached_mm_items\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:316\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":"mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"12de8b2749da5af58c514a4411b00f313edd5af9f63d3b6a74849bbac97dcbb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:83-89 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:77-83 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 143 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":"mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"b75e2aa415f7008e9933f0491d1865c1d267cb37dba1c461cd9179ef29cfcd8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:158-164 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:129-135 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/vision.rs\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 15 separate duplicated blocks between them, totalling at least 182 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":"mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d3bee23655cbcaa9fff7cafe5739f838888070a51c211f433c22f2f6e1a6fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/xlora_models/phi3.rs:244-250 | mistralrs-core/src/xlora_models/quantized_phi3.rs:102-108 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/phi3.rs\u0060 and \u0060mistralrs-core/src/xlora_models/quantized_phi3.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 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 \u0060mistralrs-core/src/xlora_models/phi3.rs:244\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":"mistralrs-core/src/xlora_models/phi3.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4eede3041f9fe295cb4ac926ce9289fce9ef84d6c90592af2313d2f0bde8e5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:57-67 | mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:207-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 \u0060mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs: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":"mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"814216e5734525ecd6280bb7b484786b078a94971720ca44b462967a67923dd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-paged-attn/src/metal/kernels/mod.rs:428-435 | mistralrs-paged-attn/src/metal/kernels/mod.rs:817-824 \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":"mistralrs-paged-attn/src/metal/kernels/mod.rs"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"fac9973bc5d0b48e353d1703b7217cdad3fe6e2e8119cb06d6faaf202a62e826"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/afq/group.rs:117-123 | mistralrs-quant/src/afq/group.rs:129-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. 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":"mistralrs-quant/src/afq/group.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"127bc62011b070a6019f8a343d914d4fc7225c746b62416b3e747b9b07b48c7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/afq/mod.rs:569-577 | mistralrs-quant/src/mxfp4/mod.rs:327-333 \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 \u0060mistralrs-quant/src/afq/mod.rs:569\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":"mistralrs-quant/src/afq/mod.rs"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a824bd950efa5888c6079db61e7f77d73b62e37035d0ddc8f4f3826bd9353f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/afq/ops.rs:69-75 | mistralrs-quant/src/afq/ops.rs:182-188 \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 \u0060mistralrs-quant/src/afq/ops.rs:69\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":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b591f07edfb6a2a381ff092cbb5cd75807f5182578e86d2186e609907f61a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/deepgemm.rs:502-512 | mistralrs-quant/src/blockwise_fp8/deepgemm.rs:595-605 \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 \u0060mistralrs-quant/src/blockwise_fp8/deepgemm.rs:502\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":"mistralrs-quant/src/blockwise_fp8/deepgemm.rs"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e8fec8d8f38f4d53598d124bbb3e48ba991154aff903a504c9f895dbc2db6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/mod.rs:645-652 | mistralrs-quant/src/blockwise_fp8/mod.rs:949-956 \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 \u0060mistralrs-quant/src/blockwise_fp8/mod.rs:645\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":"mistralrs-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c9f42d6b47e98c3ab66f71f700421cef2571425b32e5bc1704e3ab30405ec8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:920-926 | mistralrs-quant/src/gguf/fast_mmvq.rs:745-751 \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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a212a75edf8acdb4e480d6e1f91af0c39921050912b0ef1fd4c55e4869409f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:1275-1281 | mistralrs-quant/src/mxfp4/ops.rs:446-451 \u2014 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs\u0060 and \u0060mistralrs-quant/src/mxfp4/ops.rs\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 59 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 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:1275\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1275}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9136d0c8ce013670014bdce5ec3437bc4b63d82d623a5317508d5d20363ef92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:1314-1320 | mistralrs-quant/src/mxfp4/ops.rs:514-519 \u2014 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs\u0060 and \u0060mistralrs-quant/src/mxfp4/ops.rs\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 59 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 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:1314\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1314}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5a805a7e59d3a2e58654ab542f037127c99cc9a5ccd160c831af2092526862"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:1946-1952 | mistralrs-quant/src/utils/ops.rs:3083-3089 \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 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:1946\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1946}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e9274b9ce9a2bdeb4280b9fed6fa76a06b5fea965307a2d796442bc6e7d247"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:945-951 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:1142-1148 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fused_moe.rs\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe_fp8.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 298 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 \u0060mistralrs-quant/src/cutile/fused_moe.rs:945\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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d6135e005bfbf343af50390ca3c95ba8235039947acd6a442d205686cfb8f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/cutile/gdn_prefill.rs:353-359 | mistralrs-quant/src/cutile/gdn_prefill.rs:367-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 \u0060mistralrs-quant/src/cutile/gdn_prefill.rs:353\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":"mistralrs-quant/src/cutile/gdn_prefill.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc14dc5fa8e12419487a7cddb99ee44ac0d3af17ea65936a7ee5f0fd36bfd38a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_gemv.rs:136-144 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:240-248 \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 \u0060mistralrs-quant/src/cutile/nvfp4_gemv.rs: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":"mistralrs-quant/src/cutile/nvfp4_gemv.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"f945c00caa341e9f13e9aacffb69abd4c2f99ee9201f490518ef0f9de9717892"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_matmul.rs:985-992 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1167-1174 \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":"mistralrs-quant/src/cutile/nvfp4_matmul.rs"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d2038b5a67fd7b09b6f790c580daab9bfcc1bbc7873a54ee7e6e9c4e223cb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-quant/src/cutile/qsa.rs:450-461 | mistralrs-quant/src/cutile/qsa_decode.rs:263-274 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/qsa.rs\u0060 and \u0060mistralrs-quant/src/cutile/qsa_decode.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 134 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 \u0060mistralrs-quant/src/cutile/qsa.rs:450\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":"mistralrs-quant/src/cutile/qsa.rs"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"601fe76b804e3d1fb7dcc7e3fda2d7261b7051c0efc81fb403944906e88cae46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:529-536 | mistralrs-quant/src/distributed/layers.rs:920-927 \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 \u0060mistralrs-quant/src/distributed/layers.rs:529\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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae7d965f27d52430564a81061a3fed25d3e1973a99b86b8ceed67f805f627638"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:762-769 | mistralrs-quant/src/distributed/layers.rs:1340-1347 \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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee1694a2ea4394603d933f3d2d07d459b1f7f1215a90876f3552338e642cbb75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/embedding/storage.rs:984-990 | mistralrs-quant/src/gguf/archive.rs:673-679 \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":"mistralrs-quant/src/embedding/storage.rs"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e38bbd00498342fec63e16644b0171827c81f54580295fe3925769d3809f16a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmq.rs:818-824 | mistralrs-quant/src/gguf/fast_mmq.rs:838-844 \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 \u0060mistralrs-quant/src/gguf/fast_mmq.rs:818\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":"mistralrs-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b950d752b715359eb80fba00146c7524d18d6955eda955798ddf195d614d6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/gguf/weight_source.rs:167-173 | mistralrs-quant/src/gguf/weight_source.rs:194-200 \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":"mistralrs-quant/src/gguf/weight_source.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a874886b6aa88e5dbca2c005ebaed72428d54197f1fe5c6c852b4aab112fb18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/gguf/weight_source.rs:689-695 | mistralrs-quant/src/gguf/weight_source.rs:1172-1178 \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":"mistralrs-quant/src/gguf/weight_source.rs"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a3affda7a0698510f080bb06934234b6415e3bece231fe6fb4db9550243f28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/lora/dynamic/moe_cuda.rs:965-971 | mistralrs-quant/src/lora/dynamic/moe_cuda.rs:988-994 \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 \u0060mistralrs-quant/src/lora/dynamic/moe_cuda.rs:965\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":"mistralrs-quant/src/lora/dynamic/moe_cuda.rs"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a1ae046a1b014bc48fb47f9f539f1c0800dbe5af8b93a84e3fb787a412093e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/metal_kernels/mod.rs:1413-1419 | mistralrs-quant/src/metal_kernels/mod.rs:1438-1444 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:1413\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":1413}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc3f5921d31c9aeca62fb7e5e38284636d8fa007e5e9a61a1d741dde4bdf1449"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/metal_kernels/mod.rs:1584-1590 | mistralrs-quant/src/metal_kernels/mod.rs:1660-1666 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:1584\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":1584}}}],"partialFingerprints":{"codehealthFindingId/v1":"452aa863b28ebad1a94458df868d201d2eca8cc3a6ea1578581f74cbef5bc6ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/metal_kernels/mod.rs:4376-4382 | mistralrs-quant/src/metal_kernels/mod.rs:4408-4414 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:4376\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":4376}}}],"partialFingerprints":{"codehealthFindingId/v1":"87048ae29a1064a3e0faa46e0fab7cffb65ed737cfd7ae20157b67f82d36b5c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/mxfp4/mod.rs:120-126 | mistralrs-quant/src/mxfp4/mod.rs:143-149 \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 \u0060mistralrs-quant/src/mxfp4/mod.rs:120\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":"mistralrs-quant/src/mxfp4/mod.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"c414469bac34abad399e1a3a39c053f8394b05d06eba62c4229354db421ed4b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/mxfp4/ops.rs:84-90 | mistralrs-quant/src/mxfp4/ops.rs:439-445 \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 \u0060mistralrs-quant/src/mxfp4/ops.rs: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060mistralrs-quant/src/mxfp4/ops.rs:438\u0060 calls \u0060slice_ptr\u0060, \u0060start_offset\u0060 and \u0060mistralrs-quant/src/mxfp4/ops.rs:82\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":"mistralrs-quant/src/mxfp4/ops.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"973cc66004944eafffa921e69e7125cc19979399bc4caa942f2189142614b8bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/unquantized/mod.rs:321-331 | mistralrs-quant/src/unquantized/mod.rs:348-354 \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 \u0060mistralrs-quant/src/unquantized/mod.rs:321\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":"mistralrs-quant/src/unquantized/mod.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8062aa1ffe11f3de39011d397e3287ce87b32c7e92cd1ab97d7b7d57c92937"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/utils/ops.rs:53-59 | mistralrs-quant/src/utils/ops.rs:721-727 \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 \u0060mistralrs-quant/src/utils/ops.rs:53\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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd004f91580137f755436e08d0039516221d87da346dcab9aeca994db6f07f56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/utils/ops.rs:62-68 | mistralrs-quant/src/utils/ops.rs:703-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060mistralrs-quant/src/utils/ops.rs:62\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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b23e7722ee2b32622b79815572f28486db1fc294fc7008d2777b56f06a0af76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/utils/ops.rs:80-86 | mistralrs-quant/src/utils/ops.rs:730-736 \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 \u0060mistralrs-quant/src/utils/ops.rs:80\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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2f6fd58136709c310895b9d782d17167d3cee0572edbf32e0b7a4e6e745d6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-quant/src/utils/ops.rs:1104-1118 | mistralrs-quant/src/utils/ops.rs:1176-1190 \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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":1104}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a783eb277de3cec0f9cb0d1214a01c41dccb89c8a1241fcc9773e277cd2d7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20137 lines \u00D7 2): mistralrs-quant/src/utils/ops.rs:2021-2027 | mistralrs-quant/src/utils/ops.rs:2825-2829 \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 \u0060mistralrs-quant/src/utils/ops.rs:2021\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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":2021}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19f32725f1ca3ca5495cca7437201e55b3df232cd181222da85e12c14ce2da0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-server-core/src/anthropic.rs:1899-1906 | mistralrs-server-core/src/chat_completion.rs:1253-1260 \u2014 before extracting anything, compare \u0060mistralrs-server-core/src/anthropic.rs\u0060 and \u0060mistralrs-server-core/src/chat_completion.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 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":"mistralrs-server-core/src/anthropic.rs"},"region":{"startLine":1899}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c3395fdee3770651c29e5b5ffc7f9d7c60d8224a3970f24fcf3b4356967bc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-server-core/src/chat_completion.rs:1284-1290 | mistralrs-server-core/src/completions.rs:345-351 \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 \u0060mistralrs-server-core/src/chat_completion.rs:1284\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, \u0060mistralrs-server-core/src/chat_completion.rs:1292\u0060 calls \u0060Some\u0060, \u0060decorate_responses\u0060, \u0060clone\u0060 and \u0060mistralrs-server-core/src/completions.rs:353\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":"mistralrs-server-core/src/chat_completion.rs"},"region":{"startLine":1284}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a10ee9c846d6c5278b067a960c9c061e0730c0eaeb18a4ba4fdda14e71b450"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs/src/model_builder_trait.rs:842-848 | mistralrs/src/model_builder_trait.rs:1618-1624 \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":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"d943b67828c97f38f66a4decadc34dd9e67c3f5b1345bfc507a395e576bf98e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 40): mistralrs-core/src/models/flint.rs:356-361 | mistralrs-core/src/models/gemma.rs:176-181 | mistralrs-core/src/models/gemma2.rs:217-222 | mistralrs-core/src/models/glm4.rs:219-224 | mistralrs-core/src/models/glm4_moe.rs:281-286 | mistralrs-core/src/models/gpt_oss.rs:257-262 | mistralrs-core/src/models/hunyuan_v1_dense.rs:200-205 | mistralrs-core/src/models/hunyuan_v1_moe.rs:383-388 | mistralrs-core/src/models/lfm2.rs:489-494 | mistralrs-core/src/models/lfm3.rs:550-555 | mistralrs-core/src/models/mistral.rs:215-220 | mistralrs-core/src/models/mixtral.rs:160-165 | mistralrs-core/src/models/phi2.rs:272-277 | mistralrs-core/src/models/phi3.rs:160-165 | mistralrs-core/src/models/phi3_5_moe.rs:187-192 | mistralrs-core/src/models/qwen2.rs:249-254 | mistralrs-core/src/models/qwen3.rs:201-206 | mistralrs-core/src/models/qwen3_moe.rs:204-209 | mistralrs-core/src/models/qwen3_next.rs:287-292 | mistralrs-core/src/models/starcoder2.rs:236-241 | mistralrs-core/src/vision_models/gemma3/text.rs:191-196 | mistralrs-core/src/vision_models/gemma4/text.rs:809-814 | mistralrs-core/src/vision_models/idefics2/mod.rs:830-835 | mistralrs-core/src/vision_models/mllama/text.rs:171-176 | mistralrs-core/src/vision_models/phi3/mod.rs:252-257 | mistralrs-core/src/vision_models/phi4/mod.rs:121-126 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:210-215 | mistralrs-core/src/vision_models/qwen2vl/text.rs:211-216 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:202-207 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:203-208 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:309-314 | mistralrs-core/src/vision_models/voxtral/encoder.rs:90-95 | mistralrs-core/src/vision_models/voxtral/mod.rs:136-141 | mistralrs-core/src/xlora_models/gemma.rs:257-262 | mistralrs-core/src/xlora_models/gemma2.rs:262-267 | mistralrs-core/src/xlora_models/mistral.rs:247-252 | mistralrs-core/src/xlora_models/mixtral.rs:160-165 | mistralrs-core/src/xlora_models/phi2.rs:250-255 | mistralrs-core/src/xlora_models/phi3.rs:135-140 | mistralrs-core/src/xlora_models/starcoder2.rs:234-239 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/gemma.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 152 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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"acfbd39fe7c4256d12b8bfa5d8307e10ef64911266fa7587bac85ce6f0359f3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 37): mistralrs-core/src/embedding_models/qwen3_embedding.rs:476-481 | mistralrs-core/src/models/deepseek2.rs:988-993 | mistralrs-core/src/models/deepseek2.rs:1028-1033 | mistralrs-core/src/models/deepseek3.rs:1051-1056 | mistralrs-core/src/models/deepseek3.rs:1092-1097 | mistralrs-core/src/models/flint.rs:988-993 | mistralrs-core/src/models/gemma.rs:501-506 | mistralrs-core/src/models/gemma2.rs:607-612 | mistralrs-core/src/models/glm4.rs:618-623 | mistralrs-core/src/models/glm4_moe.rs:866-871 | mistralrs-core/src/models/glm4_moe.rs:906-911 | mistralrs-core/src/models/glm4_moe_lite.rs:1003-1008 | mistralrs-core/src/models/glm4_moe_lite.rs:1046-1051 | mistralrs-core/src/models/gpt_oss.rs:954-959 | mistralrs-core/src/models/hunyuan_v1_dense.rs:580-585 | mistralrs-core/src/models/hunyuan_v1_moe.rs:1072-1077 | mistralrs-core/src/models/mistral.rs:629-634 | mistralrs-core/src/models/mixtral.rs:567-572 | mistralrs-core/src/models/phi3.rs:576-581 | mistralrs-core/src/models/phi3_5_moe.rs:649-654 | mistralrs-core/src/models/phi3_5_moe.rs:668-673 | mistralrs-core/src/models/qwen2.rs:632-637 | mistralrs-core/src/models/qwen3.rs:582-587 | mistralrs-core/src/models/qwen3_moe.rs:763-768 | mistralrs-core/src/models/qwen3_next.rs:1141-1146 | mistralrs-core/src/models/starcoder2.rs:568-573 | mistralrs-core/src/vision_models/llama4/vision.rs:351-356 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:578-583 | mistralrs-core/src/vision_models/mllama/vision.rs:400-405 | mistralrs-core/src/vision_models/phi3/mod.rs:1381-1386 | mistralrs-core/src/vision_models/phi4/mod.rs:643-648 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:568-573 | mistralrs-core/src/vision_models/qwen2vl/text.rs:570-575 | mistralrs-core/src/vision_models/qwen3_5/text.rs:1751-1756 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:971-976 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:606-611 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:727-732 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/models/deepseek2.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 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 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:476\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, \u0060mistralrs-core/src/models/deepseek2.rs:984\u0060 calls \u0060pp\u0060 and \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:471\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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45a0a6d3aefb54ba13091ceec17fb143b2806bf4624092e512ccf293ce9c695"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 15): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1519-1524 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1826-1831 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2126-2131 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2542-2547 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2900-2905 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3254-3259 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3596-3601 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4323-4328 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5113-5118 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5544-5549 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:813-818 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1257-1262 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1501-1506 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2184-2189 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5794-5799 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 445 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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1519}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc8a12be54886f053644e433a67679c05b69a4b9f696ab0733e38d5ba0d920d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 14): mistralrs-core/src/models/gemma.rs:586-592 | mistralrs-core/src/models/gemma2.rs:703-709 | mistralrs-core/src/models/glm4.rs:705-711 | mistralrs-core/src/models/granite.rs:2469-2475 | mistralrs-core/src/models/hunyuan_v1_dense.rs:673-679 | mistralrs-core/src/models/mistral.rs:714-720 | mistralrs-core/src/models/phi2.rs:662-668 | mistralrs-core/src/models/phi3.rs:657-663 | mistralrs-core/src/models/qwen2.rs:717-723 | mistralrs-core/src/models/qwen3.rs:691-697 | mistralrs-core/src/models/starcoder2.rs:653-659 | mistralrs-core/src/vision_models/gemma3/text.rs:928-934 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:670-676 | mistralrs-core/src/vision_models/phi3/mod.rs:1493-1499 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 707 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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"793d71d55051ecac150776757a81b4751890b77aa8844aada6f27fe02b8711a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 10): mistralrs-core/src/vision_models/gemma4/mtp.rs:726-731 | mistralrs-core/src/xlora_models/gemma.rs:271-276 | mistralrs-core/src/xlora_models/gemma2.rs:276-281 | mistralrs-core/src/xlora_models/llama.rs:94-99 | mistralrs-core/src/xlora_models/mistral.rs:261-266 | mistralrs-core/src/xlora_models/mixtral.rs:174-179 | mistralrs-core/src/xlora_models/phi2.rs:264-269 | mistralrs-core/src/xlora_models/phi3.rs:149-154 | mistralrs-core/src/xlora_models/quantized_phi3.rs:187-192 | mistralrs-core/src/xlora_models/starcoder2.rs:248-253 \u2014 before extracting anything, compare \u0060mistralrs-core/src/xlora_models/gemma.rs\u0060 and \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 498 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":"mistralrs-core/src/vision_models/gemma4/mtp.rs"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"607514ca575d9b6deaffa3a7c05c54400d7fd95cd11124dfb9ee78dc09452dbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 9): mistralrs-core/src/models/gemma.rs:187-192 | mistralrs-core/src/models/gemma2.rs:228-233 | mistralrs-core/src/models/hunyuan_v1_dense.rs:211-216 | mistralrs-core/src/models/hunyuan_v1_moe.rs:394-399 | mistralrs-core/src/models/llama.rs:95-100 | mistralrs-core/src/models/mixtral.rs:171-176 | mistralrs-core/src/models/phi2.rs:283-288 | mistralrs-core/src/models/qwen2.rs:260-265 | mistralrs-core/src/models/starcoder2.rs:247-252 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 707 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 \u0060mistralrs-core/src/models/gemma.rs: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060mistralrs-core/src/models/hunyuan_v1_dense.rs:218\u0060 calls \u0060forward\u0060 and \u0060mistralrs-core/src/models/gemma.rs:194\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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"479ff83f67827f26c6005fec3cdf1e90a7babb62a6eddbd5b008f68b4c16dd39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 9): mistralrs-core/src/vision_models/qwen3_5/mod.rs:226-231 | mistralrs-core/src/vision_models/qwen3_5/mod.rs:287-292 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:209-214 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:270-275 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:746-751 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:821-826 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:192-197 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:267-272 | mistralrs-core/src/vision_models/qwen4_exp/mod.rs:334-339 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs\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 24 separate duplicated blocks between them, totalling at least 425 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 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs:226\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":"mistralrs-core/src/vision_models/qwen3_5/mod.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b28449f0c5b46b9f3ce71b16c9a49821f67dcbad58fe9d39b67b8d7e837482a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): mistralrs-paged-attn/src/cuda/backend/fa3.rs:188-193 | mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:127-132 | mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:317-322 | mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:609-614 | mistralrs-paged-attn/src/cuda/backend/mla.rs:35-40 | mistralrs-paged-attn/src/cuda/backend/mla.rs:322-327 | mistralrs-paged-attn/src/cuda/backend/mla.rs:685-690 \u2014 before extracting anything, compare \u0060mistralrs-paged-attn/src/cuda/backend/flashinfer.rs\u0060 and \u0060mistralrs-paged-attn/src/cuda/backend/mla.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 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 \u0060mistralrs-paged-attn/src/cuda/backend/fa3.rs:188\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, \u0060mistralrs-paged-attn/src/cuda/backend/mla.rs:33\u0060 calls \u0060storage_and_layout\u0060 and \u0060mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:125\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":"mistralrs-paged-attn/src/cuda/backend/fa3.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"4124e01bec28b3cfc1b64583cae623416b6cca3ba28ef4f502382dfa9f3f9fdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): mistralrs-core/src/ops.rs:4469-4474 | mistralrs-core/src/ops.rs:4634-4639 | mistralrs-core/src/ops.rs:5428-5433 | mistralrs-core/src/ops.rs:5701-5706 | mistralrs-core/src/ops.rs:6123-6128 | mistralrs-core/src/ops.rs:6452-6457 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060mistralrs-core/src/ops.rs:4475\u0060 calls \u0060transpose\u0060 and \u0060mistralrs-core/src/ops.rs:4641\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":4469}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f2dc83147cc4432de4b62b3406ec5a18262cb25c96bdafa84ee37c4f1c395ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): mistralrs-core/src/cuda/gdn.rs:1998-2003 | mistralrs-core/src/cuda/gdn.rs:2005-2010 | mistralrs-core/src/cuda/gdn.rs:3192-3197 | mistralrs-core/src/cuda/gdn.rs:6222-6227 | mistralrs-core/src/cuda/gdn.rs:6229-6234 \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 \u0060mistralrs-core/src/cuda/gdn.rs:1998\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":1998}}}],"partialFingerprints":{"codehealthFindingId/v1":"a88862c855a8b70fc95cde20658447b0e839eeb2175d9660776297f0150a6f24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): mistralrs-core/src/metal/gdn.rs:204-209 | mistralrs-core/src/metal/gdn.rs:319-324 | mistralrs-core/src/metal/gdn.rs:792-797 | mistralrs-core/src/metal/gdn.rs:980-985 | mistralrs-core/src/metal/ssm.rs:182-187 \u2014 before extracting anything, compare \u0060mistralrs-core/src/metal/gdn.rs\u0060 and \u0060mistralrs-core/src/metal/ssm.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 68 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":"mistralrs-core/src/metal/gdn.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad93b8d4e0cd178131e3f5b9ddb1060ee733f0505dfebb03d5f84b9bdd070320"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): mistralrs-core/src/ops.rs:4472-4477 | mistralrs-core/src/ops.rs:4758-4763 | mistralrs-core/src/ops.rs:5432-5437 | mistralrs-core/src/ops.rs:5704-5709 | mistralrs-core/src/ops.rs:6127-6132 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060mistralrs-core/src/ops.rs:5431\u0060 calls \u0060contiguous\u0060 and \u0060mistralrs-core/src/ops.rs:4470\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":4472}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd718e277e7983c414d6e46126e07d2e13c550771b3163e52fb94f8d756781f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): mistralrs-pyo3/src/lib.rs:759-764 | mistralrs-pyo3/src/lib.rs:795-800 | mistralrs-pyo3/src/lib.rs:826-831 | mistralrs-pyo3/src/lib.rs:874-879 | mistralrs-pyo3/src/lib.rs:1155-1160 \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 \u0060mistralrs-pyo3/src/lib.rs:759\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, \u0060mistralrs-pyo3/src/lib.rs:758\u0060 calls \u0060unwrap_or\u0060, \u0060default\u0060 and \u0060mistralrs-pyo3/src/lib.rs:794\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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"661ee6237a350d0e4361284ed93a3bed5a55d47f0e2205337557ab2be0f62e83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 5): mistralrs-quant/src/cutile/fp8_gemm.rs:485-495 | mistralrs-quant/src/cutile/fp8_w8a16.rs:638-648 | mistralrs-quant/src/cutile/fp8_w8a8.rs:729-739 | mistralrs-quant/src/cutile/fused_moe.rs:836-847 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:753-764 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fp8_gemm.rs\u0060 and \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 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 \u0060mistralrs-quant/src/cutile/fp8_gemm.rs:485\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":"mistralrs-quant/src/cutile/fp8_gemm.rs"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6856c10ed5577d7f99a829b7430555f260491b32c147b8bf5c938ba37ceb1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): mistralrs-quant/src/hqq/mod.rs:381-386 | mistralrs-quant/src/hqq/mod.rs:396-401 | mistralrs-quant/src/hqq/mod.rs:470-475 | mistralrs-quant/src/hqq/mod.rs:534-539 | mistralrs-quant/src/hqq/mod.rs:557-562 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/hqq/mod.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"96aa3f90f2e07da05ab4c0b5b51e1fd151c0797cdf174aa3071fdbd9b76b5f34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): mistralrs-quant/src/metal_kernels/mod.rs:1594-1600 | mistralrs-quant/src/metal_kernels/mod.rs:1670-1676 | mistralrs-quant/src/metal_kernels/mod.rs:1739-1744 | mistralrs-quant/src/metal_kernels/mod.rs:2720-2727 | mistralrs-quant/src/metal_kernels/mod.rs:2856-2862 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060mistralrs-quant/src/metal_kernels/mod.rs:2852\u0060 calls \u0060type_to_name\u0060 and \u0060mistralrs-quant/src/metal_kernels/mod.rs:1591\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":1594}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8ee2d2828da66763910ab17a5bc7ee9e2c7488832383e8a60e5d65216ba9673"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): mistralrs-core/src/cuda/gdn.rs:1984-1989 | mistralrs-core/src/cuda/gdn.rs:1991-1996 | mistralrs-core/src/cuda/gdn.rs:6215-6220 | mistralrs-core/src/cuda/moe.rs:53-58 \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 \u0060mistralrs-core/src/cuda/gdn.rs:1984\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":1984}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f104aa041f9c604929ca81c6ea83cbcb6ffde00d7f8f028ec8fa34c9dbd0ef5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): mistralrs-core/src/models/gemma2.rs:573-579 | mistralrs-core/src/models/qwen2.rs:601-607 | mistralrs-core/src/vision_models/gemma3/text.rs:743-749 | mistralrs-core/src/xlora_models/gemma2.rs:642-648 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma2.rs\u0060 and \u0060mistralrs-core/src/models/qwen2.rs\u0060 as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 475 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 \u0060mistralrs-core/src/models/gemma2.rs:573\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":"mistralrs-core/src/models/gemma2.rs"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"548a53f4f0418da7294d661273b8ee6c693f262e9d85aa46bc9c06aa602d5116"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): mistralrs-core/src/models/llama.rs:523-530 | mistralrs-core/src/models/smollm3.rs:542-549 | mistralrs-core/src/vision_models/llama4/text.rs:1022-1029 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:510-516 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/llama.rs\u0060 and \u0060mistralrs-core/src/models/smollm3.rs\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 727 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 \u0060mistralrs-core/src/models/llama.rs:523\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":"mistralrs-core/src/models/llama.rs"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a589d8e0df8db6895d4ca0bbb43397108fe3affc1e951513ba6dc2450dcecc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): mistralrs-core/src/vision_models/gemma4/mod.rs:394-399 | mistralrs-core/src/vision_models/idefics3/mod.rs:232-237 | mistralrs-core/src/vision_models/llava/llava_next.rs:290-295 | mistralrs-core/src/vision_models/mistral3/mod.rs:261-266 \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 \u0060mistralrs-core/src/vision_models/gemma4/mod.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/gemma4/mod.rs"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ad265ce30ab164443e52d5d2f3401e9b50c030a6386f461f2b908d562a9ace"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): mistralrs-core/src/vision_models/grid_processor.rs:1869-1874 | mistralrs-core/src/vision_models/grid_processor.rs:1918-1923 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1008-1013 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1573-1578 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:1869\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1869}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bbac399456e712f5f1280ec19f8efe8144ba6d5930cc52c983a0ea18f81c33d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): mistralrs-core/src/vision_models/qwen3_5/mod.rs:184-190 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:167-173 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:690-696 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:136-142 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs\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 24 separate duplicated blocks between them, totalling at least 425 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":"mistralrs-core/src/vision_models/qwen3_5/mod.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac24da5b1dc889054908b42d70e4da43992bdbe41bc8d145432f06c269f24a63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): mistralrs-quant/src/blockwise_fp8/mma.rs:147-152 | mistralrs-quant/src/blockwise_fp8/ops.rs:881-886 | mistralrs-quant/src/blockwise_fp8/ops.rs:1679-1684 | mistralrs-quant/src/cutile/nvfp4_glu.rs:468-473 \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 \u0060mistralrs-quant/src/blockwise_fp8/mma.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/blockwise_fp8/mma.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2ef9e4be974a80462785e5b4230842141e0781342f6bebe9f0b848e8ba4f5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): mistralrs-server-core/src/chat_completion.rs:1447-1454 | mistralrs-server-core/src/completions.rs:459-466 | mistralrs-server-core/src/image_generation.rs:187-194 | mistralrs-server-core/src/speech_generation.rs:442-449 \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 \u0060mistralrs-server-core/src/chat_completion.rs:1447\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, \u0060mistralrs-server-core/src/completions.rs:457\u0060 calls \u0060ImageGeneration\u0060 and \u0060mistralrs-server-core/src/image_generation.rs:185\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":"mistralrs-server-core/src/chat_completion.rs"},"region":{"startLine":1447}}}],"partialFingerprints":{"codehealthFindingId/v1":"af0f66e7469d378bbc29976c1d7b141f32f59b53c890d36f90811b2697a6a69d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-cli/src/commands/bench.rs:157-162 | mistralrs-cli/src/commands/config.rs:283-288 | mistralrs-cli/src/commands/run/mod.rs:127-132 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060mistralrs-cli/src/commands/run/mod.rs:134\u0060 calls \u0060Some\u0060 and \u0060mistralrs-cli/src/commands/config.rs:291\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":"mistralrs-cli/src/commands/bench.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec526e66affcf3b1ca795392a01b790e8c88fffede00515b614ce00640b1e693"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): mistralrs-core/src/attention/backends/cpu/avx.rs:315-323 | mistralrs-core/src/attention/backends/cpu/neon.rs:383-391 | mistralrs-core/src/attention/backends/cpu/neon.rs:622-630 \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 \u0060mistralrs-core/src/attention/backends/cpu/avx.rs:315\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":"mistralrs-core/src/attention/backends/cpu/avx.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8676c7895e29c472ee6bfa01d1ebbae85777999f0f995cd16034397eadc803"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-core/src/cuda/gdn.rs:1744-1749 | mistralrs-core/src/cuda/gdn.rs:5987-5992 | mistralrs-core/src/cuda/moe.rs:56-61 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060mistralrs-core/src/cuda/gdn.rs:1742\u0060 calls \u0060stride\u0060 and \u0060mistralrs-core/src/cuda/moe.rs:54\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":1744}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cebbd55f4f9119a23f1b48454943d18b39eb7d03d066281065b4ff0b7cccaaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-core/src/cuda/gdn.rs:1987-1992 | mistralrs-core/src/cuda/gdn.rs:3168-3173 | mistralrs-core/src/cuda/gdn.rs:6211-6216 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060mistralrs-core/src/cuda/gdn.rs:3174\u0060 calls \u0060stride\u0060 and \u0060mistralrs-core/src/cuda/gdn.rs:6218\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":1987}}}],"partialFingerprints":{"codehealthFindingId/v1":"62aefa5522a4f6cc83d0eceba1ba820f0627bb81a335faf5e233c4c52b1dad4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-core/src/cuda/gdn.rs:1994-1999 | mistralrs-core/src/cuda/gdn.rs:3178-3183 | mistralrs-core/src/cuda/gdn.rs:6218-6223 \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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":1994}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f49c369dc55dc1790a788015b51c2724c0f4c0ef22d7f8108b35a8b6c0761f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-core/src/embedding_models/qwen3_embedding.rs:455-460 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:524-529 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:645-650 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_vl/text.rs\u0060 as WHOLE FILES: this scan already matched 8 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 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:455\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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"3300337369e374d4fc8a5a61e8b892dd689f39de07c606db9eed0e3c59dead24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-core/src/layers.rs:1644-1649 | mistralrs-core/src/layers.rs:1807-1815 | mistralrs-core/src/layers.rs:1955-1960 \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":"mistralrs-core/src/layers.rs"},"region":{"startLine":1644}}}],"partialFingerprints":{"codehealthFindingId/v1":"1029dc504bde5c447183ccf02d7c04f51592c904405e25e1abd55fb45121278e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-core/src/models/granite.rs:1570-1575 | mistralrs-core/src/vision_models/phi3/mod.rs:272-277 | mistralrs-core/src/vision_models/phi4/mod.rs:141-146 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/granite.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi3/mod.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 135 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 \u0060mistralrs-core/src/models/granite.rs:1570\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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":1570}}}],"partialFingerprints":{"codehealthFindingId/v1":"2952883789d1bd99c775199b2ec12e1737541c69fd7f4b3ca236e09ef002a1f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-core/src/pipeline/embedding.rs:247-252 | mistralrs-core/src/pipeline/gguf.rs:1316-1321 | mistralrs-core/src/pipeline/multimodal.rs:681-686 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/embedding.rs\u0060 and \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 178 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 \u0060mistralrs-core/src/pipeline/embedding.rs:247\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, \u0060mistralrs-core/src/pipeline/multimodal.rs:678\u0060 calls \u0060clone\u0060 and \u0060mistralrs-core/src/pipeline/embedding.rs:244\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":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea57b78181afc8355ade816649c2d023dd2b379cce46a8b3096f2617fc6f4f28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-core/src/vision_models/muse_glimmer/mod.rs:338-343 | mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:432-437 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:588-593 \u2014 \u0060mistralrs-core/src/vision_models/muse_glimmer/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs\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 66 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":"mistralrs-core/src/vision_models/muse_glimmer/mod.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"1177fa706663ba270e4be162f51cbb61612c5b642bb76b9ad766ecec1c234005"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:28-33 | mistralrs-quant/src/utils/ops.rs:2231-2236 | mistralrs-quant/src/utils/ops.rs:2455-2460 \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 \u0060mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:28\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":"mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"720174a446f5914874b55ca89c38a3bf5c63134c4bae648aa2e2580e38b5acb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:66-71 | mistralrs-quant/src/gguf/fast_mmq.rs:394-399 | mistralrs-quant/src/gguf/fast_mmvq.rs:127-132 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/gguf/fast_mmq.rs\u0060 and \u0060mistralrs-quant/src/gguf/fast_mmvq.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 62 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 \u0060mistralrs-paged-attn/src/cuda/backend/paged_attention.rs: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":"mistralrs-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"216f488bb48dab5d4d162cc1ea3b195906bfe41821dbf1d6ab020bd931a831aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-quant/src/metal_kernels/mod.rs:486-491 | mistralrs-quant/src/metal_kernels/mod.rs:661-669 | mistralrs-quant/src/metal_kernels/mod.rs:3309-3319 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:486\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"64baef2d5d5ddd69fe06215936331c5fbb1e0cf0f61cfe0e11a6020e28834549"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-quant/src/metal_kernels/mod.rs:1392-1397 | mistralrs-quant/src/metal_kernels/mod.rs:1403-1408 | mistralrs-quant/src/metal_kernels/mod.rs:1438-1443 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:1392\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, \u0060mistralrs-quant/src/metal_kernels/mod.rs:1398\u0060 calls \u0060set_param\u0060 and \u0060mistralrs-quant/src/metal_kernels/mod.rs:1409\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1d3dfd15fe8a31ac0bf6154c405d66824c9081ae5600c1d13fb9c807fb459b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-quant/src/metal_kernels/mod.rs:1606-1611 | mistralrs-quant/src/metal_kernels/mod.rs:1685-1690 | mistralrs-quant/src/metal_kernels/mod.rs:4783-4788 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:1606\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, \u0060mistralrs-quant/src/metal_kernels/mod.rs:4781\u0060 calls \u0060set_input_buffer\u0060, \u0060Some\u0060 and \u0060mistralrs-quant/src/metal_kernels/mod.rs:1604\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":1606}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b7053661183a3b9fc937ac843725c1b73a92468fa3eb89bc928343201416db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-cli/src/commands/bench.rs:69-74 | mistralrs-cli/src/commands/serve.rs:921-926 \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 \u0060mistralrs-cli/src/commands/bench.rs:69\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":"mistralrs-cli/src/commands/bench.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c3bd3299d378b2f051b74e7cbee17a63971bacaa9ccbc117ea10a02a8e98d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-cli/src/commands/serve.rs:932-939 | mistralrs-cli/src/commands/serve.rs:968-973 \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":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"331a921269e80576b88d36ffb64a7fe1706c5da1fa93f35264e9689305cf22a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-code-exec/src/lib.rs:497-502 | mistralrs-code-exec/src/lib.rs:547-552 \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 \u0060mistralrs-code-exec/src/lib.rs:497\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":"mistralrs-code-exec/src/lib.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1829d7634672f632fc5729826f97ce84a726ee372a9e59a5a3ae49af06647db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-code-exec/src/shell.rs:480-485 | mistralrs-server-core/src/skills.rs:676-681 \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 \u0060mistralrs-code-exec/src/shell.rs:480\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":"mistralrs-code-exec/src/shell.rs"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"08b1c602dfa14d62da5c66d1c42247915ad73e2e607feb1e3d1bacb7c1db9934"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/attention/backends/cpu/full.rs:515-520 | mistralrs-core/src/attention/backends/cpu/single_q.rs:314-319 \u2014 before extracting anything, compare \u0060mistralrs-core/src/attention/backends/cpu/full.rs\u0060 and \u0060mistralrs-core/src/attention/backends/cpu/single_q.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 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 \u0060mistralrs-core/src/attention/backends/cpu/full.rs:515\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":"mistralrs-core/src/attention/backends/cpu/full.rs"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f346ef6e4854f7ce5e31519ef22d83ed4b57ff3df892b65013c6742ea5cb31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/attention/mod.rs:241-247 | mistralrs-core/src/layers_utils.rs:4-10 \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":"mistralrs-core/src/attention/mod.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb150103cf320620927db3227ab91099108f7c8f7b1c2cb32a6ceac3cdd76c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:1736-1741 | mistralrs-core/src/cuda/gdn.rs:5967-5972 \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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":1736}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a260dd1c668c8f5da19335d6299ce26b91ff8992ec2f8006a830f76f17a548f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:1761-1766 | mistralrs-core/src/cuda/gdn.rs:1805-1810 \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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb1e6494cab761975b680739fa0b6154f2d46dd6c848800ab031a5b201a5483"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:1980-1985 | mistralrs-core/src/cuda/gdn.rs:3159-3164 \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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":1980}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e93d115482aea1493eb4088ea56ac3de114e010bbcd80443650065a4c71d99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:4622-4627 | mistralrs-core/src/cuda/gdn.rs:4629-4634 \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 \u0060mistralrs-core/src/cuda/gdn.rs:4622\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":4622}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e07dba47e5af06542ca40bcbefab72033d53e4d7926b91ad9f3baf11e59498"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/cuda/moe.rs:60-65 | mistralrs-core/src/cuda/moe.rs:67-72 \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 \u0060mistralrs-core/src/cuda/moe.rs:60\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":"mistralrs-core/src/cuda/moe.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ae29ac76f15974049b263a769d767ddc7805d13d4ff52fdd474fada2ca2f5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/cuda/ssm.rs:40-46 | mistralrs-core/src/metal/ssm.rs:136-141 \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":"mistralrs-core/src/cuda/ssm.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"7561991d5508c6372635df6934e38e8be98883448c02b42fad43f69b3e5c35b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/diffusion_models/t5/mod.rs:261-266 | mistralrs-core/src/diffusion_models/t5/mod.rs:275-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 \u0060mistralrs-core/src/diffusion_models/t5/mod.rs:261\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":"mistralrs-core/src/diffusion_models/t5/mod.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9aae204d5a8a03c25df325140fc86141748bbd2282503e1c57d531005b30e4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/distributed.rs:465-470 | mistralrs-core/src/distributed.rs:680-686 \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 \u0060mistralrs-core/src/distributed.rs:465\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":"mistralrs-core/src/distributed.rs"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b7936b9a21861b050ed0abfdab6270608f09d88801a7a7d362340d2149fa01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/embedding_models/embedding_gemma.rs:523-528 | mistralrs-core/src/embedding_models/qwen3_embedding.rs:471-476 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs\u0060 and \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 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 \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs:523\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, \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:478\u0060 calls \u0060pp\u0060, \u0060add\u0060 and \u0060mistralrs-core/src/embedding_models/embedding_gemma.rs:530\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":"mistralrs-core/src/embedding_models/embedding_gemma.rs"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"b424709f130f8609219ad9612a87beaa05a24d4d0e1b6220253edbd5871807b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/gdn/backend.rs:1103-1108 | mistralrs-core/src/models/granite.rs:1191-1196 \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 \u0060mistralrs-core/src/gdn/backend.rs:1103\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":"mistralrs-core/src/gdn/backend.rs"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73116ae22329a7d229cc837c6937170aa2f2b90101ca9851f0b1f2bc35930d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/gguf/gguf_tokenizer.rs:528-533 | mistralrs-core/src/gguf/gguf_tokenizer.rs:636-641 \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 \u0060mistralrs-core/src/gguf/gguf_tokenizer.rs:528\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":"mistralrs-core/src/gguf/gguf_tokenizer.rs"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fae7145e92c54f91d862d121e6fa40b1c1416ebc2c546947e4b43387b139bde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/gguf/normal_config.rs:1166-1172 | mistralrs-core/src/gguf/normal_config.rs:1287-1293 \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":"mistralrs-core/src/gguf/normal_config.rs"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"7591652e0c7e4304d2ca25c164450e321175d41fe0bac45ba9055e44989ea0eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/kv_cache/hybrid_cache.rs:1276-1281 | mistralrs-core/src/kv_cache/hybrid_cache.rs:1904-1909 \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 \u0060mistralrs-core/src/kv_cache/hybrid_cache.rs:1276\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 \u0060self\u0060 to \u0060\u0026mut\u0060 in one and \u0060crate) fn disable_gdn_deferred_state(\u0026mut\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":"mistralrs-core/src/kv_cache/hybrid_cache.rs"},"region":{"startLine":1276}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b8eb2e6ba000dd5effadd8f31869d3f3664e127cdd51cf3ccdf438d4115621"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/model_loader.rs:414-419 | mistralrs-core/src/model_loader.rs:431-436 \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 \u0060mistralrs-core/src/model_loader.rs:414\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, \u0060mistralrs-core/src/model_loader.rs:413\u0060 calls \u0060unwrap_or_default\u0060 and \u0060mistralrs-core/src/model_loader.rs:430\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":"mistralrs-core/src/model_loader.rs"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a833db9c40b558688203565ac340a4fb9376f2f176645e9b7df61c4e466b38d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/models/flint.rs:801-806 | mistralrs-core/src/models/lfm2.rs:1060-1065 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/lfm2.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 104 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 \u0060mistralrs-core/src/models/flint.rs:801\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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"85c29f85542f38ccb087d86bfe533b14b582c126d1bfef777d61853dc420c9d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/models/lfm2.rs:1244-1249 | mistralrs-core/src/models/qwen3_next.rs:1051-1057 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/lfm2.rs\u0060 and \u0060mistralrs-core/src/models/qwen3_next.rs\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 161 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 \u0060mistralrs-core/src/models/lfm2.rs:1244\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":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":1244}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f83fca1fa43e6995a28c5997804ada91b771841503e244964f77eece6382bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/ops.rs:3917-3922 | mistralrs-core/src/ops.rs:4044-4049 \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 \u0060mistralrs-core/src/ops.rs:3917\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":3917}}}],"partialFingerprints":{"codehealthFindingId/v1":"12aebb5c66eb144851655b5c24bcafdd0564f6d3b7b50071b51e7ac400010353"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/ops.rs:5617-5625 | mistralrs-core/src/ops.rs:6048-6056 \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, \u0060mistralrs-core/src/ops.rs:6047\u0060 calls \u0060device\u0060, \u0060same_device\u0060 and \u0060mistralrs-core/src/ops.rs:5616\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":5617}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9b8c95248a64072900848a3bbcb356e027fb3d28254c5fcb51dfdce4c4933c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): mistralrs-core/src/pipeline/chat_template.rs:386-391 | mistralrs-core/src/pipeline/chat_template.rs:396-402 \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 \u0060mistralrs-core/src/pipeline/chat_template.rs:396\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":"mistralrs-core/src/pipeline/chat_template.rs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45e5223b3269dd6be416db97f660f7c760c7a65bccf57bd3cfabc68aa22f903"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:281-286 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:174-179 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 445 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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:281\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"d98db823fedde62ddce9e129c6ce3e1490499658d8498f8274f9c846c343f3ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/sequence.rs:2102-2107 | mistralrs-core/src/sequence.rs:2134-2139 \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 \u0060mistralrs-core/src/sequence.rs:2102\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":"mistralrs-core/src/sequence.rs"},"region":{"startLine":2102}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ab56dd55a023e565d99957ec2db6da2d596d3c2db8b7f0bb3514e71c888386"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/utils/varbuilder_utils.rs:98-103 | mistralrs-core/src/utils/varbuilder_utils.rs:134-139 \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 \u0060mistralrs-core/src/utils/varbuilder_utils.rs: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":"mistralrs-core/src/utils/varbuilder_utils.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ac56003b1ff0ef78cf2769d86d9da7a598dcac6c77779a0ecb7c54076fc94f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3/mod.rs:179-184 | mistralrs-core/src/vision_models/mistral3/mod.rs:323-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 \u0060mistralrs-core/src/vision_models/gemma3/mod.rs:179\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":"mistralrs-core/src/vision_models/gemma3/mod.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad104c4c50db643df6521bae3ffff5a169dc66efa391170840ab9462d09c6028"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/audio.rs:562-569 | mistralrs-core/src/vision_models/gemma4/audio.rs:627-632 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/audio.rs\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 20 separate duplicated blocks between them, totalling at least 352 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, \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs:570\u0060 calls \u0060dim\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/audio.rs:633\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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"93052c5dddc4534c796d930e0b32a1caa5c27ca00d1f5cd2cbe778d0427f8ac3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/audio.rs:592-603 | mistralrs-core/src/vision_models/gemma4/audio.rs:649-659 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/audio.rs\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 20 separate duplicated blocks between them, totalling at least 352 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 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs:592\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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef22748c590b1f7c3c167450c8a5e1317b48e873180050bd205c3a001237db37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/mod.rs:375-380 | mistralrs-core/src/vision_models/gemma3n/mod.rs:416-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 \u0060mistralrs-core/src/vision_models/gemma3n/mod.rs:375\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":"mistralrs-core/src/vision_models/gemma3n/mod.rs"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfd5deb7afa23f4d0dd1c517b46dfd541cbd515edd6537ebf22d6a71146fd1f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/audio.rs:259-268 | mistralrs-core/src/vision_models/gemma4/vision.rs:90-99 \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":"mistralrs-core/src/vision_models/gemma4/audio.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"959dae1ffb36865751ca453c1e06ea3870d0eb29e12299b0aced20c077380d95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/vision_models/idefics2/mod.rs:753-760 | mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:126-131 \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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb07eac12e0c7b3377b05eeeb6637c63365266b07aff131c5427d9bf6a6be310"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/vision_models/idefics3/vision.rs:243-253 | mistralrs-core/src/vision_models/siglip.rs:247-257 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics3/vision.rs\u0060 and \u0060mistralrs-core/src/vision_models/siglip.rs\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 276 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 \u0060mistralrs-core/src/vision_models/idefics3/vision.rs:243\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 \u0060Idefics3VisionConfig\u0060 in one and \u0060SiglipVisionConfig\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":"mistralrs-core/src/vision_models/idefics3/vision.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4dfe72048e16df5ba10faec041d9c8a4823fd22a407667c1dac69c7dfbf3254"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/vision_models/llama4/mod.rs:121-127 | mistralrs-core/src/vision_models/mistral3/mod.rs:244-249 \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 \u0060mistralrs-core/src/vision_models/llama4/mod.rs: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":"mistralrs-core/src/vision_models/llama4/mod.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4dce18a3632a54f4ea54c26bce2d2fd2982b45946af00b3c4adb1b84424bdfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:234-239 | mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:499-504 \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":"mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ce232f534998c735c30c8865b3064ab76c5dea8c779c49a29ea21996427a55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/vision_models/phi3/mod.rs:748-755 | mistralrs-core/src/vision_models/phi3/mod.rs:945-952 \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 \u0060mistralrs-core/src/vision_models/phi3/mod.rs:748\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":"mistralrs-core/src/vision_models/phi3/mod.rs"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e87e2d87e58948abe25cf3cbecd50bbeecb456a88001fe5457b375f367419f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/vision_models/phi4/image_embedding.rs:340-345 | mistralrs-core/src/vision_models/phi4/image_embedding.rs:355-360 \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":"mistralrs-core/src/vision_models/phi4/image_embedding.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ed1b7aada0f5234aa643b419b5e5eb48f3fdbf3a640ddaa33063050185ceb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/text.rs:1482-1489 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:849-856 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs\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 26 separate duplicated blocks between them, totalling at least 469 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 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs:1482\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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":1482}}}],"partialFingerprints":{"codehealthFindingId/v1":"45da68af408d248c07fcaa73bba5efba3b6c004191de552d6f04e7d795a88a95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:237-242 | mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:248-253 \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 \u0060mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:237\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":"mistralrs-paged-attn/src/cuda/backend/gather_kv.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fbb0aba405897c62fe2e242c76882ba0d89525e18a7352fdcc6d82465f224d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-paged-attn/src/metal/kernels/mod.rs:170-176 | mistralrs-quant/src/metal_kernels/mod.rs:183-188 \u2014 before extracting anything, compare \u0060mistralrs-paged-attn/src/metal/kernels/mod.rs\u0060 and \u0060mistralrs-quant/src/metal_kernels/mod.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 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 \u0060mistralrs-paged-attn/src/metal/kernels/mod.rs:170\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":"mistralrs-paged-attn/src/metal/kernels/mod.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5fd352dc00c22923c47cfe8c39c785519805adade7c3a9941e1c6109ef6bfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-pyo3/src/util.rs:160-168 | mistralrs-pyo3/src/util.rs: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 \u0060mistralrs-pyo3/src/util.rs: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":"mistralrs-pyo3/src/util.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef325349ca6a43a2cb0676d492bbd458505894d9019b6272d79ffa48ac1bfb03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/bitsandbytes/op.rs:215-220 | mistralrs-quant/src/gguf/fast_mmq.rs:933-938 \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 \u0060mistralrs-quant/src/bitsandbytes/op.rs:215\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":"mistralrs-quant/src/bitsandbytes/op.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"df29f8a1d6a7ed0599f8e7cd7f1f3686e7267c64f62b6394bd077d241dc3dbda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:179-184 | mistralrs-quant/src/blockwise_fp8/ops.rs:293-298 \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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b183eec33617c72335be343054c405cac57bd2ed4ddd62ef71ffe537226e893"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/cublaslt/matmul.rs:425-433 | mistralrs-quant/src/cublaslt/matmul.rs:544-552 \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":"mistralrs-quant/src/cublaslt/matmul.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b6edfc05fbe45aa2c56fa7de98021ae8c715c142cf57c88beedae93900c350"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:311-316 | mistralrs-quant/src/cutile/fp8_w8a8.rs:304-309 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs\u0060 and \u0060mistralrs-quant/src/cutile/fp8_w8a8.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 212 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 \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs:311\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":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ad03031d81dd6810f2e369cb201f905adaf0e846bd4d0079fe4eca7d37bd26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20136 lines \u00D7 3): mistralrs-quant/src/cutile/fp8_w8a16.rs:443-448 | mistralrs-quant/src/cutile/fp8_w8a8.rs:516-521 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:300-303 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs\u0060 and \u0060mistralrs-quant/src/cutile/fp8_w8a8.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 212 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 \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs:443\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, \u0060mistralrs-quant/src/cutile/nvfp4_gemv.rs:306\u0060 calls \u0060storage_and_layout\u0060 and \u0060mistralrs-quant/src/cutile/fp8_w8a8.rs:524\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":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1a342dcd14b817b99b9c7f14e309037a987bcab524f5c244f1379f5d02ed166"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:537-542 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:390-395 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs\u0060 and \u0060mistralrs-quant/src/cutile/nvfp4_gemv.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 31 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 \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs:537\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, \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs:543\u0060 calls \u0060dims\u0060 and \u0060mistralrs-quant/src/cutile/nvfp4_gemv.rs:396\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":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eec73387fa85bc8a493c54581a695194e0302ef0c211f8b1a0906587999ac13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:636-641 | mistralrs-quant/src/cutile/fp8_w8a8.rs:727-732 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs\u0060 and \u0060mistralrs-quant/src/cutile/fp8_w8a8.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 212 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 \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs:636\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 \u0060Fp8W8A16Config\u0060 in one and \u0060CutileFp8W8A8Config\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":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"725c34ae1f0348d50855b94b519a07121c203944c3db910a392147b7f73d8f3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:691-696 | mistralrs-quant/src/cutile/fp8_w8a8.rs:785-790 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs\u0060 and \u0060mistralrs-quant/src/cutile/fp8_w8a8.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 212 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 \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs:691\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":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c728177e1bc49bc036bfc9ee761781d854b94de4fa083059dd5613b5194eea1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:488-494 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:936-942 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fused_moe.rs\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe_fp8.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 298 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 \u0060mistralrs-quant/src/cutile/fused_moe.rs:488\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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee32b16c11da9a14aac8ba89c68e30614f0073c468494097c11d1fd64257dac4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/cutile/mxfp8_gemm.rs:543-551 | mistralrs-quant/src/mxfp8/cuda.rs:173-178 \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 \u0060mistralrs-quant/src/cutile/mxfp8_gemm.rs:543\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":"mistralrs-quant/src/cutile/mxfp8_gemm.rs"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a5465bf4f52fcff8672f87c0f3795773441d38709560d3c4ca892767f3d556"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-quant/src/cutile/qsa.rs:319-334 | mistralrs-quant/src/cutile/qsa_decode.rs:107-122 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/qsa.rs\u0060 and \u0060mistralrs-quant/src/cutile/qsa_decode.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 134 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":"mistralrs-quant/src/cutile/qsa.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2a394aaa66234a7e3d57452ebdef115d5f47df2c79e7c1b8dd7b974e0410aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/distributed/mod.rs:974-979 | mistralrs-quant/src/distributed/mod.rs:1096-1101 \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":"mistralrs-quant/src/distributed/mod.rs"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9785f449fd4edb21e44174b9a5f09bb92ca3b4410de272a71d1ac4f9b42208c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/gguf/cuda.rs:696-701 | mistralrs-quant/src/gguf/cuda.rs:756-761 \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 \u0060mistralrs-quant/src/gguf/cuda.rs:696\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":"mistralrs-quant/src/gguf/cuda.rs"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd8b2204704903e7040f99a87d744d99e8b6471870e6fd4497fbeeab73bb3489"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmq.rs:923-929 | mistralrs-quant/src/gguf/fast_mmq.rs:1124-1130 \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":"mistralrs-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"c76495f19c22221ee6175c8b89369824116f21cd5ca47b50e235cb680d125c3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmvq.rs:450-455 | mistralrs-quant/src/gguf/fast_mmvq.rs:1153-1158 \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 \u0060mistralrs-quant/src/gguf/fast_mmvq.rs:450\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, \u0060mistralrs-quant/src/gguf/fast_mmvq.rs:1160\u0060 calls \u0060max\u0060 and \u0060mistralrs-quant/src/gguf/fast_mmvq.rs:457\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":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"917d0ee95550eb7cbfc1b834727cda15e6e52a5928fb7b40b465b71ad256bf86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 2): mistralrs-quant/src/metal_kernels/mod.rs:2667-2683 | mistralrs-quant/src/metal_kernels/mod.rs:2814-2827 \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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":2667}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f71fb6c98a77d397abf1a611c2f8364ab16c245a5ced89f7f471f217c26035"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/metal_kernels/mod.rs:2945-2950 | mistralrs-quant/src/metal_kernels/mod.rs:2982-2987 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:2945\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, \u0060mistralrs-quant/src/metal_kernels/mod.rs:2980\u0060 calls \u0060set_output_buffer\u0060, \u0060Some\u0060 and \u0060mistralrs-quant/src/metal_kernels/mod.rs:2944\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":2945}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f004ba1ac774ab1d6a5f893d13946a40ad07f335374651053b3a7280db65df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20136 lines \u00D7 3): mistralrs-quant/src/mxfp4/mod.rs:639-642 | mistralrs-quant/src/mxfp4/mod.rs:703-708 | mistralrs-quant/src/mxfp4/mod.rs:776-781 \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":"mistralrs-quant/src/mxfp4/mod.rs"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03f2ea1b93b110e49386411f66d6fb702ae856d5cf8b1c7be5d681df6ac2762"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20136 lines \u00D7 2): mistralrs-quant/src/rotary/mod.rs:19-23 | mistralrs-quant/src/rotary/mod.rs:223-228 \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 \u0060mistralrs-quant/src/rotary/mod.rs: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. 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":"mistralrs-quant/src/rotary/mod.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c485a27b99183034913f1a5c9b7adee9a7ad57cfc6fc6e6ebd6e61ee55754db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20136 lines \u00D7 2): mistralrs-quant/src/rotary/mod.rs:26-30 | mistralrs-quant/src/rotary/mod.rs:234-239 \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 \u0060mistralrs-quant/src/rotary/mod.rs:234\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":"mistralrs-quant/src/rotary/mod.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"142933290f1267388c821189c356dd3d66c49060834bbc1a82f521de20e82477"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/rotary/mod.rs:610-615 | mistralrs-quant/src/rotary/mod.rs:723-728 \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 \u0060mistralrs-quant/src/rotary/mod.rs:610\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":"mistralrs-quant/src/rotary/mod.rs"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"6464d75992c742fbdacd9597e377b5a954ebb0d7cf1dd5f4d6e0cc1a532fc46c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/safetensors.rs:145-150 | mistralrs-quant/src/safetensors.rs:183-188 \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 \u0060mistralrs-quant/src/safetensors.rs:145\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":"mistralrs-quant/src/safetensors.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"471638d5e7f9fa7ecc79a534f62ef4ff5f4eb5ce567b919048eb86fd12b6a2f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/utils/ops.rs:45-50 | mistralrs-quant/src/utils/ops.rs:695-700 \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 \u0060mistralrs-quant/src/utils/ops.rs: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060mistralrs-quant/src/utils/ops.rs:691\u0060 calls \u0060is_contiguous\u0060 and \u0060mistralrs-quant/src/utils/ops.rs:44\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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"642dcfd4b107b3f56c3b23bbe25704791a5d68dbb2dfb4b9b03333ca9f2d40d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-server-core/src/mistralrs_for_server_builder.rs:1016-1021 | mistralrs-server-core/src/mistralrs_for_server_builder.rs:1185-1190 \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":"mistralrs-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"6954e114855144f1c371a3598f501f696e6624f2bd1e1dce4542f81dd0605940"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 14): mistralrs-core/src/models/deepseek2.rs:973-977 | mistralrs-core/src/models/deepseek3.rs:1036-1040 | mistralrs-core/src/models/flint.rs:973-977 | mistralrs-core/src/models/gemma.rs:486-490 | mistralrs-core/src/models/glm4.rs:603-607 | mistralrs-core/src/models/glm4_moe.rs:851-855 | mistralrs-core/src/models/glm4_moe_lite.rs:988-992 | mistralrs-core/src/models/hunyuan_v1_dense.rs:565-569 | mistralrs-core/src/models/hunyuan_v1_moe.rs:1059-1063 | mistralrs-core/src/models/mistral.rs:614-618 | mistralrs-core/src/models/mixtral.rs:552-556 | mistralrs-core/src/models/phi2.rs:563-565 | mistralrs-core/src/models/qwen3.rs:567-571 | mistralrs-core/src/models/qwen3_moe.rs:748-752 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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 \u0060mistralrs-core/src/models/deepseek2.rs:973\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060ctx\u0060 to \u0060\u0026mut ModelForwardContext\u003C\u0027_\u003E\u0060 in one and \u0060\u0026mut crate::pipeline::ModelForwardContext\u003C\u0027_\u003E\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, \u0060mistralrs-core/src/models/deepseek2.rs:973\u0060 calls \u0060to_device\u0060 and \u0060mistralrs-core/src/models/phi2.rs:563\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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":973}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5e1ffc17d451d970e54bc743979c7701244a45e853cdd9986b0acfdc4e469d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 9): mistralrs-core/src/layers.rs:884-889 | mistralrs-core/src/layers.rs:942-947 | mistralrs-core/src/layers.rs:959-964 | mistralrs-core/src/layers.rs:2046-2051 | mistralrs-core/src/layers.rs:2220-2225 | mistralrs-core/src/layers.rs:2265-2270 | mistralrs-core/src/layers.rs:2282-2287 | mistralrs-core/src/layers.rs:3074-3079 | mistralrs-core/src/layers.rs:3207-3212 \u2014 all 9 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 \u0060mistralrs-core/src/layers.rs:884\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":"mistralrs-core/src/layers.rs"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"39adaa191de114516acd699f7dd93b0e48b0933ba2bce40e32a535e450cee657"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): mistralrs-core/src/models/flint.rs:597-601 | mistralrs-core/src/models/gpt_oss.rs:517-521 | mistralrs-core/src/models/lfm2.rs:330-334 | mistralrs-core/src/models/phi3_5_moe.rs:366-370 | mistralrs-core/src/models/qwen3_moe.rs:403-407 | mistralrs-core/src/models/qwen3_next.rs:474-478 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:378-382 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:142-146 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/gpt_oss.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 268 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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb25c59a91119218396631376b6f11ebad038849c292aa28976e67c03e877df2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): mistralrs-core/src/ops.rs:1124-1128 | mistralrs-core/src/ops.rs:1353-1357 | mistralrs-core/src/ops.rs:1598-1602 | mistralrs-core/src/ops.rs:1840-1844 | mistralrs-core/src/ops.rs:2047-2051 | mistralrs-core/src/ops.rs:2180-2184 | mistralrs-core/src/ops.rs:3920-3924 | mistralrs-core/src/ops.rs:4047-4051 \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 \u0060mistralrs-core/src/ops.rs:1124\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":1124}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca4a3444329044155935aee9a42fa72c5ef431d5864335a57bb499a9c6ff8f9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): mistralrs-core/src/vision_models/qwen3_5/mod.rs:215-220 | mistralrs-core/src/vision_models/qwen3_5/mod.rs:277-281 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:198-203 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:260-264 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:726-731 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:802-806 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:172-177 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:248-252 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs\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 24 separate duplicated blocks between them, totalling at least 425 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 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs: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":"mistralrs-core/src/vision_models/qwen3_5/mod.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c8bed44d5b2b4b29fb4d29649d7f8b83ebb7674669f0aa405f22448d4320f8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): mistralrs-paged-attn/src/cuda/backend/fa3.rs:187-192 | mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:316-321 | mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:608-613 | mistralrs-paged-attn/src/cuda/backend/mla.rs:34-39 | mistralrs-paged-attn/src/cuda/backend/mla.rs:321-326 | mistralrs-paged-attn/src/cuda/backend/mla.rs:684-689 | mistralrs-quant/src/blockwise_fp8/mma.rs:189-194 | mistralrs-quant/src/rotary/mod.rs:697-701 \u2014 before extracting anything, compare \u0060mistralrs-paged-attn/src/cuda/backend/flashinfer.rs\u0060 and \u0060mistralrs-paged-attn/src/cuda/backend/mla.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 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 \u0060mistralrs-paged-attn/src/cuda/backend/fa3.rs:187\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":"mistralrs-paged-attn/src/cuda/backend/fa3.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d63363e7c7b0949e7a5073a9f63b3cd3ea57446fbe81a736c4b49fc685e5338"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): mistralrs-core/src/embedding_models/qwen3_embedding.rs:455-459 | mistralrs-core/src/models/gemma2.rs:574-578 | mistralrs-core/src/models/qwen2.rs:602-606 | mistralrs-core/src/vision_models/gemma3/text.rs:744-748 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:524-528 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:645-649 | mistralrs-core/src/xlora_models/gemma2.rs:643-647 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/models/qwen2.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 122 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 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:455\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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"618c9285cf09d2ea87437b2cdf20db34698cc94ba0994a784bca2a0c1e9136e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): mistralrs-core/src/layers.rs:1630-1634 | mistralrs-core/src/layers.rs:1770-1774 | mistralrs-core/src/layers.rs:1941-1945 | mistralrs-core/src/layers.rs:3071-3075 | mistralrs-core/src/layers.rs:3204-3208 | mistralrs-core/src/models/glm4.rs:81-85 | mistralrs-core/src/models/glm4_moe.rs:107-111 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/glm4.rs\u0060 and \u0060mistralrs-core/src/models/glm4_moe.rs\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 359 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, \u0060mistralrs-core/src/layers.rs:1777\u0060 calls \u0060interleave_indices\u0060 and \u0060mistralrs-core/src/layers.rs:1636\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":"mistralrs-core/src/layers.rs"},"region":{"startLine":1630}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1c4b3838b6193183f0013afc84e2748c67a5c4b84a16de7b335d9531889ddfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 7): mistralrs-core/src/vision_models/diffusion_gemma/mod.rs:291-297 | mistralrs-core/src/vision_models/gemma3/mod.rs:181-187 | mistralrs-core/src/vision_models/gemma4/mod.rs:543-549 | mistralrs-core/src/vision_models/gemma4/mod.rs:666-672 | mistralrs-core/src/vision_models/gemma4/mod.rs:856-862 | mistralrs-core/src/vision_models/lfm2_vl/mod.rs:221-227 | mistralrs-core/src/vision_models/mistral3/mod.rs:325-331 \u2014 there are 7 copies across 5 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 7 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060mistralrs-core/src/vision_models/diffusion_gemma/mod.rs:291\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, \u0060mistralrs-core/src/vision_models/gemma4/mod.rs:542\u0060 calls \u0060dim\u0060 and \u0060mistralrs-core/src/vision_models/lfm2_vl/mod.rs:219\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":"mistralrs-core/src/vision_models/diffusion_gemma/mod.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f37398c03dc04a6bd9b10790d1e7025bb1086bd8ccd1dddd251a3a3d8202c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): mistralrs-core/src/embedding_models/qwen3_embedding.rs:452-457 | mistralrs-core/src/xlora_models/mistral.rs:595-599 | mistralrs-core/src/xlora_models/mixtral.rs:725-729 | mistralrs-core/src/xlora_models/phi2.rs:565-569 | mistralrs-core/src/xlora_models/phi3.rs:546-551 | mistralrs-core/src/xlora_models/starcoder2.rs:579-584 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/xlora_models/mistral.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 81 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 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:452\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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d6a4a5258dd01ae410122be43ce8a4485014e5ca9050ef2333405263335b3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): mistralrs-core/src/vision_models/grid_processor.rs:2079-2085 | mistralrs-core/src/vision_models/grid_processor.rs:2139-2145 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1144-1150 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1173-1179 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1709-1715 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1738-1744 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:2079\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":2079}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8409bd8b532873c075edff6495535b974cba3ee2e25ce4b88271cf72cacfa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 9): mistralrs-paged-attn/src/cuda/backend/mla.rs:129-131 | mistralrs-paged-attn/src/cuda/backend/mla.rs:154-156 | mistralrs-paged-attn/src/cuda/backend/mla.rs:179-181 | mistralrs-paged-attn/src/cuda/backend/mla.rs:440-444 | mistralrs-paged-attn/src/cuda/backend/mla.rs:499-503 | mistralrs-paged-attn/src/cuda/backend/mla.rs:558-562 | mistralrs-paged-attn/src/cuda/backend/mla.rs:764-769 | mistralrs-paged-attn/src/cuda/backend/mla.rs:802-807 | mistralrs-paged-attn/src/cuda/backend/mla.rs:840-845 \u2014 all 9 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 \u0060mistralrs-paged-attn/src/cuda/backend/mla.rs:129\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, \u0060mistralrs-paged-attn/src/cuda/backend/mla.rs:769\u0060 calls \u0060slice_ptr\u0060, \u0060start_offset\u0060 and \u0060mistralrs-paged-attn/src/cuda/backend/mla.rs:131\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":"mistralrs-paged-attn/src/cuda/backend/mla.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c598ed7b8bf85f29f34a47beb6572d33fbcee93b5f2096c18e83ab5efe8598"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): mistralrs-quant/src/distributed/mod.rs:562-566 | mistralrs-quant/src/distributed/mod.rs:593-597 | mistralrs-quant/src/distributed/mod.rs:624-628 | mistralrs-quant/src/distributed/mod.rs:711-715 | mistralrs-quant/src/distributed/mod.rs:742-746 | mistralrs-quant/src/distributed/mod.rs:773-777 \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 \u0060mistralrs-quant/src/distributed/mod.rs:562\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":"mistralrs-quant/src/distributed/mod.rs"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec0373462e983dde86451017e22f985e40a2148ae9cba6ee4c6f0f078a81ea0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): mistralrs-quant/src/utils/ops.rs:2027-2032 | mistralrs-quant/src/utils/ops.rs:2056-2061 | mistralrs-quant/src/utils/ops.rs:2085-2090 | mistralrs-quant/src/utils/ops.rs:2831-2835 | mistralrs-quant/src/utils/ops.rs:2858-2862 | mistralrs-quant/src/utils/ops.rs:2885-2889 \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 \u0060mistralrs-quant/src/utils/ops.rs:2027\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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":2027}}}],"partialFingerprints":{"codehealthFindingId/v1":"8be22ca8d35962070d0100d42167adaac8903c672746bf6e45b7df372e6dae17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): mistralrs-core/src/layers.rs:881-886 | mistralrs-core/src/layers.rs:2217-2222 | mistralrs-core/src/layers.rs:2368-2373 | mistralrs-core/src/layers.rs:2466-2471 | mistralrs-core/src/layers.rs:2513-2518 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060\u0026PhiRopeConfig\u0060 in one and \u0060\u0026Phi4MMConfig\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":"mistralrs-core/src/layers.rs"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"4856096d9a04271186b8ba39929d92a8420bc5a2a6a7a9ee615c1b251e181dd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): mistralrs-core/src/layers.rs:889-893 | mistralrs-core/src/layers.rs:2051-2055 | mistralrs-core/src/layers.rs:2225-2229 | mistralrs-core/src/layers.rs:3079-3084 | mistralrs-core/src/layers.rs:3212-3217 \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 \u0060mistralrs-core/src/layers.rs:889\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":"mistralrs-core/src/layers.rs"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"89712ab862cbbc30b56de2742f4503b5dbf62034702b8f2452a98c1d0dfbe48c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): mistralrs-core/src/models/flint.rs:535-540 | mistralrs-core/src/models/lfm2.rs:283-288 | mistralrs-core/src/models/qwen3_moe.rs:364-369 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:317-322 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:103-108 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/lfm2.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 104 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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bbcb43115711a5e28d4247c72ec210e292438e4afc93b903672d9ca0d73eba0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:244-248 | mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:286-290 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:401-405 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:443-447 | mistralrs-core/src/vision_models/qwen4_exp/mod.rs:344-348 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/mod.rs\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 396 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 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:244\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":"mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"feea6231de02d24e7c518ec251911a9ee2528b0867609dfeebc74ebcab08d533"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): mistralrs-paged-attn/src/metal/kernels/mod.rs:428-433 | mistralrs-paged-attn/src/metal/kernels/mod.rs:817-822 | mistralrs-paged-attn/src/metal/kernels/mod.rs:896-901 | mistralrs-quant/src/metal_kernels/mod.rs:1741-1745 | mistralrs-quant/src/metal_kernels/mod.rs:5199-5203 \u2014 before extracting anything, compare \u0060mistralrs-paged-attn/src/metal/kernels/mod.rs\u0060 and \u0060mistralrs-quant/src/metal_kernels/mod.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060mistralrs-quant/src/metal_kernels/mod.rs:5205\u0060 calls \u0060set_output_buffer\u0060, \u0060Some\u0060 and \u0060mistralrs-quant/src/metal_kernels/mod.rs:1747\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":"mistralrs-paged-attn/src/metal/kernels/mod.rs"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8163972917ed96a3b020aa30825010eb5a1b4532993be2ec4df833d26c1e5bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): mistralrs-quant/src/metal_kernels/mod.rs:1365-1370 | mistralrs-quant/src/metal_kernels/mod.rs:1513-1518 | mistralrs-quant/src/metal_kernels/mod.rs:4771-4776 | mistralrs-quant/src/metal_kernels/mod.rs:4834-4839 | mistralrs-quant/src/metal_kernels/mod.rs:5019-5023 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060mistralrs-quant/src/metal_kernels/mod.rs:1372\u0060 calls \u0060set_input_buffer\u0060, \u0060Some\u0060, \u0060set_output_buffer\u0060 and \u0060mistralrs-quant/src/metal_kernels/mod.rs:5025\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":1365}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da541c5301c9f7d05846fe5f0b1032684c9ae199b5c51b981a29eef7bb44a19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): mistralrs-quant/src/metal_kernels/mod.rs:1606-1610 | mistralrs-quant/src/metal_kernels/mod.rs:1685-1689 | mistralrs-quant/src/metal_kernels/mod.rs:2945-2950 | mistralrs-quant/src/metal_kernels/mod.rs:2982-2987 | mistralrs-quant/src/metal_kernels/mod.rs:4783-4787 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:1606\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, \u0060mistralrs-quant/src/metal_kernels/mod.rs:4781\u0060 calls \u0060set_input_buffer\u0060, \u0060Some\u0060 and \u0060mistralrs-quant/src/metal_kernels/mod.rs:1604\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":1606}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8326c6d458dd7c82b821d2cae14b11b507716a46ea7f15802909ef9c93027fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): mistralrs-quant/src/utils/ops.rs:47-51 | mistralrs-quant/src/utils/ops.rs:56-60 | mistralrs-quant/src/utils/ops.rs:65-69 | mistralrs-quant/src/utils/ops.rs:74-78 | mistralrs-quant/src/utils/ops.rs:83-87 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"b88ac20212822895f43648cde96597b5232372dd169158ccf7d6f05b4f817c60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): mistralrs-quant/src/utils/ops.rs:697-701 | mistralrs-quant/src/utils/ops.rs:706-710 | mistralrs-quant/src/utils/ops.rs:715-719 | mistralrs-quant/src/utils/ops.rs:724-728 | mistralrs-quant/src/utils/ops.rs:733-737 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"743a26711f163c2eba472b3054be996c2b1e43479b21938fbf8c992f9b406581"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 5): mistralrs-core/src/gguf/base_model.rs:139-143 | mistralrs-core/src/gguf/multimodal_binding_utils.rs:112-116 | mistralrs-core/src/gguf/normal_bindings.rs:951-955 | mistralrs-core/src/gguf/qwen_multimodal_bindings.rs:306-310 | mistralrs-quant/src/gguf/archive.rs:1390-1392 \u2014 before extracting anything, compare \u0060mistralrs-core/src/gguf/multimodal_binding_utils.rs\u0060 and \u0060mistralrs-core/src/gguf/qwen_multimodal_bindings.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 40 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 \u0060mistralrs-core/src/gguf/base_model.rs:139\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, \u0060mistralrs-core/src/gguf/base_model.rs:143\u0060 calls \u0060U64\u0060, \u0060I8\u0060 and \u0060mistralrs-quant/src/gguf/archive.rs:1392\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":"mistralrs-core/src/gguf/base_model.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"4446dfec79a618d6afcb66246dadc59548f3c2b4ceb2c27672967501ee7d6005"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 7): mistralrs-core/src/layers.rs:1185-1189 | mistralrs-core/src/layers.rs:1212-1214 | mistralrs-core/src/layers.rs:1275-1279 | mistralrs-core/src/layers.rs:1302-1304 | mistralrs-core/src/layers.rs:1374-1379 | mistralrs-core/src/layers.rs:1544-1548 | mistralrs-core/src/layers.rs:1571-1573 \u2014 all 7 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 \u0060mistralrs-core/src/layers.rs:1185\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 \u0060cfg\u0060 to \u0060\u0026llama4::TextConfig\u0060 in one and \u0060\u0026smollm3::Config\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, \u0060mistralrs-core/src/layers.rs:1189\u0060 calls \u0060arange\u0060, \u0060to_dtype\u0060 and \u0060mistralrs-core/src/layers.rs:1214\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":"mistralrs-core/src/layers.rs"},"region":{"startLine":1185}}}],"partialFingerprints":{"codehealthFindingId/v1":"8738bfa5a632488ea5e29a19e56da02a82c2ebc4a6eabdae0a4ecf6676b9c1f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): mistralrs-core/src/models/deepseek2.rs:520-525 | mistralrs-core/src/models/deepseek3.rs:533-538 | mistralrs-core/src/models/glm4_moe.rs:453-458 | mistralrs-core/src/models/glm4_moe_lite.rs:551-556 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ebd16b3394eb3e74895d2dc1d6b20e8aae81042d06bf28dd3cd221315c78728"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): mistralrs-core/src/models/phi3.rs:559-565 | mistralrs-core/src/models/phi3_5_moe.rs:632-638 | mistralrs-core/src/vision_models/phi3/mod.rs:1361-1367 | mistralrs-core/src/vision_models/phi4/mod.rs:523-529 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/phi3.rs\u0060 and \u0060mistralrs-core/src/models/phi3_5_moe.rs\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 343 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 \u0060mistralrs-core/src/models/phi3.rs:559\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":"mistralrs-core/src/models/phi3.rs"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"d361d07ca142c852135a958ad0feb0bd82d0fe102740e3afcd5912f12f4bdce5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): mistralrs-core/src/pipeline/cuda_graph.rs:3862-3869 | mistralrs-core/src/pipeline/cuda_graph.rs:3880-3887 | mistralrs-core/src/pipeline/cuda_graph.rs:3899-3906 | mistralrs-core/src/pipeline/cuda_graph.rs:3918-3925 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":3862}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c7df4d7bbf7b4d59dcb8f8fee827af03a760b6322cae699982150f9c02a985b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): mistralrs-core/src/vision_models/idefics2/mod.rs:513-518 | mistralrs-core/src/vision_models/idefics3/vision.rs:309-314 | mistralrs-core/src/vision_models/lfm2_vl/vision.rs:242-246 | mistralrs-core/src/vision_models/siglip.rs:320-325 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics2/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/idefics3/vision.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 221 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 \u0060mistralrs-core/src/vision_models/idefics2/mod.rs:513\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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"8495b9cfaa9d0ff9b135b437e1672d2cfe90113c577604a99122f10cee05c3e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): mistralrs-paged-attn/src/cuda/backend/cache.rs:138-143 | mistralrs-paged-attn/src/cuda/backend/cache.rs:145-150 | mistralrs-paged-attn/src/cuda/backend/cache.rs:152-157 | mistralrs-paged-attn/src/cuda/backend/cache.rs:159-164 \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. 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":"mistralrs-paged-attn/src/cuda/backend/cache.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fafe7301e8882aa700104dfa5d918ddf449664a61bb707b9d54885495c04e66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:67-71 | mistralrs-quant/src/gguf/cuda.rs:123-127 | mistralrs-quant/src/gguf/fast_mmq.rs:395-399 | mistralrs-quant/src/gguf/fast_mmvq.rs:128-132 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/gguf/fast_mmq.rs\u0060 and \u0060mistralrs-quant/src/gguf/fast_mmvq.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 62 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 \u0060mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:67\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 \u0060dev\u0060 to \u0060\u0026candle::cuda_backend::CudaDevice\u0060 in one and \u0060\u0026CudaDevice\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":"mistralrs-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"409a70d0451b177a603c803be8496c82f5100d27ee69c11e95361c729c6174fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): mistralrs-quant/src/cutile/fp8_gemm.rs:69-74 | mistralrs-quant/src/cutile/fp8_w8a16.rs:57-62 | mistralrs-quant/src/cutile/fp8_w8a16.rs:105-110 | mistralrs-quant/src/cutile/fp8_w8a8.rs:59-64 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fp8_gemm.rs\u0060 and \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 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 \u0060mistralrs-quant/src/cutile/fp8_gemm.rs:69\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":"mistralrs-quant/src/cutile/fp8_gemm.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"a05f0673489637ba2590551c82cbbdc80c36f9c7b56155c76270902260a3a2b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-core/src/cuda/gdn.rs:2229-2234 | mistralrs-core/src/cuda/gdn.rs:2240-2244 | mistralrs-core/src/cuda/gdn.rs:2250-2254 \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 \u0060mistralrs-core/src/cuda/gdn.rs:2229\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":2229}}}],"partialFingerprints":{"codehealthFindingId/v1":"4db38d8745efb713183764691ee56d84588e0d3f8edaf1c54141234394422d1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-core/src/metal/gdn.rs:191-195 | mistralrs-core/src/metal/gdn.rs:306-310 | mistralrs-core/src/metal/ssm.rs:168-172 \u2014 before extracting anything, compare \u0060mistralrs-core/src/metal/gdn.rs\u0060 and \u0060mistralrs-core/src/metal/ssm.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 68 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, \u0060mistralrs-core/src/metal/gdn.rs:196\u0060 calls \u0060set_label\u0060 and \u0060mistralrs-core/src/metal/ssm.rs:173\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":"mistralrs-core/src/metal/gdn.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d7a8cb985ffde91376d3e656cc81210df4d28111dded9a7dfc85d912ca7720c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-core/src/metal/gdn.rs:606-610 | mistralrs-core/src/metal/gdn.rs:782-786 | mistralrs-core/src/metal/gdn.rs:968-972 \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":"mistralrs-core/src/metal/gdn.rs"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d8d442f42afcc472d5f6471fdc22d9589580267febcdf70e55fbfb63a4de96e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-core/src/models/deepseek3.rs:504-508 | mistralrs-core/src/models/glm4_moe.rs:429-433 | mistralrs-core/src/models/glm4_moe_lite.rs:525-529 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek3.rs\u0060 and \u0060mistralrs-core/src/models/glm4_moe.rs\u0060 as WHOLE FILES: this scan already matched 39 separate duplicated blocks between them, totalling at least 479 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 \u0060cfg\u0060 to \u0060\u0026DeepSeekV3Config\u0060 in one and \u0060\u0026Glm4MoeConfig\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":"mistralrs-core/src/models/deepseek3.rs"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e06aca694677bae04820149afe4439baf634f2a6ce1753b12f6fedb3a5c0aa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-core/src/models/lfm2.rs:1313-1317 | mistralrs-core/src/models/lfm2.rs:1356-1361 | mistralrs-core/src/models/lfm3.rs:1332-1336 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/lfm2.rs\u0060 and \u0060mistralrs-core/src/models/lfm3.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 402 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 \u0060mistralrs-core/src/models/lfm2.rs:1313\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":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":1313}}}],"partialFingerprints":{"codehealthFindingId/v1":"8235064fd774ff9297f5ab761bcb380d075cd35db5530a1d21c2e9aa6853885c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-core/src/models/phi3.rs:144-148 | mistralrs-core/src/vision_models/phi3/mod.rs:236-240 | mistralrs-core/src/vision_models/phi4/mod.rs:105-109 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/phi3.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi3/mod.rs\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 638 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":"mistralrs-core/src/models/phi3.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"46dfd1b908cb1b9efaf5aa9158e4433728e901dbe662ab12736e653c860d06ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-core/src/moe/experts/backends.rs:888-892 | mistralrs-core/src/moe/experts/backends.rs:963-967 | mistralrs-quant/src/moe/cutlass.rs:149-153 \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":"mistralrs-core/src/moe/experts/backends.rs"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"8029754a52d823da3cca2a56ec504c6287ea1090714203785dff1a0b16a82e17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-core/src/ops.rs:4215-4219 | mistralrs-core/src/ops.rs:4843-4849 | mistralrs-quant/src/metal_fp8.rs:75-80 \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 \u0060mistralrs-core/src/ops.rs:4843\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":4215}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f10ed7be19bdfd402b7308f077a1cc66d38048b435921d324d80e526d9c3f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:359-363 | mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:505-509 | mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:526-530 \u2014 \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/idefics3/inputs_processor.rs\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 10 separate duplicated blocks between them, totalling at least 146 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 \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:359\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":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"99765c6fd4eea2bbc882709a2aa99a8937b04318793f316fd83a43b7d98a25cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): mistralrs-core/src/vision_models/gemma4/vision.rs:56-60 | mistralrs-core/src/vision_models/gemma4/vision.rs:62-66 | mistralrs-core/src/vision_models/gemma4/vision.rs:68-72 | mistralrs-core/src/vision_models/gemma4/vision.rs:73-77 \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 \u0060mistralrs-core/src/vision_models/gemma4/vision.rs:56\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 before the matched lines, \u0060mistralrs-core/src/vision_models/gemma4/vision.rs:56\u0060 calls \u0060ok\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/vision.rs:73\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":"mistralrs-core/src/vision_models/gemma4/vision.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"b58244af0e9399ce59c434bfc8f9fc4c6f4c45f41603b0ed5788045cf47508c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:267-273 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:239-245 | mistralrs-core/src/vision_models/qwen3_vl/vision.rs:303-309 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/vision.rs\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 15 separate duplicated blocks between them, totalling at least 182 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":"mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"20695d600aa92ea140127af5b72c9fac28c7d0e7124cc1edfdddd49dd4773f5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:930-934 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:544-548 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:665-669 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_vl/text.rs\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 18 separate duplicated blocks between them, totalling at least 207 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 \u0060mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:930\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":"mistralrs-core/src/vision_models/qwen3_5_moe/text.rs"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"df1b0366771b48ee6ffe70170191a6580d7190cf79f02c2d99ed6e6a66deb2a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-quant/src/afq/ops.rs:1746-1750 | mistralrs-quant/src/afq/ops.rs:1864-1868 | mistralrs-quant/src/afq/ops.rs:1982-1986 \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 \u0060mistralrs-quant/src/afq/ops.rs:1982\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":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":1746}}}],"partialFingerprints":{"codehealthFindingId/v1":"f00eb334548cac1fe686cca2cc78e7fdc7dffd747f989b9abd18b57a8bcfed03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-quant/src/blockwise_fp8/deepgemm.rs:506-511 | mistralrs-quant/src/blockwise_fp8/deepgemm.rs:599-604 | mistralrs-quant/src/gguf/gated_mix.rs:93-97 \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":"mistralrs-quant/src/blockwise_fp8/deepgemm.rs"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa909cca07c3dc3d5c361276cc1ac3e904f49582db0e084d4291d4fa47bf0c06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-quant/src/gemv/mod.rs:366-371 | mistralrs-quant/src/gemv/mod.rs:437-442 | mistralrs-quant/src/gemv/mod.rs:508-513 \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 \u0060mistralrs-quant/src/gemv/mod.rs:366\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":"mistralrs-quant/src/gemv/mod.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"39a56cc83bc3c3b37dd8c10089f0aff3a2aa716a405c4232ae7aef4fc7efb9df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-cli/src/commands/bench.rs:319-323 | mistralrs-cli/src/commands/bench.rs:336-340 \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 \u0060mistralrs-cli/src/commands/bench.rs:319\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":"mistralrs-cli/src/commands/bench.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"1774b6d700a5b2d1b83a1d4a71dab51cef2578839854d4966044d2a7d8b10176"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-cli/src/commands/quantize.rs:357-361 | mistralrs-cli/src/commands/quantize.rs:367-371 \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":"mistralrs-cli/src/commands/quantize.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b15071c3e108bb3d58ecc12605d4492e2c3fb98e10add683cc581b8ff28d68d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-cli/src/commands/serve.rs:605-609 | mistralrs-cli/src/commands/serve.rs:665-669 \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 \u0060mistralrs-cli/src/commands/serve.rs:605\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":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2040782eff72d587be5fcd41ddc984e7d3f5fbe8b269fa00f5a46d76c9a0d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/attention/backends/cpu/avx.rs:75-79 | mistralrs-core/src/attention/backends/cpu/avx.rs:334-338 \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 \u0060mistralrs-core/src/attention/backends/cpu/avx.rs:75\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":"mistralrs-core/src/attention/backends/cpu/avx.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"a943ed2977174a151bcdbce2a3510fcaaf95c050663a7a12338e1b44429792f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/attention/backends/cpu/full.rs:397-405 | mistralrs-core/src/attention/backends/cpu/full.rs:572-580 \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":"mistralrs-core/src/attention/backends/cpu/full.rs"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"d978ce70d19d8850f7d157c1fac67f40faa16f5f43094b0ccf6a7366274a6ff4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:1978-1982 | mistralrs-core/src/cuda/gdn.rs:3617-3623 \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 \u0060mistralrs-core/src/cuda/gdn.rs:1978\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":1978}}}],"partialFingerprints":{"codehealthFindingId/v1":"6562f470cd39ac1eafebc22d9266351c87bccf035a1684a4b0299714a619e003"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:2283-2288 | mistralrs-core/src/cuda/gdn.rs:2781-2785 \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 \u0060mistralrs-core/src/cuda/gdn.rs:2283\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":2283}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc19232d8f8da8ce29f87c9d509fb6747803f87e748c30b605c9d69922ae2b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:4116-4122 | mistralrs-core/src/cuda/gdn.rs:4614-4620 \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 \u0060mistralrs-core/src/cuda/gdn.rs:4116\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":4116}}}],"partialFingerprints":{"codehealthFindingId/v1":"5931fe7e54ab6bf075cdf565051dc3b57da65458dad552f1a8abdde4654db05c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:5965-5969 | mistralrs-core/src/cuda/gdn.rs:6209-6213 \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 \u0060mistralrs-core/src/cuda/gdn.rs:5965\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":5965}}}],"partialFingerprints":{"codehealthFindingId/v1":"476ee04a6ac0d2f80522ca316bd7c68baf31923e2dd8f3e0794fc248dcec02c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 3): mistralrs-core/src/cuda/input_packing.rs:41-45 | mistralrs-core/src/cuda/input_packing.rs:66-69 | mistralrs-core/src/cuda/input_packing.rs:134-138 \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. 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":"mistralrs-core/src/cuda/input_packing.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"45149f13c6bb087e9cd19b6d6ba4d7606a85df0c0adeb9f6b88ccec4a649badc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/gdn/backend.rs:989-993 | mistralrs-core/src/gdn/backend.rs:1126-1130 \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 \u0060mistralrs-core/src/gdn/backend.rs:989\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":"mistralrs-core/src/gdn/backend.rs"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8761ee285299e34fbdcfd39bca6df098fa0071c272ead9d296ead10e73593b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/gguf/multimodal_binding_utils.rs:119-124 | mistralrs-core/src/gguf/qwen_multimodal_bindings.rs:313-318 \u2014 before extracting anything, compare \u0060mistralrs-core/src/gguf/multimodal_binding_utils.rs\u0060 and \u0060mistralrs-core/src/gguf/qwen_multimodal_bindings.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 40 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 \u0060mistralrs-core/src/gguf/multimodal_binding_utils.rs:119\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":"mistralrs-core/src/gguf/multimodal_binding_utils.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"f436970da985d4e4b32d1b5c653e0624d4285d16230119509b6d6301eec78f26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-core/src/kv_cache/mod.rs:510-516 | mistralrs-core/src/kv_cache/mod.rs:541-547 | mistralrs-core/src/kv_cache/mod.rs:654-660 \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 \u0060mistralrs-core/src/kv_cache/mod.rs:510\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":"mistralrs-core/src/kv_cache/mod.rs"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b0a719b66d908b8844b9dc3a1f82f2679b22c0e29203e7bd086ad17b5bde93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/matformer.rs:101-105 | mistralrs-core/src/matformer.rs: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 \u0060mistralrs-core/src/matformer.rs: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":"mistralrs-core/src/matformer.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"df0cfbf3bdfd8fc76f46e74699db6076abf9108ae9ef5585963c6283d22f17a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/metal/gdn.rs:398-404 | mistralrs-core/src/metal/gdn.rs:667-673 \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":"mistralrs-core/src/metal/gdn.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"f350e169101461b1b177f31041c08da7f65e9c5a67aed5ba325b75285781887f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/models/flint.rs:508-513 | mistralrs-core/src/models/qwen3_moe.rs:339-344 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/flint.rs\u0060 and \u0060mistralrs-core/src/models/qwen3_moe.rs\u0060 as WHOLE FILES: this scan already matched 43 separate duplicated blocks between them, totalling at least 479 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. 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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fea755278baa75b82714018259b4ccfa2312b387dfd91a7e77c189fb2a44cfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/models/gpt_oss.rs:951-955 | mistralrs-core/src/vision_models/mllama/text.rs:982-987 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gpt_oss.rs\u0060 and \u0060mistralrs-core/src/vision_models/mllama/text.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 103 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 \u0060mistralrs-core/src/models/gpt_oss.rs:951\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":"mistralrs-core/src/models/gpt_oss.rs"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b0b5c5194d8df21da1abbc28e64923884acea3e88e0b3d4a49b66e8e1ec96f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/models/lfm3.rs:1253-1258 | mistralrs-core/src/xlora_models/gemma2.rs:639-643 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/lfm3.rs\u0060 and \u0060mistralrs-core/src/xlora_models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 31 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 \u0060mistralrs-core/src/models/lfm3.rs:1253\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":"mistralrs-core/src/models/lfm3.rs"},"region":{"startLine":1253}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0fb67e52f147d6e373c974bfcef5aa334d6d468cb5e2b40f61e788a55b0fda8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/ops.rs:605-612 | mistralrs-core/src/ops.rs:767-774 \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 \u0060mistralrs-core/src/ops.rs:605\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e5aafd79fe76392f8a0beff1b5941bac90540c0c9628ec5b42624e00866bf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/ops.rs:621-625 | mistralrs-core/src/ops.rs:779-783 \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 \u0060mistralrs-core/src/ops.rs:621\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa2582dae997f083306e524fbcf145b91171b170bc4e2c3ad01dd6899f51516"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20135 lines \u00D7 11): mistralrs-core/src/cuda/dflash_context.rs:302-303 | mistralrs-core/src/cuda/speculative_rejection.rs:614-615 | mistralrs-core/src/ops.rs:1116-1120 | mistralrs-core/src/ops.rs:1345-1349 | mistralrs-core/src/ops.rs:1593-1594 | mistralrs-core/src/ops.rs:1835-1836 | mistralrs-core/src/ops.rs:4151-4152 | mistralrs-core/src/ops.rs:4332-4333 | mistralrs-core/src/ops.rs:5697-5698 | mistralrs-core/src/ops.rs:6120-6121 | mistralrs-core/src/ops.rs:6449-6450 \u2014 there are 11 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 11 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060mistralrs-core/src/cuda/dflash_context.rs:306\u0060 calls \u0060try_from\u0060, \u0060map_err\u0060 and \u0060mistralrs-core/src/ops.rs:4337\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":"mistralrs-core/src/cuda/dflash_context.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1126747965a8c002f375855a90d0f5ee3887875e47d4705fbbad296651b781f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/ops.rs:1190-1195 | mistralrs-core/src/ops.rs:1408-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060mistralrs-core/src/ops.rs:1190\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0024eb79536f4715f8d17594067e1f61143a2295a768cbfd49d6743b24610b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/ops.rs:4672-4676 | mistralrs-core/src/ops.rs:5505-5509 \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 \u0060mistralrs-core/src/ops.rs:4672\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, \u0060mistralrs-core/src/ops.rs:5512\u0060 calls \u0060device_ptr\u0060 and \u0060mistralrs-core/src/ops.rs:4678\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":4672}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a09aeafff570593ef688b9249b375a10c3c0bd0be107fd2adc622506c33032"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/ops.rs:4679-4684 | mistralrs-core/src/ops.rs:5514-5519 \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":"mistralrs-core/src/ops.rs"},"region":{"startLine":4679}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d51e5b77ba34765480734b9fca5b5141dc5512fe721864fed86f1c97a96e61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/pipeline/inputs_processor.rs:1372-1376 | mistralrs-core/src/pipeline/inputs_processor.rs:1383-1387 \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 \u0060mistralrs-core/src/pipeline/inputs_processor.rs:1372\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, \u0060mistralrs-core/src/pipeline/inputs_processor.rs:1382\u0060 calls \u0060insert\u0060, \u0060location\u0060, \u0060clone\u0060 and \u0060mistralrs-core/src/pipeline/inputs_processor.rs:1371\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":"mistralrs-core/src/pipeline/inputs_processor.rs"},"region":{"startLine":1372}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc0c92edf0cd44d4577b48a432fda5976c86da1ed43b9afb346bd9c58acc7b27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/pipeline/mod.rs:1304-1308 | mistralrs-core/src/pipeline/mod.rs:1362-1366 \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":"mistralrs-core/src/pipeline/mod.rs"},"region":{"startLine":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c2e92655954878f7b4793a5c95393d5a69c847fada4a41517bc86f5cb8a6e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1670-1674 | mistralrs-core/src/pipeline/normal.rs:1545-1549 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1670}}}],"partialFingerprints":{"codehealthFindingId/v1":"cceb4320dccf5b0c19ab6eb7c148143ef5ff9ce0dc9d4456c768df04e4387b7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1803-1808 | mistralrs-core/src/pipeline/normal.rs:1670-1675 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:1803\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, \u0060mistralrs-core/src/pipeline/multimodal.rs:1801\u0060 calls \u0060Ok\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs:1669\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1803}}}],"partialFingerprints":{"codehealthFindingId/v1":"900c125a55471bf9bb50cc44493960b57212db6ecd5f705d8bec1e49547a54cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1813-1818 | mistralrs-core/src/pipeline/normal.rs:1677-1682 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:1813\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1813}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a5d832fa0d8a109505d763594d68f7c8f64c6e315677f28fe59f4b94f348903"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 3): mistralrs-core/src/speculative/config.rs:115-117 | mistralrs-core/src/speculative/dflash.rs:2239-2243 | mistralrs-core/src/vision_models/gemma4/mtp.rs:127-131 \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 \u0060mistralrs-core/src/speculative/config.rs:115\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":"mistralrs-core/src/speculative/config.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a4a847ad8fa3bd48f400517ba4e1ae293e20eea6f67a8866d7621fb838a0f70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/audio.rs:1069-1074 | mistralrs-core/src/vision_models/gemma4/audio.rs:850-854 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/audio.rs\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 20 separate duplicated blocks between them, totalling at least 352 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. 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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a369b18969b8a332e970ab5b6f39ff78603c4fc77ddc1b693bd7d31b8d499d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:614-619 | mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:63-68 \u2014 \u0060mistralrs-core/src/vision_models/gemma4/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/mistral3/inputs_processor.rs\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 132 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":"mistralrs-core/src/vision_models/gemma4/inputs_processor.rs"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"cda309e4ea5c99dec69ef35c2d6cd18dc2ced2f3f3f51e5cade007f6ef599033"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:1496-1503 | mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:1761-1765 \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 \u0060mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:1496\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":"mistralrs-core/src/vision_models/gemma4/inputs_processor.rs"},"region":{"startLine":1496}}}],"partialFingerprints":{"codehealthFindingId/v1":"100b3cb5a848ab7fe1c6d9fbcd21a17cdb932fad90793e9c7099dac760483bb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:646-650 | mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:664-669 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 222 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":"mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2402b957db7036e76e475cae23c6714203b243b9b9c070590f798d0cea7c801"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:59-63 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:228-232 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/llava/llava_llm/llama.rs\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 216 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":"mistralrs-core/src/vision_models/llava/llava_llm/llama.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce10184028035443850928aebc7d61a243e906d7824dfc88cfe2dbdfd2018dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava_llm/mod.rs:39-49 | mistralrs-core/src/xlora_models/quantized_phi3.rs:242-252 \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":"mistralrs-core/src/vision_models/llava/llava_llm/mod.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c2e11b530321be1a3480f75cc76af245b38af37f00b0115e572c60076d503b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_vl/mod.rs:78-82 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:92-96 \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 \u0060mistralrs-core/src/vision_models/qwen3_vl/mod.rs:78\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":"mistralrs-core/src/vision_models/qwen3_vl/mod.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc25a9a29f8d9816d6bde235b55f9a174d5dca784b6413f0012105df47446b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-mcp/src/tools.rs:80-85 | mistralrs-mcp/src/tools.rs:107-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. 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":"mistralrs-mcp/src/tools.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f5f5a7603d16742cd7c5126dec1f19637075120124aa7df1d1d2e66a2c1ce91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/fa3.rs:269-292 | mistralrs-paged-attn/src/cuda/backend/fa3.rs:543-566 \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 \u0060mistralrs-paged-attn/src/cuda/backend/fa3.rs:269\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":"mistralrs-paged-attn/src/cuda/backend/fa3.rs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"777801cc990d5083a91e84788e343c3c5883740ed8d7fcabac32194bb0a75046"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:164-170 | mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:176-180 \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 \u0060mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:164\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":"mistralrs-paged-attn/src/cuda/backend/gather_kv.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"1defc4d9d387c1ad3cdba194b8eae8e3a19b0f567eb608e9502cc4634da82ef1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20135 lines \u00D7 13): mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:153-154 | mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:371-372 | mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:377-378 | mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:384-385 | mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:391-392 | mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:639-640 | mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:646-647 | mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:653-654 | mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:659-660 | mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:172-176 | mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:182-186 | mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:200-201 | mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:206-207 \u2014 before extracting anything, compare \u0060mistralrs-paged-attn/src/cuda/backend/flashinfer.rs\u0060 and \u0060mistralrs-paged-attn/src/cuda/backend/gather_kv.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 39 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 \u0060mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:172\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, \u0060mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:380\u0060 calls \u0060slice_ptr\u0060, \u0060start_offset\u0060 and \u0060mistralrs-paged-attn/src/cuda/backend/flashinfer.rs: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":"mistralrs-paged-attn/src/cuda/backend/flashinfer.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"554118bc87749969253280ce45ec4f209c50ea905a1b8fb4589308261e9aa6b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:229-235 | mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:242-246 \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 \u0060mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:229\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":"mistralrs-paged-attn/src/cuda/backend/gather_kv.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd12d696bfa3d8ac9e9159bb36c6bf3ddadac65e4a7030068a04111566e89c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-pyo3/src/lib.rs:102-107 | mistralrs-pyo3/src/lib.rs:124-128 \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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"d145cb04f7c6a1ca5b0ffae6c1e7127f6011292e5fd8bf6b3030b69e021ad5ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/afq/ops.rs:796-803 | mistralrs-quant/src/afq/ops.rs:919-923 \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 \u0060mistralrs-quant/src/afq/ops.rs:796\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":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"81af50278d1dfa900dc2f703703962208dcf889977cce245ad0b0b87da06a960"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:1086-1090 | mistralrs-quant/src/blockwise_fp8/ops.rs:1271-1275 \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 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:1086\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, \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:1270\u0060 calls \u0060slice_ptr\u0060, \u0060start_offset\u0060 and \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:1084\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1086}}}],"partialFingerprints":{"codehealthFindingId/v1":"723bd2f788b3adbc4af6e2546e5d2da6521eca4af5e2fd86eaf866ceea8fd58f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/build_support/cuda_headers.rs:10-14 | mistralrs-quant/src/build_support/deepgemm_jit_bundle.rs:10-14 \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 \u0060mistralrs-quant/src/build_support/cuda_headers.rs:10\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":"mistralrs-quant/src/build_support/cuda_headers.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da2d15eeb233bb231e0b3d7c8ffe3961006c549e9118db6ff76b4fe469006d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:633-638 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:1043-1048 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fused_moe.rs\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe_fp8.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 298 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 \u0060mistralrs-quant/src/cutile/fused_moe.rs:633\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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7be40f4aa8dedee3e882f68ed140ee60c4184ccf8c39765ea38dc98548c305a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:691-695 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:606-610 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fused_moe.rs\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe_fp8.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 298 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 \u0060mistralrs-quant/src/cutile/fused_moe.rs:691\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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f719c2cf5978db318ed1ba3458222568abd0dbb181cc626315edffb023301ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_glu.rs:118-143 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:35-60 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/nvfp4_glu.rs\u0060 and \u0060mistralrs-quant/src/cutile/nvfp4_matmul.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 70 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":"mistralrs-quant/src/cutile/nvfp4_glu.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfdaba0733d2ed10a1693d4418afe27fdee4fa626e894f79185e96070a1390a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_matmul.rs:152-156 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:255-259 \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 \u0060mistralrs-quant/src/cutile/nvfp4_matmul.rs:152\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":"mistralrs-quant/src/cutile/nvfp4_matmul.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"08e2488eb59624657462957214b4fab82047b1a5e108d68c6504f3ad16f2422e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_matmul.rs:407-411 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1124-1128 \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":"mistralrs-quant/src/cutile/nvfp4_matmul.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"b169e1a78372eed12dc8b300d7ce3fcf4fea1895c487f5a49d692775c6b777c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/cutile/qsa_decode.rs:118-122 | mistralrs-quant/src/cutile/qsa_decode.rs:130-134 \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 \u0060mistralrs-quant/src/cutile/qsa_decode.rs: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":"mistralrs-quant/src/cutile/qsa_decode.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be5a70e7d78e36e8bee61765552a0e9aaf628d312c6992d00fdfb960b9e2233"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/gguf/cuda.rs:1535-1539 | mistralrs-quant/src/gguf/cuda.rs:1638-1642 \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 \u0060mistralrs-quant/src/gguf/cuda.rs:1535\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":"mistralrs-quant/src/gguf/cuda.rs"},"region":{"startLine":1535}}}],"partialFingerprints":{"codehealthFindingId/v1":"892d1395db409418be1ee3e63e7f769d8f8d1d4e841ee6ab9c21018261b1ca5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/gguf/weight_source.rs:1254-1258 | mistralrs-quant/src/gguf/weight_source.rs:1275-1279 \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 \u0060mistralrs-quant/src/gguf/weight_source.rs:1254\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":"mistralrs-quant/src/gguf/weight_source.rs"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cbc4ea6ee554d4f2f214ca5a95b5586601d782f4ea0ee2e93f4a609674be289"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/metal_kernels/mod.rs:1398-1403 | mistralrs-quant/src/metal_kernels/mod.rs:1426-1431 \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 after the matched lines, \u0060mistralrs-quant/src/metal_kernels/mod.rs:1432\u0060 calls \u0060set_input_buffer\u0060, \u0060Some\u0060 and \u0060mistralrs-quant/src/metal_kernels/mod.rs:1404\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":1398}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b4ecc50740e51dd22a1ee565fe9e48761903f766f4b826ea054a0b6712c1947"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/metal_kernels/mod.rs:2722-2728 | mistralrs-quant/src/metal_kernels/mod.rs:4977-4981 \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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":2722}}}],"partialFingerprints":{"codehealthFindingId/v1":"065f67530cd054dd596396f80d01f154147f9bd4c83ed203cdac32838579e795"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 3): mistralrs-quant/src/metal_kernels/mod.rs:4379-4383 | mistralrs-quant/src/metal_kernels/mod.rs:4478-4483 | mistralrs-quant/src/metal_kernels/mod.rs:5136-5139 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:4379\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, \u0060mistralrs-quant/src/metal_kernels/mod.rs:5134\u0060 calls \u0060encoder\u0060, \u0060as_ref\u0060, \u0060set_compute_pipeline_state\u0060 and \u0060mistralrs-quant/src/metal_kernels/mod.rs:4478\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":4379}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7155a20f42b8c402688e9c6b2aa1e0b3c3c11d3ec6a6fe1e322a7024d7921aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/mxfp4/mod.rs:660-664 | mistralrs-quant/src/mxfp4/mod.rs:726-730 \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":"mistralrs-quant/src/mxfp4/mod.rs"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a5375d99cd6067a3e3001943e5a2e88ce531b07c041d007a8dd5e9870332d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/mxfp4/ops.rs:103-107 | mistralrs-quant/src/mxfp4/ops.rs:457-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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060mistralrs-quant/src/mxfp4/ops.rs:102\u0060 calls \u0060layout\u0060 and \u0060mistralrs-quant/src/mxfp4/ops.rs:456\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":"mistralrs-quant/src/mxfp4/ops.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"74378b3f389753c94a5063e3c22889f677e3f73d5ee64ea64af7c58b3ab9197d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/mxfp4/ops.rs:164-168 | mistralrs-quant/src/mxfp4/ops.rs:525-529 \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, \u0060mistralrs-quant/src/mxfp4/ops.rs:163\u0060 calls \u0060layout\u0060 and \u0060mistralrs-quant/src/mxfp4/ops.rs:524\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":"mistralrs-quant/src/mxfp4/ops.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"61b982e1b66742e1dd1a076eeb1a956ff3f83f7226bafea2631391e0142ff011"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/rotary/mod.rs:18-22 | mistralrs-quant/src/rotary/mod.rs:25-29 \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 \u0060mistralrs-quant/src/rotary/mod.rs:18\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":"mistralrs-quant/src/rotary/mod.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b6afeefb4d342b43631427d302759a8dfff1ddf7cecb3458ed4742a00b0bb6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/utils/ops.rs:2264-2268 | mistralrs-quant/src/utils/ops.rs:2508-2512 \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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":2264}}}],"partialFingerprints":{"codehealthFindingId/v1":"511d27479ac1de974915e9ea67e47d9dfd6d6f52e9a4c63050dbec63936bb0e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-cli/src/commands/quantize.rs:215-221 | mistralrs-cli/src/commands/serve.rs:1131-1137 \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":"mistralrs-cli/src/commands/quantize.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b1d77803406f73ff06520a2bf1078b5cd9787907329c5bc2eadd295515fc90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-code-exec/src/lib.rs:419-426 | mistralrs-code-exec/src/shell.rs:166-173 \u2014 before extracting anything, compare \u0060mistralrs-code-exec/src/lib.rs\u0060 and \u0060mistralrs-code-exec/src/shell.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 64 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, \u0060mistralrs-code-exec/src/lib.rs:428\u0060 calls \u0060effective_protection\u0060, \u0060effective\u0060 and \u0060mistralrs-code-exec/src/shell.rs:175\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":"mistralrs-code-exec/src/lib.rs"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"af4b257f27ef591e23e4c072faadd08e460421272236e657693c6f299a9b901b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-code-exec/src/shell.rs:465-475 | mistralrs-core/src/engine/agentic_loop.rs:72-82 \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":"mistralrs-code-exec/src/shell.rs"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"be387b84c10eb75ea5314499393722c27df9b4052a504ac529e80877185b3c86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/diffusion_models/clip/text.rs:118-122 | mistralrs-core/src/vision_models/clip.rs:155-159 \u2014 before extracting anything, compare \u0060mistralrs-core/src/diffusion_models/clip/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/clip.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 36 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":"mistralrs-core/src/diffusion_models/clip/text.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"1819401b197eb201ffbbd25e995954899044f0bf90bf9507f4dcf7376f64564c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/diffusion_models/clip/text.rs:248-254 | mistralrs-core/src/vision_models/llama4/vision.rs:340-346 \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 \u0060mistralrs-core/src/vision_models/llama4/vision.rs:340\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":"mistralrs-core/src/diffusion_models/clip/text.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c1594e5ff12bdcad67469d80e83a81e8f38fbe1313b11b3c33c8b9d582bb36c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/gdn/layer.rs:128-134 | mistralrs-core/src/speculative/hybrid_state.rs:63-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/gdn/layer.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fba3ed66820e566d627e71017694931a085ab7dcdc3f7a29cea8d374e14ee84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/gguf/gemma3_bindings.rs:222-226 | mistralrs-core/src/gguf/muse_glimmer_bindings.rs:168-172 \u2014 before extracting anything, compare \u0060mistralrs-core/src/gguf/gemma3_bindings.rs\u0060 and \u0060mistralrs-core/src/gguf/muse_glimmer_bindings.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 62 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 \u0060mistralrs-core/src/gguf/gemma3_bindings.rs:222\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":"mistralrs-core/src/gguf/gemma3_bindings.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"064532295088c17ec8eb382263e5d73e2fe58e6fcca9fd46aae3200157670270"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/gguf/multimodal_binding_utils.rs:41-52 | mistralrs-core/src/gguf/multimodal_bindings.rs:32-43 \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":"mistralrs-core/src/gguf/multimodal_binding_utils.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"03841e992c3a695e0a081157898ca8878aa738ce7fd408231cf3321cd69f6be3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-core/src/gguf/multimodal_binding_utils.rs:96-102 | mistralrs-core/src/gguf/multimodal_bindings.rs:85-91 | mistralrs-core/src/gguf/qwen_multimodal_bindings.rs:270-276 \u2014 before extracting anything, compare \u0060mistralrs-core/src/gguf/multimodal_binding_utils.rs\u0060 and \u0060mistralrs-core/src/gguf/qwen_multimodal_bindings.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 40 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":"mistralrs-core/src/gguf/multimodal_binding_utils.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"4333ac21bc171e73416b7c5a61ac56c93038fd4a53f54ad8f9a9eecbc46c8395"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-core/src/gguf/multimodal_binding_utils.rs:131-136 | mistralrs-core/src/gguf/multimodal_bindings.rs:652-657 | mistralrs-core/src/gguf/qwen_multimodal_bindings.rs:870-875 \u2014 before extracting anything, compare \u0060mistralrs-core/src/gguf/multimodal_binding_utils.rs\u0060 and \u0060mistralrs-core/src/gguf/qwen_multimodal_bindings.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 40 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 \u0060mistralrs-core/src/gguf/multimodal_binding_utils.rs:131\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":"mistralrs-core/src/gguf/multimodal_binding_utils.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"62233df9affc882a32251cb451f2b96fafa23405ce07bca5c2e2f7c15fb07132"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/models/deepseek2.rs:134-139 | mistralrs-core/src/models/deepseek3.rs:135-140 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f8a11f4e9c5d6dbad189fe2185479af5f43d254cd25b54f83f37b40924a209"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 8): mistralrs-core/src/models/deepseek2.rs:691-696 | mistralrs-core/src/models/deepseek3.rs:754-759 | mistralrs-core/src/models/flint.rs:671-676 | mistralrs-core/src/models/glm4_moe.rs:591-596 | mistralrs-core/src/models/glm4_moe_lite.rs:700-705 | mistralrs-core/src/models/qwen3_moe.rs:439-444 | mistralrs-core/src/vision_models/llama4/text.rs:626-631 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:178-183 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/deepseek2.rs\u0060 and \u0060mistralrs-core/src/models/deepseek3.rs\u0060 as WHOLE FILES: this scan already matched 59 separate duplicated blocks between them, totalling at least 1246 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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"820b136e3b188cefd38e94624cc84a49ab5331146987fc69e4d24fdbd2c0ed66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 13): mistralrs-core/src/models/gemma.rs:563-569 | mistralrs-core/src/models/gemma2.rs:680-686 | mistralrs-core/src/models/glm4.rs:682-688 | mistralrs-core/src/models/hunyuan_v1_dense.rs:650-656 | mistralrs-core/src/models/mistral.rs:691-697 | mistralrs-core/src/models/phi2.rs:639-645 | mistralrs-core/src/models/phi3.rs:634-640 | mistralrs-core/src/models/qwen2.rs:694-700 | mistralrs-core/src/models/qwen3.rs:668-674 | mistralrs-core/src/models/starcoder2.rs:630-636 | mistralrs-core/src/vision_models/gemma3/text.rs:905-911 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:647-653 | mistralrs-core/src/vision_models/phi3/mod.rs:1470-1476 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 707 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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"87af0b3e57be2a85adb450b1ca4779124e720929d2867cbc406bf7f9aabd6566"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 13): mistralrs-core/src/models/gemma.rs:570-576 | mistralrs-core/src/models/gemma2.rs:687-693 | mistralrs-core/src/models/glm4.rs:689-695 | mistralrs-core/src/models/hunyuan_v1_dense.rs:657-663 | mistralrs-core/src/models/mistral.rs:698-704 | mistralrs-core/src/models/phi2.rs:646-652 | mistralrs-core/src/models/phi3.rs:641-647 | mistralrs-core/src/models/qwen2.rs:701-707 | mistralrs-core/src/models/qwen3.rs:675-681 | mistralrs-core/src/models/starcoder2.rs:637-643 | mistralrs-core/src/vision_models/gemma3/text.rs:912-918 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:654-660 | mistralrs-core/src/vision_models/phi3/mod.rs:1477-1483 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.rs\u0060 as WHOLE FILES: this scan already matched 49 separate duplicated blocks between them, totalling at least 707 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":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"b361dd870ab63dd879b7e5b958e7587d820f0c18035dd0267b7b20901177478e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 11): mistralrs-core/src/models/glm4.rs:419-430 | mistralrs-core/src/models/granite.rs:1927-1938 | mistralrs-core/src/models/hunyuan_v1_dense.rs:372-383 | mistralrs-core/src/models/hunyuan_v1_moe.rs:862-873 | mistralrs-core/src/models/llama.rs:325-336 | mistralrs-core/src/models/mistral.rs:394-405 | mistralrs-core/src/models/qwen3.rs:382-393 | mistralrs-core/src/models/qwen3_moe.rs:556-567 | mistralrs-core/src/models/smollm3.rs:341-352 | mistralrs-core/src/vision_models/llama4/text.rs:774-785 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:407-418 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/glm4.rs\u0060 and \u0060mistralrs-core/src/models/granite.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 254 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 \u0060mistralrs-core/src/models/glm4.rs:419\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":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"758d42f12ec046c42f14c2da8cdcd12d09560a19cf086e6f3fde6179f531b1b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-core/src/models/llama.rs:590-596 | mistralrs-core/src/models/smollm3.rs:609-615 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:603-609 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/llama.rs\u0060 and \u0060mistralrs-core/src/models/smollm3.rs\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 727 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":"mistralrs-core/src/models/llama.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"82acdc911e08206469fc8a845e38848934763c1bed03f07b9a8a1272cf77d66a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-core/src/models/llama.rs:597-603 | mistralrs-core/src/models/smollm3.rs:616-622 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:610-616 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/llama.rs\u0060 and \u0060mistralrs-core/src/models/smollm3.rs\u0060 as WHOLE FILES: this scan already matched 47 separate duplicated blocks between them, totalling at least 727 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":"mistralrs-core/src/models/llama.rs"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"af0c5eeb054d798d7055aa00cac29c0c532d429abf2f6331ebb80ca6e02c2d20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-core/src/models/phi3.rs:281-286 | mistralrs-core/src/vision_models/phi3/mod.rs:372-377 | mistralrs-core/src/vision_models/phi4/mod.rs:235-240 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/phi3.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi3/mod.rs\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 638 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":"mistralrs-core/src/models/phi3.rs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd8c187ec397c64f617daf29372bb0b0a1ba45d73140681015691980bdec972"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-core/src/models/qwen2.rs:131-141 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:26-36 | mistralrs-core/src/vision_models/qwen2vl/text.rs:27-37 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/qwen2.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/text.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 319 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 \u0060mistralrs-core/src/models/qwen2.rs:131\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":"mistralrs-core/src/models/qwen2.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b3b25d65a881890dcc0087fac08e60b1d18a13e9a931c44349a5caae6f02cee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-core/src/pipeline/ggml.rs:507-512 | mistralrs-core/src/pipeline/gguf.rs:1545-1550 | mistralrs-core/src/pipeline/normal.rs:1727-1732 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/ggml.rs\u0060 and \u0060mistralrs-core/src/pipeline/gguf.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 75 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":"mistralrs-core/src/pipeline/ggml.rs"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"c490582acc9dc58437e76b44c6e13562ee40d7d6a847b6ced7a9df410e0d25f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/pipeline/inputs_processor.rs:2634-2640 | mistralrs-core/src/vision_models/mod.rs:69-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060mistralrs-core/src/pipeline/inputs_processor.rs:2634\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":"mistralrs-core/src/pipeline/inputs_processor.rs"},"region":{"startLine":2634}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeb51a4a530958f3edb62d696ba971384ad4f5e19ffedfdbcf27e12c5fa1e36e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/lfm3_audio.rs:159-168 | mistralrs-core/src/pipeline/loaders/lfm3_vl.rs:168-177 \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 \u0060mistralrs-core/src/pipeline/loaders/lfm3_audio.rs:159\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":"mistralrs-core/src/pipeline/loaders/lfm3_audio.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5755c02b310512b5823f64711b09632e71978e88a8c5b48713018fba10995a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/lfm3_audio.rs:213-218 | mistralrs-core/src/pipeline/loaders/lfm3_omni.rs:147-152 | mistralrs-core/src/pipeline/loaders/lfm3_vl.rs:235-240 \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 \u0060mistralrs-core/src/pipeline/loaders/lfm3_audio.rs:213\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":"mistralrs-core/src/pipeline/loaders/lfm3_audio.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bab999907fdc6d1b9cc2b9b9b56657fcf01288c16d0cb848cc29df680acd3b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): mistralrs-core/src/pipeline/loaders/lfm3_vl.rs:153-162 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6627-6636 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7028-7037 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7505-7514 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7980-7989 \u2014 there are 5 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 5 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/lfm3_vl.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2bc6cd09c929e8205a2fb95b52fe48da0f686f0b169794e15d9e8e8b347d832"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:962-972 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3752-3762 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1847-1857 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 445 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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"73611ae9739f061a8aa19e0a564fe9cb742918ea8a2349279f53fcae3e517122"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7449-7456 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7924-7931 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8466-8473 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6686-6693 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 34 separate duplicated blocks between them, totalling at least 445 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 \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7449\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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":7449}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2e1bd8e42f341694a96f03446a59033d6e7527778c90f9c8ca1c74546601e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:355-362 | mistralrs-core/src/pipeline/normal.rs:521-528 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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 \u0060mistralrs-core/src/pipeline/multimodal.rs:355\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ad427e52067643aef31b5288c5071e5cde9970819f7a13eee32a0be97d54df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1761-1769 | mistralrs-core/src/pipeline/normal.rs:1631-1639 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"43df15a218060797788a370f92fb21db4a2eb37831b7405b81a52df4de141f7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2770-2777 | mistralrs-core/src/pipeline/normal.rs:2334-2341 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2770}}}],"partialFingerprints":{"codehealthFindingId/v1":"304485895cb34121deddf27d3bc9c10bd208362c9051c0fcd72584c36e58ce6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/text.rs:50-56 | mistralrs-core/src/vision_models/gemma4/text.rs:904-910 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/text.rs\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 7 separate duplicated blocks between them, totalling at least 70 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 \u0060mistralrs-core/src/vision_models/gemma3n/text.rs:50\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":"mistralrs-core/src/vision_models/gemma3n/text.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3b23787bc239052ec7e2fab814c01cdb79b2a1a3064fc83cfc9a8285d1938c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/vision_models/grid_processor.rs:853-859 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:576-582 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 1008 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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"32207326f5e46cbda6e8e2c67c477fc974dbb45d8f087d2f18574bed08a1c8d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): mistralrs-core/src/vision_models/idefics2/mod.rs:408-415 | mistralrs-core/src/vision_models/idefics3/vision.rs:220-227 | mistralrs-core/src/vision_models/lfm2_vl/vision.rs:169-174 | mistralrs-core/src/vision_models/siglip.rs:224-231 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics2/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/idefics3/vision.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 221 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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"e17160f375baf45d425b4fe6a8d79ddf7770582013a808c466339b63d7c01494"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): mistralrs-core/src/vision_models/idefics2/mod.rs:553-560 | mistralrs-core/src/vision_models/idefics3/vision.rs:350-357 | mistralrs-core/src/vision_models/lfm2_vl/vision.rs:279-284 | mistralrs-core/src/vision_models/muse_glimmer/vision.rs:424-429 | mistralrs-core/src/vision_models/muse_glimmer/vision.rs:516-521 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:97-102 | mistralrs-core/src/vision_models/siglip.rs:361-368 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics2/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/idefics3/vision.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 221 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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"684824736941891d91d1a62d0fb1350c8934ff137aace865629e7988d7b62cd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-core/src/vision_models/idefics2/mod.rs:620-626 | mistralrs-core/src/vision_models/idefics3/vision.rs:417-423 | mistralrs-core/src/vision_models/lfm2_vl/vision.rs:338-344 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics2/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/idefics3/vision.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 221 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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"c36abfbb87c7ccbdeff4f5c3e790d5c3ddea83569e7bf818c14cc802c3b8b840"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/vision_models/idefics3/vision.rs:344-348 | mistralrs-core/src/vision_models/siglip.rs:355-359 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics3/vision.rs\u0060 and \u0060mistralrs-core/src/vision_models/siglip.rs\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 276 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":"mistralrs-core/src/vision_models/idefics3/vision.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9305de8aa750f24a0679777dd1e7850918d5e911aa70ed57d89dfc3f605f5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/vision_models/llama4/config.rs:92-96 | mistralrs-core/src/vision_models/mistral3/config.rs:24-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/llama4/config.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2ecc1828b5578afb5a27b1af2a29e15bffa8e0ca6b5e31808cc86c0ae23152"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava15.rs:139-147 | mistralrs-core/src/vision_models/llava/llava_next.rs:98-106 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/llava/llava15.rs\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava_next.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 109 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 \u0060mistralrs-core/src/vision_models/llava/llava15.rs:139\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":"mistralrs-core/src/vision_models/llava/llava15.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a7586c6f4337dcede5e6b2b4098f8fdad3f9a04e1001800990a98a43468e6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava15.rs:233-237 | mistralrs-core/src/vision_models/llava/llava_next.rs:197-201 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/llava/llava15.rs\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava_next.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 109 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":"mistralrs-core/src/vision_models/llava/llava15.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"f95dc825e01e50e2698a963d8a43fb7fb7e67bd482b493da87eb1b434d784986"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/vision_models/phi3/mod.rs:151-159 | mistralrs-core/src/vision_models/phi4/image_embedding.rs:60-68 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/phi3/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi4/image_embedding.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 98 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":"mistralrs-core/src/vision_models/phi3/mod.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec6fd513b9514a727f64d2f2d0ab45e4a3b3fe3025cf64a12626456e19fb0b16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/vision_models/phi3/mod.rs:487-493 | mistralrs-core/src/vision_models/phi4/image_embedding.rs:82-88 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/phi3/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi4/image_embedding.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 98 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":"mistralrs-core/src/vision_models/phi3/mod.rs"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"268ea3dc12cb13c5c4ba21b161c3bc5c03b27a99f072ce586916ba0019fc788d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:508-514 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:664-670 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/mod.rs\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 396 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":"mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf7cf7eebf61a6876553a6da7b7e8252d5d3393d72c4b56c14d8fba152e1312"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:211-216 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:182-187 | mistralrs-core/src/vision_models/qwen3_vl/vision.rs:244-249 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/vision.rs\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 15 separate duplicated blocks between them, totalling at least 182 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":"mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f6b60cb3d28c2fd7159ac40eaaa283bdf926ca27c2ad197dfa08882cf287a17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:258-264 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:230-236 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/vision.rs\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 15 separate duplicated blocks between them, totalling at least 182 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 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:258\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":"mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b82c51b20d4f5e32b79ec96cd620d696efe50ff98d938545ceeea9b6574f23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:338-342 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:310-314 | mistralrs-core/src/vision_models/qwen3_vl/vision.rs:411-415 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/vision.rs\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 15 separate duplicated blocks between them, totalling at least 182 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":"mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"755f1c23ac8c20816ab98083dbf0a4093f25dce731a64036a6de585b6d18659f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/speculative.rs:571-575 | mistralrs-core/src/vision_models/qwen4_exp/speculative.rs:75-79 \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":"mistralrs-core/src/vision_models/qwen3_5/speculative.rs"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"b687fd7cebb7d49526973ed7f3ebb403ead82622fe839d9624e58a6a20d495ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/text.rs:1116-1122 | mistralrs-core/src/vision_models/qwen4_exp/text.rs:677-683 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen4_exp/text.rs\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 7 separate duplicated blocks between them, totalling at least 83 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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":1116}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f46c8874a56c91300c91c5e80d812c57411983ffcb557f60a96f6681a06357"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:481-497 | mistralrs-paged-attn/src/metal/backend/paged_attention.rs:701-717 \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 \u0060mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:481\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":"mistralrs-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96b8d9845cc5560ff49b864abc3e6bf9a0d4552d4c8d8dd0627eb611fea79aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/scale_update.rs:119-125 | mistralrs-paged-attn/src/metal/backend/scale_update.rs:82-88 \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 \u0060mistralrs-paged-attn/src/cuda/backend/scale_update.rs:119\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":"mistralrs-paged-attn/src/cuda/backend/scale_update.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"87f191967bead4b18dd396dd166621633bad7140cb3b79d7ff3cb3b1a600b7b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-paged-attn/src/metal/kernels/mod.rs:143-149 | mistralrs-quant/src/metal_kernels/mod.rs:141-147 \u2014 before extracting anything, compare \u0060mistralrs-paged-attn/src/metal/kernels/mod.rs\u0060 and \u0060mistralrs-quant/src/metal_kernels/mod.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 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 \u0060mistralrs-paged-attn/src/metal/kernels/mod.rs:143\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":"mistralrs-paged-attn/src/metal/kernels/mod.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff103cb396edd40e48248dab2710d95a58115d0337b26d88168586ee01527a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-pyo3/src/lib.rs:527-536 | mistralrs-server-core/src/lora_adapters.rs:521-530 \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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"20cbbd5a74e1832e1d90a31f02f0581746a3e9e39126b94484b49f9c26cc37d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): mistralrs-quant/src/afq/mod.rs:221-229 | mistralrs-quant/src/gguf/mod.rs:802-810 | mistralrs-quant/src/unquantized/mod.rs:647-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":"mistralrs-quant/src/afq/mod.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02c3c8a1412dd48f1b689dd1039a6fedb81d2cca8edcba67f65433636ce655a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmq.rs:41-46 | mistralrs-quant/src/gguf/fast_mmvq.rs:45-50 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/gguf/fast_mmq.rs\u0060 and \u0060mistralrs-quant/src/gguf/fast_mmvq.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 62 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":"mistralrs-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b7b470d5fc19ea2021a33e06ecf583221f39d1d56377048a9492924afa2c2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmq.rs:60-74 | mistralrs-quant/src/gguf/fast_mmvq.rs:53-67 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/gguf/fast_mmq.rs\u0060 and \u0060mistralrs-quant/src/gguf/fast_mmvq.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 62 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":"mistralrs-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"559fef0d0b87799024113ce581bf1eddeebd5f294bcc53e9271de8048f9bf050"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-server-core/src/chat_completion.rs:1340-1346 | mistralrs-server-core/src/completions.rs:397-403 \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 \u0060mistralrs-server-core/src/chat_completion.rs:1340\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":"mistralrs-server-core/src/chat_completion.rs"},"region":{"startLine":1340}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cffd885069772080e89cc5110356be887b346d1776dcfc4c4ff7817c26c5c91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs/src/embedding_model.rs:90-95 | mistralrs/src/gguf.rs:370-375 \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 \u0060mistralrs/src/embedding_model.rs: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":"mistralrs/src/embedding_model.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"745847cf45326280ffe79e36557edf8ca6a620a0b89ddb8ecee90b4ec980c16b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/flashinfer/mod.rs:554-560 | mistralrs-core/src/pipeline/inputs_processor.rs:702-708 \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":"mistralrs-core/src/flashinfer/mod.rs"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"705de4c9b1241c48d72389288ed3db05cc0d3f73d59b3d9ebbd40ca33dd98d2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/pipeline/ggml.rs:160-169 | mistralrs-core/src/pipeline/gguf.rs:383-392 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/ggml.rs\u0060 and \u0060mistralrs-core/src/pipeline/gguf.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 75 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 \u0060mistralrs-core/src/pipeline/ggml.rs:160\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":"mistralrs-core/src/pipeline/ggml.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bcacfbc5bf4c45852c6e9e50d237a72961ae63e2fc9a92dc8a15c5731ff52c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/pipeline/ggml.rs:171-175 | mistralrs-core/src/pipeline/gguf.rs:394-398 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/ggml.rs\u0060 and \u0060mistralrs-core/src/pipeline/gguf.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 75 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, \u0060mistralrs-core/src/pipeline/ggml.rs:179\u0060 calls \u0060unwrap\u0060 and \u0060mistralrs-core/src/pipeline/gguf.rs:402\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":"mistralrs-core/src/pipeline/ggml.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"8434bec60903a7d02c22a270806eadd9e5dce3ad76cfbc52f27172817925233c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/pipeline/ggml.rs:486-491 | mistralrs-core/src/pipeline/gguf.rs:1524-1529 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/ggml.rs\u0060 and \u0060mistralrs-core/src/pipeline/gguf.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 75 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":"mistralrs-core/src/pipeline/ggml.rs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"9deb23487d7ef55b7f0bdb72faf21ca1b924d4127558bf5587c185f92699e273"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/pipeline/ggml.rs:495-500 | mistralrs-core/src/pipeline/gguf.rs:1533-1538 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/ggml.rs\u0060 and \u0060mistralrs-core/src/pipeline/gguf.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 75 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":"mistralrs-core/src/pipeline/ggml.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"387cda5f81cb74dc5cdb4680702a7567d1ec4b4f17b17f1ab1d2dd48441f49ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 15): mistralrs-core/src/pipeline/loaders/lfm3.rs:48-58 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2636-2645 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4064-4073 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4406-4415 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5643-5652 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6586-6595 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6987-6996 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7464-7473 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7939-7948 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8481-8490 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9093-9102 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9414-9423 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9994-10003 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:10330-10339 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:10678-10687 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/lfm3.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 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 \u0060mistralrs-core/src/pipeline/loaders/lfm3.rs: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":"mistralrs-core/src/pipeline/loaders/lfm3.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"586abb1edcc94e304888d40b17090f407ff6cbf5d1175b596c5c982c318a01eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/lfm3_d1.rs:60-68 | mistralrs-core/src/pipeline/loaders/lfm3_omni.rs:55-63 | mistralrs-core/src/pipeline/loaders/lfm3_vl.rs:110-118 \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 \u0060mistralrs-core/src/pipeline/loaders/lfm3_d1.rs:60\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":"mistralrs-core/src/pipeline/loaders/lfm3_d1.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76afe3013d9a7cc96bccc1df057c482d0ae38a94ac9d435ef7b42cc729f4000"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/vision.rs:463-468 | mistralrs-core/src/vision_models/mistral3/vision.rs:181-186 \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":"mistralrs-core/src/vision_models/gemma4/vision.rs"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"945dd445bbdb23a64f5b9dfc5abab815c996c3874ac473c3f5bb6e36e1e11947"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:48-57 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:48-57 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/vision.rs\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 15 separate duplicated blocks between them, totalling at least 182 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":"mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"34fd898f0597683f44e6299630cc6c85812d5dad3f7c9e011d917aef12147e68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:301-309 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:273-281 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/vision.rs\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 15 separate duplicated blocks between them, totalling at least 182 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":"mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"a630d46877e58d44c666cda28dacc9cd8c56039fe0a4b6ebe1995d53d3e45028"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/mod.rs:1064-1072 | mistralrs-quant/src/mxfp8/mod.rs:376-384 \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":"mistralrs-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f7049bd83fb5a54b01532256e85f6878d6a14e94daad631aba92cb60de79a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 5): mistralrs-core/src/gguf/gemma3_bindings.rs:194-215 | mistralrs-core/src/gguf/idefics3_bindings.rs:63-84 | mistralrs-core/src/gguf/lfm2_vl_bindings.rs:98-119 | mistralrs-core/src/gguf/llama4_bindings.rs:221-242 | mistralrs-core/src/gguf/muse_glimmer_bindings.rs:133-154 \u2014 before extracting anything, compare \u0060mistralrs-core/src/gguf/gemma3_bindings.rs\u0060 and \u0060mistralrs-core/src/gguf/muse_glimmer_bindings.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 62 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 \u0060mistralrs-core/src/gguf/gemma3_bindings.rs:194\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, \u0060mistralrs-core/src/gguf/muse_glimmer_bindings.rs:129\u0060 calls \u0060bind_required_linear\u0060 and \u0060mistralrs-core/src/gguf/gemma3_bindings.rs: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":"mistralrs-core/src/gguf/gemma3_bindings.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"781b93e2456502ef38631a688a6274cbdc3bc42c4029b29ee9cd4c3aec7c56ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 4): mistralrs-core/src/models/phi2.rs:710-729 | mistralrs-core/src/models/phi3.rs:705-724 | mistralrs-core/src/models/starcoder2.rs:701-720 | mistralrs-core/src/vision_models/phi3/mod.rs:1540-1559 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/phi2.rs\u0060 and \u0060mistralrs-core/src/models/phi3.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 237 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 \u0060mistralrs-core/src/models/phi2.rs:710\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":"mistralrs-core/src/models/phi2.rs"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf8e9b1ecf0bd3cbf99230b41ab39d82e24addbf0fbeb76e9f8e0641df7825e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/ops.rs:6097-6115 | mistralrs-core/src/ops.rs:6426-6444 \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 \u0060mistralrs-core/src/ops.rs:6097\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":6097}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b23d8d10bbbe498b20f1ff78717610f9f3ecd47725ed1bce278aadac754413"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-code-exec/src/tools.rs:376-392 | mistralrs-code-exec/src/tools.rs:402-415 \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 \u0060mistralrs-code-exec/src/tools.rs:376\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":"mistralrs-code-exec/src/tools.rs"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab3aab7c1623ffd3803f2b841a50a3ab6b6197d0d699f8a7e0290d5d60eb74c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:598-614 | mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:613-629 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:534-550 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 222 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 \u0060mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:598\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":"mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"30fbe0f10572e8e295739008f792a40c15f36b8dd3dce30e28909b4043ae6001"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:516-532 | mistralrs-quant/src/cutile/fp8_w8a8.rs:615-631 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs\u0060 and \u0060mistralrs-quant/src/cutile/fp8_w8a8.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 212 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 \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs:516\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":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a31cba01e96537407057c2357178b8e8b483e6c5e821fbe8b3023c5ce9a3c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/vision.rs:519-533 | mistralrs-core/src/vision_models/gemma3n/vision.rs:544-559 \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 \u0060mistralrs-core/src/vision_models/gemma3n/vision.rs:519\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":"mistralrs-core/src/vision_models/gemma3n/vision.rs"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14e67dc204b73730df322e9fb1fb7f4ab9697b73966aa61758dfeb184a75b08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/ops.rs:578-593 | mistralrs-core/src/ops.rs:740-755 \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 \u0060mistralrs-core/src/ops.rs:578\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"613e7b9d991702adf62ec1c9032f8b86f2207b370d537e3a5d292c9ec0b3186f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): mistralrs-core/src/vision_models/grid_processor.rs:1720-1734 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:886-900 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1451-1465 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:1720\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1720}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b325160a010b4f99ec30acf39b964552151a3787eb8a632e6dcd312da296bc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:2012-2026 | mistralrs-quant/src/distributed/layers.rs:2168-2182 \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 \u0060mistralrs-quant/src/distributed/layers.rs:2012\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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":2012}}}],"partialFingerprints":{"codehealthFindingId/v1":"9605549a74f3812d24a02e0de024c99516b787198fd28519a93d0627586f6a56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): mistralrs-core/src/models/lfm2.rs:1261-1285 | mistralrs-core/src/models/lfm3.rs:1276-1300 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/lfm2.rs\u0060 and \u0060mistralrs-core/src/models/lfm3.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 402 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 \u0060mistralrs-core/src/models/lfm2.rs:1261\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":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":1261}}}],"partialFingerprints":{"codehealthFindingId/v1":"164857e573c89fa7dccfc0c4def3688044d76655240ca951122e271a3a490047"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:713-727 | mistralrs-quant/src/cutile/fp8_w8a8.rs:822-836 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs\u0060 and \u0060mistralrs-quant/src/cutile/fp8_w8a8.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 212 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 \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs:713\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":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bcfe0a65d021329e3212429086bc348998c1f083fb22e298e198b29fba02a91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/lfm3.rs:172-185 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:10540-10554 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:7081-7094 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/lfm3.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 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":"mistralrs-core/src/pipeline/loaders/lfm3.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a24f5771c5fcf40aa7b3c41a67cf1db7ed9dabacc2dfdb711913e6490e29fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:291-304 | mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:327-340 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:300-313 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 222 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 \u0060mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:291\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":"mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"b520a963101995dd78afe45336e3f636b202ee3c9bed03565944a97ce6478fbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): mistralrs-core/src/models/granite.rs:2224-2237 | mistralrs-core/src/models/lfm2.rs:1214-1227 | mistralrs-core/src/models/lfm3.rs:1214-1227 | mistralrs-core/src/models/qwen3_next.rs:1015-1028 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/granite.rs\u0060 and \u0060mistralrs-core/src/models/lfm2.rs\u0060 as WHOLE FILES: this scan already matched 7 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. 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 \u0060mistralrs-core/src/models/granite.rs:2224\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, \u0060mistralrs-core/src/models/qwen3_next.rs:1032\u0060 calls \u0060Paged\u0060, \u0060seqlen_offsets\u0060 and \u0060mistralrs-core/src/models/lfm2.rs:1231\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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":2224}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b3f643c3744b800dc0db5a9d933937508ad73ea451c78802477a59794fb78ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-quant/src/gguf/cuda.rs:1278-1291 | mistralrs-quant/src/gguf/cuda.rs:1338-1351 \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 \u0060mistralrs-quant/src/gguf/cuda.rs:1278\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":"mistralrs-quant/src/gguf/cuda.rs"},"region":{"startLine":1278}}}],"partialFingerprints":{"codehealthFindingId/v1":"3759defbedb0cfa6215269bd483de72c5006d529fc8c3c6ed8b5909e97f1120b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201313 lines \u00D7 4): mistralrs-core/src/cuda/speculative_rejection.rs:613-614 | mistralrs-core/src/ops.rs:5683-5696 | mistralrs-core/src/ops.rs:6107-6119 | mistralrs-core/src/ops.rs:6436-6448 \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":"mistralrs-core/src/cuda/speculative_rejection.rs"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d0696b9eaaae208c2f6ea8fb0b1d1471c47267b60757dd193024255c786c27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:42-55 | mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:192-205 \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 \u0060mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"b409cddfc812f98648e265c19542cd70d185d44d2224bac049a5fb2128017738"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-quant/src/gguf/cuda.rs:703-715 | mistralrs-quant/src/gguf/cuda.rs:763-775 \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 \u0060mistralrs-quant/src/gguf/cuda.rs:703\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":"mistralrs-quant/src/gguf/cuda.rs"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c3364c7944087ffb3be26bc2afa9b018e2d1e71d5958ce0cfa478a16acafc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 9): mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:399-409 | mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:1042-1052 | mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:439-449 | mistralrs-core/src/vision_models/llama4/inputs_processor.rs:409-419 | mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:290-302 | mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:326-338 | mistralrs-core/src/vision_models/minicpmo/inputs_processor.rs:314-324 | mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:271-281 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:299-311 \u2014 \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/inputs_processor.rs\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 6 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 \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs: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. 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":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8beea25925ae6f22d712c7d4bd753d03b5a4f16ea7986f310ffc6e568510f1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 11): mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:397-409 | mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:1040-1052 | mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:437-449 | mistralrs-core/src/vision_models/llama4/inputs_processor.rs:407-419 | mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:288-300 | mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:324-336 | mistralrs-core/src/vision_models/minicpmo/inputs_processor.rs:312-324 | mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:269-281 | mistralrs-core/src/vision_models/mllama/inputs_processor.rs:335-347 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:297-309 | mistralrs-core/src/vision_models/voxtral/inputs_processor.rs:210-222 \u2014 \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/inputs_processor.rs\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 6 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":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"9395562d18be392fb965cfcbfeecf5028951fa00f8d696ac4e317930f508bbc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/engine/mod.rs:1499-1511 | mistralrs-core/src/engine/mod.rs:1570-1582 \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 \u0060mistralrs-core/src/engine/mod.rs:1499\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":"mistralrs-core/src/engine/mod.rs"},"region":{"startLine":1499}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b72f10317148cefa3667f479bbe19eacc83f3f823bbd4832ee0bba1ebce4c08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:559-571 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:1004-1014 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fused_moe.rs\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe_fp8.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 298 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 \u0060mistralrs-quant/src/cutile/fused_moe.rs:559\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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e90f1ca510ea285708791103fc7d7c997a2cbf4c6909a0ea770613b6fa82e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/models/lfm2.rs:1185-1197 | mistralrs-core/src/models/lfm3.rs:1180-1192 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/lfm2.rs\u0060 and \u0060mistralrs-core/src/models/lfm3.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 402 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 \u0060mistralrs-core/src/models/lfm2.rs:1185\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":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":1185}}}],"partialFingerprints":{"codehealthFindingId/v1":"a50573c8013ebfcbaa503bfc2bb679a85c5dc226920f2b28f2c627c139440aa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): mistralrs-core/src/vision_models/grid_processor.rs:1376-1388 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:576-588 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1184-1196 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 780 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:1376\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f649951dd58ac64c5fb89d90f9c1427497c4a7d607a5c3b7cc905bebe0c5c69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/models/qwen3_next.rs:554-566 | mistralrs-core/src/vision_models/qwen3_5/packed_gdn.rs:35-45 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/qwen3_next.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5/packed_gdn.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 64 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 \u0060mistralrs-core/src/models/qwen3_next.rs:554\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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ef51b3da08f8554cb4d114fe51b044385b9a1915770449dcb39bffee6873b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/config.rs:117-129 | mistralrs-core/src/vision_models/qwen2vl/config.rs:91-103 \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 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/config.rs:117\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":"mistralrs-core/src/vision_models/qwen2_5_vl/config.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c4686e6568090bbde0b3b055262a9e6d12af2f96e6439eb77af7b1fb1bcd5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-cli/src/commands/run/interactive.rs:1652-1664 | mistralrs-cli/src/commands/run/interactive.rs:1668-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 \u0060mistralrs-cli/src/commands/run/interactive.rs:1652\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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1652}}}],"partialFingerprints":{"codehealthFindingId/v1":"e30ef08844d173184f53f5b35ba35c0d9a16f560fe6356b5fba17cd71c2fe1f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): mistralrs-core/src/models/granite.rs:2195-2207 | mistralrs-core/src/models/lfm2.rs:1184-1196 | mistralrs-core/src/models/lfm3.rs:1179-1191 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/granite.rs\u0060 and \u0060mistralrs-core/src/models/lfm2.rs\u0060 as WHOLE FILES: this scan already matched 7 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. 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, \u0060mistralrs-core/src/models/lfm2.rs:1197\u0060 calls \u0060is_none\u0060 and \u0060mistralrs-core/src/models/granite.rs:2208\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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":2195}}}],"partialFingerprints":{"codehealthFindingId/v1":"8079ac29080fa34dfd7b9f7eeb08340a111c51ef9293418e677d2821dd135a32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/models/glm4.rs:354-366 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:344-355 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/glm4.rs\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 277 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 \u0060mistralrs-core/src/models/glm4.rs:354\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":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4ca5c66641b206177721b261b250355517d1eed50a1c2b5d1a30db825e8b0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:2200-2211 | mistralrs-quant/src/distributed/layers.rs:2216-2227 \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 \u0060mistralrs-quant/src/distributed/layers.rs:2200\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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":2200}}}],"partialFingerprints":{"codehealthFindingId/v1":"371a8be8dcbc0ed2fa19eb03f95ce5d5feb3297f3f9961100c93daf22ae38b0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/sampler.rs:1786-1797 | mistralrs-core/src/speculative/verifier.rs:1399-1410 \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 \u0060mistralrs-core/src/sampler.rs:1786\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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":1786}}}],"partialFingerprints":{"codehealthFindingId/v1":"89cfe6bde14cca82a73cec939812503cf139f31659a7a465535a1d43ba0eaf8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/vision.rs:537-548 | mistralrs-core/src/vision_models/gemma3n/vision.rs:563-574 \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 \u0060mistralrs-core/src/vision_models/gemma3n/vision.rs:537\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":"mistralrs-core/src/vision_models/gemma3n/vision.rs"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f13a87b1fce705f677aa86c6d9190f4e6e417bf7d16ebc2c33c0e05f68fcc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/ops.rs:4443-4452 | mistralrs-core/src/ops.rs:5394-5405 \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 \u0060mistralrs-core/src/ops.rs:4443\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":4443}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47a7619fbcf49ac9d8c92daa4ad1c617e56f4c94f60caa9263eb924216639fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/audio.rs:1093-1104 | mistralrs-core/src/vision_models/gemma3n/audio.rs:1151-1162 \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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"094378d1ff6035a73c4e4966b9d167d4f337cbfdd999129cd907cb3a75f914aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-core/src/cuda/gdn.rs:5337-5347 | mistralrs-core/src/cuda/gdn.rs:5537-5548 | mistralrs-core/src/cuda/gdn.rs:5764-5774 \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 \u0060mistralrs-core/src/cuda/gdn.rs:5337\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":5337}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f65e35909adf2bb46f880f0961f157771c9cf124da3fd06a37ab48d0917b0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-quant/src/gguf/packed_affine.rs:532-543 | mistralrs-quant/src/gguf/packed_affine.rs:561-572 \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 \u0060mistralrs-quant/src/gguf/packed_affine.rs:532\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":"mistralrs-quant/src/gguf/packed_affine.rs"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2baa9d344f7a4f6d0771cedc86e0f4525037e4fb7adb8564855a4fe44d2afa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:117-128 | mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:691-702 \u2014 \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/inputs_processor.rs\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 6 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 \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs: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":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"525c5d762fdfb5610b09866baf3e627ed3a0e343032520af0f2dfd749f1e4c3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_vl/mod.rs:208-219 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:231-242 \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 \u0060mistralrs-core/src/vision_models/qwen3_vl/mod.rs:208\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":"mistralrs-core/src/vision_models/qwen3_vl/mod.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e5c92374f8fb333e2b3bc67e690ea5aa2047935bdd9ab877d198b50d820f63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-core/src/sampler.rs:1298-1309 | mistralrs-core/src/sampler.rs:1541-1551 | mistralrs-core/src/sampler.rs:1708-1718 \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 \u0060mistralrs-core/src/sampler.rs:1298\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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":1298}}}],"partialFingerprints":{"codehealthFindingId/v1":"38eb7372cd8a295edcd9e66c7c5ef04d250ef6e86fa8a98a90aa9a0acd39a1e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/engine/mod.rs:1365-1374 | mistralrs-core/src/engine/mod.rs:2395-2406 \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 after the matched lines, \u0060mistralrs-core/src/engine/mod.rs:2407\u0060 calls \u0060drop\u0060, \u0060account_cuda_decode_rows\u0060 and \u0060mistralrs-core/src/engine/mod.rs:1375\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":"mistralrs-core/src/engine/mod.rs"},"region":{"startLine":1365}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2a5bd7a347a5fa80bfb352a1eae3170b3c0193a70d5faca47b68944e0e3336"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/mla/projection.rs:70-81 | mistralrs-core/src/mla/projection.rs:88-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 \u0060mistralrs-core/src/mla/projection.rs: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":"mistralrs-core/src/mla/projection.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac976e4f7378661996e4780ba6dace81fcfd6a318697e9467389f2825b0a09f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-quant/src/metal_kernels/mod.rs:3912-3922 | mistralrs-quant/src/metal_kernels/mod.rs:4003-4013 \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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":3912}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0ce83f3a3c93c953dd8150444bc2091a4512197f45dd9a09fa1c55ab919d091"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/vision_models/grid_processor.rs:893-902 | mistralrs-core/src/vision_models/grid_processor.rs:1216-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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:893\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"559c816e8f9b1a542a43f1d8ff087453c3e7089a8a36af26351e9797575d3c79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:268-276 | mistralrs-core/src/vision_models/llama4/inputs_processor.rs:305-315 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/llama4/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 152 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 \u0060mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:268\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":"mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"88435fa60788a336d0d60e7d4cd7b14e445c6329de75292efc644704eb4169db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:212-218 | mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:109-119 \u2014 \u0060mistralrs-core/src/vision_models/idefics3/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/mistral3/inputs_processor.rs\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 13 separate duplicated blocks between them, totalling at least 194 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 \u0060mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:212\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":"mistralrs-core/src/vision_models/idefics3/inputs_processor.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"5683818cb9d966ccb53e56e16959a1af4d764477505327e1c34b2441e7a98162"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/engine/add_request.rs:1066-1076 | mistralrs-core/src/engine/add_request.rs:1106-1112 \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 \u0060mistralrs-core/src/engine/add_request.rs:1066\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":"mistralrs-core/src/engine/add_request.rs"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2a52f3dcb4fc994ee4dd34d34308d1d947a56946bb009d7155e4682dc1d6e26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9446-9456 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:10704-10714 \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":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":9446}}}],"partialFingerprints":{"codehealthFindingId/v1":"140d3aec5c136f936e2095b3f4e9b2fca7c681442ae0cd56d7a48283995dc091"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs:405-415 | mistralrs-core/src/vision_models/phi4/inputs_processor.rs:499-509 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi4/inputs_processor.rs\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 33 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 \u0060mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs:405\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":"mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6aac780dbeb424580cf03a6d3d2187eebd9c8189f59e16749b3313242ea793b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 24): mistralrs-core/src/embedding_models/qwen3_embedding.rs:251-260 | mistralrs-core/src/models/deepseek2.rs:727-736 | mistralrs-core/src/models/deepseek3.rs:790-799 | mistralrs-core/src/models/glm4.rs:337-346 | mistralrs-core/src/models/glm4_moe.rs:627-636 | mistralrs-core/src/models/glm4_moe_lite.rs:736-745 | mistralrs-core/src/models/gpt_oss.rs:652-662 | mistralrs-core/src/models/hunyuan_v1_dense.rs:311-320 | mistralrs-core/src/models/llama.rs:285-294 | mistralrs-core/src/models/mistral.rs:332-341 | mistralrs-core/src/models/mixtral.rs:341-350 | mistralrs-core/src/models/qwen2.rs:364-373 | mistralrs-core/src/models/qwen3.rs:320-329 | mistralrs-core/src/models/smollm3.rs:301-310 | mistralrs-core/src/vision_models/gemma4/text.rs:987-997 | mistralrs-core/src/vision_models/gemma4/text.rs:1058-1067 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:356-365 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:338-347 | mistralrs-core/src/vision_models/mllama/text.rs:282-291 | mistralrs-core/src/vision_models/mllama/text.rs:641-650 | mistralrs-core/src/xlora_models/llama.rs:359-368 | mistralrs-core/src/xlora_models/mistral.rs:339-348 | mistralrs-core/src/xlora_models/mixtral.rs:466-475 | mistralrs-core/src/xlora_models/phi3.rs:304-313 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/models/deepseek2.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 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 \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs:251\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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"429b37879e08cf4fde521d4715587432c5c06d42140f1b0e213717275c243888"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:290-300 | mistralrs-core/src/vision_models/llama4/inputs_processor.rs:324-334 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/llama4/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 152 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 \u0060mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:290\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":"mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ac4267e4e5270dc3d5005683cfc330ae220f48417c8b893f935ad7cd73ca858"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:1617-1626 | mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:613-623 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/gemma4/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 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 \u0060mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:1617\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":"mistralrs-core/src/vision_models/gemma4/inputs_processor.rs"},"region":{"startLine":1617}}}],"partialFingerprints":{"codehealthFindingId/v1":"07980b80c39c3ab31d8f53b3a831b0db63c4dd1bbce7168fa6721f1e68935f11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-core/src/ops.rs:4417-4427 | mistralrs-core/src/ops.rs:4602-4612 | mistralrs-core/src/ops.rs:5365-5375 \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 \u0060mistralrs-core/src/ops.rs:4417\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, \u0060mistralrs-core/src/ops.rs:5364\u0060 calls \u0060dtype\u0060 and \u0060mistralrs-core/src/ops.rs:4416\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":4417}}}],"partialFingerprints":{"codehealthFindingId/v1":"02656c0375c86260c10af4073e36f31a764721c0da5847490f492f610eef035a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/text.rs:865-875 | mistralrs-core/src/vision_models/gemma3n/text.rs:877-887 \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 \u0060mistralrs-core/src/vision_models/gemma3n/text.rs:865\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":"mistralrs-core/src/vision_models/gemma3n/text.rs"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"2929075efebe1cd184bbc9dda5eff854957ee25ae01dbeaeebd2ecaf87bbf6f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/ops.rs:4509-4515 | mistralrs-core/src/ops.rs:5483-5493 \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 \u0060mistralrs-core/src/ops.rs:4509\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":4509}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d31264cd5982cb52f08897e24d104b18887aeb8f608215f2e71313767f66387"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:808-818 | mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:211-221 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:167-177 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/gemma4/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 4 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 \u0060mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:808\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":"mistralrs-core/src/vision_models/gemma4/inputs_processor.rs"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"70ba0b95bf5bde016760a4e2cba07729d5f31f2081f3132ce0f3360dc7d0f343"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/vision_models/grid_processor.rs:548-558 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:334-344 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 1008 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:548\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7404c2dd3f027f703003c8eda067dea605ae3c553c7727b809892547b0c7309"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-quant/src/distributed/layers.rs:2198-2208 | mistralrs-quant/src/distributed/layers.rs:2214-2224 | mistralrs-quant/src/distributed/layers.rs:2230-2240 \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 \u0060mistralrs-quant/src/distributed/layers.rs:2198\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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":2198}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8d7751521a456d46f0f73b9f0d0cf2dce60e4fc4818c487fe36af74a83afaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-quant/src/gguf/cuda.rs:680-690 | mistralrs-quant/src/gguf/cuda.rs:740-750 \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 \u0060mistralrs-quant/src/gguf/cuda.rs:680\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":"mistralrs-quant/src/gguf/cuda.rs"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"a907a62c686739d32fab0ba1f2c95020c2d8cd2c1bfe68dbfd41a00bd401dfb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/flashinfer/metadata.rs:120-130 | mistralrs-core/src/flashinfer/metadata.rs:190-200 \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":"mistralrs-core/src/flashinfer/metadata.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0dc3ef98126811dd99486836b7be5f7a5384ecb64359bf554f7fbb948f980d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/gguf/normal_config.rs:1627-1636 | mistralrs-core/src/gguf/normal_config.rs:2197-2206 \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":"mistralrs-core/src/gguf/normal_config.rs"},"region":{"startLine":1627}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c51b1f71e457c70c01ced69f1cb5a7838e6ea593db7b0b9d721ed90dcfc7abf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/f8q8/neon.rs:34-42 | mistralrs-quant/src/f8q8/neon.rs:165-174 \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 \u0060mistralrs-quant/src/f8q8/neon.rs:34\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":"mistralrs-quant/src/f8q8/neon.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae336bf3c6defc65f683d772c3f9d3310d3729878267225f5c2eb12507778622"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/sampler.rs:871-880 | mistralrs-core/src/sampler.rs:916-925 \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 \u0060mistralrs-core/src/sampler.rs:871\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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"d448d18f10f8e8617e0b1866a0dd58e380adc343a35af0599822b7f8c97a48a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-core/src/vision_models/gemma4/mod.rs:526-535 | mistralrs-core/src/vision_models/gemma4/mod.rs:649-658 | mistralrs-core/src/vision_models/gemma4/mod.rs:839-848 \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 \u0060mistralrs-core/src/vision_models/gemma4/mod.rs:526\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":"mistralrs-core/src/vision_models/gemma4/mod.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"369a57df52e59f560eb450ecf2608e48c171d403cd1987112f3bf7b1ea93ec0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/models/qwen3_next.rs:653-662 | mistralrs-core/src/vision_models/qwen3_5/packed_gdn.rs:137-146 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/qwen3_next.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5/packed_gdn.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 64 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 \u0060mistralrs-core/src/models/qwen3_next.rs:653\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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49aec6c37ab6681c97d62d39f83aefe9659c81edf8c9ba19d3e13b5f7dbcdba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/text.rs:560-569 | mistralrs-core/src/vision_models/gemma4/text.rs:794-803 \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":"mistralrs-core/src/vision_models/gemma4/text.rs"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1a5b131c05728b107807699fb9b2c08335dd8de970376e74c35a327b054e79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): mistralrs-core/src/ops.rs:4405-4413 | mistralrs-core/src/ops.rs:4590-4598 | mistralrs-core/src/ops.rs:5349-5358 \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. 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":"mistralrs-core/src/ops.rs"},"region":{"startLine":4405}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eccad76da10a53b659d8889300f65f7efa99888109999e4ad89ebcac004cbd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/vision_models/phi4/inputs_processor.rs:106-115 | mistralrs-core/src/vision_models/phi4/inputs_processor.rs:122-131 \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 \u0060mistralrs-core/src/vision_models/phi4/inputs_processor.rs: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":"mistralrs-core/src/vision_models/phi4/inputs_processor.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ee731b31c9ce9ecd21fc185f8ac5cdd98fb486a7648480449fbe5c14fb1849"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:406-412 | mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:1049-1056 | mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:446-452 | mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:278-284 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:426-435 \u2014 \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/inputs_processor.rs\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 6 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 \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:406\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":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd9d6ba5eac49092d9461a0bebeebef19c1dc1a08c065479f9a38ca6bf99b678"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/engine/add_request.rs:478-487 | mistralrs-core/src/engine/add_request.rs:502-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. 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, \u0060mistralrs-core/src/engine/add_request.rs:500\u0060 calls \u0060CompletionTokens\u0060 and \u0060mistralrs-core/src/engine/add_request.rs: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":"mistralrs-core/src/engine/add_request.rs"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"54cd8978a3b30ffc4f4c7b298be0f02ab504912207ce282b8cc0aead5108496f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/metal/gdn.rs:73-82 | mistralrs-core/src/metal/ssm.rs:63-72 \u2014 before extracting anything, compare \u0060mistralrs-core/src/metal/gdn.rs\u0060 and \u0060mistralrs-core/src/metal/ssm.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 68 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 \u0060mistralrs-core/src/metal/gdn.rs:73\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":"mistralrs-core/src/metal/gdn.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf23216e428a118b367e2886b1b3c49431aeb47166d24d1b8f5241582cc13aaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): mistralrs-quant/src/gguf/fast_mmq.rs:619-626 | mistralrs-quant/src/gguf/fast_mmq.rs:889-896 | mistralrs-quant/src/gguf/fast_mmq.rs:1358-1365 | mistralrs-quant/src/gguf/fast_mmvq.rs:878-887 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/gguf/fast_mmq.rs\u0060 and \u0060mistralrs-quant/src/gguf/fast_mmvq.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 62 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 \u0060mistralrs-quant/src/gguf/fast_mmvq.rs:878\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":"mistralrs-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58989e9cf9489a5ffc3d7c4047b063fa93f88d99602aed8bcb9810828ae92dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:273-279 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:126-135 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:692-701 \u2014 \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\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 92 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. 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":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1c8e501ef587dacf96a7433a403dc37ff9d7cf13f7bce584e81208e32f5106c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-core/src/vision_models/muse_glimmer/mod.rs:177-186 | mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:157-166 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:180-189 \u2014 \u0060mistralrs-core/src/vision_models/muse_glimmer/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs\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 66 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 \u0060mistralrs-core/src/vision_models/muse_glimmer/mod.rs: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":"mistralrs-core/src/vision_models/muse_glimmer/mod.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"28e3a1bcd99edae6720efcc4d477cbc626ab53d92d4d1ea0e2dbf6dd2f4921c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/ops.rs:3886-3895 | mistralrs-core/src/ops.rs:4013-4022 \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 \u0060mistralrs-core/src/ops.rs:3886\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":3886}}}],"partialFingerprints":{"codehealthFindingId/v1":"af519bda3baf241c40a6a392e8178406131ce409a7d8533f696059856237510a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-quant/src/metal_kernels/mod.rs:2851-2860 | mistralrs-quant/src/metal_kernels/mod.rs:2931-2940 | mistralrs-quant/src/metal_kernels/mod.rs:2966-2975 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:2851\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, \u0060mistralrs-quant/src/metal_kernels/mod.rs:2942\u0060 calls \u0060set_output_buffer\u0060, \u0060Some\u0060 and \u0060mistralrs-quant/src/metal_kernels/mod.rs:2977\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":2851}}}],"partialFingerprints":{"codehealthFindingId/v1":"527c09b4a01e55cab9b1ce74daac2767b3be7d272d93c6e3cf7263bc883d0092"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/kv_cache/hybrid_cache.rs:181-190 | mistralrs-core/src/kv_cache/hybrid_cache.rs:345-354 \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 \u0060mistralrs-core/src/kv_cache/hybrid_cache.rs:181\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":"mistralrs-core/src/kv_cache/hybrid_cache.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"c54567c334a5f059ce0574b34e826b8b930deb606811c7bd77acb37cbea3d892"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/unquantized/mod.rs:560-569 | mistralrs-quant/src/unquantized/mod.rs:589-597 \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 \u0060mistralrs-quant/src/unquantized/mod.rs:560\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":"mistralrs-quant/src/unquantized/mod.rs"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"3282f715b15ea238150449810646c985f3f7e8a626c669b5ff59267f3065c7ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/gguf/normal_config.rs:1234-1241 | mistralrs-core/src/gguf/normal_config.rs:1341-1350 \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 \u0060mistralrs-core/src/gguf/normal_config.rs:1234\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":"mistralrs-core/src/gguf/normal_config.rs"},"region":{"startLine":1234}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c224794571cf03125288fb3061b048049890239704cc6c18f441518bb72bdb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/vision_models/idefics2/mod.rs:1262-1271 | mistralrs-core/src/vision_models/idefics3/mod.rs:219-228 \u2014 \u0060mistralrs-core/src/vision_models/idefics2/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/idefics3/mod.rs\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 4 separate duplicated blocks between them, totalling at least 87 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 \u0060mistralrs-core/src/vision_models/idefics2/mod.rs:1262\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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":1262}}}],"partialFingerprints":{"codehealthFindingId/v1":"1db606d719eecf5b5ae43c97d971654dcdf88378492cfcb04ec5995d659a83ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/mod.rs:222-230 | mistralrs-core/src/vision_models/gemma3n/mod.rs:311-319 \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 \u0060mistralrs-core/src/vision_models/gemma3n/mod.rs:222\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":"mistralrs-core/src/vision_models/gemma3n/mod.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"87acd6e6b482ada03b2a72adcff65f53ae6160d0042e352c6c6a53c40ac1170e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/build_support/deepgemm_jit_bundle.rs:68-76 | mistralrs-quant/src/build_support/deepgemm_jit_bundle.rs:77-85 \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 \u0060mistralrs-quant/src/build_support/deepgemm_jit_bundle.rs:68\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":"mistralrs-quant/src/build_support/deepgemm_jit_bundle.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"16046c06071d0911262c68a95f6811dbcbe2865cb14c391310b81fb0d1aad7cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:96-104 | mistralrs-core/src/vision_models/muse_glimmer/inputs_processor.rs:182-189 \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 \u0060mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:96\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":"mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cc9639f06dbc2edb30c104b3d3693463528c06b6b9e4416069387cea24011ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:571-579 | mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:583-591 \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 \u0060mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:571\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":"mistralrs-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"a252d639ee8799bedd52f2455ee7a482c042605f5b72179359504624afff7123"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:431-439 | mistralrs-quant/src/cutile/fp8_w8a8.rs:493-500 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs\u0060 and \u0060mistralrs-quant/src/cutile/fp8_w8a8.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 212 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 \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs:431\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 \u0060cfg\u0060 to \u0060Fp8W8A16Config\u0060 in one and \u0060CutileFp8W8A8Config\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":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dbdb18d9e4dc9428eca50fd3252d6458b8db187c3c0acee910237a3e8010cb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/pipeline/cuda_graph.rs:2795-2801 | mistralrs-core/src/pipeline/cuda_graph.rs:2839-2847 \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 \u0060mistralrs-core/src/pipeline/cuda_graph.rs:2795\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":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":2795}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c5a3e3c1b149eb095ee0c1df5b51f35411ad7103a60b3693da0dd5c0c6c2774"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/gguf/llama4_bindings.rs:133-141 | mistralrs-core/src/gguf/multimodal_bindings.rs:195-202 \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 \u0060mistralrs-core/src/gguf/llama4_bindings.rs:133\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":"mistralrs-core/src/gguf/llama4_bindings.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"0abbdba31ed4c8a429e5dc22471acea61c5a9631b3c78b8819643f494199fd84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): mistralrs-core/src/models/granite.rs:658-666 | mistralrs-core/src/models/lfm2.rs:599-606 | mistralrs-core/src/models/qwen3_next.rs:548-556 | mistralrs-core/src/vision_models/qwen3_5/packed_gdn.rs:29-35 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/granite.rs\u0060 and \u0060mistralrs-core/src/models/lfm2.rs\u0060 as WHOLE FILES: this scan already matched 7 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. 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 \u0060mistralrs-core/src/models/granite.rs:658\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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"5239de3fff377a35c37c94b388c11bb8ca11ff6cf48ac3d19029ae024eae0cd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/sampler.rs:1553-1561 | mistralrs-core/src/sampler.rs:1719-1727 \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 \u0060mistralrs-core/src/sampler.rs:1553\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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"86de0e7a916fbe8020dbee171c9412eb7b059e0cc96c4ac63481b17358c5c898"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): mistralrs-quant/src/gguf/fast_mmq.rs:629-637 | mistralrs-quant/src/gguf/fast_mmq.rs:899-907 | mistralrs-quant/src/gguf/fast_mmq.rs:1368-1376 \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 \u0060mistralrs-quant/src/gguf/fast_mmq.rs:629\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, \u0060mistralrs-quant/src/gguf/fast_mmq.rs:910\u0060 calls \u0060cu_stream\u0060 and \u0060mistralrs-quant/src/gguf/fast_mmq.rs:640\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":"mistralrs-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb6091e5f5c111677943fd9cbe1d41baeab7f032efd177664bee2bad2e4a9c79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-cli/src/commands/run/interactive.rs:1343-1351 | mistralrs-cli/src/commands/run/interactive.rs:1362-1366 \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 \u0060mistralrs-cli/src/commands/run/interactive.rs:1343\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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1343}}}],"partialFingerprints":{"codehealthFindingId/v1":"be09fd9469074a655362962c8ddea21524966f95897ffeb2c1fb846edfdfd81e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/vision_models/idefics3/mod.rs:220-228 | mistralrs-core/src/vision_models/llama4/mod.rs:160-168 \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 \u0060mistralrs-core/src/vision_models/idefics3/mod.rs:220\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":"mistralrs-core/src/vision_models/idefics3/mod.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd984ddcf842221228396a5e11b04f7c8789c617eaff0332c8cb186bb9d3cec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/utils/ops.rs:858-866 | mistralrs-quant/src/utils/ops.rs:965-973 \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 \u0060mistralrs-quant/src/utils/ops.rs:858\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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"190e3d3ee38c850c4ec89f8b3c8e70143a147e6ff842db32f04277774d503f62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/pipeline/cuda_graph.rs:2915-2923 | mistralrs-core/src/pipeline/cuda_graph.rs:2933-2941 \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 \u0060mistralrs-core/src/pipeline/cuda_graph.rs:2915\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":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":2915}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3d70180380daae104d9777cd878bf5d9374718f9ae2e3d6eae895720e26cca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/mtp.rs:566-574 | mistralrs-core/src/vision_models/gemma4/mtp.rs:576-584 \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 \u0060mistralrs-core/src/vision_models/gemma4/mtp.rs:566\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":"mistralrs-core/src/vision_models/gemma4/mtp.rs"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb213150a541074054d7b64b0d9a387af22321c22a838757f5c263c0ee1db97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/utils/ops.rs:1620-1628 | mistralrs-quant/src/utils/ops.rs:1757-1765 \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 \u0060mistralrs-quant/src/utils/ops.rs:1620\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, \u0060mistralrs-quant/src/utils/ops.rs:1753\u0060 calls \u0060dtype\u0060, \u0060storage_and_layout\u0060 and \u0060mistralrs-quant/src/utils/ops.rs:1619\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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":1620}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1ef626d8694ed66b656021a4789dafe9bfa3a502514c8309db1d23739137eea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/ops.rs:4456-4464 | mistralrs-core/src/ops.rs:5415-5423 \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 \u0060mistralrs-core/src/ops.rs:4456\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":4456}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb86dbaf927fc2aba2bc16a04485444aab0077c0e3da5cdfedbc34b17ac103e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): mistralrs-paged-attn/src/metal/backend/gather_kv.rs:97-103 | mistralrs-paged-attn/src/metal/backend/gather_kv.rs:107-113 | mistralrs-paged-attn/src/metal/backend/paged_attention.rs:789-797 | mistralrs-paged-attn/src/metal/backend/paged_attention.rs:801-809 \u2014 before extracting anything, compare \u0060mistralrs-paged-attn/src/metal/backend/gather_kv.rs\u0060 and \u0060mistralrs-paged-attn/src/metal/backend/paged_attention.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 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 \u0060mistralrs-paged-attn/src/metal/backend/gather_kv.rs:97\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":"mistralrs-paged-attn/src/metal/backend/gather_kv.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62384e3c5ead306069fcfe3b09c8451994358104de414789043fdfd06964bf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/ops.rs:557-565 | mistralrs-core/src/ops.rs:719-727 \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":"mistralrs-core/src/ops.rs"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe4af817a8a5fa897bac86afb8178748b684e51769ba6429a9b7538e91d0cda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/utils/ops.rs:607-615 | mistralrs-quant/src/utils/ops.rs:761-769 \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 \u0060mistralrs-quant/src/utils/ops.rs:607\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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"86be5d55aa8345016b54a9dc656a6ccd010121f573a459b4da5cd7710d6cf572"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): mistralrs-core/src/models/granite.rs:2221-2229 | mistralrs-core/src/models/lfm2.rs:1211-1219 | mistralrs-core/src/models/lfm3.rs:1211-1219 | mistralrs-core/src/models/qwen3_next.rs:1012-1020 | mistralrs-core/src/vision_models/qwen3_5/packed_gdn.rs:95-103 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/granite.rs\u0060 and \u0060mistralrs-core/src/models/lfm2.rs\u0060 as WHOLE FILES: this scan already matched 7 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. 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 \u0060mistralrs-core/src/models/granite.rs:2221\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, \u0060mistralrs-core/src/models/granite.rs:2218\u0060 calls \u0060dims3\u0060, \u0060packed_mamba_query_ranges\u0060 and \u0060mistralrs-core/src/models/lfm3.rs:1209\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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":2221}}}],"partialFingerprints":{"codehealthFindingId/v1":"bffaf27522906f6afeb79498be64b7d702fe0247ac7fcce51d3244edf3331011"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): mistralrs-quant/src/cutile/nvfp4_matmul.rs:647-655 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:692-699 | mistralrs-quant/src/embedding/packing.rs:35-43 | mistralrs-quant/src/nvfp4/portable.rs:310-318 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/nvfp4_matmul.rs\u0060 and \u0060mistralrs-quant/src/nvfp4/portable.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 64 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 \u0060mistralrs-quant/src/cutile/nvfp4_matmul.rs:647\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":"mistralrs-quant/src/cutile/nvfp4_matmul.rs"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"b144b7f38c8b1a37a2f6d0acf8b36aeabcd642507837ab16dce6a747dd9078a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/ops.rs:907-915 | mistralrs-core/src/ops.rs:992-1000 \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 \u0060mistralrs-core/src/ops.rs:907\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c912ffa76d2f0c2bf68f968fea71dd50aeedb6e88d8a5ab65de148cfe52f17c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): mistralrs-quant/src/utils/ops.rs:156-163 | mistralrs-quant/src/utils/ops.rs:756-763 | mistralrs-quant/src/utils/ops.rs:857-865 | mistralrs-quant/src/utils/ops.rs:964-972 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf49203e3c2bb5241e7041d71bc6b7044006b900a109302a86d370a6343eb0ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:3269-3277 | mistralrs-core/src/cuda/gdn.rs:3473-3481 \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 \u0060mistralrs-core/src/cuda/gdn.rs:3269\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":3269}}}],"partialFingerprints":{"codehealthFindingId/v1":"38620877d80ebcb23a78e63ce7f410f20c74f8a991f56213c463d046150a9d7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/vision_models/phi4/audio_embedding.rs:66-74 | mistralrs-core/src/vision_models/phi4/audio_embedding.rs:81-89 \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 \u0060mistralrs-core/src/vision_models/phi4/audio_embedding.rs:66\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":"mistralrs-core/src/vision_models/phi4/audio_embedding.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec19b72980647affc5524759300af2b373d06290282f1e2f0a9d64f7c282ac4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/kv_cache/hybrid_cache.rs:260-268 | mistralrs-core/src/kv_cache/hybrid_cache.rs:409-416 \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 \u0060mistralrs-core/src/kv_cache/hybrid_cache.rs:260\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":"mistralrs-core/src/kv_cache/hybrid_cache.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"00253319ffc7ae5beee5e1184b7fe47e8766c168a5beceb29b12cabbed42c522"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 12): mistralrs-quant/src/metal_kernels/mod.rs:285-293 | mistralrs-quant/src/metal_kernels/mod.rs:324-332 | mistralrs-quant/src/metal_kernels/mod.rs:363-371 | mistralrs-quant/src/metal_kernels/mod.rs:402-410 | mistralrs-quant/src/metal_kernels/mod.rs:441-449 | mistralrs-quant/src/metal_kernels/mod.rs:694-702 | mistralrs-quant/src/metal_kernels/mod.rs:741-749 | mistralrs-quant/src/metal_kernels/mod.rs:788-796 | mistralrs-quant/src/metal_kernels/mod.rs:2026-2034 | mistralrs-quant/src/metal_kernels/mod.rs:4897-4905 | mistralrs-quant/src/metal_kernels/mod.rs:4968-4976 | mistralrs-quant/src/metal_kernels/mod.rs:5010-5018 \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 \u0060mistralrs-quant/src/metal_kernels/mod.rs:285\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, \u0060mistralrs-quant/src/metal_kernels/mod.rs:4906\u0060 calls \u0060load_pipeline\u0060 and \u0060mistralrs-quant/src/metal_kernels/mod.rs:295\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"72933e7ce1eb06f382fd5096c219ff9a400b8a3c3833c3e44c4995d7bf5be195"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/scalar_fp8/ops.rs:134-142 | mistralrs-quant/src/scalar_fp8/ops.rs:293-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":"mistralrs-quant/src/scalar_fp8/ops.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea162996b7254d89c19289698e70d199be6856de6b9456497df588147afd343"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): mistralrs-quant/src/hqq/hqq_op.rs:184-192 | mistralrs-quant/src/hqq/hqq_op.rs:297-305 | mistralrs-quant/src/hqq/hqq_op.rs:414-422 | mistralrs-quant/src/hqq/hqq_op.rs:533-541 \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 \u0060mistralrs-quant/src/hqq/hqq_op.rs:184\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":"mistralrs-quant/src/hqq/hqq_op.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f24aa5973b7b52cb9ac1c94146aeed4b89df1b96190ef2c144ce69be4096248"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/ops.rs:4429-4435 | mistralrs-core/src/ops.rs:5378-5386 \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 \u0060mistralrs-core/src/ops.rs:4429\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, \u0060mistralrs-core/src/ops.rs:5377\u0060 calls \u0060device\u0060, \u0060same_device\u0060 and \u0060mistralrs-core/src/ops.rs:4428\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":4429}}}],"partialFingerprints":{"codehealthFindingId/v1":"7079bbf14414a4dfdcebccbb7e87dda0f62fbbdea174ca0b609bdaab8cb6472c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/utils/ops.rs:112-118 | mistralrs-quant/src/utils/ops.rs:453-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 \u0060mistralrs-quant/src/utils/ops.rs:112\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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"e89d6336f332b4f6bb89e4d4619bfbf4015f98b9e29e46f87a6b98dcd9bdb055"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-core/src/cuda/gdn.rs:965-972 | mistralrs-core/src/cuda/gdn.rs:1089-1096 | mistralrs-core/src/cuda/gdn.rs:1193-1200 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060mistralrs-core/src/cuda/gdn.rs:963\u0060 calls \u0060and_then\u0060, \u0060checked_mul\u0060 and \u0060mistralrs-core/src/cuda/gdn.rs:1087\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"48f97d81bc06c9e0c920b0459ce0321f8d1e2e4b46dfe00ca44169ec3fddac5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/utils/ops.rs:2244-2251 | mistralrs-quant/src/utils/ops.rs:2468-2475 \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 \u0060mistralrs-quant/src/utils/ops.rs:2244\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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":2244}}}],"partialFingerprints":{"codehealthFindingId/v1":"335491bc33a62d3b1ba3fff77f73d88ea42da0719c8b7eb9018b0d8ee016f51e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/uqff/mod.rs:262-269 | mistralrs-quant/src/uqff/mod.rs:293-298 \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 \u0060mistralrs-quant/src/uqff/mod.rs:262\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":"mistralrs-quant/src/uqff/mod.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"0704bb9c0499dd8fe0a8e8a5e17d0896831d457de1fc33a1d687bf5cf67a9ce2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:5031-5038 | mistralrs-core/src/cuda/gdn.rs:5280-5287 \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 after the matched lines, \u0060mistralrs-core/src/cuda/gdn.rs:5289\u0060 calls \u0060is_contiguous\u0060 and \u0060mistralrs-core/src/cuda/gdn.rs:5040\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":5031}}}],"partialFingerprints":{"codehealthFindingId/v1":"c324dec07f549bde61b58aed0ff1502d4354a14c780a21ec82ef38d2e5a890b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-core/src/pipeline/cuda_graph.rs:3610-3617 | mistralrs-core/src/pipeline/cuda_graph.rs:3655-3662 | mistralrs-core/src/pipeline/cuda_graph.rs:3700-3707 \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 \u0060mistralrs-core/src/pipeline/cuda_graph.rs:3610\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":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":3610}}}],"partialFingerprints":{"codehealthFindingId/v1":"026ae50620ad0b21cac445e439559e10197bb34fa9a7ae5b4dd75d4461ca80e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): mistralrs-core/src/ops.rs:2186-2192 | mistralrs-core/src/ops.rs:2194-2200 | mistralrs-core/src/ops.rs:3926-3933 | mistralrs-core/src/ops.rs:4053-4060 \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 \u0060mistralrs-core/src/ops.rs:2186\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":2186}}}],"partialFingerprints":{"codehealthFindingId/v1":"365fcfdb35e0b9fb8cf79d3a511d49caf26a29f8cda6c5a6bb44adb8c45cf676"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-core/src/ops.rs:90-97 | mistralrs-core/src/ops.rs:595-602 | mistralrs-core/src/ops.rs:757-764 \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 \u0060mistralrs-core/src/ops.rs:90\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, \u0060mistralrs-core/src/ops.rs:98\u0060 calls \u0060BF16\u0060, \u0060device_ptr\u0060, \u0060F16\u0060 and \u0060mistralrs-core/src/ops.rs:603\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e7cf51f78f8c773f6749a8eeeef7f2a9f3fd5c8b97b67512a3ddd363afc8c4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): mistralrs-core/src/ops.rs:1130-1136 | mistralrs-core/src/ops.rs:2189-2195 | mistralrs-core/src/ops.rs:2197-2203 | mistralrs-core/src/ops.rs:3938-3945 | mistralrs-core/src/ops.rs:4065-4072 \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 \u0060mistralrs-core/src/ops.rs:1130\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, \u0060mistralrs-core/src/ops.rs:2187\u0060 calls \u0060F32\u0060 and \u0060mistralrs-core/src/ops.rs:1129\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"18cb4dc2d842ec5fd37733aaef1cd8040ea1e9f52a65da5abb0d1e9effaebfb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/tools/parsers/atem.rs:293-300 | mistralrs-core/src/tools/parsers/atem.rs:343-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060mistralrs-core/src/tools/parsers/atem.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/tools/parsers/atem.rs"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ba23338712e8bd76a066561daa896a7422a30f9f22b3226235126b17184335e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/ops.rs:5632-5639 | mistralrs-core/src/ops.rs:6067-6074 \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 \u0060mistralrs-core/src/ops.rs:5632\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":5632}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a9d488e66f324ab75448eb45b9fc1d89df480db568707c9f426088cc612984"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/pipeline/cuda_graph.rs:1258-1265 | mistralrs-core/src/pipeline/cuda_graph.rs:1269-1276 \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 \u0060mistralrs-core/src/pipeline/cuda_graph.rs:1258\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":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":1258}}}],"partialFingerprints":{"codehealthFindingId/v1":"fabaa44c8f69bd41d6b1311e587b226459389ffe13175e2446de6a3d6e8dc4bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmvq.rs:863-870 | mistralrs-quant/src/gguf/fast_mmvq.rs:1095-1102 \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 \u0060mistralrs-quant/src/gguf/fast_mmvq.rs:863\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":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b904dacfe3d286942fd810886ae2fad549420e1c2dd905494484abe53c41ac8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/mla.rs:63-68 | mistralrs-quant/src/gguf/fast_mmq.rs:1329-1336 \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 \u0060mistralrs-paged-attn/src/cuda/backend/mla.rs:63\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":"mistralrs-paged-attn/src/cuda/backend/mla.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"97fa69afb724f77d8439cd4ce97aa497c87a5876d088b31544c1560488a9b608"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:309-316 | mistralrs-core/src/vision_models/llama4/inputs_processor.rs:341-348 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/llama4/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 152 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 \u0060mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:309\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":"mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"53b84747198011fdf0f5adfcada64894ac08b4b816d15df66099bcda85c2d1cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/ops.rs:1048-1055 | mistralrs-core/src/ops.rs:1290-1297 \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":"mistralrs-core/src/ops.rs"},"region":{"startLine":1048}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5818895a08abbd9e67456bc145ed91482525128fe1189e7a0dee33789bf6d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/ops.rs:3871-3878 | mistralrs-core/src/ops.rs:3998-4005 \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":"mistralrs-core/src/ops.rs"},"region":{"startLine":3871}}}],"partialFingerprints":{"codehealthFindingId/v1":"68fa898d39b3698788b3367c523f20581a28776873234b8a159343de7c1ee8ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:805-812 | mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:208-215 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:164-171 | mistralrs-core/src/vision_models/phi4/inputs_processor.rs:245-252 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/gemma4/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 4 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 \u0060mistralrs-core/src/vision_models/gemma4/inputs_processor.rs: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":"mistralrs-core/src/vision_models/gemma4/inputs_processor.rs"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8bfbf2d347539e86b301f3b8d59e1cd6ffa03047e611e75ac3906f13e2983e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-quant/src/blockwise_fp8/deepgemm.rs:443-450 | mistralrs-quant/src/blockwise_fp8/ops.rs:1777-1784 | mistralrs-quant/src/cutile/fp8_w8a16.rs:418-423 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/blockwise_fp8/deepgemm.rs\u0060 and \u0060mistralrs-quant/src/blockwise_fp8/ops.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 65 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 \u0060mistralrs-quant/src/blockwise_fp8/deepgemm.rs:443\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":"mistralrs-quant/src/blockwise_fp8/deepgemm.rs"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"6648d485ad6adc89b870d43ccbc4989a975648775c4c5b14dbeee4dfcac0c47c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:793-798 | mistralrs-quant/src/blockwise_fp8/ops.rs:1610-1617 \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 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:793\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a1f2c570e82e117e33634bbeea226c324d2de8e7d81ab9cbd4e5f4f9df7e3ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:780-787 | mistralrs-quant/src/blockwise_fp8/ops.rs:895-902 \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 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:780\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"f290b48decdad45cf2a800cd8a894660273c363358ea27df79385439fff5f47d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:6073-6080 | mistralrs-core/src/cuda/gdn.rs:6098-6105 \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 \u0060mistralrs-core/src/cuda/gdn.rs:6073\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":6073}}}],"partialFingerprints":{"codehealthFindingId/v1":"67bf1c0a984388719ef8883907e39495548454af792e776d81a64c314d9f57b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): mistralrs-core/src/models/granite.rs:1835-1842 | mistralrs-core/src/vision_models/qwen3_5/mod.rs:334-341 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:317-324 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:869-876 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:315-322 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs\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 24 separate duplicated blocks between them, totalling at least 425 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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":1835}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e903a6f2ae4cbf76bef5dc19f9ff9be423703f3e2f4323894f919cda2dc76a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): mistralrs-paged-attn/src/metal/backend/gather_kv.rs:94-100 | mistralrs-paged-attn/src/metal/backend/gather_kv.rs:104-110 | mistralrs-paged-attn/src/metal/backend/gather_kv.rs:114-120 | mistralrs-paged-attn/src/metal/backend/paged_attention.rs:792-799 | mistralrs-paged-attn/src/metal/backend/paged_attention.rs:804-811 \u2014 before extracting anything, compare \u0060mistralrs-paged-attn/src/metal/backend/gather_kv.rs\u0060 and \u0060mistralrs-paged-attn/src/metal/backend/paged_attention.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 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 \u0060mistralrs-paged-attn/src/metal/backend/gather_kv.rs:94\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":"mistralrs-paged-attn/src/metal/backend/gather_kv.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf8768f9618add5a552029d848e53665027a632df768ed9fd318b0921fff6e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): mistralrs-core/src/ops.rs:88-95 | mistralrs-core/src/ops.rs:437-444 | mistralrs-core/src/ops.rs:593-600 | mistralrs-core/src/ops.rs:755-762 | mistralrs-core/src/ops.rs:4652-4659 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060mistralrs-core/src/ops.rs:98\u0060 calls \u0060BF16\u0060, \u0060device_ptr\u0060, \u0060F16\u0060 and \u0060mistralrs-core/src/ops.rs:603\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b034b09f33ef73be4f9aa9be903ceca859c217c785ab4c92423c45fa0d7ff86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/vision_models/idefics2/mod.rs:1319-1326 | mistralrs-core/src/vision_models/idefics3/mod.rs:266-273 \u2014 \u0060mistralrs-core/src/vision_models/idefics2/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/idefics3/mod.rs\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 4 separate duplicated blocks between them, totalling at least 87 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 \u0060mistralrs-core/src/vision_models/idefics2/mod.rs:1319\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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":1319}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd81d7f037d4aa4e5cdc4aee3a9c08c834d37a37ff82b8d3b83e07984072f309"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/lfm3.rs:32-38 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5422-5428 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/loaders/lfm3.rs\u0060 and \u0060mistralrs-core/src/pipeline/loaders/normal_loaders.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 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":"mistralrs-core/src/pipeline/loaders/lfm3.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"533f51740a38822938403280634f29ac4715a396ce3f71a72e5931ea896e7237"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:156-162 | mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:592-598 \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 after the matched lines, \u0060mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:163\u0060 calls \u0060stride\u0060 and \u0060mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:600\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":"mistralrs-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f802344123a2e305661202b37e545cc963dcd9ca68108fdfe52c3df0cc7d72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): mistralrs-core/src/ops.rs:1604-1610 | mistralrs-core/src/ops.rs:1846-1852 | mistralrs-core/src/ops.rs:4481-4487 | mistralrs-core/src/ops.rs:4645-4651 | mistralrs-core/src/ops.rs:5441-5447 \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 \u0060mistralrs-core/src/ops.rs:1604\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":1604}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4607539e9f84ea06758b0ed452f6ad504543155797a69365368ea9ae1ed0a06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): mistralrs-quant/src/bitsandbytes/op.rs:421-427 | mistralrs-quant/src/hqq/hqq_op.rs:73-79 | mistralrs-quant/src/hqq/hqq_op.rs:184-190 | mistralrs-quant/src/hqq/hqq_op.rs:297-303 | mistralrs-quant/src/hqq/hqq_op.rs:414-420 | mistralrs-quant/src/hqq/hqq_op.rs:533-539 \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 \u0060mistralrs-quant/src/bitsandbytes/op.rs:421\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":"mistralrs-quant/src/bitsandbytes/op.rs"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa56483a32996e61d8cd1b08ccc5f2522aef1cb4b23ce2976f4b9ea9888838f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/vision_models/phi3/mod.rs:1372-1378 | mistralrs-core/src/vision_models/phi4/mod.rs:634-640 \u2014 \u0060mistralrs-core/src/vision_models/phi3/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi4/mod.rs\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 48 separate duplicated blocks between them, totalling at least 586 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":"mistralrs-core/src/vision_models/phi3/mod.rs"},"region":{"startLine":1372}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a0e7cfc6d42fceaf460d77e20e46ba7eaf7c85c1a8ed99eb2e9e101f77fb8d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/gguf/weight_source.rs:1027-1033 | mistralrs-quant/src/gguf/weight_source.rs:1051-1057 \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 \u0060mistralrs-quant/src/gguf/weight_source.rs:1027\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":"mistralrs-quant/src/gguf/weight_source.rs"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a9aee4a0123800a1b49470de5d0e405a91389d7a25b3c4d8f7946b2ad7efca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:223-229 | mistralrs-core/src/vision_models/llama4/inputs_processor.rs:227-233 | mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:182-188 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:138-144 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/llama4/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 152 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 \u0060mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:223\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":"mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c2cb5c686860d75f918ce985c69598e2a68d4e542a282cc0641e358ade72df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmvq.rs:888-898 | mistralrs-quant/src/gguf/fast_mmvq.rs:1131-1141 \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":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"6129d0b2007b9723763cf9089deb98bbf7acb71fe2a4cc8ef7ad2cfb1d36383c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:78-84 | mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:246-252 | mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:250-256 \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 \u0060mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:78\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":"mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"95894b9bfe8668ace18141b78b15cdcd4c9e0ffb2853557a2d2c6b4ea9291106"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): mistralrs-core/src/ops.rs:464-477 | mistralrs-core/src/ops.rs:481-492 \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 \u0060mistralrs-core/src/ops.rs:481\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a21b286095f7a8a4b530c91a7b89af5493c0c69dc897b4e990023f59759be7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/ops.rs:1148-1154 | mistralrs-core/src/ops.rs:1368-1374 \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 \u0060mistralrs-core/src/ops.rs:1148\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, \u0060mistralrs-core/src/ops.rs:1157\u0060 calls \u0060narrow\u0060 and \u0060mistralrs-core/src/ops.rs:1378\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d23e39d9fe0e39182b8f32c899f8ccb362f884a481c7f8d7ca1b5a5b68157a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20137 lines \u00D7 11): mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:146-152 | mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:364-370 | mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:375-377 | mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:382-384 | mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:389-391 | mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:632-638 | mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:644-646 | mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:651-653 | mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:657-659 | mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:198-200 | mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:204-206 \u2014 before extracting anything, compare \u0060mistralrs-paged-attn/src/cuda/backend/flashinfer.rs\u0060 and \u0060mistralrs-paged-attn/src/cuda/backend/gather_kv.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 39 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 \u0060mistralrs-paged-attn/src/cuda/backend/flashinfer.rs: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:379\u0060 calls \u0060slice_ptr\u0060, \u0060start_offset\u0060 and \u0060mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:372\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":"mistralrs-paged-attn/src/cuda/backend/flashinfer.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"27ce83fca6da265ecb736a441fe04a9556be39437fe738ce2a9fa9c30c16354f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/attention/backends/cpu/mod.rs:118-124 | mistralrs-core/src/attention/backends/cpu/mod.rs:126-132 \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 \u0060mistralrs-core/src/attention/backends/cpu/mod.rs:118\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":"mistralrs-core/src/attention/backends/cpu/mod.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52a02fc0558deed372adde7fc1b1ac1acb6a8e0b25198b6e5ad9886dc2b3297"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): mistralrs-quant/src/afq/ops.rs:146-152 | mistralrs-quant/src/afq/ops.rs:256-262 | mistralrs-quant/src/afq/ops.rs:390-396 | mistralrs-quant/src/afq/ops.rs:821-827 | mistralrs-quant/src/afq/ops.rs:829-835 \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 \u0060mistralrs-quant/src/afq/ops.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"9475c5de0e4288bc479da094a877d0cb4c550b312ba89f9f18d1861f64414449"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/vision_models/grid_processor.rs:532-538 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:315-321 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 1008 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 \u0060mistralrs-core/src/vision_models/grid_processor.rs:532\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4225df4d3998ff2497936769fb32d770e13eb9ac7a3fe941b3bc8e10fd0d264"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/mod.rs:170-176 | mistralrs-core/src/pipeline/loaders/mod.rs:180-186 \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 \u0060mistralrs-core/src/pipeline/loaders/mod.rs:170\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":"mistralrs-core/src/pipeline/loaders/mod.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b78179a61c4fb7a1e798f9910973bef522fcd223b0f97709f53f1dc79062f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/metal_kernels/mod.rs:946-951 | mistralrs-quant/src/metal_kernels/mod.rs:3735-3741 \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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b7ace02a7e279a93f9d681b5a03424fa9ea0198b45b5d6236125e52eb62eac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:383-389 | mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:364-370 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/idefics3/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 120 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":"mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"c918127750f73047d227b83315d50c6ffe729c3fe83363e67168fa97c935a071"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:156-162 | mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:190-196 \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 \u0060mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:156\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":"mistralrs-paged-attn/src/cuda/backend/gather_kv.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"9abbc0ebd33d847cadd6461c03557401b7533c30513db7892bcf3fdb687e9263"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/metal/gdn.rs:832-838 | mistralrs-core/src/metal/gdn.rs:872-878 \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 \u0060mistralrs-core/src/metal/gdn.rs:832\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, \u0060mistralrs-core/src/metal/gdn.rs:842\u0060 calls \u0060set_input_buffer\u0060, \u0060Some\u0060 and \u0060mistralrs-core/src/metal/gdn.rs:882\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":"mistralrs-core/src/metal/gdn.rs"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"8990e552a6612e1be66dad4267ef86e03bd63d8f7f877134bc3c40e90c9740f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/lora/dynamic/cuda.rs:253-258 | mistralrs-quant/src/lora/dynamic/expert_cuda.rs:822-827 \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":"mistralrs-quant/src/lora/dynamic/cuda.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"5942ab4513fbf71a33481f67d88b1d8d3d0487c00b5a056587e98b4cfef264ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:5968-5972 | mistralrs-core/src/cuda/gdn.rs:5976-5981 \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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":5968}}}],"partialFingerprints":{"codehealthFindingId/v1":"0258be99b894e8c3421edd196cc559b0271029bd3e7849eab544b8343e69feac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/tools/parsers/deepseek.rs:58-63 | mistralrs-core/src/tools/parsers/harmony.rs:14-19 \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 \u0060mistralrs-core/src/tools/parsers/deepseek.rs:58\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":"mistralrs-core/src/tools/parsers/deepseek.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf8eabf2f37ffea76fdfb55dbde3823f47ea0746947f670987e9468e4bc3c2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/ops.rs:2055-2060 | mistralrs-core/src/ops.rs:2204-2209 \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 \u0060mistralrs-core/src/ops.rs:2055\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":2055}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2651996392f5669f215afb5ec888bcedc03b3912ee6e835fdfd53b77f384cf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:450-455 | mistralrs-quant/src/moe/grouped_fp8.rs:169-174 \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 \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs:450\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":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad324ca093be0eee008e136b4c70e5b2d1e5e18c2a603b3fcd86814bec341bed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-cli/src/ui/handlers/api.rs:206-211 | mistralrs-cli/src/ui/handlers/api.rs:258-263 | mistralrs-cli/src/ui/handlers/api.rs:310-315 \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 \u0060mistralrs-cli/src/ui/handlers/api.rs:206\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":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"b37fd1f72f36cb940f853ba98f1855b855fa43eb53a94980af87ab8dc2a9b25d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/vision_models/grid_processor.rs:578-583 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:364-369 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/grid_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\u0060 as WHOLE FILES: this scan already matched 51 separate duplicated blocks between them, totalling at least 1008 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"bae7dfda2ed36b00579102e59ef25980f6e59d0213cbbad9669e7133e7d2d0c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 9): mistralrs-core/src/metal/gdn.rs:195-200 | mistralrs-core/src/metal/gdn.rs:310-315 | mistralrs-core/src/metal/gdn.rs:404-408 | mistralrs-core/src/metal/gdn.rs:556-560 | mistralrs-core/src/metal/gdn.rs:610-614 | mistralrs-core/src/metal/gdn.rs:673-677 | mistralrs-core/src/metal/gdn.rs:786-791 | mistralrs-core/src/metal/gdn.rs:972-977 | mistralrs-core/src/metal/ssm.rs:173-177 \u2014 before extracting anything, compare \u0060mistralrs-core/src/metal/gdn.rs\u0060 and \u0060mistralrs-core/src/metal/ssm.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 68 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, \u0060mistralrs-core/src/metal/gdn.rs:192\u0060 calls \u0060metal_buffer_and_offset\u0060 and \u0060mistralrs-core/src/metal/gdn.rs:607\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":"mistralrs-core/src/metal/gdn.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"24e21f9964e7d79dbf310f4d08a7dfb7e650cdb3ad2ca09368c738beb83318fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): mistralrs-core/src/ops.rs:1188-1193 | mistralrs-core/src/ops.rs:1406-1411 | mistralrs-core/src/ops.rs:1425-1429 | mistralrs-core/src/ops.rs:2602-2606 | mistralrs-core/src/ops.rs:2990-2994 \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. 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":"mistralrs-core/src/ops.rs"},"region":{"startLine":1188}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c44ee75c7c9cf64429f6290f8b183d20dbfaebc1642cd2af206844a13a3d386"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/tools/parsers/gemma4.rs:219-224 | mistralrs-core/src/tools/parsers/gemma4.rs:263-268 \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 \u0060mistralrs-core/src/tools/parsers/gemma4.rs:219\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":"mistralrs-core/src/tools/parsers/gemma4.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a70b6b7319462b1a08f1a2c13e66802d582c7661a7fc81e94fb5184c221dbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): mistralrs-quant/src/cutile/fused_moe.rs:481-486 | mistralrs-quant/src/moe/cuda.rs:236-240 | mistralrs-quant/src/moe/cuda.rs:272-276 | mistralrs-quant/src/moe/cuda.rs:312-316 \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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef0b3752e176b13dcde302120e448bc6f2828aa3b35addad980bc4027f15c90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-quant/src/cutile/hyper_connection.rs:324-329 | mistralrs-quant/src/cutile/mxfp8_gemm.rs:397-402 | mistralrs-quant/src/cutile/mxfp8_gemm.rs:462-467 \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 \u0060mistralrs-quant/src/cutile/hyper_connection.rs:324\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, \u0060mistralrs-quant/src/cutile/mxfp8_gemm.rs:460\u0060 calls \u0060stream\u0060 and \u0060mistralrs-quant/src/cutile/mxfp8_gemm.rs:395\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":"mistralrs-quant/src/cutile/hyper_connection.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"fceddba6254e50ccbcecf90ecd455c4bdbe27a24d705ef1a871901af17481099"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-core/src/tools/parsers/atem.rs:377-382 | mistralrs-core/src/tools/parsers/deepseek.rs:57-62 | mistralrs-core/src/tools/parsers/harmony.rs:13-18 \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 \u0060mistralrs-core/src/tools/parsers/atem.rs:377\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":"mistralrs-core/src/tools/parsers/atem.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"3322c3d45d1de762b349e3d978ae365431b79c4fc252881a20f97f2f5c4032cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:1742-1747 | mistralrs-core/src/cuda/gdn.rs:3626-3630 \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 \u0060mistralrs-core/src/cuda/gdn.rs:1742\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, \u0060mistralrs-core/src/cuda/gdn.rs:1741\u0060 calls \u0060start_offset\u0060 and \u0060mistralrs-core/src/cuda/gdn.rs:3625\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":1742}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe1c206f8952ee4144c97a8acf24f43987bbc921bf00307ef3af7698bc6de34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): mistralrs-cli/src/ui/handlers/api.rs:211-216 | mistralrs-cli/src/ui/handlers/api.rs:263-268 | mistralrs-cli/src/ui/handlers/api.rs:315-320 | mistralrs-cli/src/ui/handlers/api.rs:371-376 \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 \u0060mistralrs-cli/src/ui/handlers/api.rs:211\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":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c6c8056fd715a2baaaf1b51c907f6a53352bb49c4b542e452cba345a7b783ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:207-212 | mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:247-252 \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":"mistralrs-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8077623df9482bc1f6d1c213aec0216f6e46b02c560c1561b317a0faeb3ceb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:1260-1265 | mistralrs-quant/src/cublaslt/api.rs:85-90 \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 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:1260\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ae377d45a6b5039a1472f843f6bd1edd3d169394a5d519d971cedc5ceff1fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/ops.rs:891-896 | mistralrs-core/src/ops.rs:975-980 \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":"mistralrs-core/src/ops.rs"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1ebd076544479f54bdd440f71576d50ffb958ea3fe6cbc260d8874b8561b843"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/engine/agentic_loop.rs:536-541 | mistralrs-core/src/engine/agentic_loop.rs:557-562 \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 \u0060mistralrs-core/src/engine/agentic_loop.rs:536\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":"mistralrs-core/src/engine/agentic_loop.rs"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"043c49e0c64cc345e4e1904370aec4e41f5e3988f58c8102c1582799df4c929c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): mistralrs-core/src/ops.rs:1177-1182 | mistralrs-core/src/ops.rs:1197-1202 | mistralrs-core/src/ops.rs:1207-1212 | mistralrs-core/src/ops.rs:1217-1221 | mistralrs-core/src/ops.rs:1395-1400 | mistralrs-core/src/ops.rs:1415-1419 \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 \u0060mistralrs-core/src/ops.rs:1177\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, \u0060mistralrs-core/src/ops.rs:1221\u0060 calls \u0060device_ptr\u0060, \u0060add\u0060, \u0060start_offset\u0060 and \u0060mistralrs-core/src/ops.rs:1182\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"24aa856db937c39026907821b65a5d84860f2069f9cf9028b53a6f70ea2fff86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): mistralrs-quant/src/blockwise_fp8/mod.rs:577-582 | mistralrs-quant/src/blockwise_fp8/mod.rs:623-628 | mistralrs-quant/src/blockwise_fp8/mod.rs:915-920 | mistralrs-quant/src/lib.rs:1752-1757 \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 \u0060mistralrs-quant/src/blockwise_fp8/mod.rs:577\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":"mistralrs-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"05448c2ed11f4c1a04582a0409d6d284d8c24ce562ce51cbe46c1352d4486385"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-quant/src/gptq/gptq_cuda.rs:106-110 | mistralrs-quant/src/gptq/gptq_cuda.rs:129-134 | mistralrs-quant/src/gptq/gptq_cuda.rs:151-156 \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. 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":"mistralrs-quant/src/gptq/gptq_cuda.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"11cb2099da30041ce0799f42df9424b9372df968bb36493d6be200ce218e6034"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): mistralrs-core/src/ops.rs:1182-1187 | mistralrs-core/src/ops.rs:1202-1207 | mistralrs-core/src/ops.rs:1212-1217 | mistralrs-core/src/ops.rs:1400-1405 | mistralrs-core/src/ops.rs:1420-1424 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/ops.rs"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"487fe5bd97044f22f0153e42c518dc32223e115b10a39f4a27d5d7f431d90eb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:2257-2261 | mistralrs-core/src/cuda/gdn.rs:2265-2270 \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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":2257}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f62e0d9b9907891ce095f61c69b011c940f6145737dce2fda86941b9ccd6d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): mistralrs-core/src/vision_models/idefics2/mod.rs:513-518 | mistralrs-core/src/vision_models/idefics2/mod.rs:868-873 | mistralrs-core/src/vision_models/idefics3/vision.rs:309-314 | mistralrs-core/src/vision_models/lfm2_vl/vision.rs:242-246 | mistralrs-core/src/vision_models/siglip.rs:320-325 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/idefics2/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/idefics3/vision.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 221 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 \u0060mistralrs-core/src/vision_models/idefics2/mod.rs:513\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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"35deb18c130c52b21c33bd36c58de8c3fdd8bba904d6ed38f65d86e7acc82ef3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-quant/src/gptq/gptq_cuda.rs:117-122 | mistralrs-quant/src/gptq/gptq_cuda.rs:130-134 | mistralrs-quant/src/gptq/gptq_cuda.rs:152-156 \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 \u0060mistralrs-quant/src/gptq/gptq_cuda.rs: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":"mistralrs-quant/src/gptq/gptq_cuda.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"e96673e565c57a589fa18108f21c9d0f2de512835e6057ad586a8100e46236db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmvq.rs:431-436 | mistralrs-quant/src/gguf/fast_mmvq.rs:1130-1135 \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 after the matched lines, \u0060mistralrs-quant/src/gguf/fast_mmvq.rs:1137\u0060 calls \u0060cuda_stream\u0060 and \u0060mistralrs-quant/src/gguf/fast_mmvq.rs:438\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":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d5692557e34ec739e0628c979a6cec03789b1425a6596d31073b27ae9812fd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:2009-2013 | mistralrs-core/src/cuda/moe.rs:79-84 \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 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, \u0060mistralrs-core/src/cuda/moe.rs:77\u0060 calls \u0060Some\u0060 and \u0060mistralrs-core/src/cuda/gdn.rs:2006\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":2009}}}],"partialFingerprints":{"codehealthFindingId/v1":"3951bab6ac14be302521afa49ee057cf8831643216fe4dc18989aaade6b9699d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/ops.rs:415-420 | mistralrs-core/src/ops.rs:422-427 \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":"mistralrs-core/src/ops.rs"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"a24a84a711af1eeb4b85dae5bb77b3b92ab1d5e22612e610461de0c285d61879"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:1079-1084 | mistralrs-quant/src/blockwise_fp8/ops.rs:1259-1264 \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 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs:1079\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52f4f0c18be3c433049e61535466de8c3850c1ce3104e72c0f01842e51de37d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): mistralrs-quant/src/utils/ops.rs:160-165 | mistralrs-quant/src/utils/ops.rs:606-611 | mistralrs-quant/src/utils/ops.rs:760-765 | mistralrs-quant/src/utils/ops.rs:1523-1528 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f8b4b39a302da11b0562d20ff288fa65e7b0ee9e328ec98866f9640b275dff5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:684-689 | mistralrs-quant/src/cutile/fp8_w8a8.rs:778-783 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fp8_w8a16.rs\u0060 and \u0060mistralrs-quant/src/cutile/fp8_w8a8.rs\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 212 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":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"52ad66eedc888b2792098a36fdc28d11f46f4215c95e40b3f3c9472842d9ea3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:730-734 | mistralrs-quant/src/mxfp4/ops.rs:165-169 \u2014 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs\u0060 and \u0060mistralrs-quant/src/mxfp4/ops.rs\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 59 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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccb9cebfb78eb396d0bf0e34619cf3e0b4b78b48322961e001b8a7f0a0e53938"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmvq.rs:854-858 | mistralrs-quant/src/gguf/fast_mmvq.rs:1084-1088 \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":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e3a0faf9e92518a902cfe45bfd3d5522b9dc4f7c1a840044441dd0a1cdf938"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-flash-attn/src/flash.rs:490-494 | mistralrs-flash-attn/src/flash.rs:500-504 \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 \u0060mistralrs-flash-attn/src/flash.rs:490\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":"mistralrs-flash-attn/src/flash.rs"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a8a79a6403cf023cece0f5749dd962aad0e1e42775ce1184d5703d7ca657e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:3628-3632 | mistralrs-core/src/cuda/gdn.rs:3633-3637 \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, \u0060mistralrs-core/src/cuda/gdn.rs:3626\u0060 calls \u0060stride\u0060 and \u0060mistralrs-core/src/cuda/gdn.rs:3631\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":3628}}}],"partialFingerprints":{"codehealthFindingId/v1":"a229649a130ed8b1864f5b9aac3030c6340addac668b7322161a3e608a2507f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:225-229 | mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:234-238 | mistralrs-quant/src/gptq/marlin_backend.rs:66-70 | mistralrs-quant/src/gptq/marlin_backend.rs:258-262 \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":"mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d3704263808bdeaed5eb71836186c7cc56a31d0314b9e0c9dbe220195b1f81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:957-961 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:1155-1159 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fused_moe.rs\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe_fp8.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 298 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 \u0060mistralrs-quant/src/cutile/fused_moe.rs:957\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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"5280767ac7c544224246c4dbced903cadd17aa7e65795df293cca1ca49b63f15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/models/qwen3_next.rs:637-641 | mistralrs-core/src/vision_models/qwen3_5/packed_gdn.rs:123-127 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/qwen3_next.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_5/packed_gdn.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 64 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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef15a172c78d612d4a05b04662b7baf16f4c4c243e2b9cbbc472a212818d6174"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-core/src/moe/experts/backends.rs:888-892 | mistralrs-core/src/moe/experts/backends.rs:963-967 | mistralrs-quant/src/moe/cuda.rs:104-108 \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":"mistralrs-core/src/moe/experts/backends.rs"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d0708a1201ad29c2880e5f4d5de33b6abb622e0605d12df5bfe1003fcadb7ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmq.rs:602-606 | mistralrs-quant/src/gguf/fast_mmq.rs:709-713 \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 \u0060mistralrs-quant/src/gguf/fast_mmq.rs:602\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, \u0060mistralrs-quant/src/gguf/fast_mmq.rs:716\u0060 calls \u0060shape\u0060, \u0060dims2\u0060 and \u0060mistralrs-quant/src/gguf/fast_mmq.rs:609\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":"mistralrs-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a85ed9935b3bd56ec611ef7325732ba696a43160721c1b756fc564217a84ec8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/lora/dynamic/cuda.rs:239-243 | mistralrs-quant/src/lora/dynamic/cuda.rs:246-250 \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":"mistralrs-quant/src/lora/dynamic/cuda.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"542d68deba7fd62db31bf84ed65ccc848da871d6ee3a6ce926e78b5c67f88d17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/paged_attention/layers/paged_attention.rs:438-442 | mistralrs-core/src/vision_models/mllama/text.rs:353-357 \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 \u0060mistralrs-core/src/paged_attention/layers/paged_attention.rs:438\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":"mistralrs-core/src/paged_attention/layers/paged_attention.rs"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"32068a66617391b33c782efe9643abe75bcd3792bff61fd8857a579936c87524"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmq.rs:739-743 | mistralrs-quant/src/gguf/fast_mmq.rs:1099-1103 \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 \u0060mistralrs-quant/src/gguf/fast_mmq.rs:739\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":"mistralrs-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"51bfd9ca2b3ae7bdf1110ea1074dfd5fae10c57d73efc7816ac06af5f4c22c2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-quant/src/blockwise_fp8/ops.rs:707-711 | mistralrs-quant/src/mxfp4/ops.rs:103-107 | mistralrs-quant/src/mxfp4/ops.rs:457-461 \u2014 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs\u0060 and \u0060mistralrs-quant/src/mxfp4/ops.rs\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 59 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 before the matched lines, \u0060mistralrs-quant/src/mxfp4/ops.rs:102\u0060 calls \u0060layout\u0060 and \u0060mistralrs-quant/src/mxfp4/ops.rs:456\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"732694ace27342309dd542a284902545e1d1363f81f38040cb67094d2e8713dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-core/src/cuda/gdn.rs:3408-3412 | mistralrs-core/src/cuda/gdn.rs:5102-5106 | mistralrs-core/src/cuda/gdn.rs:5138-5142 \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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":3408}}}],"partialFingerprints":{"codehealthFindingId/v1":"d764d786f009a8091214335421805be5fdc080bbf17c7e302181f49aa513bfb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:1823-1827 | mistralrs-quant/src/gguf/weight_source.rs:1257-1261 \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 \u0060mistralrs-quant/src/distributed/layers.rs:1823\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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":1823}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a0f45953e6320668069c4111852db448f3fb22b669814bbb56ac7d268f9f4e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:499-503 | mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:234-238 | mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:245-249 \u2014 before extracting anything, compare \u0060mistralrs-paged-attn/src/cuda/backend/flashinfer.rs\u0060 and \u0060mistralrs-paged-attn/src/cuda/backend/gather_kv.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 39 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":"mistralrs-paged-attn/src/cuda/backend/flashinfer.rs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ad13d3faa84f277a5fe232823b577892675fac3015d5b582877c149a2e8652"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:3409-3413 | mistralrs-core/src/cuda/gdn.rs:4074-4078 \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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":3409}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cae8544595b2560af5c0af0ca1ad38c575c79e9b1ae5ae71e90b28d937c70ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-core/src/gguf/multimodal_binding_utils.rs:120-124 | mistralrs-core/src/gguf/normal_bindings.rs:959-963 | mistralrs-core/src/gguf/qwen_multimodal_bindings.rs:314-318 \u2014 before extracting anything, compare \u0060mistralrs-core/src/gguf/multimodal_binding_utils.rs\u0060 and \u0060mistralrs-core/src/gguf/qwen_multimodal_bindings.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 40 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 \u0060mistralrs-core/src/gguf/multimodal_binding_utils.rs:120\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":"mistralrs-core/src/gguf/multimodal_binding_utils.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"82f5e841da626540a8525a4677b787c75f564759aa317d64e91d69211026f403"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): mistralrs-quant/src/blockwise_fp8/deepgemm.rs:446-450 | mistralrs-quant/src/blockwise_fp8/ops.rs:1780-1784 | mistralrs-quant/src/cutile/fp8_w8a16.rs:419-423 | mistralrs-quant/src/cutile/fp8_w8a8.rs:481-485 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/blockwise_fp8/deepgemm.rs\u0060 and \u0060mistralrs-quant/src/blockwise_fp8/ops.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 65 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 \u0060mistralrs-quant/src/blockwise_fp8/deepgemm.rs:446\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, \u0060mistralrs-quant/src/cutile/fp8_w8a8.rs:480\u0060 calls \u0060device\u0060, \u0060same_device\u0060 and \u0060mistralrs-quant/src/blockwise_fp8/deepgemm.rs:445\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":"mistralrs-quant/src/blockwise_fp8/deepgemm.rs"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"829105964adbf2be16e09cf43cae21537eba028889a25d6cb1805c04f60d63f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/attention/backends/metal_flash_attn.rs:70-74 | mistralrs-core/src/attention/backends/metal_flash_attn.rs: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 \u0060mistralrs-core/src/attention/backends/metal_flash_attn.rs:70\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":"mistralrs-core/src/attention/backends/metal_flash_attn.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"37fef0294bab00199a7a29b4e01d94c202840d27185586f8ab19ec6ead83b667"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): mistralrs-quant/src/cutile/fused_moe.rs:475-479 | mistralrs-quant/src/moe/cuda.rs:235-239 | mistralrs-quant/src/moe/cuda.rs:271-275 | mistralrs-quant/src/moe/cuda.rs:311-315 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060mistralrs-quant/src/moe/cuda.rs:233\u0060 calls \u0060cu_stream\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe.rs:473\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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbd427791d61c6edf34d56c66b814ccdc377852bbff03f7143583fbe9fe73358"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/scale_update.rs:64-68 | mistralrs-paged-attn/src/cuda/backend/scale_update.rs:71-75 \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":"mistralrs-paged-attn/src/cuda/backend/scale_update.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb62f5d6863d56bd8ac11fb9375cc61253ce06c70f6a0b9f5cfa6142918d8eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:137-141 | mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:306-310 | mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:440-444 \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 \u0060mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:137\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":"mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"7edbbde8baf416e3c4d3daa1e0ae826a4bb5e656949b97729c9b59552b6c3361"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-cli/src/commands/run/interactive.rs:1506-1510 | mistralrs-pyo3/src/stream.rs:83-87 | mistralrs-server-core/src/chat_completion.rs:494-498 \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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1506}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaf56647c09d5a56b1e772c86da8393702b6824597272765343908313d054c5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/diffusion_models/flux/model.rs:290-294 | mistralrs-core/src/diffusion_models/flux/model.rs:525-529 \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 after the matched lines, \u0060mistralrs-core/src/diffusion_models/flux/model.rs:530\u0060 calls \u0060narrow\u0060 and \u0060mistralrs-core/src/diffusion_models/flux/model.rs:295\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":"mistralrs-core/src/diffusion_models/flux/model.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ed7826ab1674dfe7820712181b630c45f3b53bfa2ee399e74b3e8c819d0c9bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/engine/agentic_loop.rs:165-170 | mistralrs-core/src/engine/agentic_loop.rs:176-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 \u0060mistralrs-core/src/engine/agentic_loop.rs:165\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":"mistralrs-core/src/engine/agentic_loop.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8808e4c39caf659d23bec1e58482d921e7896f5124343c299c9c7fd48541076"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/engine/tool_dispatch.rs:217-222 | mistralrs-core/src/search/rag.rs:311-316 \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":"mistralrs-core/src/engine/tool_dispatch.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a1b83cf785391fb6accc32ad445f6badce636679918a3585aa380a595a56e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/gdn/backend.rs:168-172 | mistralrs-core/src/gdn/backend.rs:180-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/gdn/backend.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2da4f670c8147902e85f9be7d00690bb8c0b918d89058ca7759dd6ee2763183"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/gdn/backend.rs:614-618 | mistralrs-core/src/gdn/backend.rs:675-679 \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":"mistralrs-core/src/gdn/backend.rs"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd5b3ae1e92f1aad224dc47acbf1bed52fd5b67130bee5829f00d0ca1b283504"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/gguf/normal_config.rs:1381-1387 | mistralrs-core/src/gguf/normal_config.rs:1470-1476 \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":"mistralrs-core/src/gguf/normal_config.rs"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de7829536f1652dc6aa53a545ee85f21899ac918f0169fc7f75b78499c7b2dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/kv_cache/mod.rs:664-669 | mistralrs-core/src/kv_cache/mod.rs:1067-1072 \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 \u0060mistralrs-core/src/kv_cache/mod.rs:664\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":"mistralrs-core/src/kv_cache/mod.rs"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4803c9e0c13e37e07ee72aadf9d96fca91847cce88528278879f867adf652e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/layers.rs:447-452 | mistralrs-core/src/layers.rs:460-465 \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":"mistralrs-core/src/layers.rs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"002d47d571fa3d243996b2e74ac9eda7193b6f591412e8a2233427abcea9d01d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/models/glm4_moe_lite.rs:283-287 | mistralrs-core/src/vision_models/llama4/text.rs:443-447 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/glm4_moe_lite.rs\u0060 and \u0060mistralrs-core/src/vision_models/llama4/text.rs\u0060 as WHOLE FILES: this scan already matched 7 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. 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 \u0060mistralrs-core/src/vision_models/llama4/text.rs:443\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":"mistralrs-core/src/models/glm4_moe_lite.rs"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"d79a19558607224e3bcaf3a95a4f5c10c8b0d7c7a73dcd13aa4251849afda7d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/models/quantized_llama.rs:170-178 | mistralrs-core/src/xlora_models/quantized_llama.rs:291-299 \u2014 \u0060mistralrs-core/src/models/quantized_llama.rs\u0060 and \u0060mistralrs-core/src/xlora_models/quantized_llama.rs\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 4 separate duplicated blocks between them, totalling at least 58 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 \u0060mistralrs-core/src/models/quantized_llama.rs:170\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":"mistralrs-core/src/models/quantized_llama.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4b5935d92bde4570d9032cfba67e276f102c6515e446558872d7b2aaf7d4d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/ops.rs:2064-2068 | mistralrs-core/src/ops.rs:2215-2219 \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, \u0060mistralrs-core/src/ops.rs:2213\u0060 calls \u0060device_ptr\u0060 and \u0060mistralrs-core/src/ops.rs:2062\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":2064}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc6ebd366829f271bfde01c521af190654083ea53f4da09a598631287107f6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/ops.rs:6213-6217 | mistralrs-core/src/ops.rs:6571-6575 \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":"mistralrs-core/src/ops.rs"},"region":{"startLine":6213}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d809deef80329bb52bb45284bb7e26073d2ba5ddc907b683ed837c73f58d5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1643-1647 | mistralrs-core/src/pipeline/normal.rs:204-208 \u2014 before extracting anything, compare \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 1605 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1643}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec4512b090eedfeb96b1edbe293b152300dfbfb883b4ceeffd05e4726a29c6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/pipeline/sampling.rs:1405-1410 | mistralrs-core/src/pipeline/sampling.rs:1426-1431 \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 \u0060mistralrs-core/src/pipeline/sampling.rs:1405\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":"mistralrs-core/src/pipeline/sampling.rs"},"region":{"startLine":1405}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c13b408717d2dc36dce517704fba5443a2067d34311f155dcc3db0da2f33802"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/speech_models/dia/model.rs:71-76 | mistralrs-core/src/speech_models/dia/model.rs:195-200 \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":"mistralrs-core/src/speech_models/dia/model.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aacf2e3dfbebecc4199bfd28d0d03e91595ef830ca4908517b086456f1e0eed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:808-813 | mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:706-711 \u2014 \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/mistral3/inputs_processor.rs\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 10 separate duplicated blocks between them, totalling at least 131 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 before the matched lines, \u0060mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:805\u0060 calls \u0060as_ref\u0060, \u0060unwrap\u0060, \u0060to_filter\u0060 and \u0060mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:705\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":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c4e216fe825bba0ad7e30ed6388b827ae30026d3104a2971129d7c61a3ac5c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/audio.rs:1325-1329 | mistralrs-core/src/vision_models/gemma4/audio.rs:306-310 \u2014 \u0060mistralrs-core/src/vision_models/gemma3n/audio.rs\u0060 and \u0060mistralrs-core/src/vision_models/gemma4/audio.rs\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 20 separate duplicated blocks between them, totalling at least 352 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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":1325}}}],"partialFingerprints":{"codehealthFindingId/v1":"131875f6bdc60108982e649baeaa9c1a5624522e3c1aaf27b46ebfd47ed484e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-core/src/vision_models/gemma3n/mod.rs:85-89 | mistralrs-core/src/vision_models/gemma3n/mod.rs:194-198 | mistralrs-core/src/vision_models/multimodal_layout.rs:344-348 \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 \u0060mistralrs-core/src/vision_models/gemma3n/mod.rs: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":"mistralrs-core/src/vision_models/gemma3n/mod.rs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"942f1c52c19cb5f5c7d0f1f9f6467c6ed9aad04575b549e3dd6f729d3ba186dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:69-74 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:238-243 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/llava/llava_llm/llama.rs\u0060 and \u0060mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 216 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 \u0060mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:69\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":"mistralrs-core/src/vision_models/llava/llava_llm/llama.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e1482c12873109f58191f7ea72ede64aab5dc50b86caa360d0626aff5e6ba9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:555-559 | mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:722-726 \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 \u0060mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:555\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":"mistralrs-core/src/vision_models/mistral3/inputs_processor.rs"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"e254189d2dbd98491164b46f9a539f1a1845c50243ecd94609382a0cd1905da9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/vision_models/phi4/image_embedding.rs:330-334 | mistralrs-core/src/vision_models/phi4/image_embedding.rs:348-352 \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":"mistralrs-core/src/vision_models/phi4/image_embedding.rs"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dae5469862c1ba2fe3ed41b8376e4fd8716579f306efdbd8dfdb1f73f4ba146"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:135-139 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:106-110 | mistralrs-core/src/vision_models/qwen3_vl/vision.rs:138-142 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/vision.rs\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 15 separate duplicated blocks between them, totalling at least 182 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":"mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c882369dbb64bc1d38b780bbed7e3c0875d76ddc88c8bfe6f16d9cc27f09816"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:312-317 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:284-289 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/vision.rs\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 15 separate duplicated blocks between them, totalling at least 182 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":"mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"9927cd4faa44216c70e97b46b37ec02b81af95ec14e7316d7d2af69b797a7fd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:534-540 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:409-415 \u2014 \u0060mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen2vl/vision.rs\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 15 separate duplicated blocks between them, totalling at least 182 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":"mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b763477038832de2dad14fabc227507141002a78e0ec152d7f13ab702473cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-flash-attn/src/flash.rs:253-258 | mistralrs-flash-attn/src/flash.rs:861-866 \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":"mistralrs-flash-attn/src/flash.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"415bdfcc96055d52cb6f675797aa722f1976022884aa0ee3b57d540e3b8d3781"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-paged-attn/src/metal/kernels/mod.rs:545-549 | mistralrs-paged-attn/src/metal/kernels/mod.rs:687-691 \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 after the matched lines, \u0060mistralrs-paged-attn/src/metal/kernels/mod.rs:692\u0060 calls \u0060set_output_buffer\u0060, \u0060Some\u0060 and \u0060mistralrs-paged-attn/src/metal/kernels/mod.rs:550\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":"mistralrs-paged-attn/src/metal/kernels/mod.rs"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"0faefb3ceeb79f7386e9caf049540b343e5f3a2d86c67f6b95fb5caccb5bee2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-pyo3/src/util.rs:155-159 | mistralrs-server-core/src/chat_completion.rs:1441-1445 \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":"mistralrs-pyo3/src/util.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e3eb2e32ec8d983d7b938c71902efdabe1aa90dfda0a50746a1ee421b66bdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:193-197 | mistralrs-quant/src/blockwise_fp8/ops.rs:531-535 \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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb97281eeab2af5e28a36ad8610d20049b65f7f91aa1f4297298b1ff01ed77fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:801-806 | mistralrs-quant/src/blockwise_fp8/ops.rs:1625-1630 \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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2761251b3baa8f9874ff99a09beaa4632378ae7713c83bce0640ddff7925335"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:198-205 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:198-205 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fused_moe.rs\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe_fp8.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 298 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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6c778e5a2afee547a9cf62408fa55850c6e01dc4f8a5ee4d94ffc7d7067f72a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:226-235 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:225-234 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fused_moe.rs\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe_fp8.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 298 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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd67b8087fd0358b37b04c3c3110585381f96af1171bfbd9c2add42d1acc2f43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:217-222 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:216-221 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fused_moe.rs\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe_fp8.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 298 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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"603f0f8f591c3d2ac4531229607ef1508d4e251e56dd9dfb4f5a2e7565f4e489"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:243-247 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:266-270 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fused_moe.rs\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe_fp8.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 298 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, \u0060mistralrs-quant/src/cutile/fused_moe_fp8.rs:272\u0060 calls \u0060broadcast_scalar\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe.rs:248\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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"f239d909f2125409cd172c7620c09402d539e838f8c946b84e86f7959f87ad3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:791-799 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:707-715 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/fused_moe.rs\u0060 and \u0060mistralrs-quant/src/cutile/fused_moe_fp8.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 298 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 \u0060self\u0060 to \u0060\u0026mut\u0060 in one and \u0060super) fn prepare(\u0026mut\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":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"52cbc04b5edc1fe1927e10bfc643be657155247485ba96f219491041b21723a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/cutile/gdn_prefill.rs:59-63 | mistralrs-quant/src/cutile/gdn_prefill.rs:470-474 \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":"mistralrs-quant/src/cutile/gdn_prefill.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"893f35578c4423580bee0d2bc77f195680f7743b4b9827c71732ff52961d4bcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/cutile/gdn_prefill.rs:140-144 | mistralrs-quant/src/cutile/gdn_prefill.rs:147-151 \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":"mistralrs-quant/src/cutile/gdn_prefill.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"803e68bf1e49a693f8fa47abb5a67039bef960fecdbb3a4742be297e31be207e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/cutile/gdn_prefill.rs:250-254 | mistralrs-quant/src/cutile/gdn_prefill.rs:464-468 \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 after the matched lines, \u0060mistralrs-quant/src/cutile/gdn_prefill.rs:256\u0060 calls \u0060partition\u0060 and \u0060mistralrs-quant/src/cutile/gdn_prefill.rs:470\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":"mistralrs-quant/src/cutile/gdn_prefill.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8769b832d1b77006717a1bad4b365234e8103615364ea6fc554b6bf195d347e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mistralrs-quant/src/cutile/qsa.rs:379-399 | mistralrs-quant/src/cutile/qsa_decode.rs:190-210 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/qsa.rs\u0060 and \u0060mistralrs-quant/src/cutile/qsa_decode.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 134 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":"mistralrs-quant/src/cutile/qsa.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"340deac0d43b5ab8ce228e6caa253a0715b49fd37a578352c9c89ec12bf78349"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-quant/src/cutile/qsa.rs:405-417 | mistralrs-quant/src/cutile/qsa_decode.rs:216-228 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/qsa.rs\u0060 and \u0060mistralrs-quant/src/cutile/qsa_decode.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 134 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 \u0060mistralrs-quant/src/cutile/qsa.rs:405\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":"mistralrs-quant/src/cutile/qsa.rs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"b80b13e8c2cfcd8ca11e34087065419fbb437d0e6d0ba1914a874f6b6c8e2a20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mistralrs-quant/src/cutile/qsa.rs:487-507 | mistralrs-quant/src/cutile/qsa_decode.rs:300-320 \u2014 before extracting anything, compare \u0060mistralrs-quant/src/cutile/qsa.rs\u0060 and \u0060mistralrs-quant/src/cutile/qsa_decode.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 134 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":"mistralrs-quant/src/cutile/qsa.rs"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e418d8bf502f527edbb92070d6a476b43d304970be89c4e850c537ad03bc9f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): mistralrs-quant/src/hqq/hqq_op.rs:119-124 | mistralrs-quant/src/hqq/hqq_op.rs:230-235 | mistralrs-quant/src/hqq/hqq_op.rs:343-348 | mistralrs-quant/src/hqq/hqq_op.rs:460-465 \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 \u0060mistralrs-quant/src/hqq/hqq_op.rs:119\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":"mistralrs-quant/src/hqq/hqq_op.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ba47dd7659cf7e94e04bb5b7908b52ed54f4adf6398202188bad07bf5fcb45f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/metal_kernels/mod.rs:4778-4782 | mistralrs-quant/src/metal_kernels/mod.rs:4844-4848 \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 after the matched lines, \u0060mistralrs-quant/src/metal_kernels/mod.rs:4849\u0060 calls \u0060set_output_buffer\u0060, \u0060Some\u0060 and \u0060mistralrs-quant/src/metal_kernels/mod.rs:4783\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":"mistralrs-quant/src/metal_kernels/mod.rs"},"region":{"startLine":4778}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a47e0b5ba0c4618ad4352d9f76c3a848234272230c60d2a5cac9bc135d61232"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/rotary/mod.rs:578-582 | mistralrs-quant/src/rotary/mod.rs:684-688 \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 after the matched lines, \u0060mistralrs-quant/src/rotary/mod.rs:689\u0060 calls \u0060check_qk_shape\u0060 and \u0060mistralrs-quant/src/rotary/mod.rs:583\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":"mistralrs-quant/src/rotary/mod.rs"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"5afe3fa94f0b572b3c70c1cfc80ecf8791941016a7275d867215f6f75e7938d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201321 lines \u00D7 2): releases/v0.9.5/scripts/plot_results.py:118-135 | releases/v0.9.5/scripts/plot_results.py:218-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 \u0060releases/v0.9.5/scripts/plot_results.py: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. 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":"releases/v0.9.5/scripts/plot_results.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"068d64cafa699eabb47d4489663c36dd1f8e9c3b0f8833adb071f9eb6f5a4ea7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): releases/v0.9.5/scripts/plot_results.py:83-98 | releases/v0.9.5/scripts/plot_results.py:178-193 \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 \u0060releases/v0.9.5/scripts/plot_results.py: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":"releases/v0.9.5/scripts/plot_results.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"b61492ab33e885d902896e531cc98aadd7b08e21572707d1dbdd5348bc52eb35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): releases/v0.9.0/scripts/bench_cpu_sweep.py:169-174 | releases/v0.9.0/scripts/bench_cpu_sweep.py:180-185 \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":"releases/v0.9.0/scripts/bench_cpu_sweep.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee802fc065aa6c49d8cf8c72391d2a933b49a51226b9e96633b3cab2ad83cd7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (24 members, 50\u002B identical tokens): examples/server/chat.py:8-28 | examples/server/completion.py:8-28 | examples/server/embedding.py:8-28 | examples/server/gemma3.py:8-28 | examples/server/gemma3n.py:8-28 | examples/server/gpt_oss.py:18-38 | examples/server/idefics2.py:8-28 | examples/server/idefics3.py:8-28 | examples/server/llama4.py:8-28 | examples/server/llama_vision.py:8-28 | examples/server/llava.py:8-28 | examples/server/llava_next.py:8-28 | examples/server/minicpmo_2_6.py:8-28 | examples/server/mistral3.py:8-28 | examples/server/phi3v.py:8-28 | examples/server/phi3v_base64.py:9-29 | examples/server/phi3v_local_img.py:8-28 | examples/server/phi4mm.py:8-28 | examples/server/qwen3.py:8-28 | examples/server/responses.py:18-38 | examples/server/responses_audio.py:8-28 | examples/server/responses_vision.py:8-28 | examples/server/smollm3.py:8-28 | scripts/bench.py:26-46 \u2014 These 24 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 24 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 24 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/server/chat.py"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"9674ca04ce18730f4ed0ecb3b6824de0d63bf6e4081dd039a4c2c2e79152500f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): scripts/convert_awq_marlin.py:86-101 | scripts/convert_awq_marlin.py:111-125 \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":"scripts/convert_awq_marlin.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a29de569a5d441401bba7fcfafd99ee67a190582499c17f6fea5231a9c6e01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): scripts/convert_awq_marlin.py:30-47 | scripts/convert_awq_marlin.py:56-78 \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":"scripts/convert_awq_marlin.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"b790f84d5787e4ea2c141262d35914774f3c7c88eed08820eb014b875d6ad4c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): scripts/production_soak.py:367-381 | scripts/production_soak.py:399-420 \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":"scripts/production_soak.py"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f719d377f8fff6ea733770614596a6f5c0a1e204167559a409fe84cc8beff49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/python/code_execution.py:28-55 | examples/python/shell.py:23-50 \u2014 These two members are one piece of code written twice and then edited apart: 28 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":"examples/python/code_execution.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"0179b621e2b2c9d836a3ad62eb6ca3b6141b16c2305b7b7673ac5d349dd9626d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): scripts/production_soak.py:6934-6949 | scripts/production_soak.py:6960-6975 \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":"scripts/production_soak.py"},"region":{"startLine":6934}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cd956f7471d470fc788834e7f3d10c9939a4f05d18e3a17c4e3f4267327ad45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): examples/python/code_execution_approval.py:47-69 | examples/python/shell_skills.py:62-90 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"examples/python/code_execution_approval.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0c7be57257bed6f8fc165cc7e28aa507ad8ecc7f50a5c3a3019601c0f33017e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): scripts/generate_favicons.py:37-46 | scripts/generate_og_image.py:35-45 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"scripts/generate_favicons.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"6951a928e6fdfaa9461b88c529a77466dce3247645f92ba22ea07fde3c72a0a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): examples/server/anthropic_skills.py:78-80 | examples/server/skills.py:74-76 \u2014 These two members are one piece of code written twice and then edited apart: 3 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":"examples/server/anthropic_skills.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bb0ef0c79da5b2891ab4c3614d7185fcf5365d2425be8db63f735271a423ead"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): examples/python/tool_call.py:36-38 | examples/server/tool_calling.py:36-38 \u2014 These two members are one piece of code written twice and then edited apart: 3 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":"examples/python/tool_call.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a4f492a0e54269ee9861cda31e290da17a1c0935e898fa1c780bd470b63ceb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43\u201344 lines \u00D7 2): scripts/production_soak.py:13670-13712 | scripts/production_soak.py:13828-13871 \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 after the matched lines, \u0060scripts/production_soak.py:13714\u0060 calls \u0060ValueError\u0060 and \u0060scripts/production_soak.py:13872\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":"scripts/production_soak.py"},"region":{"startLine":13670}}}],"partialFingerprints":{"codehealthFindingId/v1":"0661ccc6cf7808160867e8e37738a58f5f52f8990135d08945f1179573621468"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201341 lines \u00D7 2): scripts/production_soak.py:3280-3318 | scripts/production_soak.py:4180-4220 \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/production_soak.py:3280\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/production_soak.py"},"region":{"startLine":3280}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff3b5c201d3753381cf2cdfcc03a6b1ff90f229bac531905de7be196e224a73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): scripts/production_soak.py:10440-10465 | scripts/production_soak.py:10851-10876 \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/production_soak.py:10440\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/production_soak.py"},"region":{"startLine":10440}}}],"partialFingerprints":{"codehealthFindingId/v1":"becae9a97bdb50842da3cfe08b52970b715b54d31177fdceb5ff24003bfc0816"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201325 lines \u00D7 2): scripts/production_soak.py:2788-2812 | scripts/production_soak.py:3407-3428 \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/production_soak.py:2788\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/production_soak.py"},"region":{"startLine":2788}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef666e233480b11ad6f1bbf1cbc3d17f11b457142bb1e436d8db415a69f9e26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): scripts/production_soak.py:7709-7731 | scripts/production_soak.py:10388-10410 \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/production_soak.py:7709\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/production_soak.py"},"region":{"startLine":7709}}}],"partialFingerprints":{"codehealthFindingId/v1":"226c023d2a8e6134fe76fb2ca49c47735ba1a7347cfc0ea913928bcae9266153"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): scripts/production_soak.py:12982-13004 | scripts/production_soak.py:13153-13175 \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/production_soak.py:12982\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/production_soak.py"},"region":{"startLine":12982}}}],"partialFingerprints":{"codehealthFindingId/v1":"9916f55cf11715b8a8dadd59ee5d7cc6c9969e53b17b01bbad16526e9f5b0593"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 24): examples/server/chat.py:8-28 | examples/server/completion.py:8-28 | examples/server/embedding.py:8-28 | examples/server/gemma3.py:8-28 | examples/server/gemma3n.py:8-28 | examples/server/gpt_oss.py:18-38 | examples/server/idefics2.py:8-28 | examples/server/idefics3.py:8-28 | examples/server/llama4.py:8-28 | examples/server/llama_vision.py:8-28 | examples/server/llava.py:8-28 | examples/server/llava_next.py:8-28 | examples/server/minicpmo_2_6.py:8-28 | examples/server/mistral3.py:8-28 | examples/server/phi3v.py:8-28 | examples/server/phi3v_base64.py:9-29 | examples/server/phi3v_local_img.py:8-28 | examples/server/phi4mm.py:8-28 | examples/server/qwen3.py:8-28 | examples/server/responses.py:18-38 | examples/server/responses_audio.py:8-28 | examples/server/responses_vision.py:8-28 | examples/server/smollm3.py:8-28 | scripts/bench.py:26-46 \u2014 before extracting anything, compare \u0060examples/server/chat.py\u0060 and \u0060examples/server/completion.py\u0060 as WHOLE FILES: 83% 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/server/completion.py:39\u0060 calls \u0060input\u0060 and \u0060examples/server/embedding.py:38\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/server/chat.py"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"4993289fd79eec09180ab0245338f3cdfcefe49db0c68ea2fd963b3de7700cc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): scripts/production_soak.py:3216-3236 | scripts/production_soak.py:4112-4132 \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/production_soak.py:3216\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/production_soak.py"},"region":{"startLine":3216}}}],"partialFingerprints":{"codehealthFindingId/v1":"118d6ce90e2884fc5c57918654ed7af58f756eb773e9e351d0125114114cad0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): scripts/production_soak.py:5130-5149 | scripts/production_soak.py:10153-10172 \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/production_soak.py:5130\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/production_soak.py"},"region":{"startLine":5130}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b2b2a81f859ffa59ce05083ece778903bd9246d84b210692e6ff0e066d08b28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): examples/python/custom_search.py:12-30 | examples/python/custom_tool_call.py:13-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 both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/python/custom_search.py"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4ee44265090f46f61cf9d815d5d165dfec55c732448a8576dca06bf3ff816bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): scripts/production_soak.py:10483-10499 | scripts/production_soak.py:11908-11925 \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/production_soak.py:10483\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/production_soak.py"},"region":{"startLine":10483}}}],"partialFingerprints":{"codehealthFindingId/v1":"d39e94b016f09b0218dcd1d975fb4390dbf63dad9452115dc78d9ea793eb23e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): scripts/production_soak.py:3262-3277 | scripts/production_soak.py:4162-4177 \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/production_soak.py:3262\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/production_soak.py"},"region":{"startLine":3262}}}],"partialFingerprints":{"codehealthFindingId/v1":"c23a0e593859c89d15feb02a65d65ba1117973629c6dd791b8477e7da4c5d5b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): scripts/production_soak.py:11847-11862 | scripts/production_soak.py:11870-11885 \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/production_soak.py:11847\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/production_soak.py"},"region":{"startLine":11847}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc3753bdd61e9bb05e2a387bb7d09c65673c82c8add5b130dae03463858b669"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): scripts/production_soak.py:8794-8807 | scripts/production_soak.py:8824-8837 \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/production_soak.py"},"region":{"startLine":8794}}}],"partialFingerprints":{"codehealthFindingId/v1":"4371b46555a7208170b07935b5fc319ec830e264cb31716465ef6d1768f280bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): examples/server/anthropic_chat.py:20-31 | examples/server/anthropic_skills.py:84-96 | examples/server/anthropic_tool_calling.py:20-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. 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/server/anthropic_chat.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"68962a5d277860ef8806e7fefb2ac2876c034426bb263fe0de0bdee96d9e477b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/server/anthropic_agentic.py:20-32 | examples/server/anthropic_streaming.py:20-32 \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":"examples/server/anthropic_agentic.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b9c070abfd52fdaddee8afcb989707c370bdca7c6e1fadcfad5e95afcaff3ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): scripts/production_soak.py:3190-3200 | scripts/production_soak.py:4091-4101 \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/production_soak.py:3190\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/production_soak.py"},"region":{"startLine":3190}}}],"partialFingerprints":{"codehealthFindingId/v1":"1afd48000faa7f5e57e2cca717aa3fdd62ef45b1bed0e46024a3b97d8f15c4a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): scripts/production_soak.py:3176-3184 | scripts/production_soak.py:4078-4086 \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/production_soak.py"},"region":{"startLine":3176}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4c39ca50cfd5faa08877ab8f30c733aa863f51810d9fb3a5ca036890a1f70f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): scripts/production_soak.py:3966-3973 | scripts/production_soak.py:3977-3984 | scripts/production_soak.py:4028-4035 | scripts/production_soak.py:4088-4095 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/production_soak.py"},"region":{"startLine":3966}}}],"partialFingerprints":{"codehealthFindingId/v1":"cccac2844e4e30fdce9ccc530d094bddfc0a6000fe9fd06a78ea451cb3d40850"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 3): scripts/production_soak.py:2686-2691 | scripts/production_soak.py:9033-9040 | scripts/production_soak.py:11311-11316 \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. 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/production_soak.py"},"region":{"startLine":2686}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb4864308d05ea180a30a069f636d7b34b3867a428dafe0b3e7cf091d09c18f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): examples/python/shell_skills.py:18-42 | examples/server/anthropic_skills.py:25-52 | examples/server/skills.py:29-53 \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 \u0060examples/server/anthropic_skills.py: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":"examples/python/shell_skills.py"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"46278505566840a009c08e98fb57a3ddc6aa2af9c617ea39ceb7be1dd7c3ee8e"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: mistralrs-audio: mistralrs-audio: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4af97bc57be33868900d5883bafe356dbebcc9c9bea9dbd748a9a615a0395bd3"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: mistralrs-flash-attn: mistralrs-flash-attn: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"060aebd46a9d951f00984abc9adbc2b950f05318df3dd9c6a535113282617b9f"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: mistralrs-metal-compile: mistralrs-metal-compile: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 3 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9ffd2d0e8f4259bb9d7ba291334e3a3f2788e3cc90ec11ee4f7620f742faa4da"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: mistralrs-mcp: mistralrs-mcp: abstractness 0.06, instability 0.00, distance 0.94 \u2014 zone of pain \u2014 concrete and depended on by 3 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"47b56f246830be0abc7f4b200cade2f5266c9d0f7ef115253cb4d5d57cf49d96"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: mistralrs-sandbox: mistralrs-sandbox: abstractness 0.14, instability 0.00, distance 0.86 \u2014 zone of pain \u2014 concrete and depended on by 3 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9fa60dd783d775afee5c7dbe14efcb3ee361b26a8f70d850dc1de538786679cb"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: GgufModelBuilder (LCOM4 38): GgufModelBuilder\u0027s methods fall into 38 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 38 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":"mistralrs/src/gguf.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3424d338f5a6cb15f00494247e2401474ac15b9525260664c196f765ac55e45"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EmbeddingModelBuilder (LCOM4 19): EmbeddingModelBuilder\u0027s methods fall into 19 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 19 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":"mistralrs/src/embedding_model.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6c78252dd3c4275f9045b6c45b6a10fc5b18fd43a348aea2459763cf07e73e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: RequestBuilder (LCOM4 19): RequestBuilder\u0027s methods fall into 19 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 19 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":"mistralrs/src/messages.rs"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9d14fe5279c8598dc226695097a959d754ad775ff4a42ffd3bfeb8373e9b04c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ResponseResource (LCOM4 18): ResponseResource\u0027s methods fall into 18 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 18 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":"mistralrs-server-core/src/responses_types/resource.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"2563f1e9d5f1beaee35c243f925a782df2b1417d7c4d5b0e1b0e0e19af0a822a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ModelBuilder (LCOM4 9): ModelBuilder\u0027s methods fall into 9 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 9 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":"mistralrs/src/auto_model.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"66ea5cb9647aaf378eedb038a4e1fabce8b6029b33ea2edaca4aca2f43125d26"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: TextModelBuilder (LCOM4 9): TextModelBuilder\u0027s methods fall into 9 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 9 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":"mistralrs/src/text_model.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"15e66ab556ee5f2cacba30d88c2f9d51a36e2b705884a51b116414f18b2b6c8c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MultimodalModelBuilder (LCOM4 8): MultimodalModelBuilder\u0027s methods fall into 8 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 8 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":"mistralrs/src/multimodal_model.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"7783cc6805680ae5af0f4befbdcf66dcd4ee63e3d46b0141e6bb2e39e74dac64"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SpeechModelBuilder (LCOM4 8): SpeechModelBuilder\u0027s methods fall into 8 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 8 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":"mistralrs/src/speech_model.rs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"178e7c85ddd4390166dc0aad7299d02fa34c628cbbff06943cb4a7e9d4f67363"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DiffusionModelBuilder (LCOM4 7): DiffusionModelBuilder\u0027s methods fall into 7 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 7 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":"mistralrs/src/diffusion_model.rs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c5e2a0f3abc0762b676fe78f8788243303a41b56d5a0f457bd090a5a7fb6504"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: GgufArchSpec (LCOM4 5): GgufArchSpec\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":"mistralrs-core/src/gguf/arch_registry.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f61a12f635e27035189e02f873dc6a7bf1239a213dbf28f34b9f40486dbaa6"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: QuantizeOntoGuard (LCOM4 5): QuantizeOntoGuard\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":"mistralrs-quant/src/lib.rs"},"region":{"startLine":1550}}}],"partialFingerprints":{"codehealthFindingId/v1":"71cd30425a6381f426dbf6d1871b1e42d30bb13233142c3c5da083bc47c711e3"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MistralRs (LCOM4 4): MistralRs\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":"mistralrs-core/src/lib.rs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"c40dfc62c5199d2d3340de62dcfc627ebef38da7f21e3586b015c0051f099454"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ChatTemplate (LCOM4 4): ChatTemplate\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":"mistralrs-core/src/pipeline/chat_template.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1223e5e8db2bcaac5587ddc54715b1cdac301bc8d16f99ecb4067be865057a0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/engine/mod.rs: mistralrs-core/src/engine/mod.rs changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 147 in Engine::run at line 1157. 4 of those changes were fix/bug commits, and the other 17 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/engine/mod.rs\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":"mistralrs-core/src/engine/mod.rs"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"03cd583155f92e30b72c03057994738de1476976ec5b1c11dcbd7ccd6909f984"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/pipeline/multimodal.rs: mistralrs-core/src/pipeline/multimodal.rs changed 29 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 100 in MultimodalLoader::load_model_from_path at line 526. 3 of those changes were fix/bug commits, and the other 26 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/pipeline/multimodal.rs\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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"4453f5ce55963dfb8dc1a3b93d9a0dbd83a4356f885ee78e8bac10c9f71d7a1d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/pipeline/mod.rs: mistralrs-core/src/pipeline/mod.rs changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 110 in Pipeline::submit_step at line 2255. 3 of those changes were fix/bug commits, and the other 22 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/pipeline/mod.rs\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":"mistralrs-core/src/pipeline/mod.rs"},"region":{"startLine":2255}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c27e4eb7b1142dda4794247d38f27209c3cbb6574dd1490d7a62124c6a46524"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/pipeline/normal.rs: mistralrs-core/src/pipeline/normal.rs changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 68 in NormalLoader::load_model_from_path at line 659. 2 of those changes were fix/bug commits, and the other 19 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/pipeline/normal.rs\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":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2dc7a95de7d43a288318fad6280155e7e10ba0c7a345c364da674fd95ea2c3a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/engine/add_request.rs: mistralrs-core/src/engine/add_request.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 125 in Engine::add_request at line 156. 1 of those changes was a fix/bug commit, and the other 10 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/engine/add_request.rs\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":"mistralrs-core/src/engine/add_request.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a7c016ed8e847ebfb6811baaa9809b5ddd2d375bd7acc069e688c6e2251d3f0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/pipeline/sampling.rs: mistralrs-core/src/pipeline/sampling.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 77 in mistralrs_core::pipeline::sampling::finish_or_add_toks_to_seq at line 189. 3 of those changes were fix/bug commits, and the other 11 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/pipeline/sampling.rs\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":"mistralrs-core/src/pipeline/sampling.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de42e67fd15f3e76ba6499cd1e83518ff9d37c6d47ce0e2bb4a17d3787cd2d2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/paged_attention/scheduler.rs: mistralrs-core/src/paged_attention/scheduler.rs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 50 in PagedAttentionScheduler::schedule at line 930. 1 of those changes was a fix/bug commit, and the other 14 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/paged_attention/scheduler.rs\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":"mistralrs-core/src/paged_attention/scheduler.rs"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"67676c606b1a7ec843a1ced4781458c19873dc2bf6e23c644c8bc8c977865738"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/qwen3_5/text.rs: mistralrs-core/src/vision_models/qwen3_5/text.rs changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in Qwen3_5TextModel::forward_embeds at line 1358. 2 of those changes were fix/bug commits, and the other 15 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/qwen3_5/text.rs\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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c5fe7b3f3dd681ccc05832f362ab2ffc00ad9f8749d14fdecec3b7b261ca7e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-server-core/src/chat_completion.rs: mistralrs-server-core/src/chat_completion.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 60 in mistralrs_server_core::chat_completion::parse_request at line 605. 1 of those changes was a fix/bug commit, and the other 11 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-server-core/src/chat_completion.rs\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":"mistralrs-server-core/src/chat_completion.rs"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1e341b6fbc8cd10e4ec50f45050b4a8071574d9631ab67afe1b0ace05c7013"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/cuda/gdn.rs: mistralrs-core/src/cuda/gdn.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 68 in mistralrs_core::cuda::gdn::speculative_recurrence_checkpoints_cuda at line 3813. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/cuda/gdn.rs\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":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":3813}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9876bd22d08c3ddf76e9a937523eddde5dc3070aeecbed1e0a5d145e6f2f10"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/paged_attention/layers/paged_attention.rs: mistralrs-core/src/paged_attention/layers/paged_attention.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 51 in PagedAttention::try_prefix_gather_prefill at line 1412. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/paged_attention/layers/paged_attention.rs\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":"mistralrs-core/src/paged_attention/layers/paged_attention.rs"},"region":{"startLine":1412}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd66568c34354028b31ce312af50490594a25cfcd5fd8426ac342956767c3401"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/pipeline/inputs_processor.rs: mistralrs-core/src/pipeline/inputs_processor.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in mistralrs_core::pipeline::inputs_processor::text_models_inputs_processor::make_prompt_chunk at line 872. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/pipeline/inputs_processor.rs\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":"mistralrs-core/src/pipeline/inputs_processor.rs"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"66deb4e6beb4f60a99a8ac73a4a2bc41bf5b4dac45bfd50d361babdc401ed5bc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-pyo3/src/lib.rs: mistralrs-pyo3/src/lib.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in Runner::new at line 1264. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-pyo3/src/lib.rs\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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":1264}}}],"partialFingerprints":{"codehealthFindingId/v1":"08368b4b76f89bc006036a3930646800d43c8afd99a8d7a3581bf9a398815da6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/qwen3_5/speculative.rs: mistralrs-core/src/vision_models/qwen3_5/speculative.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in Qwen3_5Model::dflash_propose at line 304. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/qwen3_5/speculative.rs\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":"mistralrs-core/src/vision_models/qwen3_5/speculative.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a004f366e502e5b44012b4674ca5a8055d0eacfaf7f12d921284ce28bc9bc6f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/ops.rs: mistralrs-core/src/ops.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in mistralrs_core::ops::try_cuda_qk_rms_norm_rope at line 5585. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/ops.rs\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":"mistralrs-core/src/ops.rs"},"region":{"startLine":5585}}}],"partialFingerprints":{"codehealthFindingId/v1":"71588acac90462e8e373de9aab08938734c6939428f44a6913c4b15f18214ae2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/qwen3_vl/mod.rs: mistralrs-core/src/vision_models/qwen3_vl/mod.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 55 in mistralrs_core::vision_models::qwen3_vl::get_rope_index at line 55. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/qwen3_vl/mod.rs\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":"mistralrs-core/src/vision_models/qwen3_vl/mod.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee13853b0c63fe28cdf7fd057cb0a223978303001976b69d27dcd7a801343e3f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/qwen3_5/mod.rs: mistralrs-core/src/vision_models/qwen3_5/mod.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in Qwen3_5Model::forward at line 118. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/qwen3_5/mod.rs\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":"mistralrs-core/src/vision_models/qwen3_5/mod.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"734b37560c09ce161d21c4e80c6af94a89508e672a1c64fe5e3300fd1a915283"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-server-core/src/responses.rs: mistralrs-server-core/src/responses.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in OpenResponsesStreamer::poll_next at line 1158. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-server-core/src/responses.rs\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":"mistralrs-server-core/src/responses.rs"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ac08fb609917147418e38816e147ae71c92a7a5328593d366fb9424c18e47d3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/pipeline/gguf.rs: mistralrs-core/src/pipeline/gguf.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in GGUFLoader::load_model_from_path at line 1227. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/pipeline/gguf.rs\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":"mistralrs-core/src/pipeline/gguf.rs"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ae8018e40855076e8b9575a9946bac020a04d753188fd25e6ab4e7cc5cc4d1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/pipeline/loaders/auto_device_map.rs: mistralrs-core/src/pipeline/loaders/auto_device_map.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in mistralrs_core::pipeline::loaders::auto_device_map::get_device_layers_attempt at line 262. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/pipeline/loaders/auto_device_map.rs\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":"mistralrs-core/src/pipeline/loaders/auto_device_map.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"c319b9c15d3c641929a3623a722e9b9ab336430b1904a6e020a76c79f08f5751"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/pipeline/embedding.rs: mistralrs-core/src/pipeline/embedding.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in EmbeddingLoader::load_model_from_path at line 209. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/pipeline/embedding.rs\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":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"2396aa608550ab28a1043169207e65fa0b06492f4c190b8f1a1d324365fcb07f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/pipeline/cuda_graph.rs: mistralrs-core/src/pipeline/cuda_graph.rs changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in CudaGraphCaptureMemory::shape at line 89. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/pipeline/cuda_graph.rs\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":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a9e5cc4ca31d1c981b2d5aa3969a171a54de02073cb271d3e202c65527ac0f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/grid_processor.rs: mistralrs-core/src/vision_models/grid_processor.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 58 in GridImageProcessor::process_inputs at line 1139. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/grid_processor.rs\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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"f231ce2ca259e3c8fe483dd5cc420764e4d8c389d4410d2627e774ff11b8a34e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/gguf/normal_bindings.rs: mistralrs-core/src/gguf/normal_bindings.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 72 in mistralrs_core::gguf::normal_bindings::bind_block_tensor at line 118. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/gguf/normal_bindings.rs\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":"mistralrs-core/src/gguf/normal_bindings.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec003287d86639c09c93381b482ff4ab239805cdbff6cf4b06cd3bedc44ac9c1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/gemma4/text.rs: mistralrs-core/src/vision_models/gemma4/text.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in TextModel::forward_embeds_scaled at line 2107. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/gemma4/text.rs\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":"mistralrs-core/src/vision_models/gemma4/text.rs"},"region":{"startLine":2107}}}],"partialFingerprints":{"codehealthFindingId/v1":"5104aebaa1268e0117b76cf38d007e34380a4046b6d0709d92f707257e7714a5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-cli/src/commands/run/interactive.rs: mistralrs-cli/src/commands/run/interactive.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in mistralrs_cli::commands::run::interactive::multimodal_interactive_mode at line 1529. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-cli/src/commands/run/interactive.rs\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":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1529}}}],"partialFingerprints":{"codehealthFindingId/v1":"947181bc8beac24f0caea66eef96d192f11dad5bc885bdf9d375c80266356835"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-cli/src/commands/bench.rs: mistralrs-cli/src/commands/bench.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in mistralrs_cli::commands::bench::run_bench at line 80. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-cli/src/commands/bench.rs\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":"mistralrs-cli/src/commands/bench.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ac34156ccb2e89fcfd2994f9ff377797cb807cd45b51012c653e0d3515b71b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/pipeline/isq.rs: mistralrs-core/src/pipeline/isq.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 60 in mistralrs_core::pipeline::isq::gguf_imatrix_names at line 1405. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/pipeline/isq.rs\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":"mistralrs-core/src/pipeline/isq.rs"},"region":{"startLine":1405}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c4ff493b78b5f15368fca86477c59d884bdf1bfa2d08c848716ed9573443162"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/paged_attention/mod.rs: mistralrs-core/src/paged_attention/mod.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in mistralrs_core::paged_attention::calculate_cache_config at line 1089. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/paged_attention/mod.rs\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":"mistralrs-core/src/paged_attention/mod.rs"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe38a95948307a855654e3b4ff8fca2ec238bf22c445cf7a84f40936dce469e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/speculative/driver.rs: mistralrs-core/src/speculative/driver.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in mistralrs_core::speculative::driver::verify_staged_batch at line 348. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/speculative/driver.rs\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":"mistralrs-core/src/speculative/driver.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"8940d7583f685aa5752dc1a013c59c55408a1ae7cb7d01c9faaef9a302a6cb5a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/paged_attention/plan.rs: mistralrs-core/src/paged_attention/plan.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in mistralrs_core::paged_attention::plan::prompt_prefill_workspace at line 1091. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/paged_attention/plan.rs\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":"mistralrs-core/src/paged_attention/plan.rs"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"444b540d9e9c27621a88d0a46aeb2d4074c1783481098bc4ce3f0a355aa54eed"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-quant/src/blockwise_fp8/mod.rs: mistralrs-quant/src/blockwise_fp8/mod.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in BlockwiseFP8Linear::forward_raw at line 554. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-quant/src/blockwise_fp8/mod.rs\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":"mistralrs-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e3bf3c349e9224c068d3e52818eb2a7a9a8172d1007063584750bfbea5e267"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-server-core/src/mistralrs_for_server_builder.rs: mistralrs-server-core/src/mistralrs_for_server_builder.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in MistralRsForServerBuilder::build_multi_model at line 911. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-server-core/src/mistralrs_for_server_builder.rs\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":"mistralrs-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"f98046f31c915486b57fd2ba4ddc0b189fe63e0fb4e7094864ad019d3969c46c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/pipeline/chat_template.rs: mistralrs-core/src/pipeline/chat_template.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in mistralrs_core::pipeline::chat_template::apply_chat_template_to at line 714. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/pipeline/chat_template.rs\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":"mistralrs-core/src/pipeline/chat_template.rs"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc9ad06214c7e06e5c1473ad519617d56725ef409c323985499f1b1bf1a188cd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/engine/agentic_loop.rs: mistralrs-core/src/engine/agentic_loop.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in mistralrs_core::engine::agentic_loop::agentic_loop at line 1256. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/engine/agentic_loop.rs\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":"mistralrs-core/src/engine/agentic_loop.rs"},"region":{"startLine":1256}}}],"partialFingerprints":{"codehealthFindingId/v1":"a258ce1682c33ad14499e635585a40ca60f4ab1f9e040ca985c4bd56db6ae2d4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs: mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in Qwen3_5MoeModel::forward at line 101. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs\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":"mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f8e0e7a46b48bcbd71c2cdcd614a40bba0560ea5945628289b5581458d3b908"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-quant/src/blockwise_fp8/ops.rs: mistralrs-quant/src/blockwise_fp8/ops.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in mistralrs_quant::blockwise_fp8::ops::fused_add_rms_norm_quantized_impl at line 1733. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-quant/src/blockwise_fp8/ops.rs\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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1733}}}],"partialFingerprints":{"codehealthFindingId/v1":"d717c13e89b1eb1820fd52c737c858556c403362c727069137322f6a767f420a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-server-core/src/anthropic.rs: mistralrs-server-core/src/anthropic.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in AnthropicStreamer::poll_next at line 1542. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-server-core/src/anthropic.rs\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":"mistralrs-server-core/src/anthropic.rs"},"region":{"startLine":1542}}}],"partialFingerprints":{"codehealthFindingId/v1":"5490a4d162ecef5abe0295ae9852524d9323e3ded14ea4915910120a2da5886f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/speculative/dflash.rs: mistralrs-core/src/speculative/dflash.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in DFlashDraftModel::precapture_cuda_graphs at line 2459. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/speculative/dflash.rs\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":"mistralrs-core/src/speculative/dflash.rs"},"region":{"startLine":2459}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec63c34e8ec31629f134ea9d66fceb0d0471d4cab38a983ea97e21e51d72853"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-quant/src/distributed/layers.rs: mistralrs-quant/src/distributed/layers.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in ReplicatedLayer::new_layers_matformer_indices at line 1560. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-quant/src/distributed/layers.rs\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":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":1560}}}],"partialFingerprints":{"codehealthFindingId/v1":"094d231f4c51f8c3ac002b3dd2961b09358932470aaaa8c84130c7de08f35c0d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/models/qwen3_next.rs: mistralrs-core/src/models/qwen3_next.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in Model::forward at line 964. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/models/qwen3_next.rs\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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9472225e17cad3bc7ee4088d29f52425c795bb6d34fd4308875824fa615e473"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/speculative/verifier.rs: mistralrs-core/src/speculative/verifier.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in mistralrs_core::speculative::verifier::greedy_device_verify_batch at line 111. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/speculative/verifier.rs\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":"mistralrs-core/src/speculative/verifier.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"6efbf8488002b77d2974818ac917f54ad8e5b5a35398bcb0d1ecd38488c2ed83"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-cli/src/commands/serve.rs: mistralrs-cli/src/commands/serve.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in mistralrs_cli::commands::serve::apply_quant_resolution at line 978. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-cli/src/commands/serve.rs\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":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a7d0214e0e518bd6e2a164caacab96a1b1680c7d63c8af3e753f1ee623b153"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs: mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in Qwen3VLMoEModel::forward at line 99. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs\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":"mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"30659f62187d8e4f00b896a8ac261d4f1c77b1d47c9b8f232f190d557dfca31f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs: mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 52 in Qwen2_5VLImageProcessor::process_inputs at line 352. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs\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":"mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1cb83174a7050e919342bbd31fdd2004e65396640feeb5093cd3281f4d5e77"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs: mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 52 in Qwen2VLImageProcessor::process_inputs at line 918. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\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":"mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef51f196929ba7a5368f52efefb67edde62e2120615f831e9ab03fd315a525a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/pipeline/amoe.rs: mistralrs-core/src/pipeline/amoe.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in AnyMoePipeline::amoe_pre_train at line 500. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/pipeline/amoe.rs\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":"mistralrs-core/src/pipeline/amoe.rs"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56bab56f05029f9e6b45d768eed9e818c9790c8da4bb6ae8a627bb1607cd871"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/qwen3_5/config.rs: mistralrs-core/src/vision_models/qwen3_5/config.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in TextConfig::validate at line 266. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/qwen3_5/config.rs\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":"mistralrs-core/src/vision_models/qwen3_5/config.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"65c9e9048bb534e21a35b6d284fe516956fb0e13276dd811aeeebce2b5acee7e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/model_loader.rs: mistralrs-core/src/model_loader.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in mistralrs_core::model_loader::loader_from_model_selected at line 292. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/model_loader.rs\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":"mistralrs-core/src/model_loader.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"23447c56d21c450d96a1110da1abff42be47bb35f66034dfe17f46ef55c16e89"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-paged-attn/src/cuda/backend/cache.rs: mistralrs-paged-attn/src/cuda/backend/cache.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in mistralrs_paged_attn::cuda::backend::cache::copy_blocks at line 26. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-paged-attn/src/cuda/backend/cache.rs\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":"mistralrs-paged-attn/src/cuda/backend/cache.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"484f898e731aa5412f2c7546af6c8b2a615c505a985f0b998d73e85a3cb1ece0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-paged-attn/src/cuda/backend/paged_attention.rs: mistralrs-paged-attn/src/cuda/backend/paged_attention.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in PagedAttention::cuda_fwd_t at line 112. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-paged-attn/src/cuda/backend/paged_attention.rs\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":"mistralrs-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"354f6b945fdb1a9163e53280856556d69a15d9b2bd64d7e23e8c641abc043067"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-paged-attn/src/cuda/backend/gather_kv.rs: mistralrs-paged-attn/src/cuda/backend/gather_kv.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in mistralrs_paged_attn::cuda::backend::gather_kv::gather_kv_cache at line 54. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-paged-attn/src/cuda/backend/gather_kv.rs\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":"mistralrs-paged-attn/src/cuda/backend/gather_kv.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"df31d551502b7839c7b7fb8f8bd4951ec6073f048638a9d420b7b45f834614a5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/engine/cuda_memory.rs: mistralrs-core/src/engine/cuda_memory.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in mistralrs_core::engine::cuda_memory::maintain_device at line 235. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/engine/cuda_memory.rs\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":"mistralrs-core/src/engine/cuda_memory.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb53b5f30e32a2556f4bf59f24e287639a4f993db45d341aedbbdf3e27f953f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-server-core/src/metrics.rs: mistralrs-server-core/src/metrics.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in mistralrs_server_core::metrics::observe_http at line 214. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-server-core/src/metrics.rs\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":"mistralrs-server-core/src/metrics.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c6332e189782c31a5988fef9ddf92d4f40d1ca4bbffdeb5fb379e4b3d87160c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-quant/src/utils/ops.rs: mistralrs-quant/src/utils/ops.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in mistralrs_quant::utils::ops::fused_glu_quantized_bf16 at line 2981. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-quant/src/utils/ops.rs\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":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":2981}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d4072b9ab3c91eeebc9921849183a8cb10bda8e8061823e6252e673ea228115"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/models/granite.rs: mistralrs-core/src/models/granite.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in GraniteMoeHybrid::forward at line 2180. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/models/granite.rs\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":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":2180}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee143c4c707377c41ca8c0aa3fa8fe45743a1612b0328e9d330416e5eb78363"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/paged_attention/cache_engine.rs: mistralrs-core/src/paged_attention/cache_engine.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in CacheEngine::allocate_gpu_cache at line 201. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/paged_attention/cache_engine.rs\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":"mistralrs-core/src/paged_attention/cache_engine.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"159bae72289ed75e9a1815863f07410d8e7dd2c102fd451ca1d938779951f9e6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/gemma3/text.rs: mistralrs-core/src/vision_models/gemma3/text.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in TextModel::forward_embeds at line 599. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/gemma3/text.rs\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":"mistralrs-core/src/vision_models/gemma3/text.rs"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3169bfbf7e2f75bd79a12219ea2d9ea500649496a33be2d6b5882bf687174b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-quant/src/unquantized/mod.rs: mistralrs-quant/src/unquantized/mod.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in UnquantLinear::forward_raw 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-quant/src/unquantized/mod.rs\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":"mistralrs-quant/src/unquantized/mod.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf28fe4b5d106e6fcdf11fb8c9d45cbb93cf343aeffe24937bdca4d3eceb17f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-cli/webui/src/lib/services/streaming.ts: mistralrs-cli/webui/src/lib/services/streaming.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in streaming.streamChatCompletion at line 21. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-cli/webui/src/lib/services/streaming.ts\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":"mistralrs-cli/webui/src/lib/services/streaming.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f9e367e3fb1cf72c4d6faf20d7dca2fb44e8dd9f37cb0e9277d0a47c2e21a2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-server-core/src/speech_generation.rs: mistralrs-server-core/src/speech_generation.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in mistralrs_server_core::speech_generation::match_response_with_options at line 373. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-server-core/src/speech_generation.rs\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":"mistralrs-server-core/src/speech_generation.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"2790bdf5aaf38fbc66a18df45600c7b86b01a6f637992bd863faf946873f81b4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-paged-attn/src/cuda/backend/flashinfer.rs: mistralrs-paged-attn/src/cuda/backend/flashinfer.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in mistralrs_paged_attn::cuda::backend::flashinfer::reshape_and_cache_flashinfer at line 71. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-paged-attn/src/cuda/backend/flashinfer.rs\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":"mistralrs-paged-attn/src/cuda/backend/flashinfer.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2099bc73ab5a2673246ce65192aef64fc640edf74bb6aeb6fa82fad0400d41"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-cli/src/commands/quantize.rs: mistralrs-cli/src/commands/quantize.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in mistralrs_cli::commands::quantize::run_quantize at line 238. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-cli/src/commands/quantize.rs\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":"mistralrs-cli/src/commands/quantize.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"a25f914f4aae00f088d34c7a5acaf80ba965c18434a7cae7c834754090556a87"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/qwen4_exp/text.rs: mistralrs-core/src/vision_models/qwen4_exp/text.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in Qwen4ExpTextModel::forward_embeds at line 810. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/qwen4_exp/text.rs\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":"mistralrs-core/src/vision_models/qwen4_exp/text.rs"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"130c556235ad6e68e0124960e450f6b18adf455dec95ec78183e8d26d44e4f71"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-paged-attn/src/metal/backend/paged_attention.rs: mistralrs-paged-attn/src/metal/backend/paged_attention.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in PagedAttention::metal_fwd at line 321. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-paged-attn/src/metal/backend/paged_attention.rs\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":"mistralrs-paged-attn/src/metal/backend/paged_attention.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e6ced2b39f7949881611e4c0b763845fadf4826ef78c46b7095f6a7e512e55a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs/src/agent.rs: mistralrs/src/agent.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in AgentStream::next at line 199. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs/src/agent.rs\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":"mistralrs/src/agent.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"afba3c8af440aa835c2fa334a47af3b705e0610e9cf58948a93185bd74a4b4c6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-quant/src/safetensors.rs: mistralrs-quant/src/safetensors.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in ShardedSafeTensors::get at line 728. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-quant/src/safetensors.rs\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":"mistralrs-quant/src/safetensors.rs"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd1451fb034e07cdc025ec1aa8480d33adf1cc5382f0ae59ba0a05f6e1319db2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-cli/webui/src/lib/stores/chat.svelte.ts: mistralrs-cli/webui/src/lib/stores/chat.svelte.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in ChatStore.generateAssistant at line 378. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-cli/webui/src/lib/stores/chat.svelte.ts\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":"mistralrs-cli/webui/src/lib/stores/chat.svelte.ts"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"66378b17a91079fd3f4a2abb2386174bdd91315d25e21903da12864e1ea51a86"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-paged-attn/src/metal/backend/gather_kv.rs: mistralrs-paged-attn/src/metal/backend/gather_kv.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in mistralrs_paged_attn::metal::backend::gather_kv::gather_kv_cache at line 9. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-paged-attn/src/metal/backend/gather_kv.rs\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":"mistralrs-paged-attn/src/metal/backend/gather_kv.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"169fde9e7d39c0d8f8fcd3ecbe0f79d9e711fb01fd31bc3fb79905d0cc4f34be"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-quant/src/afq/ops.rs: mistralrs-quant/src/afq/ops.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in mistralrs_quant::afq::ops::afq_mm_op at line 335. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-quant/src/afq/ops.rs\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":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"db18185e0c524d6f2b3d342189b6ba3505722f273ff90dd4b145973823acc9d4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-quant/src/cutile/tune.rs: mistralrs-quant/src/cutile/tune.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in mistralrs_quant::cutile::tune::tune at line 509. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-quant/src/cutile/tune.rs\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":"mistralrs-quant/src/cutile/tune.rs"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"e102ddc486ad1f5f5e7cd8c5f4f2bb51a2cb3a06031a2c01c7712918b6644c6b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/gguf/gguf_tokenizer.rs: mistralrs-core/src/gguf/gguf_tokenizer.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in mistralrs_core::gguf::gguf_tokenizer::convert_gguf_metadata_to_hf_tokenizer 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/gguf/gguf_tokenizer.rs\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":"mistralrs-core/src/gguf/gguf_tokenizer.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4093155edf69c200b7947be022cb45fcd80b4c819217867dd8570e8ab184f92"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/pipeline/loaders/activation_memory.rs: mistralrs-core/src/pipeline/loaders/activation_memory.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in mistralrs_core::pipeline::loaders::activation_memory::model_activation_memory at line 549. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/pipeline/loaders/activation_memory.rs\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":"mistralrs-core/src/pipeline/loaders/activation_memory.rs"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53a32dd24e0a8c830e9e7e85fa193c9881de61e2265726d78cb6cbce1806d79"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-quant/src/cutile/nvfp4.rs: mistralrs-quant/src/cutile/nvfp4.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in mistralrs_quant::cutile::nvfp4::validate_input at line 195. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-quant/src/cutile/nvfp4.rs\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":"mistralrs-quant/src/cutile/nvfp4.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"679a7c7bd47bfef34463855f58188ee2173437334568b3d6fe412d035de5c971"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/toml_selector.rs: mistralrs-core/src/toml_selector.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in mistralrs_core::toml_selector::loader_from_selected at line 808. 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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/toml_selector.rs\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":"mistralrs-core/src/toml_selector.rs"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"322546c77d740c86dfe5247bd126939a7ee4cb0018130ab4a3a38bc9a56950d2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: mistralrs-core/src/tools/parsers/qwen.rs: mistralrs-core/src/tools/parsers/qwen.rs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is mistralrs_core::tools::parsers::qwen::parse_qwen_tool_calls at line 119), AT OR 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(lfm3): fix tool call special token parsing (#2531)\u201D; \u201Cfix(core): only honor tool-call and reasoning delimiters emitted as special tokens (#2455)\u201D; \u201Cfix(qwen3.8): fixes around gdn rollback for qwen3.8 (#2377)\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-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 21:43:10 -05:00\u0027 --until=\u00272026-11-08 21:43:10 -05:00\u0027 --full-history --no-merges -- mistralrs-core/src/tools/parsers/qwen.rs\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":"mistralrs-core/src/tools/parsers/qwen.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"889a98a0267653b2662ccb15bad65c49d09a4dac46f8f6d8ee690468f2e4fb53"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(EricLBuehler): https://github.com/huggingface/candle/pull/2223 will make this nicer"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-vision/src/ops.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"f73a1440e4d7ec57597498aec440c62138c8e037e1b4726fb2aca4a54d34561f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: replace with best device? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":1334}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ac16dd73b1c8f36765b29d4c45971c7a59320cf3720d459bb4fe5490127793"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(EricLBuehler): Optimize this by using the gemm parameter? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/lib.rs"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"426087d865bf18b346d886f9cdb017c92cba5fdf45baa80b0fc94c0aac86dc9c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(EricLBuehler): Optimize this by using the gemm parameter? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/lib.rs"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e37f2f4650fc7e23ef8cf11a53ec9e665ff6336d74178488dd222f7abc8975d"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: We need to specify \u0060T\u0060 here, otherwise the compiler will infer u8 because of the following cast \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/safetensors.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9320e8d9695d0db9b5541f0c7452ac326e968bea4c16fc81efbd70744d88496"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: We need to specify \u0060T\u0060 here, otherwise the compiler will infer u8 because of the following cast \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/safetensors.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"0576067f0d0c34d72a39e18d25aa7e722c7dc71583dec088ef63cce809c12d3c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO just warn? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/unquantized/mod.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a35508545bb90679813adbe08dff1cfb51357b39b6cd8b90389c20c00e409a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO just warn? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/unquantized/mod.rs"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ac6e22ee9a323d42bbde4c9bcd1118d95352e1ea011945b7f626b1835065f5f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO just warn? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/unquantized/mod.rs"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ddfb81e18892e34457a4a1cb59a35e06d4ff272820ade76941221c79d1c453"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO just warn? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"6690b3794d8172c1553c07a04cf26aacfa6df1ef0bc233000bb648ad895685d2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO just warn? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":1127}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ccb1e3d6df1615a808c10e0eea2d31f0d6613b88971f89739d91471ab0ba6c3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO just warn? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":1184}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd73ef78a2526441e3dea608421a6e14211c5ebbe1b50796908c60fc5a8497b4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO we need min_all \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/hqq/quantize.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa2711af197f12a5eb38f9d509565a896eff15b4775c7d165b7e862c8083e209"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/gptq/gptq_cuda.rs"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"544a08e34c7b6e1974a85993e70f995499b923036c84692f4e67c5ab73e620e3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/request.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"95837b430767dba40c9fad248ee6bbf217a91b84911e4dfbeb1338537e400222"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/request.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb241fd01f9585d8070236ae985d0cb3547bd9b04f4af78ff06b9edcdc3a36e6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/ggml.rs"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c92ab7285f5dfbe1f45c719ebf872673d3993c046a81ab4ad785a4a7c00d6f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/quantized_llama.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c0e5685063a2dbfc520574a3a6f1b8afa53fa29c76dfe88bcc4a9e0d527b4b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: can \u0060nested_blocksize\u0060 be None, default to 64 like bnb? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/bitsandbytes/mod.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"5482e5b95af448520d4c153ac85295185b32239a42fa14184c74c65ed5d001c6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Handle head sizes that are not a multiple of 8 via some padding. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-flash-attn/src/flash.rs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"122e35fedc770079664cb35647ce37e17bcbc8969641e495100b710d0ccb1889"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Handle head sizes that are not a multiple of 8 via some padding. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-flash-attn/src/flash.rs"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a300f9c3bc27d353d509e01e3082a5eefd09621391302cfee7d323c04b4341"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is a hack. See https://github.com/LostRuins/koboldcpp/pull/982"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/sampler.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c5bd4eebeed20bd08db4f131830fead7636b2e0bb50e9b8d679953f44c1a75"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: \u0060from_mmaped_safetensors\u0060 has \u0060xlora_paths\u0060 as the 2nd param (_valid but params need to be named better_) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/utils/model_config.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"454ad921274ac0657cccb972ede8905bfa922b5123ffac7a145715629d6278d1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Should \u0060is_silent\u0060 instead be referenced as a global read-only state? (\u0060AtomicBool\u0060) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/utils/progress.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"a274dd64c3ff46610b252c8da45c7a33b2f4a3cc9f2693261b78ecbd702b025d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(EricLBuehler): separation of concerns. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/utils/varbuilder_utils.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f4e8b06556e39fa15012b3ce1f4bdbe932ab55dc1594441061d68e777a7980"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(EricLBuehler): separation of concerns. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/utils/varbuilder_utils.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"82b3008df70b205533d55d27b5dcfe482e4f913fff3635caaca1caee59b4258c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add better context to describe intent / requirement: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/utils/varbuilder_utils.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"a79653c1a8ec658d4abf99742d95429bfa9a16e87138d41636e32daf0c87187c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Should this branch be marked cold? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/speech_models/bs1770.rs"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"e009c2c507dbfa8cbccd451e61388ebdf774cac90f13013236a63b4d4e2064bc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: get block tables/handle it for PagedAttention \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/amoe.rs"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd50b6deff5e37ae46fbc72a6f4cedcfe8e91087a494740e185aafd94b7235e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO incorrect for PagedAttention \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/amoe.rs"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c06bc0e52b92a9cbec45f775ca2e88de8fd9f527ab6996bfedf55fa63a7b486"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(EricLBuehler): we know this is only for caching, so its OK. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/diffusion.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7933f706de34f71955016b7fa314ee2d9bb7704b1d935ee1bc942f8f5b9b9b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(EricLBuehler): we know this is only for caching, so its OK. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"04df6ef44d048b69462f8a10e8f566f454181e0012c904b02e5d6ea49351c606"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(EricLBuehler): we know this is only for caching, so its OK. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/speech.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ba2d74ba9a8651c11b54668cf5973dc6a09f74522b39eb0d5c64b20eebe8a7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Replace is_xlora queries to check via kind instead: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/mod.rs"},"region":{"startLine":1460}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6c8e9ccceab6dff2476dc874f450c0f980fd2cc79b8539798dd715b147950cc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: PagedAttention is not supported with CPU for now. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"06842d0202a80ad9c3f2b77b98e4865d8165f1998e9a204ffc079892d70c01af"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: PagedAttention is not supported with CPU for now. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":1050}}}],"partialFingerprints":{"codehealthFindingId/v1":"3349556f4551eee7b868b34c130562c93b8209c6206cae393cd64a12fb869c4c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/embedding_loaders.rs"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a797181b19abd22223240135066af450b8e8f42eccf56b6cc5a185d42a04387"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Normalize value types to spec \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/quantized_llama.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"94505a7ffa5fc39dd5aee2ca0b4a9faba0e0c79749346f004952b072544d2b77"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add support for additional tokenizer models: WordPiece, WordLevel \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/gguf/gguf_tokenizer.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aaf4ba707bff2e2614c10aae9f8fbaad9fb3260491b7050f0bf3601c9c269ba"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // - Case-insensitive variant matching (TODO: is this desirable?) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/gguf/mod.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"a66ec544f3aa752683c0d18bdcb74f9d8377e083910529a5cfc44f72f571638e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Use flash_attn. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/diffusion_models/t5/mod.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"feebafec4a9c3e0e64d118d3df03f4df8be977dcecbcc66d6b04372838eff7d4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: position_bias_masked? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/diffusion_models/t5/mod.rs"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b66b3ed6bed06b8cee44d4937ba738a89847f24329169799be152bb098ab940"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Cache masks \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/diffusion_models/t5/mod.rs"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1d8fe1a608ffccf314ef9e7bd8e2457412da2d794dadabf90e28ff6391df2c8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO rewrite to be more similar to https://github.com/huggingface/transformers/blob/f6fa0f0bf0796ac66f201f23bdb8585de1609add/src/transformers/models/clip/modeling_clip.py#L142"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/diffusion_models/clip/text.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb49ec43b8c83f80f673b18d1e8db7949bf55b77fb2dd93287b0042be23b524f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: rewrrite to newer version \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/diffusion_models/clip/text.rs"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad623e1d22d74557aa53e4ad87a10590a55258c85149f2420f8dfb2fec5d0210"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: bench? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/attention/mod.rs"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"827e49244b5a649276d490aa125157a5cbe016ba2f04c8b96163f9b4aacf42aa"}},{"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. ADRs are expected here because \u0060mistralrs-cli/Cargo.toml\u0060 makes this repository a deployable product (line 16)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/Cargo.toml"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc568bbc675b3a2eebd5487d008717d286060f0f4b7ad9dfe3fbe05c25fbff5"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060OpenAIInputContent\u0060 spells \u0060AI\u0060 where 23 names in the project spell it \u0060Ai\u0060: 23 of 24 names in project mistralrs_server_core spell the token \u0060Ai\u0060 (23 of 24; unit: names in project mistralrs_server_core containing \u0060Ai\u0060). Peers: mistralrs_server_core.handler_core.OpenAiErrorBody (mistralrs-server-core/src/handler_core.rs:328); mistralrs_server_core.handler_core.OpenAiErrorResponse (mistralrs-server-core/src/handler_core.rs:337); mistralrs_server_core.openai.OpenAiFunctionToolType (mistralrs-server-core/src/openai.rs:630); mistralrs_server_core.openai.OpenAiWebSearchToolType (mistralrs-server-core/src/openai.rs:636); mistralrs_server_core.openai.OpenAiCodeInterpreterToolType (mistralrs-server-core/src/openai.rs:644). Rename to \u0060OpenAiInputContent\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/responses_types/content.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f943eef4741ef033f5c118e723659cbb519309c2fe30edd10e14893c1e1b0ac"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 3 of 18 project(s) overshoot their size bounds, lowering Project Cohesion to 6.7/10. The most over is \u0060mistralrs-core\u0060 (342833 LoC, 1466 module-visible types across 75 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":"7b3bb9b506ae756ce6ee51a251d1938dbfe081faf340ba06627ee025905b4712"},"properties":{"commitSha":"6e0d4a6e53e768022efa585c2f6facf45faa4f80"}},{"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":"6d1a5cb2e49dcf727a8d2310ecb94c2ab3725417a430e0fe5fdbda1801f0df85"},"properties":{"commitSha":"6e0d4a6e53e768022efa585c2f6facf45faa4f80"}},{"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":"c700ea0b67b1f3642d92482009f0e124786219e9278e749859b8a376fbed014e"},"properties":{"commitSha":"6e0d4a6e53e768022efa585c2f6facf45faa4f80"}},{"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":"81323f605bd624bb533132e722649fcc53cc8b5a5dc90ba1c1a2b97cc5d1ef24"},"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":"b15584b831092aae7b8c11b3ff6324f7a49e178e06643ee8562e9dfc60707b12"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05: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":"0ef34459a379b4b7e919bb19e4d580d0846e3e0d970aaed3ec962abca01ee55e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"979b930715010bb599f1932300148e121edfd84d62a77c0304183d7053875e87"},"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":"a1f31e3fc38e806c632551480508ae27b2701acddad0a9d80c648ba1fc9463b3"},"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":"9da5ff26bb9af4074fe03f7e7cf2644a6e084be31aadc793b9438eb66ec6ddaf"},"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":"e8f7a539b26625f6de8a768a6970544b5eba3f3e7b3c5a0e8cb38f87c216ee23"},"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":"c1bb7814097052b3b9e49cf20adb5ffa3c94da3abc00863955683dc4725b2e91"},"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":"03edbc1ba025ae440af1a72851857226f14994db0a18cc6e9de69ca6c2ec6882"},"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":"cb0cca18d0f12692711c4bdca79f0dd4a621df1dd3e8308a48ea79546b15225e"},"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":"ae4b19a624088a80ae967fa19fc6e2d3b4d86bf95f6afb9918729adad8224e32"},"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":"2cc22f851d8564eaa76884757ab224f3ffbefb607db993d85c935b00aff39c5a"},"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":"c7f75fc93d3d0b765ee9f071b962385b2a57ffa3d8f78029ce4ea36fa8e5c47e"},"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":"96f88121b035a898a6759141862415469563ae4858d3bd2449d90d5e5ba04a57"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"82a1893f62fe8dee3fcdaad2e3da3e94b86729172346ee8d336b86cb9d8780c6"},"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":"594ba20856faebb900e8f635978e37e019356a968254d953432a089b831a6265"},"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":"6b562a86ba4fad32d6ccdcd6ca2d4c34c2236a59e5d8276adbfb83a1790cdee0"},"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":"ab979ab2dc46515c14a5a4f004fc991e04e40404eedb88f91aeaa5242f0df4a2"},"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":"f5ccad42fd15b1de9b5359708e5519cfe5e70b8c835c694dbbf717f705bc5828"},"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":"36faebbd6150b888c1ec410b3e042731ec3173fd0e19efc5ec464549a43caa2b"},"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":"c4014e7719155abad9ee780737c6a29d8c31bcf1e70b94286734d74edc799576"},"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":"a9864138810dda61d02fba30a1b8eeeefddbb2dab89d7bae5069cabd2359f2b7"},"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":"61430707d8a532698576bf1ff3323028cf63727a2eaff3e733cb143892468def"},"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":"2ba1bd8cd7cc00ffea37dae7b5e07643f624b23874e3cb0759fc3e4878f73406"},"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":"97b7b72da6c2e896fb1fa53c1b9d5ef5d1c07e3361c92f3673331098a218e053"},"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":"4726a6e3326470b9c957c1fa1e23b1ff266bdfc9c4b2418acc7f1bfa368367dc"},"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":"1fe915542e9ef9e0e2030d13e5e967c9edc93ad44e0043112709e63c307bce8b"},"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":"52291dbb2787708cc201e5bba13213104dc5509f9554503e7861aef5241195e7"},"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":"4cc891bbf4601a4694860416f4f9e97adf387378c090ddbadb02e4c4774f316f"},"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":"7e9323362030c11a89ee75d7211b2720333c55d8869ae68ed4aebea060c08384"},"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":"a89a2398ad081248b047a9836a064dae05f9cf7f58c091d6ef0855c8aa0e3679"},"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":"8857af73873f56efdffb3696ec6b8e3a97c386c9d308ad69de2d5a89d54e861f"},"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":"c8cb2d9007f0a000e306b19d0b15aecf9ea64cef55fbce4b2690f75a83905293"},"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":"b687b7aecdf674e9b660239a8603606b8015574f2cf32d38d2fef50d60619d7c"},"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":"8889f803ea71a7443ce40b0c24e6039a529a80e4a24cc6a4655031b17384e9b5"},"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":"21731e637cce8c5f5c87631761538de38fc2ecd87361708b7555ca84d607d6df"},"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":"1b511d6cbd70f13349aa640dab45a85f1c1d2a04db823e0c4c0cef2891181515"},"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":"46b7575f279ca82125395d5f8513d5db93a7f3a0d18cd019ccd64825400a7f9e"},"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":"815622be2cf80caa1fdbae09e79b71ca987aad0d35243076d11c91208c4e5166"},"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":"d302734be4e98bd324964484cae4242a57216790575642e1e2d89792a6546d2a"},"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":"3e9e9d938b2c8da22bea3ca1a54d8a9c4f22108683329559c9cdd3187495ca2c"},"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":"247d91ba1719dc38b230ca4d731ac1875898aa51a459bb073e0dbfb3821473d2"},"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":"50adbcd711dca68f872cf2be71adcafe71227cad845e99d760eb77a975a1047e"},"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":"09389a628826c8c9798fbafa9d3a2505938fd9b73928bf3ecb8108fb8cdd6156"},"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":"2ffd1a0fac9b9c3aed4f1e884ff54e80080b8d47e321efe6346cb447a83830ad"},"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":"c2348febc371a90cb81c0c0eeac91bfc61890c2106be98249eb532922a7bd2b6"},"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":"b21ef51d97f04d1a8b921e635aca9ef4e877341aa2c3b0f6eaeabc61234774b6"},"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":"6504d8d1633fd2629c17cb911821ef9d4b240f323d5e1ebac2df01ac4726a04a"},"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":"e7aea5ad354bb944fe749ff0e5f574830ccdd11e2edd1cb16678dd3d93b52205"},"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":"4f51d598102786d6fe7ccdb4c5ce07901ce46b3341024418f2338de4b1f69943"},"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":"7b1a632074af0e83b07723c8784f1e57f2e6a4e57cd0354f6c84b772dd637302"},"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":"4dc8f6b7485452453597012ff429b048e689241f9f27ad95519596d0f9488269"},"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":"e82730618804717bbbb33bba10c46a1fcb69c3690ae1edb86b64e4015a154684"},"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":"63c4a093cd4d8270d8663d7b47af1062c73ee032c2d6873d217251d788ab2402"},"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":"fb4a23173542d7a1718b502d857067e50a3ab2bcd9e6cbc8252c0d9b2bd57371"},"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":"8d29b94038490c84613e9786e27a95b1e6778b882160e1bb8b3d7dcc9422beff"},"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":"9a6a82c294e2d320ac93525f8b5e55076323496d7d6498193a839a4f5fdce7a8"},"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":"05dc0ccd1dfeabea3b9cbf6de9ffe2d0308f9cfbbfa3ad0db7304b0820957e0a"},"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":"134e96fa557a22dfe5be9d2848c95ff8c5f4969bca01716a1f275081f21006b0"},"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":"f96de53a9c41aa9762bf4bb7d8c6ceb5328ca215e45d4016e18c2ff1458e371c"},"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":"cb0c607bd165f0cf3b34a2f73b61c1ed49abc3b4ce9af13dabc25e65096c4298"},"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":"d2542699b904854fe2d3bb29c559aae2c03652694d5ce26390e798fe91bdf8a8"},"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":"f942f498d240b67fee82289eb3ff4f9679a803d0e57a79d106f90c084ee30aec"},"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":"46c53f98ea0e81d662b6df36db307d113c8cbc723fee493dc03a903d0f7f69f0"},"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":"75dba5000b9f74321c9ce7ff79fafaa3057d24c1a64b03ef3eccce4db39123ba"},"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":"6895ce75f644b3358877ae9e43be2b8f0fd471d2178d0dd7812de4cbcf3a98db"},"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":"cad3ca26d6d04272617977309a2cada5948bb1b43afd123451c856641ec77382"},"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":"d541a0eb3b2dbe5998fdd42a98fc8d42f993bd63318277a56aeb54e15c268e50"},"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":"5af221a0a713df6aa43875e37653ab43744fc29dba3d5ea44eaf351c954cd1d8"},"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":"3405eda6bfceda94d5b3fab463bd23186d42248b3cf7970bab078d149849ce32"},"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":"29992f9a9d33e6a88e721389aa5a486cdfff7988c917efbf25d6cec4e6a46ffa"},"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":"27b9789528c2328f05f55f021f4eb3f23b223f42518afbe5a90a08eb7db80014"},"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":"855451eb322b80e9c22309f05343d55d411160048b3059476c34034cdd161958"},"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":"f82a94b547e583107475ce443fc06e8d421287b4914413339b69fa88eebfa9dd"},"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":"9ef62fc41c85c41c7fbf697e00bd246f9f4484e35460be51c770cf74f4705f31"},"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":"3a026a3eb7cd15b3a5357c8fb99723041171195b53d4226265d0e082cca4f871"},"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":"129c6af4c7e5a8632e8e96f33a011917b7cbf2e5b33594f1bbc5b43ba48dc53a"},"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":"865c1256b0af6cac7fabd52ec1703a6840a81e82c2cc09619e5e78e47af02756"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"5caad4f069fec1c4bd005a29adc45fe35d10a90870713dfb96bbb04577d79b3b"},"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":"2e92484af1fef3b4dcb7c78ad7c99b2e3ef9afcbadf8a52158104508ba920832"},"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":"d96a3dd8044ad8c4f659f1357ddd585fa02c7569867c4d8e193e46cada5ff62c"},"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":"8b56acc822032228d4ee0db7d5ad5309cc13e7d8de225309ce243c2c79d2234c"},"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":"f95108069e3f57a4bba666c24426d7a2e71454e1c1eb1b6c741dbc18edf7a2bc"},"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":"e8e18d2a8f20376724197f4821264a0a9f0e273d56749195409cdb6066877285"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"be6545626d6a9059eb501875b873a8993532c71001eec4897796cb0dbc2c7db4"},"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":"1e4ae5d0b0de8bca57732e52749181d61f6090fa316952f84024b4661d917eb1"},"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":"5f5a1ba5b5e209ec8912da2a385b2a6294c5f56a2a2e45acd74ea384eaddc212"},"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":"804073c83b7c7c9ae6207c56177dc02c63fff031ea3d85113c185b950c5f30f8"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"6d7d90df32a41d0b22764ca9e9e277f2d3d8367397fe4cefab8be788bc8b8cbf"},"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":"49c16b6fbc91670e61b639ab9c9270b4df42b6b11889eae216a02e4dd9c52b80"},"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":"85aedaaa01133e9a5f1dbafa859ca531b284d121be1ed3142b9da3fd27e9776d"},"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":"0687424160123dc6400dcd7c951218a45f955a8035963ae0ac9fa855234869ec"},"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":"2f4143beb0ef918f44ca7761498ddce0de7645b522ae513dd83dc2613bf2fd66"},"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":"d58c8be7c800efe72f8e1520291c52951ea04179303d832beb2a8c1ab4842942"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"3026c112dd3ac8a773ef27f9ff3c6a0db3165f259ba40b7d56c2763c0dc3e74d"},"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":"fd7d399340b537a745b7e875f85e4ecec284456b0a410341cb584748e9b2039a"},"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":"40213858431064a8f2d6c6448cfcecac777e732fa3e60ae1eca9c8a8df84aa7a"},"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":"1daaeb5fbf8afadbc59c8f3bd5132d231d1e9bd89d8e01b7ec8c6cd3ce91a29c"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"8614ad7a064b8de11d7045d589ea1787c79388f4f69321f0094aae75829800fa"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05: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":"f37a623e29df8e8bd73d6418a3edfe264ffae2771e6b8c2c641ed742b992f6dc"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05: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":"b54ab833de89206a9cbf86528ef290f8e3beb8ce3587360c5b2e7bdd2f588c77"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05: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":"2b4ada7f3e144cdd2c30abd852c599fde3b4cf0f89e4f0273a459576ea897a05"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"867c3f6213a2551628267070f63d16cd88a05957d69faf9cdb16eb87a90aae9b"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"7707be8ac1643232d3fbdeadb88ffb751b480f76d3f03aa3bbf510ae42b595d2"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"a82fc01a565e9e68e552e502abe84669e303654b570a68a0fdbea9e5fbfba23f"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"a032b09f9aead866f1dcb4c7e3544eee487bc664b2a702b115ae6736383b463c"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"8159ed5cb5c4db4b31aa500172ecda8360dc0f10bcf0270ce66a7a173976d52f"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"765bf9b635ef26aff0f26f9ded7bce85f6a6323476faddd135e0c3d20aecef42"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"2e8d8de5efea5d7a4f5a87f1d10cf4bfcd0592cdbe1fb6d87f7cbbcfda3bae92"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"851dc8f39d484f5005afc0fc2c50d3f30dc6e726041c76444e048797112b0539"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"612ecb023c31d9ec523d933d2c6facb1a479277b8e2a6219595bd549edae7b01"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"b254ab12d7380b389a841af002e1241a30f6c5bc40004bcbaabd9b5a71747360"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"322a91978aa030a464f2755bc8a45adcf4675ce461da59ea142e0a9205fa54ce"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"ecfc86e6710dff48cb9c5511668467ecb9770c8d643fd5f524db67425f8d9520"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"8ae02a0782d1d1a87b51d4d88dd7e98baeb4b911f0d1f5cc6a0e832407b63e11"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"3c90a7fb36860fa905a6cdcc1b097dc54ff50eab560155bf6ff1bc53029adc30"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"be264a294271e29145a8501af4b0f7718311e208362566498d4b1d4b565d55fc"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"cb28fa982f4c405d1ebc4a0dd7a53b651442098fb1d4c938a86be85d08da3da3"},"taxa":[{"id":"CWE-191","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"b1d465dd877cd8a832255bccade155dfa345a8cf5be28901e62e9dda6250f521"},"taxa":[{"id":"CWE-191","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"7b2c596a71f99a380baff7e089f9efa69fdabb1e82a0e6c4b11a2e7f954e21c9"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"57c09d896d955ace101e8e66887020cba0778328b1d8e8f5147c83e5b614a740"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"c5306a757f6a57aec6f967672c05d76e0e5a549a0af98576c8c025b65193f70b"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"97d99858fc12a10f7dd5663a4e42e7203411383f7c16c18d436ec220502f76c3"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"aa0c146d366bc1180324857cbd478174f92a25121ab6a07d20fb867b029ff902"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"01a2394faf7ac08565b6c0961f6a81cd527b45ab6729923fb1a4b08476158119"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"c7b4b7358669b988591c852a610b61fdb9b75a14719f12fa12a5db4809eb1b47"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"36faf9a59c0ca74dc39d7540eec144b9142ca268a79e50f503ffc283232352b5"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"9df52799e7b7eaa0b5970dff64f4698d0437c5403e6f1eb313559fdb518eec53"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"abd081ef984b5665c12fad559593e4070b0d369526e6e8ffb26095ba5e2be616"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"e64a85557e783b404a172fc9b4c92d0a8d12dbf93a9624f7860c9dc7c053455e"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"423f274256610b856f3942a60913dc49a565101cee85efcf47763acdd9238028"},"properties":{"dependency":{"package":"pyo3","version":"0.25.1","advisory":"[GHSA redacted]","aliases":["[GHSA redacted]","RUSTSEC-2026-0176","RUSTSEC-2026-0177"],"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":"759d36a63e8483c4a467399ff199fa57fa2e02d89ef311720974588edb9516d4"},"properties":{"dependency":{"package":"anyhow","version":"1.0.100","advisory":"RUSTSEC-2026-0190","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":"aaa86fae8d91e7111ff2baad1a374ae0d14fc8de7d623061f570a68e9ca56760"},"properties":{"dependency":{"package":"core2","version":"0.4.0","advisory":"RUSTSEC-2026-0105","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":"c4a0c58aca13bc848c37d4c3d5bcb90f8e046f8df5b386f5a3743d0625ad8dae"},"properties":{"dependency":{"package":"crossbeam-epoch","version":"0.9.18","advisory":"RUSTSEC-2026-0204","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":"a42ca7416279f52063a649dbc505340ffc7c7a5727193e601ae1de8d6db75e3d"},"properties":{"dependency":{"package":"fxhash","version":"0.2.1","advisory":"RUSTSEC-2025-0057","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":"2541bd51d0a858f4bd3226fe3b4d1512619039c8d6b3da4e7c54b10a3b3553da"},"properties":{"dependency":{"package":"ocipkg","version":"0.2.9","advisory":"RUSTSEC-2026-0449","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":"af0e8800030c712ae4ecede7daf70c40ac31fc034ebafe152df4e3f4fd3abee8"},"properties":{"dependency":{"package":"ocipkg","version":"0.2.9","advisory":"RUSTSEC-2026-0450","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":"5922a5beeab5ac077ffb485a783ad545036e79b56239f83da38f3fb84336b113"},"properties":{"dependency":{"package":"paste","version":"1.0.15","advisory":"RUSTSEC-2024-0436","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":"d469c4cdd0b2892278c4ee90c01a5a8ea4872a98733c483777e04c904cfebdfc"},"properties":{"dependency":{"package":"proc-macro-error2","version":"2.0.1","advisory":"RUSTSEC-2026-0173","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":"ffba3a9076a73cf66b6daacb5914c478fbdc74d1383d8d2e4003b6bf3aa7b43d"},"properties":{"dependency":{"package":"quinn-proto","version":"0.11.15","advisory":"RUSTSEC-2026-0338","aliases":["[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0339","RUSTSEC-2026-0340","RUSTSEC-2026-0341","RUSTSEC-2026-0342","RUSTSEC-2026-0523","RUSTSEC-2026-0524"],"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":"28f0bc6d34596072b24d37b19b745b7394ed4ce99a53e032439b262379e02dc1"},"properties":{"dependency":{"package":"quinn-udp","version":"0.5.14","advisory":"RUSTSEC-2026-0538","aliases":["[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":"d44a25813d8a9e18eb42fa5350a972c298292d454155c6472f091bfb670363df"},"properties":{"dependency":{"package":"rand","version":"0.8.5","advisory":"RUSTSEC-2026-0097","aliases":["[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":"e9cf74773a6e34d2f2cd5f4cc024a1a57cb07e5917cf84c703df779cadb57013"},"properties":{"dependency":{"package":"rustix","version":"1.1.3","advisory":"RUSTSEC-2026-0486","aliases":["[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":"0b4d0bd0ea0d3a81846d91c999f1c98d63806893d9b8b2fd8c703eaa81f667a7"},"properties":{"dependency":{"package":"tar","version":"0.4.45","advisory":"[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":"c78c7c829ffb431fb928ff724c9cf0276a780b7b7d9be87f32343d1209a988f8"},"properties":{"dependency":{"package":"webpki-root-certs","version":"1.0.5","advisory":"RUSTSEC-2026-0383","aliases":["BIT-golang-2026-111943","[CVE redacted]","GO-2026-6809","RUSTSEC-2026-0381","RUSTSEC-2026-0382"],"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":"232458f1e861a473d11b103db83010acd3c76ee2f5eb5b53069ae6f2eda9586f"},"properties":{"dependency":{"package":"webpki-roots","version":"1.0.5","advisory":"RUSTSEC-2026-0381","aliases":["BIT-golang-2026-111943","[CVE redacted]","GO-2026-6809","RUSTSEC-2026-0382","RUSTSEC-2026-0383"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D31","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":"fe2d688610b51e0a5a02c7c5dd1724a4986e40f2689fb84510e2ec0164c27d6a"}},{"ruleId":"D31","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":"5f2e4a5f0e8f060903ef6dc8e02924a3e2668dcb16953b8a5a5f7c144686a202"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","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":"76e45a35dec16a83b2719d93c3e605120ed95dcfcffe0c323f447b1d8c41dead"}},{"ruleId":"D31","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":"c2a021d9a7b444aff092d5a444e98a6b38e57012cfbd4fd02b5d23e1660eb847"}},{"ruleId":"D31","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":"65dd4a07e294c7df01fc7b9d605d97064912089c794e6138cb73370c4e15c09a"}},{"ruleId":"D31","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":"c489f50a79266acfbfb4e16e801da6a11fc67326dd8925f58b983bc3cab99e8e"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","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":"58c7937a073ebaeb64b02dc818001203146a910afe33f2b57e2778e4a6455988"}},{"ruleId":"D31","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":"5cfed0ee4e80785ce23c7083cffdead9acc6c64f9dce56a00ca7178bd3d7bee5"},"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":"D31","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":"c00c6e9c5edfbf71ef850b8040f1c12e6d2461307d6f9d0acc04a2d0716470b1"}},{"ruleId":"D31","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":"455ce34598796033e02f1329536e78ce424f15fc87c4b2b1c36136afbd21ab1e"}},{"ruleId":"D31","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":"8f962afee76465e3b7cdc48df883fa5be1f2d46ec6998f1ff60fbb41d16f0cd7"},"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":"D31","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":"a031202e3d75487e860a103be50111e47f771ae73d7c5e5047ffc13e0aaeb810"},"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":"D31","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":"f9c2aca0c6ae7eaadae80d1b05f66650256528e13321fe7d7d8116d60d54eb3f"},"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":"D31","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":"b6623d82ee57a724753c5ae10dc4ac0110dec94ec724fd787bb71eaa78cdbf83"}},{"ruleId":"D31","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":"17b5be0e800e521857b0108f0d60be2b47c7d3d3147a47d0799ddbc01c351876"},"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":"D31","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":"4c86858480372deeb71d42e8ccba51120d35378994a8f060ca27c99308a96e97"}},{"ruleId":"D31","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":"76bb9e30637597d283815eae691af54929d281d9b08170b1b221a002eb38c06c"},"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":"D31","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":"386b46695978d9517d89022240d4df24c4aad84d44c3f01bb49539ab22c185e5"}},{"ruleId":"D31","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":"c6b6367e38249833556afad6226afd7d5a83ca4827851dc08122f4e645a23333"}},{"ruleId":"D31","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":"1f51a163f26d94ce6b6f473117dde579d091c8cbf9e59810475c94d9fc921120"}},{"ruleId":"D31","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":"7a0f283f360f3991b065c3accba5a6a128d102a8a192052877af4e0a96272f6d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 3 of 742 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (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; 742 of the 860 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: mistralrs-core/src/vision_models/llava/utils.rs, scripts/convert_awq_marlin.py, mistralrs-paged-attn/src/cuda/backend/scale_update.rs. 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":"mistralrs-core/src/vision_models/llava/utils.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"43c9956b88f1c5deb0db9f75c28912e096692a5d56feaca36db7c6ace8c62918"}},{"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/convert_awq_marlin.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"28a770da88e02f93434a94a25d00231a2d7c5146625a21a520a3e8976d4c1b7b"}},{"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":"mistralrs-paged-attn/src/cuda/backend/scale_update.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e46aa0198e8455bcb5a3231b50eb7253140b36f032bf47ce6422472b0c06769"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: toml_selector.rs \u2194 lib.rs: \u0060mistralrs-core/src/toml_selector.rs\u0060 (context mistralrs-core) and \u0060mistralrs-pyo3/src/lib.rs\u0060 (context mistralrs-pyo3) sit in DIFFERENT parts of the tree yet change together 62% of the time (10 of the 16 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u0060e124932c\u0060 fix(quant): misc fixes, warmup metal kernels (#2353); \u00603fb22c84\u0060 feat(quant): support isq/uqff/imatrix machinery for broader model cla\u2026; \u00606927a4f2\u0060 Parallel \u002B I/O pipelined ISQ (#1870) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/toml_selector.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f7fb4e990df1b0f0c1ced1c85e0961b5cd17590b5e03246dc2ea0a32be9255"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: embedding.rs \u2194 multimodal.rs: \u0060mistralrs-core/src/pipeline/embedding.rs\u0060 and \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060 change together 88% of the time (14 of the 16 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 14 shared commits counted here, the most recent 3 are \u006086f39271\u0060 feat(fp8): support ModelOpt and compressed-tensors checkpoints with c\u2026; \u0060d1ffbe7e\u0060 fix(qwen3.5): better support for hybrid models and auto device map (#\u2026; \u0060b7956205\u0060 feat(uqff): no dummy run for uqff generation pass (#2316) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b72a8a569e2082b790f387a29c4b35e6f23fc831505be9b7e9c560b5a08913"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: diffusion.rs \u2192 gguf.rs, multimodal.rs, normal.rs: \u0060mistralrs-core/src/pipeline/diffusion.rs\u0060 changes together with 3 other files \u2014 \u0060mistralrs-core/src/pipeline/gguf.rs\u0060, \u0060mistralrs-core/src/pipeline/multimodal.rs\u0060, \u0060mistralrs-core/src/pipeline/normal.rs\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/diffusion.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c06d5210e254714bb73d8d5429c98f2109043bdc6f710c96f91ef8ae11a41f21"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: embedding.rs \u2194 normal.rs: \u0060mistralrs-core/src/pipeline/embedding.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 change together 81% of the time (13 of the 16 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 13 shared commits counted here, the most recent 3 are \u006086f39271\u0060 feat(fp8): support ModelOpt and compressed-tensors checkpoints with c\u2026; \u0060d1ffbe7e\u0060 fix(qwen3.5): better support for hybrid models and auto device map (#\u2026; \u0060b7956205\u0060 feat(uqff): no dummy run for uqff generation pass (#2316) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f46978c7ce6d4d3d4c19c2f4a904d3aba9b99bd8a9f732e895c67abdbc03c04f"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: mod.rs \u2194 mod.rs: \u0060mistralrs-quant/src/fp8/mod.rs\u0060 and \u0060mistralrs-quant/src/gguf/mod.rs\u0060 change together 76% of the time (13 of the 17 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 13 shared commits counted here, the most recent 3 are \u0060aed0b295\u0060 feat(quant): add isq executor and planning (#2283); \u0060392a7567\u0060 feat(uqff): support ser/de for unquant layers, handle afq fallback (#\u2026; \u0060bdaf6eec\u0060 Add new quant method: F8Q8 (#1883) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/fp8/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f5a9f1d75813e4f17e50109544d88a69e85145c3e39bfdd03604ef85533693"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: model_selected.rs \u2194 toml_selector.rs: \u0060mistralrs-core/src/model_selected.rs\u0060 and \u0060mistralrs-core/src/toml_selector.rs\u0060 change together 69% of the time (11 of the 16 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 11 shared commits counted here, the most recent 3 are \u00603fb22c84\u0060 feat(quant): support isq/uqff/imatrix machinery for broader model cla\u2026; \u00606927a4f2\u0060 Parallel \u002B I/O pipelined ISQ (#1870); \u0060fd2456cd\u0060 Support sharding for UQFF (#1276) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/model_selected.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48fa06f984107f25643f223ffc4cefc455f04acd0682973348cea9fdd5865835"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: mod.rs \u2194 config.rs: \u0060mistralrs-core/src/pipeline/mod.rs\u0060 and \u0060mistralrs-core/src/xlora_models/config.rs\u0060 change together 58% of the time (7 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u006091eb3816\u0060 Xlora sanity check; \u0060512b485d\u0060 Use the ordering; \u0060978c5b67\u0060 Make xlora variant untagged \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e661e42fd79ed3eda1928b5ddf1b6799d6a9bcc513531086288556ff713c56c"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: layers.rs \u2194 mod.rs: \u0060mistralrs-quant/src/distributed/layers.rs\u0060 and \u0060mistralrs-quant/src/fp8/mod.rs\u0060 change together 53% of the time (9 of the 17 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u0060aed0b295\u0060 feat(quant): add isq executor and planning (#2283); \u0060392a7567\u0060 feat(uqff): support ser/de for unquant layers, handle afq fallback (#\u2026; \u0060bdaf6eec\u0060 Add new quant method: F8Q8 (#1883) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa984dbf7c034abba54302a178263f31f52201a7854ce575a078647ec6983d9"}},{"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":"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":"f58e22f7be74b285581c69e5bdd0d1e66f4730c31a89a4e2ec7d38dbd04add2d"}},{"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":"81d0799af757bba1afbed34637d383ea39ed22bd8ff8ec5b09c5aa413595d701"},"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":"56a83fcb74c3d64d5caa83a12127630a30364cd4083ceb4bb4994efd244a8715"},"taxa":[{"id":"CICD-SEC-4","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":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/AgentApproval.svelte"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"5864a0b3dec883d08418cd1ec5a5f98b8fb097b9bebcbcade0a7fc4261061dc8"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/ParamPopover.svelte"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac168191a7114b2e799f9f21ab1cd4789e67309fa4399890044499399bca1b76"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/ParamPopover.svelte"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"34977d6e44ff711f594a9e29dd6076a035c3a7ae114b2f545a77dd42ee94cd7b"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/SettingsPanel.svelte"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"38cf39336791bf7744df62c2caa5b4fe8b39f6e318584cccda76db77fe84d130"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/SettingsPanel.svelte"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a30dc04d819041bf19b113c7a425f32575d20cadce521651551d7a19b2bc4b"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/SettingsPanel.svelte"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"618dfe42f8908ef8657b48dd0874cbd1e5d279dfd6cafbd58753555c240f2fae"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/SettingsPanel.svelte"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"14522ceb65435c4ec7266ceae5c18b4d1ba63f64492c89fac958e385eef5c2f3"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/SettingsPanel.svelte"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"370860250a64f0c7f0daa5943409301250f74136ca5b40eef798ccd66ed25e63"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/SettingsPanel.svelte"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b4c3e04768c965824689cfad2f917b1a9edc8dfdd9c29acffdffe3844965e7"}},{"ruleId":"C2","level":"note","message":{"text":"No named authorization policies: Authorization IS enforced here (by route guards, auth middleware or checks that refuse a caller) \u2014 this is NOT a claim that endpoints are unprotected. What\u0027s missing is a NAMED rule set: who may do what is encoded inline where it is checked, so the rules can\u0027t be listed, reviewed or tested apart from the code that applies them. Recommendation, not a defect."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b048fdf3fa524ac68c7874fdfcdb4c49d5f010013f2cb22a0bd84cb12ceb951f"}},{"ruleId":"C2","level":"note","message":{"text":"Thin authorization enforcement: Only 1 place(s) refuse an unauthorized caller \u2014 too few to demonstrate default-deny across handlers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1240e406e864a89e38d5e3fa370dee11971db94808c3db2fda9b41bf2e5b8efb"}},{"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":"M4","level":"note","message":{"text":"README/code drift: mistralrs-mcp/README.md links to \u0060../docs/MCP/README.md\u0060, but \u0060docs/MCP/README.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-mcp/README.md"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"be0fcfad61a66dcdca439a35d28964e5bad469041ca67a4570d1237a15b369ca"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060docs/package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/package.json"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"6698eb8153a71468b04a82fa3b13ea83ca8eee87a1183c9dd1ddc54743514738"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::blocking::Client::new(\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":"mistralrs-core/src/engine/tool_dispatch.rs"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"764dc9a4c382b8e8e209b37c853a2e1beba9d6341425a461a2af804a224cd915"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::blocking::get(\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":"mistralrs-core/src/pipeline/amoe.rs"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"e467474796dc49604e0545603457da1b975f23c7df16e7720d0231c0a0b36a78"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::blocking::get(\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":"mistralrs-pyo3/src/util.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"1684041aee2bc3eaac28b7f24428c6115320e681ecf68b583496b9df119eeb31"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::blocking::get(\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":"mistralrs-pyo3/src/util.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c2db8b30572ce94c732a4fe025bcdd48ef8499496eed56dbfaef738c390e30"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::blocking::get(\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":"mistralrs-pyo3/src/util.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"520b02a77ad1bc9cccd94631f65e7ddaf2d5b24dd08e4815917f0950711757b8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): mistralrs-cli/webui/src/lib/components/AssistantMessage.svelte:29 \u00B7 mistralrs-cli/webui/src/lib/components/UserMessage.svelte:64 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/AssistantMessage.svelte"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ecc83460df898445e35d31931b0c931caf3dc8bea1b0c5b07fd3a879829b273"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): mistralrs-cli/webui/src/lib/components/FileCard.svelte:27 \u00B7 mistralrs-cli/webui/src/lib/services/streaming.ts:11 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/FileCard.svelte"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a607e55ca8a7c3c82a43afa9d87a27df9eb738dc0981a9bdc29233fe4e0a9ed"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): mistralrs-cli/webui/src/lib/services/api.ts:30 \u00B7 mistralrs-cli/webui/src/lib/services/api.ts:40 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/services/api.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ed8035d964c925738a53d7e60173ed5dee600b02c4013cfc7e21bd0287bd22"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function streamChatCompletion (cyclomatic 43, cognitive 91): streamChatCompletion has cyclomatic complexity 43 and cognitive complexity 91; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/services/streaming.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cfe6448be8e8921264dadaaaa031ba3cf7cf03f9af709b9027a8222c604c4ed"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetch (cyclomatic 16, cognitive 19): fetch has cyclomatic complexity 16 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/tests/chat-store.test.mjs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"051f49b70d7eda8a2cda744373db83f047fdd5c24445390936e15757c5f329f2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function onToolCallProgress (cyclomatic 15, cognitive 16): onToolCallProgress has cyclomatic complexity 15 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/stores/chat.svelte.ts"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a464e18e2d5a9109f196d189eda68b51893edf2986edefc0ffc1baa2ad856b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildApiMessages (cyclomatic 14, cognitive 18): buildApiMessages has cyclomatic complexity 14 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/stores/chat.svelte.ts"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03824910dfceb2d28a39e5a543b8ec765e265feaeca770a0a41caa6536918d3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function finalizeStreaming (cyclomatic 13, cognitive 13): finalizeStreaming has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/stores/chat.svelte.ts"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"811be031c75f3bbd9312ca0e111ec86946b7639fc4296aaab4e1096ed4b01ef2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addFile (cyclomatic 12, cognitive 11): addFile has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/ChatInput.svelte"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"7282b5cb39c071c7545ed14c4006eaf44c9cd972b446eb8a635778bb5f37e2d1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function generateAssistant (cyclomatic 11, cognitive 10): generateAssistant has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/stores/chat.svelte.ts"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"5936ddb208d3820bdf514d44572997a877e36a808d8a81e6529fd0585518ccc5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadChat (cyclomatic 11, cognitive 9): loadChat has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/stores/chat.svelte.ts"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd866fd5b2966dc98e3ffca7c1be2eb36eb1d18e71f76cf414244bce5ce088b"}},{"ruleId":"R3","level":"warning","message":{"text":"mistralrs-cli/webui/src/lib/stores/chat.svelte.ts: 718 lines of code: mistralrs-cli/webui/src/lib/stores/chat.svelte.ts has 718 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/stores/chat.svelte.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d3c203428bd73c6a3b72169e8953eab841cd57666614a108242cdba776b813"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/types.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b678770ebcbc85b009105846014f148c34e7506cf8f40b5e8a82e8de4fd3323d"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/ChatInput.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7204b5f91d5ef341f1cd096ce283602b258e3fb36613c64ab8c4ff03ed0cac13"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/FileCard.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0a22277d4046bb0317619f656a1f6f31ac6d30ec34f09e10bf11d9af891ef0"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/AssistantMessage.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c40a7c6509239d9023712f6ec087e26aa35952d5f9e97c7c2db68b53d543e4d5"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/UserMessage.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e270179ad3a035fe61f86c16fa369b219fd024bb5b06c3feef8f8c7b12177ca0"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/VideoFrames.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be01378474b7ba6011b808817f27cff96d5e750fad0d1dda9b2402772c5d77cb"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/CodeExecution.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6de54cf536a913ccabebda6c3442ec922c5e747ffe0f92ea728141af4922283"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/ModelBar.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"355cda9e0c489edd9c84084936f1c6e451cd2c45c6de01eaefe3f5bd1ee443cf"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/App.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c29def9e22bd4a38521658bcca1d225415a58ca02b15463bccbbca4d08992035"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/ParamPopover.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67cdc0934e06694a17c8c7d55002b2142cc23e17a5ab5b3f9a091d09c28e4686"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/MessageList.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"932fe88e10b58569f2a3fb1e88225334952ab4e6f3786915ca2b35c5c2dd4a32"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/Sidebar.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c7f43a4c926ec678b82d8095abc4d4ea2afa5b06dbe3c90b19197c01b3589ea"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/ToolsPanel.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4db889de9d1bd8ad5e254ebc8b1a805f5af760b61ad50c2381e797a71afc93d0"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/AgentApproval.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa6be832d5aacd4cde4f131db08f53c01179ccb1622fbad66846c835028284ce"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/ShellTool.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d54531e2870dfb68f842946d51047b8bec139f78000221a7a2346e9d80706b7f"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/SettingsPanel.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"823ee58894d859bd1771b0d3aa03d3e975303dc3151dedf29b28009a20041641"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/ThinkingBlock.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd231db7269f580907c04327660cce22e575f4b0a7274e35c0457925e1cc2803"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/ui.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf5c98635bffe9c09b0386b4750f4ed889955dc65eea1fc19d06bd559dba4683"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/CustomTool.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7628bcb433d04572470c78fed8da0451d5805b604e33233248eddc5d0a03f2"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/SearchResult.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe061a81ec9fa837e8937b2cc1a075ead8562c1c3564fdb87bb62d30ff5d8c0"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/main.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"189ad2d2c8bc318a6c3daafd3de6a36e30e8cba221a69d413933388e50c9f28a"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/Brand.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e07984864d28ba73f4eee2440f645cb10725f1fb837b4928482ae5b7cb190f8"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/components/Notice.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0f911ea04d7e5dd5aa5950e8bf34c06c8c9f380e021e0f12fd6676b731088a1"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027uploadImage\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/services/api.ts"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"92dc8b99a2b8660a994e26d6f4898e30e343486a8da9ecbf829c888cc6411a1f"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027uploadText\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/services/api.ts"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"21534b12ca16ec262aba44358a7a844ef4ffd3199a83748fe2709693c9623f0b"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027uploadAudio\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/services/api.ts"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b00484b4b62d9c2a9eafef77fe27d976ea9cb67047d72387e6bdba13a46ba32"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027uploadVideo\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/services/api.ts"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c3cda2501e7db1ea54771b1aa9fce06fabe8818f54012b67a6b6bc244954b2"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027generateSpeech\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/services/api.ts"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d495752e2ec30e7cdbe93b2f52750b1aaa981409cb1488704d8b27b3bec477c"}},{"ruleId":"S1","level":"note","message":{"text":"No app-layer HTTPS enforcement detected: This repository starts an HTTP server and nothing in its Rust source or committed \u0060Rocket.toml\u0060 secures the transport: no TLS served (actix-web \u0060bind_rustls\u0060/\u0060bind_openssl\u0060, axum-server \u0060bind_rustls\u0060 with a \u0060RustlsConfig\u0060, tonic \u0060ServerTlsConfig\u0060, a \u0060TlsAcceptor\u0060, Rocket\u0027s \u0060[default.tls]\u0060), no \u0060Strict-Transport-Security\u0060 header, no \u0060X-Forwarded-Proto\u0060 read from a TLS-terminating proxy \u2014 so its traffic may cross the network in clear text. (\u22122.0 on this card.) The server: \u0060axum::serve(\u0060 (mistralrs-cli/src/commands/config.rs:198)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8697c7a8b4c37084f15e81b8ec84d4cf62954730be74a0816d39b2127a21fd9b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!cfg!(feature = \u0022cuda\u0022) || !crate::perf_flags::flashinfer_decode_enabled()\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/flashinfer/mod.rs, mistralrs-core/src/vision_models/gemma4/text.rs. 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":"mistralrs-core/src/flashinfer/mod.rs"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"d10992024ed0936c23fddc0a32c861f4781bf09a5d67e478b29fb6e3a51fb534"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!effective.rlimits_applied \u0026\u0026 sandbox.name() != \u0022macos\u0022\u0060 appears character-identically in 2 files \u2014 mistralrs-code-exec/src/lib.rs, mistralrs-code-exec/src/shell.rs. 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":"mistralrs-code-exec/src/lib.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e2d92a0e96694d3d14f6e8d464e6422ca0a5ed1490cd5b828064274130971b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!global_scale.is_finite() || global_scale \u003C= 0.0\u0060 appears character-identically in 2 files \u2014 mistralrs-quant/src/lib.rs, mistralrs-quant/src/nvfp4/embedding.rs. 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":"mistralrs-quant/src/lib.rs"},"region":{"startLine":1823}}}],"partialFingerprints":{"codehealthFindingId/v1":"45bb08172abcb5e0a589dd2866018d6a3e902ee49048f90ca8d714236f02afe7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!image_urls.is_empty() || !audio_urls.is_empty() || !video_urls.is_empty()\u0060 appears character-identically in 2 files \u2014 mistralrs-pyo3/src/lib.rs, mistralrs-server-core/src/chat_completion.rs. 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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb98a43ecd97351c2efa495de99b00f596d27980f284da30d5f765c73f888293"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!inverse_temperature.is_finite() || inverse_temperature \u003C= 0.0\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/sampler.rs, mistralrs-core/src/vision_models/qwen3_5/speculative.rs. 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":"mistralrs-core/src/sampler.rs"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"da76cc5790b3640bb0c0edc2a5146b45c0ce6780bd91d4c74b098bbb5e234d01"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!key_cache.is_contiguous() || !value_cache.is_contiguous()\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/paged_attention/windowed_pool.rs, mistralrs-paged-attn/src/cuda/backend/cache.rs. 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":"mistralrs-core/src/paged_attention/windowed_pool.rs"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aeb473d731d40c110abcc057331e76b6a7d6e48a6c74d8f360943730dcf7901"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!meta.is_first_prompt_chunk \u0026\u0026 meta.num_cached_tokens.is_none()\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/vision_models/qwen3_5/text.rs, mistralrs-core/src/vision_models/qwen4_exp/text.rs. 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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":1442}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e0ee1b0117fdc5d2b30c4b49b51f48c9294649ab0a56a5a660297cc09a5ef7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!pipeline.get_metadata().no_kv_cache \u0026\u0026 pipeline.cache().is_hybrid()\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/engine/add_request.rs, mistralrs-core/src/engine/mod.rs. 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":"mistralrs-core/src/engine/add_request.rs"},"region":{"startLine":996}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c67462fa13e1a31630f53c3ad156e7af7ffb810f25b72c59378b035a25a4ce"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!self.model.has_speculative_proposer() || self.model.supports_speculative_packed_prefill()\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/pipeline/multimodal.rs, mistralrs-core/src/pipeline/normal.rs. 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2853}}}],"partialFingerprints":{"codehealthFindingId/v1":"341a812dbd199ae01ea14e2d3ce7bd14cb0219dbe9c7bd775e627bfa3999e3d9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!self.partial_rotary_factor().is_finite() || self.partial_rotary_factor() \u003C= 0.0 || self.partial_rotary_factor() \u003E 1.0\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/vision_models/qwen3_5/config.rs, mistralrs-core/src/vision_models/qwen3_5_moe/config.rs. 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":"mistralrs-core/src/vision_models/qwen3_5/config.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"d34735e1d1e4badb11efd3101825499cd7b7e71d01826a73419adc1828b13947"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!self.rope_theta().is_finite() || self.rope_theta() \u003C= 0.0\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/vision_models/qwen3_5/config.rs, mistralrs-core/src/vision_models/qwen3_5_moe/config.rs. 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":"mistralrs-core/src/vision_models/qwen3_5/config.rs"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2239685008d1860dfbf6a91b1c75b7f3a06b860f409f8c8ba2eb2b2e9d5fcde"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!seq.has_images() || seq.multimodal.has_changed_prompt\u0060 appears character-identically in 3 files \u2014 mistralrs-core/src/vision_models/idefics3/inputs_processor.rs, mistralrs-core/src/vision_models/lfm2_vl/inputs_processor.rs, mistralrs-core/src/vision_models/mistral3/inputs_processor.rs. 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":"mistralrs-core/src/vision_models/idefics3/inputs_processor.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8746fb423085db7eec387be3013dce92433c2ad526a409ea157a58d3f9d932f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!x.device().same_device(cache.conv_state.device()) || !x.device().same_device(cache.recurrent_state.device())\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/models/qwen3_next.rs, mistralrs-core/src/vision_models/qwen3_5/packed_gdn.rs. 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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec7496c59050064e08ca1145d7e517fd7fe347eeb873dcd8f2a0d7b6316acff3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$cfg.sliding_window.is_some() \u0026\u0026 $cfg.use_sliding_window \u0026\u0026 $layer_idx \u003E= $cfg.max_window_layers\u0060 appears character-identically in 3 files \u2014 mistralrs-core/src/embedding_models/qwen3_embedding.rs, mistralrs-core/src/models/qwen3.rs, mistralrs-core/src/models/qwen3_moe.rs. 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":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee53caac1d5f10b88a3fc211f9b9637be2fbf8bd8b1e1bb95f11cbd99f16a25f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060activation.dtype() != DType::F8E4M3 || activation_scales.dtype() != DType::F32\u0060 appears character-identically in 2 files \u2014 mistralrs-quant/src/blockwise_fp8/mma.rs, mistralrs-quant/src/blockwise_fp8/ops.rs. 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":"mistralrs-quant/src/blockwise_fp8/mma.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e81d03b45339f022f2bdbd21cfa43f5433ed84b8f7a53c958358f6fdce0875"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060args.hf_config_overrides.is_some() \u0026\u0026 !supports_hf_config_overrides\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/model_loader.rs, mistralrs-core/src/toml_selector.rs. 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":"mistralrs-core/src/model_loader.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"970aa2364d04fb9c63d900219dbc71cc15c05d31133b25ca92d71359103d4715"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060args.max_model_len.is_some() \u0026\u0026 !supports_max_model_len\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/model_loader.rs, mistralrs-core/src/toml_selector.rs. 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":"mistralrs-core/src/model_loader.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"aac92f4e1cfb8dff426a96ec11408af45c79c985b82a6e5c81a271f11f447e20"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060args.packed_prefill \u0026\u0026 args.packed_layout.is_none()\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/vision_models/idefics2/mod.rs, mistralrs-core/src/vision_models/llama4/mod.rs. 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":"mistralrs-core/src/vision_models/idefics2/mod.rs"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"390a7699893d3530c42029a187177f34a9c43d66d625d49f290cc37b0751b1f7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060b == batch_size \u0026\u0026 n == num_query_blocks\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/vision_models/gemma3n/audio.rs, mistralrs-core/src/vision_models/gemma4/audio.rs. 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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"261cc28e3b2b29d5584d2ba4eee316533b845f31a0539e514b679dc7235b1052"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060c.is_ascii_alphanumeric() || c == \u0027-\u0027 || c == \u0027_\u0027\u0060 appears character-identically in 2 files \u2014 mistralrs-code-exec/src/shell.rs, mistralrs-core/src/engine/agentic_loop.rs. 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":"mistralrs-code-exec/src/shell.rs"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06955f29dc4dcc73e031de0c67cec1a6f2dd3819f9b7b05b07e3c63e8ca5bf5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cfg.num_experts \u003E 0 \u0026\u0026 (layer_idx \u002B 1).is_multiple_of(cfg.decoder_sparse_step)\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/models/qwen3_moe.rs, mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs. 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":"mistralrs-core/src/models/qwen3_moe.rs"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d6bd324131fe452907e1092cf508a8e2db1d6617a6f213c0594ee6cf01396b3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cfg.use_sliding_window \u0026\u0026 cfg.sliding_window.is_some()\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/pipeline/loaders/embedding_loaders.rs, mistralrs-core/src/pipeline/loaders/normal_loaders.rs. 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":"mistralrs-core/src/pipeline/loaders/embedding_loaders.rs"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"f012b844e1c4916c39227c2848a09c01a11887cdc4dcf57a694e805649eee8f9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060context_lens.is_empty() || context_lens.len() != seqlen_offsets.len()\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/vision_models/gemma3n/text.rs, mistralrs-core/src/vision_models/gemma4/text.rs. 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":"mistralrs-core/src/vision_models/gemma3n/text.rs"},"region":{"startLine":1265}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7a49b7c26fdbee1f01de1bf461f34a2bde0520e01e74ae17fa62a6886e9e07"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ctx.prompt_chunk_attention_policy() == MultimodalAttentionPolicy::NonCausal \u0026\u0026 q_len \u003E 1\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/vision_models/gemma3/text.rs, mistralrs-core/src/vision_models/gemma4/text.rs. 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":"mistralrs-core/src/vision_models/gemma3/text.rs"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"51cf6a5fad4fdba43372b54b32b0914fc844d9e5a8f726e82e4635b905923bcd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060decision.approve \u0026\u0026 decision.remember_for_session\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/engine/agentic_loop.rs, mistralrs-server-core/src/approvals.rs. 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":"mistralrs-core/src/engine/agentic_loop.rs"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"1138188b71a07092405fbb2c8419cbe78e45dd3238bb8747779af51ac80e3df1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060device.is_cuda() \u0026\u0026 model.supports_cuda_decode_graphs() \u0026\u0026 cuda_decode_graphs_enabled() \u0026\u0026 cuda_decode_graph_supported_for_model(Some(model_\u2026\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/pipeline/multimodal.rs, mistralrs-core/src/pipeline/normal.rs. 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1562}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a33957f85b7904b24b3fa2fd8ef539456f1fed751cba6427cb16aabf20f567c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060device_layers.len() == 1 \u0026\u0026 device_layers[0].parse::\u003Cusize\u003E().is_ok()\u0060 appears character-identically in 2 files \u2014 mistralrs-pyo3/src/lib.rs, mistralrs-server-core/src/mistralrs_for_server_builder.rs. 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":"mistralrs-pyo3/src/lib.rs"},"region":{"startLine":1393}}}],"partialFingerprints":{"codehealthFindingId/v1":"289a13970a3aa9bad643abb29ac1ea5ca877971d71012f8734c2a9fadb1eab8c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060extracted_valid_mask_blocks.dims().len() == 4 \u0026\u0026 extracted_valid_mask_blocks.dim(0)\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/vision_models/gemma3n/audio.rs, mistralrs-core/src/vision_models/gemma4/audio.rs. 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":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"63078411738965e48e4fa654c90593ca86bd63cebd479e6e9f7751565cafad64"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060feature.attention_policy == MultimodalAttentionPolicy::NonCausal \u0026\u0026 feature.length \u003E sliding_window\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/vision_models/gemma3/inputs_processor.rs, mistralrs-core/src/vision_models/gemma4/inputs_processor.rs. 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":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ec2626db0c88b7e024162ecc096db86a541f0b361fa8c8511e04a09481e5dbc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060feature.hashes.len() != 1 || feature.item_range.len() != 1\u0060 appears character-identically in 3 files \u2014 mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs, mistralrs-core/src/vision_models/gemma4/inputs_processor.rs, mistralrs-core/src/vision_models/phi4/inputs_processor.rs. 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":"mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b26c37c9f3749a4ef3ddea86a4407b3b221d724de7d57e41fb560ec29326cf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060feature.item_range.len() != 1 || feature.hashes.len() != 1\u0060 appears character-identically in 5 files \u2014 mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs, mistralrs-core/src/vision_models/llama4/inputs_processor.rs, mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs, mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs. 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":"mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd514304c19b827479042c964c996a68382272b29a8adc8f2ccd3d882e85484"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060feature.kind == MultimodalKind::Image \u0026\u0026 feature.overlaps(query.start, query.end)\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/vision_models/gemma3/inputs_processor.rs, mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs. 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":"mistralrs-core/src/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6058e2d745d37b0dc722616dcef7b14d38cf34db32e0648ae83c076daba8560"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060gate.is_none() \u0026\u0026 up.is_none() \u0026\u0026 down.is_none()\u0060 appears character-identically in 2 files \u2014 mistralrs-quant/src/lora/dynamic/expert.rs, mistralrs-quant/src/lora/dynamic/loader/expert.rs. 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":"mistralrs-quant/src/lora/dynamic/expert.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eead3c228d64437db782ff2eb3d025d30572a49ff5e3b67fd3b29a186ba1772"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060group_ids[ki] \u003E= 0 \u0026\u0026 group_ids[qi] == group_ids[ki] \u0026\u0026 within_window\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/vision_models/gemma3/text.rs, mistralrs-core/src/vision_models/gemma4/text.rs. 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":"mistralrs-core/src/vision_models/gemma3/text.rs"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"409ed7a318375c73b22ac803bc7ff9e2afd6b6c7b03b6268e9d1449ea7bf7e81"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060has_conv_layers \u0026\u0026 recurrent_metadata.is_none()\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/models/lfm2.rs, mistralrs-core/src/models/lfm3.rs. 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":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":1197}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a350ff87bc8771ce20a97b851c4f96fc0883b1cf8bc5c61b49c2541c13a8945"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060has_linear_attention \u0026\u0026 recurrent_metadata.is_none()\u0060 appears character-identically in 3 files \u2014 mistralrs-core/src/models/qwen3_next.rs, mistralrs-core/src/vision_models/qwen3_5/text.rs, mistralrs-core/src/vision_models/qwen3_5_moe/text.rs. 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":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3c32bb19f1cf81055b8424ecab3019549014578bfbfa593ef75936a6b51286"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060head_size == 64 || head_size == 80 || head_size == 96 || head_size == 112 || head_size == 128 || head_size == 192 || head_size == 256 || hea\u2026\u0060 appears character-identically in 2 files \u2014 mistralrs-paged-attn/src/cuda/backend/paged_attention.rs, mistralrs-paged-attn/src/metal/backend/paged_attention.rs. 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":"mistralrs-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"8782e894f9fbb5561c9f22389a6bbd123f483cb50bd39dd505ab5147cbfe8c28"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060image_grid_thw.is_none() \u0026\u0026 video_grid_thw.is_some()\u0060 appears character-identically in 9 files \u2014 mistralrs-core/src/vision_models/lfm3_vl/mod.rs, mistralrs-core/src/vision_models/muse_glimmer/mod.rs, mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs, mistralrs-core/src/vision_models/qwen2vl/mod.rs. 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":"mistralrs-core/src/vision_models/lfm3_vl/mod.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cab843fd7436d3cd487dc106f271e614b08a4e7fd5df201027b5f252b83dfcb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060indices.dtype() != DType::U32 || !indices.device().same_device(x.device())\u0060 appears character-identically in 3 files \u2014 mistralrs-quant/src/cutile/nvfp4.rs, mistralrs-quant/src/cutile/nvfp4_gemv.rs, mistralrs-quant/src/nvfp4/mod.rs. 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":"mistralrs-quant/src/cutile/nvfp4.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0d4741ec8a68c6339798ac918d4f48c01778363f200f7e7a8951562eabcaad8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060input.dtype() != DType::BF16 || !input.device().is_cuda()\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/vision_models/qwen3_5/text.rs, mistralrs-quant/src/utils/ops.rs. 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":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89f35de8e87feae52570ed3947dbc70382cd9478e69c07bf93ec7882f1f8801"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060input_l.start_offset() != 0 || !input_l.is_contiguous()\u0060 appears character-identically in 2 files \u2014 mistralrs-quant/src/blockwise_fp8/ops.rs, mistralrs-quant/src/scalar_fp8/ops.rs. 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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b4bb8883b127f15fdb28311a61e653412f88513c809aeb6d86505330d3d4996"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060input_seqs.len() != query_lens.len() || input_seqs.len() != continuous_img_pad.len() || input_seqs.len() != continuous_vid_pad.len()\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/vision_models/grid_processor.rs, mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs. 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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"82cf54d95655ad95abf7bc8301186aaeaa307c3a9830bd82265a0cf4d427237f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_streaming \u0026\u0026 matches!(oairequest.agent_permission, Some(AgentPermission::Ask))\u0060 appears character-identically in 2 files \u2014 mistralrs-server-core/src/anthropic.rs, mistralrs-server-core/src/chat_completion.rs. 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":"mistralrs-server-core/src/anthropic.rs"},"region":{"startLine":1902}}}],"partialFingerprints":{"codehealthFindingId/v1":"971ffd95f5a3783d02d3ce624ce3b98b53f62da874746f95e78218b8a356e11c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060item.placeholder.start \u003C query.end \u0026\u0026 query.start \u003C item.placeholder.end\u0060 appears character-identically in 3 files \u2014 mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs, mistralrs-core/src/vision_models/llama4/inputs_processor.rs, mistralrs-core/src/vision_models/minicpmo/inputs_processor.rs. 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":"mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dbac36cffb957959196e45b0043f205f1bb3c5c6429c1f74678d310ed9966fd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060item_counts.iter().sum::\u003Cusize\u003E() != 0 || pixel_values.is_some()\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/vision_models/grid_processor.rs, mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs. 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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c8a5d57b7c454e569d12319f0991c40a10f4bbabd2fc5a0067e8ac235527a1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060item_counts.len() != cached_items.len() || item_counts.len() != current_items.len()\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/vision_models/grid_processor.rs, mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs. 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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"1319669a3147f8d2b7d122e215c5b95929b2d7eb290c5743a89a3716a2a50370"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060k_scale.dtype() != DType::F32 || v_scale.dtype() != DType::F32 || k_scale.elem_count() != 1 || v_scale.elem_count() != 1\u0060 appears character-identically in 3 files \u2014 mistralrs-paged-attn/src/cuda/backend/gather_kv.rs, mistralrs-paged-attn/src/cuda/backend/paged_attention.rs, mistralrs-paged-attn/src/metal/backend/mod.rs. 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":"mistralrs-paged-attn/src/cuda/backend/gather_kv.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbae699510e118c2b80322e0b5764c80b7e789a6894192564923c4c4b70f04f4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060kv_heads == 0 || !q_heads.is_multiple_of(kv_heads)\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/flashinfer/mod.rs, mistralrs-core/src/vision_models/gemma4/text.rs. 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":"mistralrs-core/src/flashinfer/mod.rs"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fcb37d8ea041b06871abdc0746fd1b3c9d67ddbc02e00b06606ba5ae4e9ff49"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060layer.exact_weight_suffixes(WEIGHT_SUFFIXES) \u0026\u0026 layer.scalar(\u0022weight.format\u0022, Dtype::U8)\u0060 appears character-identically in 2 files \u2014 mistralrs-quant/src/mxfp4/mod.rs, mistralrs-quant/src/unquantized/mod.rs. 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":"mistralrs-quant/src/mxfp4/mod.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a8399e871f7bf0ae796a50b9363b18d8069e07efd7869512d02a86c73f63be"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060layer_idx \u003E= cfg.first_k_dense_replace \u0026\u0026 layer_idx.is_multiple_of(cfg.moe_layer_freq)\u0060 appears character-identically in 3 files \u2014 mistralrs-core/src/models/deepseek2.rs, mistralrs-core/src/models/deepseek3.rs, mistralrs-core/src/models/glm4_moe_lite.rs. 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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"df436b1664d1f72880bcdef24e98a7b6732e56f343dbaf8c4193d37064a16068"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lower.ends_with(\u0022.uqff\u0022) || lower.ends_with(\u0022.safetensors\u0022) || lower.ends_with(\u0022.pth\u0022) || lower.ends_with(\u0022.pt\u0022) || lower.ends_with(\u0022.bin\u0022)\u0060 appears character-identically in 2 files \u2014 mistralrs-cli/src/commands/quantize.rs, mistralrs-cli/src/commands/serve.rs. 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":"mistralrs-cli/src/commands/quantize.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0512d6adf64e368b583dce7ba039568b7b5db25083aa0d76b396d94e62efcc4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mapping_uses_cpu \u0026\u0026 paged_attn_config.is_some()\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/pipeline/multimodal.rs, mistralrs-core/src/pipeline/normal.rs. 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1050}}}],"partialFingerprints":{"codehealthFindingId/v1":"2231acb360caaa08f7dd669245ea753d647ca080ad8cbe4d39a6e735abb68b8b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060matches!(config, crate::speculative::SpeculativeConfig::Mtp(_)) \u0026\u0026 self.get_metadata().cache_engine.is_none()\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/pipeline/multimodal.rs, mistralrs-core/src/pipeline/normal.rs. 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":3120}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8c1023c43723f9a53936b3d65248dea1299c32a817564ba49946e18e98b585"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060matches!(oairequest.agent_permission, Some(AgentPermission::Ask)) \u0026\u0026 !is_streaming\u0060 appears character-identically in 2 files \u2014 mistralrs-server-core/src/anthropic.rs, mistralrs-server-core/src/chat_completion.rs. 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":"mistralrs-server-core/src/anthropic.rs"},"region":{"startLine":1892}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a4695b3b4ae34ce2214fbc1335c897776ee19949f79dfd94b4705fcd9f6696"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060max_model_len \u003E 0 \u0026\u0026 max_model_len \u003C= cfg.max_position_embeddings\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/pipeline/loaders/lfm3.rs, mistralrs-core/src/pipeline/loaders/normal_loaders.rs. 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":"mistralrs-core/src/pipeline/loaders/lfm3.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c5d0bc0ac3371ddc5f8955c8af9ca80945ee24cee6ae18be82eeeaac67b7468"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060metadata.is_first_prompt_chunk || metadata.num_cached_tokens.is_some()\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/pipeline/multimodal.rs, mistralrs-core/src/pipeline/normal.rs. 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2183}}}],"partialFingerprints":{"codehealthFindingId/v1":"73783af7fc9c294ba94d4e1fea1d7faf3aceab7b28d3ef164593a73af02fe94b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normal_loading_metadata.real_device.is_metal() \u0026\u0026 cfg.quantization_config.is_none()\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/models/flint.rs, mistralrs-core/src/models/qwen3_moe.rs. 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":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfac8647cfce22352e03cabd19cdc7b66d3c719f92810610769d818ef0d917b9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060overlaps_query \u0026\u0026 (query.start \u003E item.placeholder.start || query.end \u003C item.placeholder.end)\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs, mistralrs-core/src/vision_models/llama4/inputs_processor.rs. 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":"mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd240e8d5c8ac5183e797d576a16015567f94a81b33a835017550eb76e9744d2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pixel_values.is_some() || pixel_values_videos.is_some()\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs, mistralrs-core/src/vision_models/qwen2vl/mod.rs. 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":"mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"a016cbf56e556f820c476abf13b1fa0e48be10cc738e3443b91a9ecfe57e75ca"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060policy.network != NetworkMode::Full \u0026\u0026 !effective.network_isolated\u0060 appears character-identically in 2 files \u2014 mistralrs-code-exec/src/lib.rs, mistralrs-code-exec/src/shell.rs. 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":"mistralrs-code-exec/src/lib.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"44121bd1ced7ac81e0d45313641cb6c343bf22ef36c9f4339f5d910ef1fb7b79"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060projection.is_dynamic_lora_active() || projection.stats_snapshot().is_some()\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/ops.rs, mistralrs-quant/src/lib.rs. 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":"mistralrs-core/src/ops.rs"},"region":{"startLine":7028}}}],"partialFingerprints":{"codehealthFindingId/v1":"9867f5766fd2f0e57362ebff3e1fe9f4a2080554b4ebef5747245baa4bc96e3d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060query.start \u003E query.end || query.end \u003E tokens.len()\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs, mistralrs-core/src/vision_models/phi4/inputs_processor.rs. 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":"mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"b56fe28d46518c0430c22d5437fc5601df123d0e51ddb50a8c5cca2b630ce8bd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rank \u003E= world_size || !size.is_multiple_of(world_size)\u0060 appears character-identically in 2 files \u2014 mistralrs-quant/src/lora/dynamic/loader.rs, mistralrs-quant/src/lora/dynamic/loader/expert.rs. 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":"mistralrs-quant/src/lora/dynamic/loader.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"362e4a20cf3b025e3e5f679473a40553ec283c9c8ff4ff940523e19c6cc1bdfe"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060recurrent_transitions_supported \u0026\u0026 super::uses_recurrent_transition_log(model.cache())\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/pipeline/multimodal.rs, mistralrs-core/src/pipeline/normal.rs. 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1531}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d4dc7613f0f9dcf4333d162b49de1c7f4719775691486a4b9a5cca6530f981"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060requires_noncausal \u0026\u0026 is_paged \u0026\u0026 supported_backend \u0026\u0026 has_range_metadata\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/vision_models/gemma3/text.rs, mistralrs-core/src/vision_models/gemma4/text.rs. 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":"mistralrs-core/src/vision_models/gemma3/text.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b0d0d4c18ae0100e89bad52dd2813dd45befde34f35ad750b8a8eb63097940"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060requires_noncausal \u0026\u0026 packed \u0026\u0026 !has_range_metadata\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/vision_models/gemma3/text.rs, mistralrs-core/src/vision_models/gemma4/text.rs. 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":"mistralrs-core/src/vision_models/gemma3/text.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"3578803fa07fbeed7e6f65c5107b227b41a80c56503ea89172bf6026eccff56e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rollback_live_state \u0026\u0026 recurrent_batch_kind == RecurrentBatchKind::Decode \u0026\u0026 self.model.supports_recurrent_speculative_transitions() \u0026\u0026 uses\u2026\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/pipeline/multimodal.rs, mistralrs-core/src/pipeline/normal.rs. 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2595}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a96c1f43d747c12a4b0903ad6306ce9117b7cae1f4c2d9c1747e39d7a5b35b3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rope_img_grid_thw.is_none() \u0026\u0026 rope_vid_grid_thw.is_none()\u0060 appears character-identically in 7 files \u2014 mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs, mistralrs-core/src/vision_models/qwen2vl/mod.rs, mistralrs-core/src/vision_models/qwen3_5/mod.rs, mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs. 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":"mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ce224ce51dfea36f4fa4c7e393b79c5c4b57b8afd8f012d30ed6b035d1bda16"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rot_dim == 0 || rot_dim \u003E self.head_dim || !rot_dim.is_multiple_of(2)\u0060 appears character-identically in 3 files \u2014 mistralrs-core/src/vision_models/qwen3_5/config.rs, mistralrs-core/src/vision_models/qwen3_5_moe/config.rs, mistralrs-core/src/vision_models/qwen4_exp/config.rs. 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":"mistralrs-core/src/vision_models/qwen3_5/config.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"446ae0f71875829efe6964eb26ee636bff37d71d2edd4c4aab314f4360ced2d2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060scale.dtype() != DType::F32 || scale.elem_count() != 1\u0060 appears character-identically in 2 files \u2014 mistralrs-quant/src/blockwise_fp8/ops.rs, mistralrs-quant/src/pertensor_fp8/mod.rs. 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":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1dc45bbe21b2387a5397cfd412500bc1941b93bffb2068845643f427ed50fe"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.full_attention_interval == 0 || self.full_attention_interval \u003E self.num_hidden_layers\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/vision_models/qwen3_5/config.rs, mistralrs-core/src/vision_models/qwen3_5_moe/config.rs. 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":"mistralrs-core/src/vision_models/qwen3_5/config.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"68048e2a80afec60057fdd06ab8145ea4abd4749fab65eacbf70c742ff108f86"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.kv_b_proj.is_split() \u0026\u0026 (self.paged_attn.is_none() || q_nope.device().is_cuda())\u0060 appears character-identically in 3 files \u2014 mistralrs-core/src/models/deepseek2.rs, mistralrs-core/src/models/deepseek3.rs, mistralrs-core/src/models/glm4_moe_lite.rs. 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":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a5cd2205ea06e366862560427213b26aa24bb424f09208e72b3792289bb778"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.linear_key_head_dim == 0 || self.linear_value_head_dim == 0 || self.linear_conv_kernel_dim == 0\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/vision_models/qwen3_5/config.rs, mistralrs-core/src/vision_models/qwen3_5_moe/config.rs. 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":"mistralrs-core/src/vision_models/qwen3_5/config.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04109d7609e5335650c4ec277e611d1cdad03a28849568f00951b3a811f5358"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.linear_num_key_heads == 0 || self.linear_num_value_heads == 0 || !self .linear_num_value_heads .is_multiple_of(self.linear_num_key_head\u2026\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/vision_models/qwen3_5/config.rs, mistralrs-core/src/vision_models/qwen3_5_moe/config.rs. 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":"mistralrs-core/src/vision_models/qwen3_5/config.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecdb4df12a342c1831dc459b225a0dc14bcf68c3b769ec0875c5a753e0309d95"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.model.cache().is_hybrid() \u0026\u0026 self.model.cache().hybrid().uses_recurrent_transition_log()\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/pipeline/multimodal.rs, mistralrs-core/src/pipeline/normal.rs. 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":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2593}}}],"partialFingerprints":{"codehealthFindingId/v1":"09204961caa5adae36be9ba21a373d2194c219b9d2b9a9282de2659c3e939ba6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.num_attention_heads == 0 || self.num_key_value_heads == 0 || !self .num_attention_heads .is_multiple_of(self.num_key_value_heads)\u0060 appears character-identically in 4 files \u2014 mistralrs-core/src/vision_models/muse_glimmer/config.rs, mistralrs-core/src/vision_models/qwen3_5/config.rs, mistralrs-core/src/vision_models/qwen3_5_moe/config.rs, mistralrs-core/src/vision_models/qwen4_exp/config.rs. 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":"mistralrs-core/src/vision_models/muse_glimmer/config.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8de11935df62ddb37df7a45fda1e3ae450e71469084277a8432daf03b585236"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.select_feature_method == \u0022cls_patch\u0022 || self.select_feature_method == \u0022full\u0022\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/vision_models/llava/llava15.rs, mistralrs-core/src/vision_models/llava/llava_next.rs. 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":"mistralrs-core/src/vision_models/llava/llava15.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"005c099495e00b6390d9e8bc93a18bb00552a53b4c61e6a36b78402a7380f2d7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.text_config.quantization_config.is_none() \u0026\u0026 self.quantization_config.is_some()\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/vision_models/llama4/config.rs, mistralrs-core/src/vision_models/mistral3/config.rs. 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":"mistralrs-core/src/vision_models/llama4/config.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b6587a22b3ab4d16b186902eff1d6e38f4f998d3f4340ec1a5b362bbc1304b1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060seq.multimodal.has_changed_prompt \u0026\u0026 !seq.mm_features().is_empty()\u0060 appears character-identically in 3 files \u2014 mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs, mistralrs-core/src/vision_models/gemma4/inputs_processor.rs, mistralrs-core/src/vision_models/phi4/inputs_processor.rs. 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":"mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a757708aaeb543522bc97d6923918232cc479f93f09a6149b7c68c22db1f6cd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060seq.multimodal.rope_img_grid_thw.is_none() \u0026\u0026 seq.multimodal.rope_vid_grid_thw.is_none()\u0060 appears character-identically in 3 files \u2014 mistralrs-core/src/vision_models/grid_processor.rs, mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs, mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs. 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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1233}}}],"partialFingerprints":{"codehealthFindingId/v1":"946d63695661df6743bb7b601531ad057421078afc5d7b657d9c610eba176496"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060seq.multimodal.rope_img_grid_thw.is_some() || seq.multimodal.rope_vid_grid_thw.is_some()\u0060 appears character-identically in 3 files \u2014 mistralrs-core/src/vision_models/grid_processor.rs, mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs, mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs. 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":"mistralrs-core/src/vision_models/grid_processor.rs"},"region":{"startLine":1574}}}],"partialFingerprints":{"codehealthFindingId/v1":"0050c8d071df3829e8422b871805ebfecc0dedc5e8ca5b475901f3ae261aec8c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060shape.len() != 3 || !shape[1].is_multiple_of(2)\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/gguf/llama4_bindings.rs, mistralrs-core/src/gguf/multimodal_bindings.rs. 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":"mistralrs-core/src/gguf/llama4_bindings.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d775b90334097e7e6450424dc2dbeeb9b7ebf0191fe2b80efc58c2ce256463"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060size.contains_key(\u0022height\u0022) \u0026\u0026 size.contains_key(\u0022width\u0022)\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs, mistralrs-core/src/vision_models/mistral3/inputs_processor.rs. 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":"mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"8603f29e0c1588f4869bcede7d10dc3cc3b5af5788eb91f4ad8509306d79d121"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060sliding[0][2].is_infinite() \u0026\u0026 sliding[0][2].is_sign_negative()\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/vision_models/gemma3/text.rs, mistralrs-core/src/vision_models/gemma4/text.rs. 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":"mistralrs-core/src/vision_models/gemma3/text.rs"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3a292591a073d4e77213cbb6d439c362260b0941eee41c9b4fd32706cbb4f9c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060sliding_window.is_some() \u0026\u0026 layer_idx \u003E= max_window_layers\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/vision_models/qwen2_5_vl/config.rs, mistralrs-core/src/vision_models/qwen2vl/config.rs. 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":"mistralrs-core/src/vision_models/qwen2_5_vl/config.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"e558f0b39f729d803da01222e54d08c69ef9aaec57ab15d207ba58676fe73125"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060std::arch::is_aarch64_feature_detected!(\u0022fp16\u0022) \u0026\u0026 std::arch::is_aarch64_feature_detected!(\u0022fhm\u0022)\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/attention/backends/cpu/neon.rs, mistralrs-core/src/kv_cache/mod.rs. 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":"mistralrs-core/src/attention/backends/cpu/neon.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"86cdad76b2d94ef3f6742d58ec3c34c6be9550df45cc240379c806a126358246"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060token.special || (token.content.starts_with(\u0027\u003C\u0027) \u0026\u0026 token.content.ends_with(\u0027\u003E\u0027))\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/reasoning_parsers/tag_based.rs, mistralrs-core/src/special_text.rs. 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":"mistralrs-core/src/reasoning_parsers/tag_based.rs"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"a302db5d112068688e12bf1bdd8562e4fd7ea66821750ae592cdbe162c4bcae9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060xlora_config.is_none() \u0026\u0026 preload_adapters.is_none()\u0060 appears character-identically in 9 files \u2014 mistralrs-core/src/xlora_models/gemma.rs, mistralrs-core/src/xlora_models/gemma2.rs, mistralrs-core/src/xlora_models/llama.rs, mistralrs-core/src/xlora_models/mistral.rs. 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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"5903aff193d5d76b5360a670fd5ae8ccb9f204a589a216527de65ecd694f3cf7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060xlora_config.is_some() \u0026\u0026 lm_head.is_lora()\u0060 appears character-identically in 8 files \u2014 mistralrs-core/src/xlora_models/gemma.rs, mistralrs-core/src/xlora_models/gemma2.rs, mistralrs-core/src/xlora_models/llama.rs, mistralrs-core/src/xlora_models/mistral.rs. 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":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"085b31cba234c298586eebead2f771df5fcede4e27dc5b993ea429ea35f887f2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060xlora_config.is_some() \u0026\u0026 output.is_lora()\u0060 appears character-identically in 2 files \u2014 mistralrs-core/src/xlora_models/quantized_llama.rs, mistralrs-core/src/xlora_models/quantized_phi3.rs. 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":"mistralrs-core/src/xlora_models/quantized_llama.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc3a831e32084a540e35fb63878cc5e4c9b98736f70bcc47a85e4ef40f791b12"}},{"ruleId":"X15","level":"warning","message":{"text":"Length read from the parsed input is spent without ever being bounded: \u0060key_len\u0060 is read from the bytes being parsed at line 211 (\u0060read_u64\u0060), then used to size a \u0060vec![\u2026; n]\u0060 at line 212 \u2014 and nowhere in its scope is \u0060key_len\u0060 compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: it reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB, and an allocation the allocator refuses aborts the process with \u0060memory allocation of \u2026 bytes failed\u0060 \u2014 an abort, not a panic, so no \u0060catch_unwind\u0060 intercepts it and the whole process dies; a 64-bit length past \u0060isize::MAX\u0060 panics with \u0060capacity overflow\u0060 instead, out of a parser whose failure path was written for malformed input, not for hostile input. Bound \u0060key_len\u0060 against the bytes actually remaining and a maximum the format allows before allocating."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/imatrix.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7bc8e161cb6d2fdf9b6c9849331c7676dd31c29a81eb5543fb6e209bbe7242"}},{"ruleId":"X15","level":"warning","message":{"text":"Length read from the parsed input is spent without ever being bounded: \u0060len_data\u0060 is read from the bytes being parsed at line 216 (\u0060read_u64\u0060), then used to size a \u0060Vec::with_capacity\u0060 at line 217 \u2014 and nowhere in its scope is \u0060len_data\u0060 compared to anything, clamped, or bounded against the input that remains. Whoever wrote those bytes therefore chooses the allocation directly: it reserves the whole length before a single byte of the payload is known to exist, so a 32-bit length asks for up to 4 GiB, and an allocation the allocator refuses aborts the process with \u0060memory allocation of \u2026 bytes failed\u0060 \u2014 an abort, not a panic, so no \u0060catch_unwind\u0060 intercepts it and the whole process dies; a 64-bit length past \u0060isize::MAX\u0060 panics with \u0060capacity overflow\u0060 instead, out of a parser whose failure path was written for malformed input, not for hostile input. Bound \u0060len_data\u0060 against the bytes actually remaining and a maximum the format allows before allocating."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/imatrix.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"c459e0d96f89fa5ee78f2ff3bd7b45be9bb73f477f15f7c5b9bba1b510f33be8"}},{"ruleId":"X2","level":"note","message":{"text":"Not all async functions that make a request accept an AbortSignal: Only 1/6 async functions that make a cancellable request (fetch, axios, ky, ofetch, got, undici, node:http) accept an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a page navigated away from, an unmounted component, a timed-out job. Take a \u0060signal\u0060 (or an options object that carries one) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice \u2014 judge against how the function is used."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bd89d014f84408f7063269aa5892ba3df7c9af3e981ecfb0752c5731bc62d406"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: get: \u0060get\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/services/api.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7486f45bb0322d17c260b9fa1ae1c28be7eaa6b0576be9be5bc9e271faa3e34"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: post: \u0060post\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/services/api.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa3fcac11d11699b02e7a6c13e2f6ba8d78b2fea69cffacc1d44961885da2ec5"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: postVoid: \u0060postVoid\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/services/api.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6cd6f7c26888dfc1f20739162736ab67d4d7191ca3fce48b6a96908bf1f8005"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: uploadFile: \u0060uploadFile\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/services/api.ts"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf6a635ef96b209e34b71d2f4d4e12b2b914fedfd2b8c738415b3cb1d5ff452"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: resolveAgentApproval: \u0060resolveAgentApproval\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/services/streaming.ts"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f255e8a057ef13adbddd60dee906277e7a62dc751a4804532aa16001a14c64"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 121 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/chat_completion.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"0380d4970741d06b497678c39a6fcb2cd73105c50cb3d463f77bdf79732236df"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 657 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/chat_completion.rs"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"7558861f1eeba49ee6b04a20c66331a9e458d905ef63308eef18150c1e629ac3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 441 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/metrics.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"622f600c8b3affbb51587ba2f7b16f54c6b0f9e0ca6670194635ddf4f38aed60"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 483 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/metrics.rs"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5a2c0682bbfdfa18c4d95964af7163f3dc238ef9b85aa90233a94c2b4ba70d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 875 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/metrics.rs"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd255b68d444b8740ad2bdd9951c7eade47a01841e6d45b5f3e5ace2c8f9cfd6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 879 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/metrics.rs"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ecf9a7d40e19895340cf6af893095b6270a6899c25cd4a00917be97012c643"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 884 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/metrics.rs"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d3a9c65f0daeb893860ed78656a2c1022603b4816bd98df9becbadff76981d3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 942 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/metrics.rs"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7017170f36ef442a4e9567855c0f784a6ddc8d2d05f753aa87db76122fbb51a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 966 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/metrics.rs"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa1128c44e8338a5a051f527078cef9807982f80896888f74c0f2d6c89e65f6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1057 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":1057}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d7b07ff4c3946b545fea2a826d3b9aa32f028eb158f9cf136f1d0451cfdd2d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1062 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":1062}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04ff72d2a6c19ff94e8a42217c0c167fbea79cb127c85b09b8f2e54c6fa1f6b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1139 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc647bb872d7cfa745464e024d65a444a10cddf6e342090ce03669473618bea"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1293 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":1293}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bfc9dfccb93d22196c4635d5313bdcb17c96a06cca60b48a05c44b80cbc5df7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1298 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":1298}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e74d9f86eb6c0552d0354e787eae49c2666c8c13e740b1d893212b360a6822"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1314 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":1314}}}],"partialFingerprints":{"codehealthFindingId/v1":"83394dde343ba52a6f51b8edd84dbea0d802742dfdd94f0da53ba374f29a92df"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1318 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":1318}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb281d086fedde1aeb9476e5549d77405ae25983af9a176d4b1eb9d10948d85c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1320 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"63813b79f279e33888a124b97453caa0e9567f7de860d5eafc62effa574b2710"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1404 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":1404}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad84f172788f329f54c0d218f81f599b70b3b1323d767146b35106eeef53d646"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1413 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":1413}}}],"partialFingerprints":{"codehealthFindingId/v1":"12fc44232dcaebc2be715f5c657867515c080cb0242afeef5a8339b770604262"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1110 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/openai.rs"},"region":{"startLine":1110}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd094142cb10433f6672d69d119899198b8da695abeb0c8d180c2c6d2218ed0c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 188 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/streaming.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"346fd402bdad6e6f70dc979c1db7bbc0bf45bc2ce33b891cb5a4511350819ae2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 28 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-sandbox/src/linux/cgroups.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b8c014dc359eaa53207ff6a3ec850f01383d58f012e4cc384712103a897145"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 34 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-sandbox/src/linux/cgroups.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"e34f81bf51988f0eb49c28bbb2a61f9e12a0add7f902e7a57e31c368195e98d6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 37 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-sandbox/src/linux/cgroups.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"04d3cff9e890c4131ae5de4bcdc0d84148ddc1cbbc30f1ab7eff77d571b3aebd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 81 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-sandbox/src/linux/mod.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc48937211fdec71d3eb40c4eb67a259ecbbe88d3cc4a99b0b129141cc46fd0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 44 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-sandbox/src/linux/namespaces.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d7aa5dc89f671d07a253bdc21ce247feb16439ef971f67b57da0d376735340e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 20 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/utils/log.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"209d719c3162fdfeb73676e1705ea7b7dcadbc6ff57f62400f3940aa95076a11"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 33 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/utils/log.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b63d6b61ee4685e397fa5ace056b4bf805ed3ff218ab22beadbc503c4c12c7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 46 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/utils/log.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b90ed34c99b793cefff3dafbb6e14405c675b552af6f1355e3070a4ca4333a3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 409 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/gguf/mod.rs"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"801d3ccaf2f05c5c132025bc6a7817564350d7496239db86183934638fea802f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 501 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/embedding/storage.rs"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e252ca19f0adc63a10d6671ed22e0ad9c1a5d2d10a6361b2ef5713cec1318db"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 522 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/embedding/storage.rs"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a3bad312579b0aaab14ae6d6548fd913df7a69c09547912eb43bc8105d7e40"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 277 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/distributed/mod.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"887bc7f7364928345c97258bd0edb5950a592c9984288ac7e1a5e6471ccf5da6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 578 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/distributed/mod.rs"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b561614008c9355e9f17d1a5158406d6ca6e0da8ce9b68541f67b828caafc2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 609 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/distributed/mod.rs"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c7325de9da6616af90ddc690d2deea94b1e85ceb8db41277a3f16cce5d01d5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 640 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/distributed/mod.rs"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f1e316816adce88fe4d3f7845b59c5adc4dcc001f1414811a2032a21d1bbf4c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 727 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/distributed/mod.rs"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d08c2454428519202ca0f285cd4ae5f08af5f4dd16f8f7926e8b0d7ce430729"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 758 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/distributed/mod.rs"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"2387522b2eafe9a961f70e1c42e693b081c7abacf9eaa5844114f382c437863f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 789 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/distributed/mod.rs"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"6690b6023ffea7265d2cae87760e07ee80edbdd4223c1b5e126348dd46c59900"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 528 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/fp8_gemm.rs"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb972a1b3a4c1c1be40e7e4fe67435d9e24985e25e3848ccce746e03c0bfaf87"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 547 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/fp8_gemm.rs"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6092b36c8a2e2c02507893cb156b25753b356e5d237b360d7a5c25f66ea6192"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 689 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"5868c7941c79f3cf2a40cb0ab4de45f0adf34a763e33868877de52a300fcdd43"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 717 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"b146a4d3458a3d6810dfb555da587c19800ec1231ad1754b010e65f66d0a9e45"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 783 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/fp8_w8a8.rs"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"c067e97fc3e8fbfefc49c81b857013c64406935c49fefb0cc14d3af653cfd9ac"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 826 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/fp8_w8a8.rs"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e7072db55f6a9b0208ab3baae37815333b882d70243a3463e7535a197566f6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 961 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5d9c944a8f58c7a0cf7fced27cb47a683d671e3993d00c5f181103961db5764"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 969 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"6066553cac078332493ac39065290ec064911cdd3554d411f3dedfcb08202bec"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1159 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/fused_moe_fp8.rs"},"region":{"startLine":1159}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2bb779742b2a452549e291fbf1ce6810f3816c9104766cecf5a267eb95a1ff2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1171 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/fused_moe_fp8.rs"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d1d597409213ec91f5ac8fe0826bf82921b9c1006af3a3d7e6b4d96685e9247"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 893 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/gdn_prefill.rs"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"899d8ab6f50699e5d1b94cc9f2edd9a5e32ac90cd6482754a3cde246f0caa48a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1432 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/routed_lora.rs"},"region":{"startLine":1432}}}],"partialFingerprints":{"codehealthFindingId/v1":"d168296d5b4db078b79a3f314b90efc27ed1197b5f08b0456477882a221e6229"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1437 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/routed_lora.rs"},"region":{"startLine":1437}}}],"partialFingerprints":{"codehealthFindingId/v1":"b29b4e40dce84f2d6c9927d32fcbe39c38eb4827611f54251b492840ad0fe133"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1442 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/routed_lora.rs"},"region":{"startLine":1442}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c9cbb3540187ecaf0431f7b94cb6783ad0ad62778352cae21f4bfcd6be90870"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 556 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/tune.rs"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"be21398cd7e28896acc0f1293971bd791dbda68a4543923a73ee24cc7ca977d4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 561 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/tune.rs"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"c62d17fe9f18a92ca548aa8fc72b2129a84338c8a98fa8fb881b8ecd1c2d1233"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 596 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/tune.rs"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"28cbc11a2e84af8c62367f5e998084458ddb023e7b1bb27845b2a64520d1fd9b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 602 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/tune.rs"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a33861d586111547d572f02f8f96130ae7c44584375d6944f2eea99985fe1f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 614 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/tune.rs"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7dfcb6f6a894b30e224a2be84ea6140cbc79d38ee586ae588a9b592591ca99e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 639 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/tune.rs"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d86be3f7e95951c18edf6c32c0963dfab850fca3f0f9e9f9b6340931b9252e8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 656 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/tune.rs"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"182977b27f04b59a750c0df591ae69ee2d5337db04c697dcc47a5fada8ddf74d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 667 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/tune.rs"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a934496b6dcdb7c4f85657bec7941e2a514c0ac4c747952de38310ec1db4e32"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 696 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/tune.rs"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8bfc175683684a2c9f951c2f111aa7fa36eea9603e3aa47c31362a5186d112c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 882 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/tune.rs"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbbf3135153779073f16461c9c4ad8647dcbf6319c6e604b4b646c8cc579e79c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 167 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b8e9b9669aa3dc8b141bd066050777c91a2430263e93fb7c65a727511fae298"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1153 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-mcp/src/client.rs"},"region":{"startLine":1153}}}],"partialFingerprints":{"codehealthFindingId/v1":"4623fb2244155ad2997d7fd00962917c4b9688a032a39de8cf1d4c101a9ba026"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 353 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-mcp/src/tools.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f04cda78f0f119506f7a4fece59ad211e1ce116ea11690f9a680dfdb0f2b47"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 362 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-mcp/src/tools.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"25bf62aa72502207254c995a3880e2bbfb9969c61cadb25809150e3d0368273b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 104 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/distributed.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e39aeaa46e40e0957a56098a4cec13d372fec61ebfb23d378bd7b9ca3252820"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 110 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/distributed.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"55543a78ecd49cf1517b146f47aec5025d243fca1a301d78248c299f133cc03a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 195 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/distributed.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"de47d583698b2b002e83772894d0bce054070c6656269458880985cb27ab2b7d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 203 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/distributed.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"6770349b9b1989bd076fa683a65dc1da03cde3c98927fe505a763feea828ce38"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 209 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/distributed.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b6e6bd052e5d911c709815f78b7151f9e96302883e3c858682a4b4f0294174"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 241 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/distributed.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"a285c2426c6b2f5cd8e6cbee395df1e456a1b13d966986070396c3993b10675c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 249 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/distributed.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"983257c8bfb2aa8a8a1bbd7582ad17a799e94354194b962a7aa5ad6d2ca35be2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 255 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/distributed.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"89720456d49b9d839cc7834cfcefd9553fe8da250c0e7ff43aacdb714a21f59c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 289 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/distributed.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"4687a8275bd9e4449609adbd6ee8cf4194f7ad082e693d0ec7ca8b1ead90fad0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 295 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/distributed.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"57523860c427c187188357abebd8a404544cb27cb57b22766fe7cbdb50c82719"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 329 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/distributed.rs"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"92bbfd4b6952a0c24fa70b10d71e9538c99a4cfece638bc3581ebc3e3e1c7f49"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 335 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/distributed.rs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"0416489878d1774d0dc88d63952435687204e9b72a58bedc2934dbae5278ff8c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 356 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/distributed.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a178603fdc65ab19abef18955c5ac7d6c4fac9cbfe5fbf77ce848bc8b01cdc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 362 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/distributed.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1e420f60fbcb8908539e43370716410d214e34c60ac2956557d599a2bf6af84"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 372 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/distributed.rs"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"24428ffdd15f772e625d1c3d50e6dcb80f1b7a8d7d1652b348455dc695b2bae5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 378 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/distributed.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"443f24628b3f24d85d9809a36cf30221eb04c59824e5eba56f71c7492c5c2bc9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 389 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/distributed.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"d59bb41f1104105ed90e6860b53a58bd048ec346368342d5ef16b3c5241d011b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 399 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/distributed.rs"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7909d78cd3625986db24e44fea906887bd975719600c9c73f9db79260179883"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 412 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/distributed.rs"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca45d3283e56f526f92d473bfbf4787010c40c96881413ec7196728758b3fbff"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 482 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/distributed.rs"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"484b5f2decbcc143a18a1d20492ac2a3dcda363cc15b4a8d75ddcd46624cce3c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 623 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/distributed.rs"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cdee7b94130643c1258196f99a16b02476b9d681756e4ecf9b509bdc7fe3dd0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 624 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/distributed.rs"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd008eb756c2a96185b6a5fef95f0f9750014d8ffce26df0106d4885bcd6633"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 712 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/distributed.rs"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f92babd614dfb00565b53d10a457a360b187a74ebb9065c1bbb9bccc3bb7ee5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 716 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/distributed.rs"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"256ef9e1b42d08cac80d789e71d314451ae12d248b876f06f4e537813fc84c08"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 725 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/distributed.rs"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"a80c2806419f8aa102a6637a8db1634fe27094b6302d4740146e072cddade4ca"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 737 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/distributed.rs"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"db013948bfa19fa1f12d156ebc69600f06697d6d5a9a5259498d0ebc6d0c8106"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1240 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lib.rs"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"e490da3dba767f4791e4476aea925305bcb1a1ab1c58aa3871ee3a6a385203de"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1241 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lib.rs"},"region":{"startLine":1241}}}],"partialFingerprints":{"codehealthFindingId/v1":"b722c2b7e5c34b4cfc24ec209163518677eb5b0432400aa99f293719f16e0d5a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1278 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lib.rs"},"region":{"startLine":1278}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d9c05e0a7e8e22bc50fcfe39f3cafb1d738444ae0f0c5252d8c0e85b296a18"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1321 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lib.rs"},"region":{"startLine":1321}}}],"partialFingerprints":{"codehealthFindingId/v1":"a56e663181e3403c472346293c5556428ff0cb4e38e3a6b515e7bd165f7d0c1c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1404 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lib.rs"},"region":{"startLine":1404}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa054c45056458564d14b1ac48952e8f1adc4cc2c30964be1c32d60c9371f20b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1409 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lib.rs"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe6fd24f74ade192ddb0d3888c6dabd155eb7b863458e3e80bb0da7e1450820"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1416 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lib.rs"},"region":{"startLine":1416}}}],"partialFingerprints":{"codehealthFindingId/v1":"9824ccb0d48f4fba5707841dd518c67410b4da04ac9e9fdb735b897a9918ea88"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1478 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lib.rs"},"region":{"startLine":1478}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4da436ca58ec5e25c6a54613af6c7a6b4265f0e3bae96cfbb559eebd12b9e8a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1495 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lib.rs"},"region":{"startLine":1495}}}],"partialFingerprints":{"codehealthFindingId/v1":"201afef044363b0f8fb30af9add2ff1c97ce345f9cdd516c2b656036d4f460a3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1498 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lib.rs"},"region":{"startLine":1498}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8557caaf067382e346502df4cfce8311eaed6cdd3880910dbc112531a4466d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1534 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lib.rs"},"region":{"startLine":1534}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb5a5fe90aa1b0282e7c4d6a40388784cbef1d137a7d2d7bc1f1f94b7a06e7b5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1547 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lib.rs"},"region":{"startLine":1547}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c619e63babd3d42c1f370a220e2e5fa93ae7873ae36fc0e2a90b44cd7ec747f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1550 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lib.rs"},"region":{"startLine":1550}}}],"partialFingerprints":{"codehealthFindingId/v1":"ded6b4cb966398c564fb9dcdce7b375b2c937dc3d0125a8adcdfe098f0920679"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1586 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lib.rs"},"region":{"startLine":1586}}}],"partialFingerprints":{"codehealthFindingId/v1":"c784fab87e4fe5a57a97570d97ec2c0e371461d5c3a1a65707f90cc2b00be9f3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1588 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lib.rs"},"region":{"startLine":1588}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab5716e29dfeea0519995c24d5df7172a65c832f26aed3ee2f7aaeecde71c9f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1734 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lib.rs"},"region":{"startLine":1734}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a552ea8935558f711f6d8189e2e8ec17535473310687771afaa4ce5d0efd2f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1776 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lib.rs"},"region":{"startLine":1776}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b8a4fac79d7dae2f56f87720654a1847bd48538abee0e01c90ad6439665c653"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 1798 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lib.rs"},"region":{"startLine":1798}}}],"partialFingerprints":{"codehealthFindingId/v1":"cafb51363fa65ae7371bd35f5ab302969a764a5de0325729e34f9360cad0a5ad"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1803 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lib.rs"},"region":{"startLine":1803}}}],"partialFingerprints":{"codehealthFindingId/v1":"a682caf66c9975b51037b851963727eac03ce8a57066a88c5ce64a974c45e073"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1840 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lib.rs"},"region":{"startLine":1840}}}],"partialFingerprints":{"codehealthFindingId/v1":"18cbbbbf038d7064461374f75c58c41e85b60bdc534ec221fbe9424f38c82ec3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1863 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lib.rs"},"region":{"startLine":1863}}}],"partialFingerprints":{"codehealthFindingId/v1":"583b4f18359869c801d10fbfb7384d7baa083b9bb8c7fd79eb3e090dee424b6e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 2364 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lib.rs"},"region":{"startLine":2364}}}],"partialFingerprints":{"codehealthFindingId/v1":"1de71c9abe60ae72b0f716c91d0c2fb5b9a03d8248b4c76ee9866830c542074e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 2451 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lib.rs"},"region":{"startLine":2451}}}],"partialFingerprints":{"codehealthFindingId/v1":"29cc2fc347fb3dac1605f82a93da634aba9d8efda36af84feacfe6de3da1af2b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 2745 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lib.rs"},"region":{"startLine":2745}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbd8ad60bc8d7ea6fca7aa33858850f0d9c22804bb6d5d1baabc21b46dab1012"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 2810 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lib.rs"},"region":{"startLine":2810}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc886484d81c6b62c1d6e7aaf20409bff02644b5ffd91083592d6b3e114f67d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 2919 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/lib.rs"},"region":{"startLine":2919}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ab5ba06cada14345eb75fb414a0e94a8aabaae4003babca9e5072e831b1436"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1392 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/sequence.rs"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c589e8a5414936a44690bcaf6d38c1a35fc95879a6f6066132d75c4c0eb74e1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 427 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/xlora_models/gemma.rs"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"9da8f06fd547cb0bafe795dab3c12ec4ee74b7969001ba1e571f42695174df40"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 458 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/xlora_models/gemma2.rs"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"702fb36df7b744d5e6989adf30ec36f13d0731a56e0f12a66d0b17b9c6527611"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 532 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/xlora_models/llama.rs"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4570d945f876de902a4e4fa71512d7bdcf55bb73748f4489f6ad3b77660f94c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 423 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/xlora_models/mistral.rs"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"235b801db002d127435a8f3c8e95a138663004568ac9e445da19495c2c1002cb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 553 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/xlora_models/mixtral.rs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa032e745c1f5de50dfad14a39f3ad42cae9c294aeb71329733a475c316edd2c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 404 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/xlora_models/phi2.rs"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8dfba3e4162a6d4bd918203c81781453c8d2473aa9c39b12b3f96889ef3bbe"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 390 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/xlora_models/phi3.rs"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba24b451392218a2401dcc466843b5686aeb537c4c9db1e9e917328692fef2c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 412 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/xlora_models/starcoder2.rs"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"c226459205ba02be99752180f3f080b18d591b8bc0226daccb7ba26a3e9011a8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 750 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/mllama/text.rs"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f49ab6d697ecbfe49c9c8381ef59b9394d067b12a48524fef59a3582cd81577"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 408 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/llava/llava_llm/llama.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2cde3c88f6f8e31fec0441cea52369f5546572e5099a2325fb5d472208c3f00"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 429 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"384df0a739f3416e12fc081f6820aa61e16f9176d63d56950853fc1929f60c25"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 796 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/llama4/text.rs"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"b53b6609612115a2578adc7c85048f34476d5184d537344259e44f3e35353cc1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1628 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/gemma4/text.rs"},"region":{"startLine":1628}}}],"partialFingerprints":{"codehealthFindingId/v1":"188c666c829dd1dbaeee1e4452c3a3ab2f34382dbd0b5ebea7f584caaeba605a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1318 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/gemma3n/text.rs"},"region":{"startLine":1318}}}],"partialFingerprints":{"codehealthFindingId/v1":"083500ede0b68be715187e31f923a5dd1272cb608d7dd0512f85fff4cea2561f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 434 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/gemma3/text.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"09dc1c00a5b0a944d964e0eb1e524f2c87776e10fecae728894e5ebf86529b2b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 123 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/diffusion_gemma/generation.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc7fc38a7ee81d539d99e200264161a66c778b8be4ee4724b66b56a3e2738687"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 255 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/diffusion_gemma/generation.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"9554bef918bcae1264787b4c002b424b793d5aef82c9ec95ecfb73a938526f94"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 129 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/utils/gguf_metadata.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6307f368e6997348533d3bcc6ee72018fa255d67867093ba64f133d0715862"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 133 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/utils/mod.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"a962a90230d885fdf6b6e7672bb3de71361d55fd22e1537b40e654f4fa940c52"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 152 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/utils/mod.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"d11cbd0837a388dfc7818ceb8ca9bb8c7f0f52ae65ca6c91966c80166a34f3da"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 217 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/utils/mod.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b72d118954cb7496b63f2e60e3874bb5330d8567863128eed874ded5052bd51"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 244 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/utils/mod.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e28b3ebeb296c4cbe37422aff3e34450fdd945587ba26983528913b12958395"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 262 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/utils/mod.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b7daeabef405b9786c2e36b9cec30d9b28c0d4bc38c3d40333dc77ce8a3992"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 93 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/utils/normal.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bddc11f891cb820234f56f01385a0f3d6c997278e40aa471236b069f3b81dc3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 20 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/utils/tokens.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"1af014936de46ced8324440dcdf0c1b0a9fd2596ae3867117f5a43b3b1b0e096"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 304 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/tools/mod.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbca95ff672830af8153b4e7b2b25df0c178c9c548c2733ae7fd489e9c14b373"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 274 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/tools/strategy.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbdae2b12c31d27fbbf087bd0147c7e8c8bd57da43bb02f5635ec863facad20d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 506 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/speech_models/dia/mod.rs"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a8c70b45b5c12587173ebf198de5ce2b2189f74130dc9c8b7130889cca31f2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1640 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/speculative/dflash.rs"},"region":{"startLine":1640}}}],"partialFingerprints":{"codehealthFindingId/v1":"c55dbfbeed6eadb0fa3baed8f36fd9b1f4f22e4813f8744c4e21e1f3c9e6cc92"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1650 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/speculative/dflash.rs"},"region":{"startLine":1650}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab1e644a1c1a8d066c1b280ec90d041fb41d8ce63c6e488d66295f1a331a5d8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1720 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/speculative/dflash.rs"},"region":{"startLine":1720}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca36bcd51659a45c199db2de920c9db4fe92db95775844a2ee5dde949c20b23"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1975 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/speculative/dflash.rs"},"region":{"startLine":1975}}}],"partialFingerprints":{"codehealthFindingId/v1":"52015e4d053b391ed493b660e38c3b9f1b2142cd62e9a76fb8d35942a9de84a0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 2584 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/speculative/dflash.rs"},"region":{"startLine":2584}}}],"partialFingerprints":{"codehealthFindingId/v1":"5176b1908eb63f7a35a7c9b5b082ecc563e600a7f98d1cd40a3234692d69b1d6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 27 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/speculative/logging.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"df962435a80096eb211d13470f6a21189183d67b3e15e78badbab93d67a90b8d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 299 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/search/mod.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f1a1ef01c4431c81af21032dd697efbdaa07c68df29f38b56d816ce66a98091"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 343 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/search/mod.rs"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"63fdf0ecb98a55c93d6e886d0d3dde4d0929509f8de7b7e43bdaa6af4c8b2a80"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 364 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/search/mod.rs"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"2036d3bc4ab743eaf1f3e7dae35afdc6388cb52dfe8b7e3ca67661ac7b742aa8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 330 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/search/rag.rs"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"00cfa45ea902a0c32320f8e21bac2fb3927d08c340fde834f543b778a7642db4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 215 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/amoe.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"de80a9ced0951dd2508d50405edded911dbb28165b08dadd16dcf56c04095b38"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 226 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/amoe.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00a45c2487d9277c2cd7ae5fcfedbd5de1fc1fa7fabf092c183f23ac410726c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 534 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/amoe.rs"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"de0451470bf6ebe77f8f5539281a2e2cc5ef2cc859675a1bc7a74fe6d394fed2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 535 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/amoe.rs"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"13865b522fc355b8a3ae0c5e3087a2d2e11efc26ee58db3c19307d2466d0f222"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 563 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/amoe.rs"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dee73f282d090c3b4da7a4a1c470cca7f0f39a38a3b39911d50146c0643fe58"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 322 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/auto.rs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aa77c2e2e18d77793bdf58f0cc21eaca089635ef261d6e1101ff4aa43c7f07c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 369 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/auto.rs"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5420c6a69c818898d0912c586107712d31e1272f9487ae020a6304235259a6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 396 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/auto.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b926a3f3d9eb96a82769ebb3e155548e906de28c6b2ae10cd34c7819832c6a3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 212 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/chat_template.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddaf72ada356903feee595a6b19c69f573ca43a1e3d6dc676441c2748a06ac68"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 251 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/chat_template.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b9f16b84cfd4e31134f3c0b0937a9d31d26d9f69670329b541a89bd066d6cb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2471 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":2471}}}],"partialFingerprints":{"codehealthFindingId/v1":"c387a27d4f48de0522642d6d5c510db394d72e44e352384d0b80146e0ec27496"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2482 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":2482}}}],"partialFingerprints":{"codehealthFindingId/v1":"acefe509960dcc23ea3fb070a798cfd95229c04516cead2d65c6a7006c1caadd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2618 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":2618}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e70d46fa26bf33e46feb5364c023775481edf6daec6e805d6f3bfb2dd4dd93"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2628 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":2628}}}],"partialFingerprints":{"codehealthFindingId/v1":"3208f62a4979fdf49c047fe15cdc64d599086b122f049f01854b4ebaa2dad3a7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 2734 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":2734}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd90ef3fce0d1914d34721e51072de26b15588ee10bad4b3cc3cc3053d66785"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2795 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":2795}}}],"partialFingerprints":{"codehealthFindingId/v1":"59776181177134e2b363906e3877432326b3a000bfab0b40fc589e491bb36ac6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2816 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":2816}}}],"partialFingerprints":{"codehealthFindingId/v1":"e82156f60d78a553afeee470e5f6032c1cb955fecd3a66f81646430c632430cc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2821 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":2821}}}],"partialFingerprints":{"codehealthFindingId/v1":"c41009906d6db0b1d2da3eeb7bef4702ddde824b9f96c7d8c5c32f219cbccf6e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2839 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":2839}}}],"partialFingerprints":{"codehealthFindingId/v1":"63bd7fd2192e839170e81fd337104d7e1647bb4a6f7c74dc5b77b893a2408ccc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2861 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":2861}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3857f99dbc9776f9858c7b3578a0e91856fd57e070188eb52518e92856053cc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 3048 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":3048}}}],"partialFingerprints":{"codehealthFindingId/v1":"b57ae190d5aad7366cfbbc6d30994909ff2c67d0b93e75bcaceb192161d39b8c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 3066 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":3066}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e29a10e5cf39a0e40a239cd70da4797222cce0a686d45def938537ae708f42f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 485 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e429d7196b90b033c5ab84c04064212ff9807b06f560e6619b4bd623fa74b00"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 561 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"492fa2d7a9222829fe2c0c9a2661636f6f4eb6cac691b0db53cc2c277161ab6a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 775 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e230c2b722d07c5f6c08c8c5d731c3ae876fd99ff99aae80775c42feba7c1c8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 145 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/ggml.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"7adfeade2db3d38a0fec25e05a8594897326509c115f8e7109d071f554239ea3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 214 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/ggml.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbad49fb129b16ccc4f249f5b884019cb81514c691de992129fe341a15660f91"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 294 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/ggml.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c0be9c3dfb9f4ea3a0ac77e69a63e7b06231a5ca5d98497768887de4775ee7f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 309 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/ggml.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b1cdf67a45f39a5136bc7d13ceba7265a21182aba9e01076d96ce6a79506ad1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 240 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/gguf.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eee096e361560875c7e1af75bb8a8fa867e7c9c33d39f388ede94cfed5d889f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 245 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/gguf.rs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0c16c41a442773996459c8f30d6c0dc98b5d5531e9fd8463cb2e8382a9c573"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 355 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/gguf.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"25a2077ad69eb071e39d596f59f16a0ce9d55dda7ea6da89691fe2710758d696"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 439 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/gguf.rs"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61ced29a3c87ad0bc2beed43e90637a56d14c997a6d6da135dab2e4fd53b348"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 537 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/gguf.rs"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"648c985c6fae799fb1d9ea116d83269452d7a4a777e5e6a4ad468592240cb3e1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 552 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/gguf.rs"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"eca39989a8188edf548eb70fe9aa366f1551bd973e5200910458f7846cf1d7a2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 559 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/gguf.rs"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd7866685a9fa4e0e7905fd688b86c7a69aaafe589f3ff708543b5a937db8987"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 653 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/gguf.rs"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"29796cd672738675c41e077024f3f9a6d628958507937c2bb08b8b137d5bf0da"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1028 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/gguf.rs"},"region":{"startLine":1028}}}],"partialFingerprints":{"codehealthFindingId/v1":"42dee1b46d43ae60f20182df178e7184c9e416d894aec1e7ff96427963cb1e40"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1051 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/gguf.rs"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"cadd326c2d7c291b3f5c94fe1db84a44276897998174b9ff3fa50b3b86bab9a2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1061 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/gguf.rs"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"902c030c365ca93841c4f07eb37e39e1d3fe195d5db7ccc82f15d3a172fa4434"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1073 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/gguf.rs"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b248795af3075f0cb2884727b6b4f6c00a5245491e86bfe78f5fa9d001f6da"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1118 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/gguf.rs"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfbf7890e8f298f70c6c6e4994333119186425fbd8718eb63d8cf866a879246a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 208 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/hf.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f8f0efa883493d4c86bd784556bde6fcc5b9f6c590a98df9ce8d3a0695242cd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 231 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/hf.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"76883f0b6b44bdeb9764d35daeaea12ae2dd8fec0b50467af39a3e25872cb004"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 573 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/hf.rs"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"e47f123313ff7e9c1d5d23c631a91cd4a4149da99ea593941f12b72c32c3de2f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 586 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/hf.rs"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"196dc82fc4de59b217c8bd4911550c881d7058eff11be72fc5208b6e5c7114af"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 631 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/hf.rs"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab104de4d96fa4489e70802b7a0ea4d21c4cb58757811ada28358f38f376002"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 658 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/hf.rs"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e5f2b3c1ef3ba65fff83e029b50349a6e61137628002b0e1420de53887d1f15"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 682 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/hf.rs"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"9916a9a5a8e18a56e8945b1f5f00c1a336b85205baaf72a53fe656cf849a733b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 877 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq.rs"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf303430b9485cb67f699cce7a0e0187b19f0ee6057589b7b4a5cf99003fa1c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 878 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq.rs"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"687d3c75c76934cce0280f01831723d629b5f6d09ec7180be7aeab277623c496"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 899 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq.rs"},"region":{"startLine":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"754e69ea6262d715cb627074774c6fb46e84b0e50215ab6f4d7809ce393672e1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1062 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq.rs"},"region":{"startLine":1062}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4209b6b69e15764e2099e679e7cb1b53b2290889ff147eb0448269c8d9b06ad"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1064 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq.rs"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d1cf13f80bf22c12c6063f2f90971f95df77857a4c94d3e0a0a6d6d909d3af0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1075 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq.rs"},"region":{"startLine":1075}}}],"partialFingerprints":{"codehealthFindingId/v1":"8623f4e57e2f370e28d604cf564ac2352ec4c441253c0b4b8c54c226acd23dbe"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1112 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq.rs"},"region":{"startLine":1112}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed87f9795b3229ffe5a2e16408229b4ef8e15d57ef0565ad4b70ce935f388254"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1146 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq.rs"},"region":{"startLine":1146}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a8c5498569c86d8a56b5b8c2421616c181211cf6a2068f0a5caab368228474"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1165 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq.rs"},"region":{"startLine":1165}}}],"partialFingerprints":{"codehealthFindingId/v1":"d701b1aba9f3908702a65775ebbf4fa2627121bfbeafe9f35931140950f2fcef"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1174 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq.rs"},"region":{"startLine":1174}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e5dc88337ac56ea9bf44f99aa267422aa8e7fed50ccfcb08b7e2f77c30b432"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1189 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq.rs"},"region":{"startLine":1189}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f0c3a465cfa0b389703573e0e46618d82b874ca0b7a06c0092a5dd0a723d3b9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1198 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq.rs"},"region":{"startLine":1198}}}],"partialFingerprints":{"codehealthFindingId/v1":"7837b4f8bc27e16ab8ad6e8d12f9f2303c4f0dab2cf1c9c7142e6d762df08424"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1207 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq.rs"},"region":{"startLine":1207}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c96de283a4197b7a2ea78333897163d25f7cdaeec114ad45f52b899d7c4729a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1216 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq.rs"},"region":{"startLine":1216}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd586cb35f2d3606cd319e6357b0f202676836bd5da52f7cfd03eaa88969ab00"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1303 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq.rs"},"region":{"startLine":1303}}}],"partialFingerprints":{"codehealthFindingId/v1":"5febadb4f14d32c38258acb290d125c10f6dadfb1b60f5dcf8caf078fd8f2f19"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1312 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq.rs"},"region":{"startLine":1312}}}],"partialFingerprints":{"codehealthFindingId/v1":"23c1cbeaf42c30bd3ae08758058163b863176e0feed37554c7d24d9137dbeb11"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1322 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq.rs"},"region":{"startLine":1322}}}],"partialFingerprints":{"codehealthFindingId/v1":"dabbde23b515f86e99c650f05e7055b6297518d2825a1672a10e0e168d9015f8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1329 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq.rs"},"region":{"startLine":1329}}}],"partialFingerprints":{"codehealthFindingId/v1":"955426f0f4c1eb406b83b1f5a8a29c20b20fc418e1b99355d5aecf43866c1cd0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1553 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq.rs"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"501aba0068f38cf2c5b6e9566ef7d198c2c9a9ad5947d93b30d7a31ce283e90f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1556 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq.rs"},"region":{"startLine":1556}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9b51f9d5ffb60a6c1a4fcef85e2f264853065a00ff69204803bb829f05a5ce2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 51 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"02c0bca467a8dfdf776c83abeaea51bcf0e8031cd1484164ce30d8b6fec9bdde"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 54 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae022d3a9606a6b4ee0891d9298cbb94099083ceeafb5829e828c92cacf1574a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 57 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"43864ac38e4078ffa7eda380ebc21a7901908af400dc0d51feb2d1ff2b8ef078"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 63 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"44652a5ca687c373dfb003d92424af353bb235da67549dd189ca2b7be959d9c6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 67 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"35200729c5c2757eb58f671702fc24cb85027cf7fc8a08089fc579af7c50428a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 73 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"32cb817e298dc32dbb776a9ab65dc9c4315d369d9de94dce60be4144ce286b26"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 77 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"007fb5a4b4515c3e589197c123a234b7808754bf4de8fbaaa846b8a1b1e2e617"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 110 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c436c513343f323f09e2c789f44e256d1fd3d16d901384c7f24dd0ca825e30"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 121 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"d88549f8fef3aa39cb6f31039bd614649109d208b6e94984a61b9ac2ad780771"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 134 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"799a7900e3d4d707c6967a49f1511cafa149cfcfe6902adf188c720fa8f19dcd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 148 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4f95ef2cb4864a5f457fa3d0562c0cb542adb2f62348f6ccc55fe4955a1e51"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 159 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"be478a1dd71bf3c437ab4cfe2da85c0e3ec5932dc6b53c32c09b3c10ace307a8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 162 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f58ca9ddd7a191a8d256156cdbd402efb5f5de64a213d8a3cdd4a3027dbab6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 174 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee80c91761d9056ae07a545346175f9e830d6873d0abfea9e2848cad1c680c2e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 182 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"6daac10e4b6cd23c868e2245782730d12f1af48dbbe109d33e7e4f3612431284"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 189 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"320594c6d485b8d3781cbae03f2731fc43780480f28cc1cb091040f49172d559"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 234 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eba5434a90b270838eddb651be842ea47a7a6e6f6fef175e44fc78eeacb4345"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 237 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3632527b94dd4227f1f9408301bca598934b3e818aedac8d0ee1c10c9987c18"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 240 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4fb3d3e025af0faef230eba51c453bb2cb5bfec99a0ef2a0dc77db22421ab9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 246 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac97768e2bae49ed5aba3c6f5320820c7a2d991a9ff8544b135ec7ae112e94b6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 250 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f71672c45221677e723edf136bafea4a3b4f5cae672bbc1a18fb781c1f21556"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 256 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"768e4e193c7890c4b1194317bb9fb9b5705259fb8b5246e8263547380c9160d5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 260 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"7abbe3638849c1ac41a50f43f4926fa273f82566169c3a08249e02657d2ea6db"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 396 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"b091c1465e5794bc662e964115132c63f907d6228cb429f8df13c74d5f806fc6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 402 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"31db23ac1f813b1a4c2738c4324fb647a001c7963266cbefce3178ca689ecbba"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 416 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9cfdf9c4d4b982708b287b0cb983130d1de32bb950954a5565a0ac6daaf3154"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 467 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"845acb389098679828f48328855866679de39eaa6dd90bf0423625c970ecc66d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 476 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2a16e97ff5e2577fe0bb7c88855678818ec29389dace3affcbc9cfbedd2e7a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 488 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c25bf27f630f7271df156f0fcf773707f9765d89ad67828ead91341a4764403"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 497 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"d45bd46fd4aa6c1e48abb78e78eea7903f243add0ede1aa693cfd984148ba710"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 512 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"637efb042eaea4eb027d48c602d6a01aa261540bcf77e55c8782c092cb1ccb2f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 531 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"82b29e0ad25c8ab1f0e872b55196d5f87140464f9cde02ef60782faf9823245f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 544 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"711d2ffbf0843b8340f6e9409cddbf742ba51e495d1cd64a69069f1c4a0a4cf7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 558 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"2990a7c1e9f622b4b277a164a31d8269b883cb8ede553695c7e7ab60e2223313"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 573 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"492e39ae10c78a8657a62eefd9942fb6d5d23bd57bd672e51fc88485b0c36034"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 585 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"42678fd4206cf8bc353a2545f6fc292b18279bfb151c1bc9f4bc76e186486351"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 591 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"458b848e3417fe2c8fa6935b416d85f34d85c7359a023f1d0df03c13c5fffb3b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 594 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e7ebe863985d23de699b3c7a401d41d6b7fda157a764f114acd913e5a4684a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 612 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/macros.rs"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"81fc6d5684b6e4c48b95a5cb2e60c56406804b4003ea6a08747c71a5f8cdf50d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 231 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/mod.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"f369ba95b46c79a9d58af52dbab9afdcd35e6aadf5b0e7c5699c21239afd8a3b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 234 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/mod.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fbcaba6aa96e857dc7c5039250db7ab2371b17a887fe5fcf35cc2129072def8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 242 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/mod.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d3e51ebf15bae16c639d1c9368cd1e2d82ba1a0f56dda68127629b384c6c96"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1529 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/mod.rs"},"region":{"startLine":1529}}}],"partialFingerprints":{"codehealthFindingId/v1":"382f9aca3c6f73ea8189e3ba2336693079498a9383f43d93296c53730d8767f4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1531 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/mod.rs"},"region":{"startLine":1531}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b0e201f5657f3f15af505aaafe0b54dae0ca6bc4305eaac73354eb99583a79"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1535 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/mod.rs"},"region":{"startLine":1535}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e2ec933de8c89b0d47f61968781cbfba242d55adbeaa483dbecfb67f1e6d974"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 627 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f6ca570fb23012c273e76696aa749c15219ec10b195a480680490e2f4026d9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 725 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b7783ab99bc72c74fa3d3dd613683ffb06a88bee88534c5df2c340eb5b46033"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 729 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"76668f00ca9f888decff6b6c7db1055e379f240afbf116db2a46622f72e6a0ec"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 1055 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"32d56f0a296a23f9a5612bc0787423ef7fe332f8b2078a0b880c2c36fed1a318"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1092 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"e26a037fc7b78ea38721734684bffa5ec81289890222b928fe4e846c84b3c5c5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1748 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1748}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d301ea7566775a2a3e986171b4346c4da2b7a26d31c5a8d154e03db02559fa"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 1892 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1892}}}],"partialFingerprints":{"codehealthFindingId/v1":"23d61e4f96c3b657d32058f4804e345545055f3c32fb4d72ac833c27e0492816"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1928 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1928}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab411c86a2c3e26d8f33723c1eea82b8e05b7efbdb0a60b4b49ee4bd0cf671d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1931 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":1931}}}],"partialFingerprints":{"codehealthFindingId/v1":"46bc5570489bd1e777e9fd9eda2f129bc43f927683b0e1b9f856bc05f380c67d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 2531 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2531}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a78e9152b755dd28b7acb9ae2d40164ab06f5b86f607c3fb1525f922619c1e7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 2539 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2539}}}],"partialFingerprints":{"codehealthFindingId/v1":"796e40332deb11b7865f623d3e7916698634dd3daa565ae44e9ba1aa25ae6717"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2821 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2821}}}],"partialFingerprints":{"codehealthFindingId/v1":"9640c12e1fdf4709b0ef027456311976fb1ec3dfedbdaec530f61078f992bae2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 2827 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2827}}}],"partialFingerprints":{"codehealthFindingId/v1":"291bb6705e14de07372678f88b2739528a3e47b66e90811dbf35edc43ea9b474"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 3502 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":3502}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2afd967953ce6fc98f88d2b82c356c8855b06018b226f10a191c3d4bd02847d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 490 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c44a618d4923b6c41ef36201646fbc3c3b994100ea69be0d9e2f5b6a7f09e0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 1058 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":1058}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce54670cf0c739cee28631d82d856e10e60caf8ba793fe151a0a4d6cceae96e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1102 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":1102}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb7d0639da3f98c74a1813b08e2b69291c20f5a04cc474ab2849995a375440ab"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1106 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"8161ffc904c1ec96693572609785acfd93150e4dc45890ff0d0b57e0a767c6ed"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1118 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"40cb535890c4a1ab392bbd9b5306985564bcf9b6f4fc3cbcb9265754772eacac"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1406 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":1406}}}],"partialFingerprints":{"codehealthFindingId/v1":"7400d4a2766947ffdc068bcb5cb3f8a171708bbb1da28390a653ea04fc83d220"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1618 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":1618}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e658371f763dee008fad24171391e6d955c5be6d5c0865051072d210183003"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 1742 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":1742}}}],"partialFingerprints":{"codehealthFindingId/v1":"395b5b3f3a84b1f96e2ac777b6f675d2c8b2814492e457191998449623807f92"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1778 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":1778}}}],"partialFingerprints":{"codehealthFindingId/v1":"04dd39f1e25161e18dadd3d942c758c249fd39876d98f182e3366ac085efc2d1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1781 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":1781}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bf55866daaacae8331d92c6239234eaa42729800fd6c8ffb50e6b2f3d187c9d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 2175 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":2175}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb542c57a91ce59ef231634397cb752128400f3b97eece3e27653d81870a526f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2433 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":2433}}}],"partialFingerprints":{"codehealthFindingId/v1":"b85e8bb1be9225f07eb84b62f1132480852382ad1fe3d6cd48a22a5f45da45a5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 2439 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":2439}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa49544d0d64ff9573d6d5a94627d22781b1ef7abd4e5850e6b41c230fcfd95"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 2930 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":2930}}}],"partialFingerprints":{"codehealthFindingId/v1":"d68854fd7110b60c075b693eb9e8f5bd1ba7eb202bea2cfb23227eaa6cc0cad8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 104 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/paths.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"b183b76ecc2138018092bcc49ab9d8499e0e561415d3471eb042fc2f13e826b0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 105 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/paths.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cfda3b96c882f16d285535e0e2b274d309e22c39f1847f8396d18868c3c965a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 123 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/paths.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf574a2707555a63c9ee6e719472afbfd0e0cc4f590d5ef8a27b1e8936abed6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 130 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/paths.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"39c5efd2ee3c3042e5de222e1212d9e740199b32b7039f366ce107743c0683cf"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 143 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/paths.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d024871eed40feeeaab95e6fbbe3fd9feca5c4caed618b356b192ef73537430"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 348 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/paths.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"425529f05cc44526bb2ba2f7dbf52e36876fa39534caa7bc0186c8418b6d512a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 472 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/paths.rs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfda1537c1dd6c0fa32b7e326de4fd3c26093b89c37d6ffdf3c62bdb177de92d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 756 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/paths.rs"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"e52ae908e6e7be9889566fc84d7f7752ecd497f8f76daa2cfcee7fddb391d7de"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 103 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/sampling.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"a16b218beff4896768dc2a4d46bc43519ff7d58cbd777fb508be95bdc7bced1e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 280 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/sampling.rs"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"8056fb3b9b6ee359f74debcce896ba8a2863710b3296f046bc4bef68f2cf1e7b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 333 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/auto_device_map.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"391d895d0e288b0bd26f14e9e8929c2364be427a7d12ad06a17e46cd71350404"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 395 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/auto_device_map.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"b61568b4f21d503625b1888c3bf94a832a028ae101b25f4c3ab2881fac60f793"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 399 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/auto_device_map.rs"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"3124402c5d727600e562a908a8fa8b770be7b5501a4f074fa08209631756407b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 506 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/auto_device_map.rs"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c5c5b77a36d9d7c46f79dd239648639e70a9912a55226541ce392c162caa4c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 138 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq_flow/drive.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fc4dfe15ade3328e497f3d99e376baaf2f7ff351058faa3c2949a34077cdf1d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 174 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq_flow/drive.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"af62ef2b52993565367736a6f6a4aeb7bfb7220daf82054ea345a30c213f7b44"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 181 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq_flow/drive.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5a443352000f531cf3685dd71fd23425a20f4692a2813322322c3ee06b2fc7f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 73 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq_flow/mod.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8f0d331c10615799778fa30eb3a378e3ff0a23043298c892db4b5093bdd54a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 78 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq_flow/mod.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"233ec5fea8cfdc2973a43e41d729739ab8cbed659d1530ce6cbcb285613da667"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 38 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq_flow/online.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"126b693d6efe384d1d93f979254748f96e09d3cfc23cb0599f69bc2f102400b2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 96 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq_flow/online.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"c17857bee22fc8ac4dc6cb68fb63a498cffe184d51f7cf39af3a154ae13550b2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 103 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq_flow/online.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"362d3815696b96268a87afd7c488464005321db1cd1575c613c23fc6ff68236a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 155 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq_flow/online.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"919225fe36e3acf30973715e8207e37211f0fce66dd89f2f0b1367d034eb9252"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 161 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq_flow/online.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5ce626af61bb3ea9e92c200470cef6a4ecdde3b5c5a0a0c9ce84b8a6c98cf01"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 289 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq_flow/online.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe87050a721663f0b5fc612d160792570170df97d756efa6263f18e018192a20"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 296 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq_flow/online.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"6851c4f9b46ee6e632930233b60cae811925c4ca2cd4335c2f844b558b70b0ef"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 244 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq_flow/plan.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"faaa01dc445af719f2124fcd3880d0d05dafa265cb7fcce7eda23cb8131b3755"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 248 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq_flow/plan.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"5351041e640547992d23ca13f6b2c91c7a587ad46e03f519ff0ca1a2fd098be9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 250 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq_flow/plan.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2379e3b5e40dbeaae717ec668b935b173d81d654a3e91b4d384624911309c4c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 261 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq_flow/plan.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f2e7f2198c3dd4a92073151c96a2a0cd8b8813cbffd9188bcce14aeacbafed4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 272 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/isq_flow/plan.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecc07549821059dada94546898acb46e3f9f84e4d485dc02f9c1360dd4842245"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 187 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/paged_attention/block_hash.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"e45dab9022d83e3c251c261e24fbedf2dc1403120db2fc09cdf9c88e068b2698"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1279 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/paged_attention/mod.rs"},"region":{"startLine":1279}}}],"partialFingerprints":{"codehealthFindingId/v1":"b514df4c915245fd1b019935e296958541a3b1776a85c15bdd33ea172112c908"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1290 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/paged_attention/mod.rs"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"13bd379f1a479ef45ea025dda68ae9e196c35c0a53b7e679be502f947f44e979"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 707 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/paged_attention/scheduler.rs"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8ffca38b5b1f7fbc09a055ffc55ef50cd90c8ceecfc8dd06830e03b20032b5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 868 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/paged_attention/scheduler.rs"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"831b633e1912f78f57b67f4037bc34fddb92d9ce428c8decf93e0c5b791ccecd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 882 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/paged_attention/scheduler.rs"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eee780b4c618118fccaee41f40501d333f6de2f83b33e2e1489e0b8ce1b3c41"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 909 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/paged_attention/scheduler.rs"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"47e9c7b0eeab8e0dfcbdaee2e1856661fd1710ed01ed70cf4e7b421fa182a059"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 779 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/flint.rs"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"9346539ab926255e333ff323371de6d586289da4e56ead131c0ae7a90bc04420"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 348 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b12a9cc05a45bb90aaa293eb59d44a89cea4d134ac1f6ae71bddc543e74163f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 421 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/gemma2.rs"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"8780e637b4a23551ecfb5679464edbb0474bd518185b136b59e71a38717102c9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 441 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/glm4.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"18bc0da0816a210b1e3dc19cc75c521982dd75de79c460c3a6c2f0b5a5854170"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 865 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"41835cf907dbe9dcbeba7290dc784958c96a572dd26e9e6af8d5ed598707fb37"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1949 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":1949}}}],"partialFingerprints":{"codehealthFindingId/v1":"184ffb56efad6bce2cf4636e2d771611e80a8a8d5e185ddc844948dcf9753f24"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 2047 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":2047}}}],"partialFingerprints":{"codehealthFindingId/v1":"6866d111caef6973769bdaba5069fd4d152fb8824f9c99d1560e0eb7cce87186"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 410 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/hunyuan_v1_dense.rs"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"5716e7ce1b37d6a3a8bba9e93163d9377c20997e482079d502ba801206da71d1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 904 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/hunyuan_v1_moe.rs"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffada5d9f3100fd92e9c1b35a18e4375e9a294de07acac62c1ad174f11798248"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1018 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a38a1b51c85d11ae65d50c676b8e652c5ef64bfcba2f2231081bf62b9b0619"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 917 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/lfm3.rs"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e837bb1e0e35e06e812c62c5a7936bef88ba2c83cb9363e8825bb20fee20716"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 347 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/llama.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ae455e6e90a24ab315eb5a5b8dc0ea4e8d7949428822bc054faccdcb5bb9e34"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 416 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/mistral.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af851a794f708c4aa0cfe2bf7afa929cb57ef0f9b92191ff8c20c09ec82ad99"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 407 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/mixtral.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2ba5b376c50c661059e36a7b9fcde3b8f338f122c35ec15a146a415a7f6f880"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 432 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/phi2.rs"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a8afb9526958133aada679d6584637a7060e5351fe3de380230ac11ff8b708b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 409 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/phi3.rs"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"09fa91acaf82c34f4f9c64e9dbcdbd2c1a82048ac02c1fb0928c6c2139dde422"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 481 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/phi3_5_moe.rs"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"df4c4d9781e8426051963dceb6807a2cb2991cd48a6f45c57044e2104cc43bb8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 434 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/qwen2.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4097ed329fa68b3b913c82b8a541691b12c2c015d9ae847dc90030351ad17bf"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 404 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/qwen3.rs"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d268db89fe5abe851c4738a3335fd8a3689e129b6db1009ba0ee5e0c91ec941"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 578 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/qwen3_moe.rs"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"362e310a96a91af2f24c341e1d1117e8c3d9cd46025385b442d21aca422fc2e8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 734 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"51dbfd40e28e605df48ff0c0d997d918bcd31baafcb7b74dd2f2aabbcba6385a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 810 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc256e85ae24cbcec6ceefe2ddb53aa30fe6c21eebed70712f1e6543dc49f4d2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 363 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/smollm3.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"1396257d22cd06046df5d9c2e5928b50e8542a1dd34b02ec84db4a0b5576d0c3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 406 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/starcoder2.rs"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"c73badf346f8e8a999ea79de02a7ac1681fca21695d1139678de74c06a51cc99"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1622 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/kv_cache/hybrid_cache.rs"},"region":{"startLine":1622}}}],"partialFingerprints":{"codehealthFindingId/v1":"6586a07980efcc6916cd1247bd9e75045c1707ede95f1fc9317572e4d30b12fd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 45 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/gguf/chat_template.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5440bfbc1c2365d9d333168c9920f66e2687660dde1446549ab1fcd9e24c78"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 137 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/gguf/content.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"640571b69ec631f0c731bb189e37e7e053dc22b6d7dab618fd5e2537b2388cfe"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 238 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/gguf/content.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"16b7388500190003c88a10bb71e7e90e33a45eafa5c4ec6887a6b4dc02f9c9a1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 259 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/gguf/gguf_tokenizer.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c440db33f9cc67e64047d4f988f0970baa0c55cd65ffa6bcd42b932cc2f8df5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 269 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/gguf/gguf_tokenizer.rs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd32770ebe10045a76132c5ce827afa5db2fd9d45572f732c8f70db2097ab49"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 473 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/gguf/gguf_tokenizer.rs"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"3401065ecba9a4821a93f5c0eddf59dcafa0b6c961952946a50028e7b564bbd6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 181 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/files/store.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f9f3ee826b8952a817f5060c880cb504fe195e23e35a692707482b27f8ebced"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 126 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/add_request.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f5092970b0dcc5e9d0b40ec1449001a24fdb8039696f5844c8e7a3d33006bfa"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 143 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/add_request.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c3d3764419350a7a04fd5845fb4203f6c2107f18d529760af6c095f2f095ddc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 378 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/add_request.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"50748ef53e9ed5f9089e0efecc1bab87b612a9368a575de657340cec35f26967"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 590 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/add_request.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa180f385195ba04af05c111858b2c7957651515b3ca19d7eaefcbb5dbaa81d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 595 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/add_request.rs"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3571a748383b5600669f6c92929ce09a8313aa44a8a821c0b152ed39664966d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 1072 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/add_request.rs"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"341f34e99c89be1b962265c63e25be3d76617b318e4ca41bed1b6aed4df8e403"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 1108 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/add_request.rs"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f9b03e8e15378a71216a26341e5d01244cc60fa025804e3d28ccf8806af7b2e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1469 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/agentic_loop.rs"},"region":{"startLine":1469}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b5ae0e88d97957a4c1c1520c309905fa2ac32e5412843b4e6289c8ff8789cdd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1540 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/agentic_loop.rs"},"region":{"startLine":1540}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b5cb9e45196f4d34ad7ccab3eaef065373c58f14e4516571a188e724894d4e7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 88 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/cuda_memory.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d1d413494d2f7413165908a63849a05bb853fd250a5565743a925c7cff6f4f6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 186 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/cuda_memory.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83680f5bb53a4c353e3e411e096b3c05ea0b2e54bdd983a648df3c311d8dab4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 239 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/memory.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3122aea38a0f79d20d9bcf2e2fa712f5aa4933a60f95c43eadb8c0a7c1f92ef"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 740 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/mod.rs"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce346b1fbae897096d7559b4ba0864a428341b59b66e9b98d08cc7fa89d82224"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 817 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/mod.rs"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"88972ecdad41c598e3718b24b0805ac49f27dad45c6af2e651978c073d4d0846"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 821 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/mod.rs"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b4b26cfe5114ef6ef35ed35da6497f1b9b24db6dcbedcda02d14534e3b3cd5c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 990 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/mod.rs"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"6223231ff0edcd37d87de2f222566977d61dd6ff7bb243df69d52ec7756b92aa"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1000 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/mod.rs"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"e166771c1921d9d83e727a8feb270ac3465da42bcd4de524fd1e7434b8ccdea7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1176 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/mod.rs"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f796a2e72f28213a75eaf4b3a5f2ad6ed42e72b0c50db02665af8bce8a7599"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1222 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/mod.rs"},"region":{"startLine":1222}}}],"partialFingerprints":{"codehealthFindingId/v1":"074e3c2ee37f6620be6125a6d0447de8c617fbcabcf9f348ae497ccfc7eed351"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1247 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/mod.rs"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"94239f222b026de8ea6ffbe9e0a716af8115bac102ccc85c3e8b835989537ca1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1630 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/mod.rs"},"region":{"startLine":1630}}}],"partialFingerprints":{"codehealthFindingId/v1":"118e950c20ccd9b24d2a098a61d30ab41e1072a16d6c1ed27c110f2e82e4abc6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 1671 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/mod.rs"},"region":{"startLine":1671}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d0a31b4779792da077a2c112990673f1af5ae8f449945749bc594b3164d2f1c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2508 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/mod.rs"},"region":{"startLine":2508}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d207318da2525ba470ac4c75fedfc912bd2d19bc3a0188623b484a1f0fcab00"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 2533 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/mod.rs"},"region":{"startLine":2533}}}],"partialFingerprints":{"codehealthFindingId/v1":"1479fae5207aacdb62af33f83348d9494fe75ade3e427d6892344424718400bd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 114 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/tool_dispatch.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa694c8d995d4d4980f99ce39acb0824e24bc8aa76e5761f56f404649e2a03a8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 124 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/tool_dispatch.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca2d212c19e1a8b0d67ca8b67d82af763053e5f7e12bb026667b5e7feca7855"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 136 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/tool_dispatch.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40d9070c72d5c5f7403ec5fdfb363e1d2498505ff463bc0df627905754910eb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 144 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/tool_dispatch.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"79223c6e191ffb7b610319da0dd859e8be2c74a4f86ae26541267689f9daeabd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 168 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/tool_dispatch.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"822d9d6ccd754a078264c83cf278ae94a644de47dd07f04383771751aa537764"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 251 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/tool_dispatch.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3998854c3da17cf6c5a4671d5d4b6951ac8d3c6e2379f7cf97aeebabda60868"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 260 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/tool_dispatch.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"90b136ca1cca49c4d4b9e26a334c53dd4a26ac73d0e3d2ca78486fd67c525d0c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 282 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/tool_dispatch.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f4798dfd08dc03be2931115abbd588f31fa1d5b2d9625ce172c56c9dfb263d8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 292 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/tool_dispatch.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f8c439e56dc3d72655242ed690b7d439be9a225ecc7069f0b860334951c251"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 304 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/tool_dispatch.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"a716ca946103dbd631e4df06187810b53a488600bf41a6f105ee5bb00442a429"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 319 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/tool_dispatch.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d5e6e96dd3feb289437d8bf76d8a9515a3c297abadbc48938ecf9120342c51"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 344 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/tool_dispatch.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"98fc5dc9b764f5d93d1052c5997ae7ac39dec9c24dfe8d1c4a6a155c912a6ab5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 366 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/tool_dispatch.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"b251902fcd935293ec5ae3bebf8adf9e0f7f73f6000f7a885ae9f00a0aaf58cb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 381 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/tool_dispatch.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"b999fd4341d11d20678c0d89ffef1c14f6821fa3b64bb66d6d6880fc2d67b112"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 438 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/tool_dispatch.rs"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d64c5b9ae5e14dfe383301fc6d2cba5f50d8370f356311a64a79f3567e593cc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 374 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/embedding_models/embedding_gemma.rs"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"658152e2a52d4dab647329577710f50e250d6211ca0de7d2b9f5875837b4ff27"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 330 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"d68bf5a3b1445454fc2b2935a0b706779d797730b424aba2599cab01d4b32cd8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 174 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/device_map/mod.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb1062a6c21889c7c10e4b6326c038c1fb6c5af5c6022e53e09e4f7cab2e8d2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 97 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/device_map/peer.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e53c40fa85607e02677456e516ff8b5a784fdfc85ee31f42c920b06952e529"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 104 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/device_map/peer.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e503e0b08acc97e7b746242d422168be988af40d8df84e852464acbf34c4ac1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 111 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/device_map/peer.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"c943a998527ea5c1f499dd5ae031ea1a554240ef52535f733b92b91774d7f1da"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 126 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/device_map/peer.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3588fbec33267a38d67e6794e43b564002165f24ca3b197bda19ccb6c7b2b04"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 131 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/device_map/peer.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c941d3f466103b232f53b18ed3f70457885c6f48f30fec6e982bae45ab338a1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 140 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/device_map/peer.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"18bf8b8b43f730d4fbb6328cd510a92c6383a1d106c1c551df29855649300941"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 53 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/amoe/mod.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd6d2e293b775ba5da2775045f1566e3d6c87acebc86359204f63c5a16a3d072"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 137 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-code-exec/src/lib.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05104da71117e1f8ab4007e04d5dbcf75c2130494dd492a0dce62a5a3162539"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 299 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-code-exec/src/lib.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"9deb0154d281203f3739e92129a977948de49bc45e58e9fe736de7abe861770a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 384 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-code-exec/src/lib.rs"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a8ff87f1d2a0e11b49d27a222c935ca1330242b9be8644b9404b81da052098"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 392 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-code-exec/src/lib.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"c29c8ee28556c6a3d09dec8e4ca61a42eda53f1c8ff442d2ba184125e18fe7b7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 63 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-code-exec/src/session.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c5c37c9786432410987f060b521cd16a762a371ea63e4b054beedf68f862c7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 123 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-code-exec/src/session.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef683687203aadef701722af691ebcb9783b0c7c155bbbee1cd646776889e5e6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 150 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-code-exec/src/session.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"40bfed5149f387f25d7ca239652cb2b27db5289be7750753fe870ed145fb18a1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 147 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-code-exec/src/shell.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"753ae589f0d2f0ea690f2ea9d110fe0a324ddc4645708ddd5eb3049aec753c65"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 388 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-code-exec/src/shell.rs"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"8594b51143983bed6b6ce58db0106187261089d0253b335bd542dbb2c37bcfb7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 540 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-code-exec/src/shell.rs"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"538ba4a33768b06fe9a835f53e823645ea976fdf01cde0b6738dd81aa4bf68d0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 120 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/ui/chat.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8a55b9086859b49147d80157c9a70be0f668af243a9743649b4ffa3cf0193c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 183 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd09bd5f06431b0c0c8e73e411990f8173c02720303bb76f318e7d8c1d367ac6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 195 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"c97c782ec7327a87b2a103af1cd5faaeb6dcc5e438b59e4b44cadd4f0bf3816c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 206 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"c606b0aed5bebfb35737aa1a5a96e8078b035c03f5b98a2bac65c547500089c4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 235 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b4110fe1579108e547c41a52d6b6e9f9a39e9c8e506939a6e3593e1265c297"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 247 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"004b2228fea6e61039334561d2befbf98fd1c04235c898b1274b0d011f81dbff"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 258 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ca44f10c4f3c5124be48308488f8caafbcfbe6027b111a0a7a2c092d217f14"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 287 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e85a1df45abfe8ede75b0740157f0c4307dddfb9e5971cffe0598cd058389e2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 299 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d522c1b738a5057668d6be56326f9c891036cceddb5c2e9f8dfe4781ab8fcd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 310 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c3216a3f60be7b58a53df36f1841f92ae25328c16d82658a2226ea75ec1cf96"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 339 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"185f84e5b9896308acc11448d5768daf97d71535479251e3e72314bb70304198"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 351 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e8107acefbbfcc2960450f8a450c19380f3a7943563f3dda20d3e6d080bb577"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 362 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0969d40b37162e3c1271d9fa1b5e412fab38f4c04f396c989444d60f7355400"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 403 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"84fa173e4a0d519d5dc1bd7444c5429c67497b81fd235e579f2191aa4d3c0930"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 424 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a3fb1edff936d0affad256f47d779345672a817b42658ab15f5bf6b234f7e4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 470 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"237fcc36edcea510b93a5416752231093cbd03774d04b5665b19f5901d8c9c70"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 519 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f354e0ffafc6db7f64ff06daa73c377d73208d6aa150a6c573135b1ce4c0d7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 536 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"89295e78a559c5b82b393079fe4537aa9789342ddb30c21583fb13bea4dafb3c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 554 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f720230a447ceef26c87c35a22731fa850c5014ac1ca3e2e3a34e0f8b7bdc7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 578 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"185a2abdd71284ff0873d27a78229aa65d34b76c21aaeb3f47eab296d8b5bf56"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 639 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae589d2b48a837e093fd07aa67e376abef27ae1d5e936b04ff03496c7356f405"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 653 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1f35e593a3ad6ccd1ca06deb6e7782b8fd824b04308d79afc6c5d1d5bf7439"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 692 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"360175be7588bae9381af0bcb30a4156619ba8dfc25e37788244daf5fdfd078b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 704 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d8e51777fda8b909abea53e114504b254566dce0ba6926a2a8d04b727918ef7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 709 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"a85c82311c5fd36e33f7b38b58880e92a2d07adfffd07fa26b3806636335d8bb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 718 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f836ca328a708c797b8e353f71f20a17ac584d3c59a7a0f1ee290caf8fdcf28"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 764 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe23a7fd060e9ccf28a1d35aaa7f835bb0f59284123903daae02ff70eee356ad"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 773 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"3276bd309022b50a795a8126d1b87acf7a573cb6b443a45dd945a2d374b36adc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 791 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/ui/handlers/api.rs"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf3d25bdd4dc86e6d359b16665588f8d46a622969d7a25512fcfec618d175b2d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 194 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/bench.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d125edc74d642264cf2183a77a4ec17e55bf4deb86dfbdf6d4cf813073bfffe"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 235 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/bench.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"244402d78433b66fe483dcc23353d9d218a8147420d4e8cb7bc65af03fdb6a12"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 255 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/bench.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ad47f49411533cb0e3e2fbcce44614b234b2bc38c3699886ca28a2035c2d18"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 184 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/config.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9159b6da9d80d490bf60a412a5fd4d6ead08d277f8d15ba6d91d4b6153b1d6e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 195 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/config.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead24f662365a1872870fe84ad48d93656fb355503aa8ba2a7f1dd1f67da0103"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 44 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/download.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"c58515b29ed2ecd3d5d3c8c10785a00bbd97a0826df96ba3291bdbd7d5366e68"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 75 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/quant.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"96abdd3b2f9015b56cc58e162ad9cd1d2457bfe5d30ab8ece9ca186ac79596ce"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 107 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/quant.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf3c969324225d05c1204d5457d0a559c0a7ae9451421cb596390210472d6c7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 112 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/quant.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0c4ba08af517ce83a41d602390195d7be03ee8902bca26a96817b30bde205f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 114 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/quant.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f894f8f04d6fcb8704cfb48a2c8b51ca391e5270f3aa9724fb9e246e44a9f41"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 115 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/quant.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ad0651177513d0ee4f99ace1c2b09593f925d7bc7968984417ad2787789680"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 122 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/quant.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"22dca84ca0218fa8f0cc1a1132f5382ec265e3fecd9f54ff48d3f737a5d561c1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 128 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/quant.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cffd3bea57a795050ea166764438d95a88dfa1c6331837e2bafc8b992253625"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 167 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/quant.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"224fdaad2b917511228f22b77bd58c3277c1386c5d25df542ef2ab575fe42432"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 155 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/quantize.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d8380cde53800e83bd6eb8ec70f258a0a7e1ab8433abd345f101a507137a6a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 178 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/quantize.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c7044f249901620a01ddc678316354c94903fdd9cf5d844c2a3c23ee9cc4c63"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 258 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/quantize.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a068299f7792be35181b163679923586422e390a66d8d0ba40c18cafe605796"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 297 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/quantize.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"d13e11707b03b709bf97c5d7e1eb3ab1aea90f64e0568b2b7ba7667e4b4b8afc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 319 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/quantize.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"c39bc4c8421c4e0db5b283b033e087da24674ae8fa98bc3bef395f07363552c4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 339 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/quantize.rs"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"25dd6da2fdd12d20a79f365cc690674f469ec47535a4df915697b3d4d2b9d949"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 504 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/quantize.rs"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"785aac1db0966015f8ff21269abe75378490c7c29c71fdd8001eebc7f7a1094d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 521 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/quantize.rs"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc8d5f4c9820f9c8100abf06fde6c23bae8942d0d2915ea6de80c3f2bb6601c8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 204 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ce2acdca2a3d510e452dcedfca6aadafadca9f4a5b881b75767d7eb9d2cfe5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 215 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"048e416f5995639de7b15c31b72475ab4f472bfd8a58d86ffd26b16f3573058e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 239 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"e830aab62e55a4b82e082f1ca8ec8474a4f8a043b93bb2c92c4a577dbbcb59ac"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 244 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf471e666ce709747b3cb5b9778cca6146a4a069be0b12be23ca636f3825756b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 257 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"096c69160ed786ef978266eaee509cc976616d50bbc2f717f625b39618490033"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 270 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"23b7ecba6edbf320d7b301b422c0d3b19dbc3b71aff4c898d3e4b3ad9ee71d44"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 271 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"6063ae2810938331f8bd860cd953760cc595ac5eb10ba0699c7a8e5d8357f4ac"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 272 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"a007fbc0594f4e04b9ca5debfa1c246f1b406ff1ccab19f5df76623ccb624b7e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 292 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5cd517606660607f91c335d424e8e61b98673de11823c3e7de9b8d60f2dd8a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1028 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":1028}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c3b3907c4a712b3e32b54cdb0c81e20bc74739c0299e08971161a26e63a8550"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1039 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb35a355ee0ee75ed02eb27c742cb468945687d92c476b7d9a808c4bfb11721"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1057 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":1057}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d6e41f0d6e0a974e858433abed14ce2126c3905a35cbef6b846b2c95d66e4c1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1166 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d827427fd8fd68f9d04f5fe3ff0200a6db1a031a3aee13c4acd24d7a0fb531"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1230 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a73931ea824cce5aaf7d519aa26d5c4fe0b5b98e857c510a1b64933db1a60ec"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1332 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":1332}}}],"partialFingerprints":{"codehealthFindingId/v1":"1750ae83c89b971acc2885e5ec13d4118bf7bd29dda1609f5ad46f85cd0478a3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1422 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":1422}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d4a26434c58b5a5d0e3d3f2ba843b5bdcc6185f87e565406e756fd7167134e2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1447 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/serve.rs"},"region":{"startLine":1447}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d425dd592b7bca51ca06cab4a74f2f30b8ed341e7b6215236d031c053a44d87"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 332 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fd543afea7afdaead816c2d22c4fc1c10eb863e52338c7d17519376e1e35f60"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 373 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"9368fa855cda74237b8a5bc2a1ac89d21cf2903f0efad1d8e594712b278a02ef"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 378 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e651a937feb437d0777665f9f03fad660320393c910eb793429cfd08fe4cc9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 389 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"899b608a5f7bc48985097651b565d74407b28f1aa6d5018fdf947b071ec3d96e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 394 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b1373ad700db65356ad38f804ca93503e02b327cef904b1251a594db1e3cf81"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 405 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda57566672d313854ae5671d55dcfffda94ea3ff056d81171ba0d90ecc806bd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 410 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"80fd96f1f3643a45f28d7d9ac971f020d07e136382ea9e3200cced82d7443601"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 516 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9338e8d33c876e04ceb238f56e9db611249599f59ae71d42ba8a7068a79f6b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 751 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee8d5ee9583d6d8a7a1d6ea8b17e6dbd798a77ac903e8ae027d145f2e5321f5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 769 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"bae56a80a8a92e668f2e66c8dbfe96daa4bbe7c8e5756e7d06bc6196f2e9b45b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 787 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"e280529a81dc9b18a84130a6f1fe04b654a46272cee073b74b11856be11dd365"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 834 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"71055b12d5c8f5ce778a9b038bc4ab9e8f0c5803bb366e72e452778f9f2cb129"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 889 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"3382036cdbd67ebcaf4983cca8b271115badfa1f428f63c7320763774c5c4505"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 949 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"7260184f3f63932c44482331e8852596b011b781c95fbd6ca99af79b423ddd83"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 1020 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a764b6cc822fc74297e75017c64b8a1d84a52a2cfa97436294e4f28c679e79f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1571 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1571}}}],"partialFingerprints":{"codehealthFindingId/v1":"d33b8a69c3223eaa6e62d33d12460368a879feefe8860951541325a70e8af5ef"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1631 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1631}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02f6cd851a2108bc1164e2b7d81e9ff896eb08b48906fd41fbd33d457dcf820"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1651 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1651}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d02240a10d8e50ffeadc9e381266008caf3ed4e5c7c0f67c3106102f3417dc1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 1656 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1656}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6e92dc645bcfc04aee0cbf248a71f8a41ac2d9f66a98ebfd365277ea159cffb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1667 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1667}}}],"partialFingerprints":{"codehealthFindingId/v1":"4581e4bf9bb1126f6a700f03c3d11684ec6ff904e3142ab672c1feb51f0f9105"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 1672 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1672}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bfb4340ea29fcca7fea72c2d879aedc5e8c39c2e30ddabd427f8a47097fb97f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1682 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1fc301e23108704ba0a6dde2e3c0a9fbd6435b6beac6105a9f635d26c8e51d2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 1687 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1687}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f9fc339e7fb5fa78ff3d8b9e9f2022fe5e0b8f9c4e82c91081730571ab1216"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 1808 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1808}}}],"partialFingerprints":{"codehealthFindingId/v1":"310ebb0364aa6f2d89955d8f1552f12b9f7833484800ee3b6f72f3b135bdd487"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1880 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1880}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6cd492460ebb81de64e469346431ca7b5ec2294d761af1c6993c88b9f3615b5"}},{"ruleId":"X5","level":"note","message":{"text":"Strict null checking is not enabled everywhere the repository type-checks: 1/2 of this repository\u0027s type-checking configuration(s) turn on strict null checking (\u0060\u0022strict\u0022: true\u0060, or \u0060\u0022strictNullChecks\u0022: true\u0060). A configuration that states neither is counted as OFF, because off is tsc\u0027s own default; a solution-style one whose \u0060\u0022files\u0022\u0060 is empty and whose \u0060\u0022references\u0022\u0060 point at other projects is in neither number, because it checks no source itself. Where it is off, \u0060string\u0060 admits \u0060null\u0060 and \u0060undefined\u0060: passing a value that is null compiles silently and throws on the first property access."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8870f9ff7b17c2e14c5ba3bc13137b94673aad0b9498438c572dabb049852943"}},{"ruleId":"X5","level":"note","message":{"text":"Null assertions (\u0060!\u0060) override strict null checking: ~1.6 \u0060!\u0060 null assertions per 1k TypeScript source lines \u2014 3 assertion(s) across the 1902 source line(s) of the 10 TypeScript file(s) read, which is the only code the operator asserts anything in (a \u0060!\u0060 in a \u0060.js\u0060 file is not this operator and was not counted, and one in a file whose null checking is off silences nothing). Densest: mistralrs-cli/webui/src/lib/stores/chat.svelte.ts (1), mistralrs-cli/webui/src/lib/utils/markdown.ts (1), mistralrs-cli/webui/src/main.ts (1). Each one tells the compiler to trust the author about null, suppressing the very diagnostic \u0060strictNullChecks\u0060 exists to produce. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1d83a7c69636a6290f63000d5c19b2073be1fa772f51977532af9ca6f745fc2a"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Rust code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93fd11ecefc368fd007e9711cb9bea41e3c00a8af6b5ca1971c0c0a797eb27a"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Rust code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa39788556b7fd9507caa28a380b82985364115e698e688c61d3935418e14cb"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Rust code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/tools/parsers/qwen.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d471166479c3f8d4bb8bac8546b1e6976bafda5f6ad3a492e951380de551f6"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Rust code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/tools/parsers/qwen.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"c801178ea7416d084cd4fef5c3877ede9ec9d17dfc32fbfb78a308f4ca1bd3ad"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_unparse\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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":"docs/scripts/render_pyi.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"f46e6e94a6734df92f8ccf100825061aebffcc602cac2f67accdd407c248004a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060resolve_python_prefixes\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\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 on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-code-exec/src/lib.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"731439bc33a202a14234b339648fdac6f263a4cfdeddd282f9d6a5290dbc9fa4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getApiBase\u0060 swallows every exception into \u0060return \u0022/\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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":"mistralrs-cli/webui/src/lib/services/streaming.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"52fe2e42f7a5381345dd89861959a35e7178dd5869db33cfcb0fb05784609f96"}}],"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-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"Use of Unmaintained Third Party Components","shortDescription":{"text":"Use of Unmaintained Third Party Components"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1333","guid":"11a336ce-63de-c45c-845e-29ca1e8df13d","name":"CWE-1333","shortDescription":{"text":"CWE-1333"},"helpUri":"https://cwe.mitre.org/data/definitions/1333.html"},{"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-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-191","guid":"31b5d115-a84b-875f-a016-48689827db3c","name":"CWE-191","shortDescription":{"text":"CWE-191"},"helpUri":"https://cwe.mitre.org/data/definitions/191.html"},{"id":"CWE-248","guid":"64b58946-d244-a556-a48a-f82fcd4f4186","name":"Uncaught Exception","shortDescription":{"text":"Uncaught Exception"},"helpUri":"https://cwe.mitre.org/data/definitions/248.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-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.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-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.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-939","guid":"12397742-f2c4-8254-8012-482c3356c551","name":"CWE-939","shortDescription":{"text":"CWE-939"},"helpUri":"https://cwe.mitre.org/data/definitions/939.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"},{"id":"CWE-95","guid":"400bba4e-483c-5c50-a695-114fa9168003","name":"Improper Neutralization of Directives in Dynamically Evaluated Code (\u0027Eval Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Directives in Dynamically Evaluated Code (\u0027Eval Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/95.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":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"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":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"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/"},{"id":"A10:2025","guid":"9ca3ab55-ca61-fd5e-b9ab-3dad2efa59d0","name":"Mishandling of Exceptional Conditions","shortDescription":{"text":"Mishandling of Exceptional Conditions"},"helpUri":"https://top10.owasp.org/2025/A10_2025-Mishandling_of_Exceptional_Conditions/"}]},{"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":177,"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."]}]}