{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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":"D22","name":"Internal API Consistency","shortDescription":{"text":"Internal API Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D22"},{"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"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"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"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"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"]}},{"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"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"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"]}],"properties":{"cwe":["CWE-1059"]}},{"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"]}],"properties":{"cwe":["CWE-506"]}},{"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":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AC7","name":"A11y enforcement","shortDescription":{"text":"A11y enforcement"},"helpUri":"https://codehealth.canine.dev/dimensions/AC7"},{"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":"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":"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":"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":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"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":"production_soak.validate_args (cyclomatic 181): production_soak.validate_args has cyclomatic complexity 181 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/production_soak.py"},"region":{"startLine":13305}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61c89266ebae5b95fbded20a71458d6ff8d854a92b75de31a36e28bcfa5813e"}},{"ruleId":"D1","level":"warning","message":{"text":"Engine::run (cyclomatic 119): Engine::run has cyclomatic complexity 119 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own 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":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"b966af80d64bea3d772071df0edef4da303c2afea97b4c24f71054dba4cd80c5"}},{"ruleId":"D1","level":"warning","message":{"text":"Engine::add_request (cyclomatic 103): Engine::add_request has cyclomatic complexity 103 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own 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":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"69b55c55d35f2aff4adc8e97e5446a4eb52631856303d753ccaf83c6d1e894f9"}},{"ruleId":"D1","level":"warning","message":{"text":"Pipeline::submit_step (cyclomatic 100): Pipeline::submit_step 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/mod.rs"},"region":{"startLine":2002}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cdb9da057a20cf17b2d5f46f7b349e644b884c08ee10cc72a4b8c7d96f03716"}},{"ruleId":"D1","level":"warning","message":{"text":"MultimodalLoader::load_model_from_path (cyclomatic 87): MultimodalLoader::load_model_from_path has cyclomatic complexity 87 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own 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":531}}}],"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::gguf::normal_bindings::bind_block_tensor (cyclomatic 68): mistralrs_core::gguf::normal_bindings::bind_block_tensor has cyclomatic complexity 68 (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":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3cb017c2e0b0a6bdb1d596dbb6bd26fcbbe616a49f7c66eec379d1abc9532a"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::pipeline::sampling::finish_or_add_toks_to_seq (cyclomatic 68): mistralrs_core::pipeline::sampling::finish_or_add_toks_to_seq 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/sampling.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f7cbb39c3614da85d4500a0ea882999c384b1851d5d1d03bab7b16894e600a6"}},{"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":3396}}}],"partialFingerprints":{"codehealthFindingId/v1":"2535c3e89f41d5663748b2db342754f168518418259547abf17ebbd1d48143e2"}},{"ruleId":"D1","level":"warning","message":{"text":"NormalLoader::load_model_from_path (cyclomatic 63): NormalLoader::load_model_from_path has cyclomatic complexity 63 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own 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":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"d78dcd92e2955ba4f7c3f54244c32066daa79e3eb6fe68ff2b5e7ce225c05c52"}},{"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":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a16e6b8f5a658c1d359a2bcb4eb872980c4a30f965afcec7685b8623c17e2b8"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::engine::agentic_loop::agentic_loop (cyclomatic 58): mistralrs_core::engine::agentic_loop::agentic_loop 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/engine/agentic_loop.rs"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c2e878e066f42b7d555323d015968c4dbbbbdcc7aed98ec51c6adef62cf7e3"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::afq::ops::cuda_backend::afq_mm_op (cyclomatic 58): mistralrs_quant::afq::ops::cuda_backend::afq_mm_op has cyclomatic complexity 58 (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":2942}}}],"partialFingerprints":{"codehealthFindingId/v1":"a58b2c202f1ac4f9e27481e1ae83a4035e8020fac73f3ebabef2810eabe3c2c9"}},{"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":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c885d50c15fa5c5b6457a5e7542ce44a07096e04ac4d586024f7823ad18479d"}},{"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":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"34250fd75c955cdfec51e6b54df62d99feeecbaeeb7b27c2a433cde37052f0bd"}},{"ruleId":"D1","level":"warning","message":{"text":"Qwen3VLImageProcessor::process_inputs (cyclomatic 54): Qwen3VLImageProcessor::process_inputs 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/qwen3_vl/inputs_processor.rs"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0312c79c5bb68f81627ab77a6f5b069767e4df607f734502f6baa529accf33b"}},{"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_core::pipeline::inputs_processor::text_models_inputs_processor::make_prompt_chunk (cyclomatic 52): mistralrs_core::pipeline::inputs_processor::text_models_inputs_processor::make_prompt_chunk 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/pipeline/inputs_processor.rs"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"38af177102daeccf0894aea91dd8c1f7e05b57b888496a0e2841b857cd15d5fa"}},{"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":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"547be0859fadb91a44c1587297008b45a731d3995dfe78b8a1b679392e0c7b41"}},{"ruleId":"D1","level":"warning","message":{"text":"Qwen3_5TextModel::forward_embeds (cyclomatic 49): Qwen3_5TextModel::forward_embeds has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":2268}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d800e5fed46d449035dc491ad5a1beb920bd857b09e1b7153f14b332526a50b"}},{"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":"ChatStore.generateAssistant (cyclomatic 46): ChatStore.generateAssistant has cyclomatic complexity 46 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 27 belong to 12 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/stores/chat.svelte.ts"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"4411a7c7e8d56c3c3260f5e45a45b0ebde80fab2d6ad6a625b4de40ce6b8d94c"}},{"ruleId":"D1","level":"warning","message":{"text":"SoakClient.stream_request (cyclomatic 44): SoakClient.stream_request 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":"scripts/production_soak.py"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2ebc241657843e42a09b435e84eb9e6589b2a3e7e6b37656288dbdcf43ef3e"}},{"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":5158}}}],"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":5587}}}],"partialFingerprints":{"codehealthFindingId/v1":"442abceb3a9c809813d7e0001c4c6e22dde22a84f3bbddc5927e0e437cf74708"}},{"ruleId":"D1","level":"warning","message":{"text":"production_soak.adversarial_mode (cyclomatic 43): production_soak.adversarial_mode has cyclomatic complexity 43 (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":"scripts/production_soak.py"},"region":{"startLine":5184}}}],"partialFingerprints":{"codehealthFindingId/v1":"d22928d69634a973f2bb3ab585ec811e67b455d0e22e48199a4b52579212ee53"}},{"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":408}}}],"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":"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":"streaming.streamChatCompletion (cyclomatic 41): streaming.streamChatCompletion 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-cli/webui/src/lib/services/streaming.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c771a51c5f073fc026e253a5feb19e9f9a5e95e37877942f2e18ca075fb23bd"}},{"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":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a9aaf442b06958281418e05c1f1088d4027c3d2fe66e259e256ab27d0bec02"}},{"ruleId":"D1","level":"warning","message":{"text":"Runner::new (cyclomatic 40): Runner::new 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-pyo3/src/lib.rs"},"region":{"startLine":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"33b146a25e9bbd95db0d5969c37f192051ca4f663f643a5159bbc2d460647cd2"}},{"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":651}}}],"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":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"75dd8bf764558561517079553e8b64bf87e3cff125e09679d0c5fb524b433c42"}},{"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":1702}}}],"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":1104}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f967b2e1319ee238b06c580d222bca1bedc58da9b109522d9394834a27b555"}},{"ruleId":"D1","level":"warning","message":{"text":"PagedAttention::try_prefix_gather_prefill (cyclomatic 38): PagedAttention::try_prefix_gather_prefill 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/paged_attention/layers/paged_attention.rs"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"c23681cc9f62fc3af2760a57e16abaddcb712bbe21d64fc9951d7c31e7a71298"}},{"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_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":"production_soak.compare_mode (cyclomatic 38): production_soak.compare_mode has cyclomatic complexity 38 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/production_soak.py"},"region":{"startLine":2763}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0fa0044ca229473f573f00452d57bbb18d8ba21354934ca1657c2dd08efa27b"}},{"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":223}}}],"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":5920}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f71a27df15f504fa87c0d79c618a1a0267f90a8c22060d44196a2c9bc4a3d8"}},{"ruleId":"D1","level":"warning","message":{"text":"PagedAttention::cuda_fwd_t (cyclomatic 37): PagedAttention::cuda_fwd_t 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-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ffb3ab629d8a9c98a822683ddb08a55050a9e15a54ab795f15e9ae58c7a05b3"}},{"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":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"92bf267ed93903109b22f47414a12b31dfd1c2aac6e3b0d4c0cd20104786ec56"}},{"ruleId":"D1","level":"warning","message":{"text":"production_soak.canary_mode (cyclomatic 37): production_soak.canary_mode has cyclomatic complexity 37 (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":"scripts/production_soak.py"},"region":{"startLine":3141}}}],"partialFingerprints":{"codehealthFindingId/v1":"581fbf484f071d3e0e58030ee6368ea81b4ca24203b0a5a8cf4977d6a200a907"}},{"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":"TextModel::forward_embeds_scaled (cyclomatic 36): TextModel::forward_embeds_scaled 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-core/src/vision_models/gemma4/text.rs"},"region":{"startLine":2096}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4252964284f75db360ad23ce42139f4f473e584af064d5b652af17ecbaa764c"}},{"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":1929}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc4a77a7422fa469d350edd45cccd7c3fa0c081acc678a5be9394e69d481bb8"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::distributed::layers::load_packed_weights (cyclomatic 36): mistralrs_quant::distributed::layers::load_packed_weights 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-quant/src/distributed/layers.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b88ca1b1220d688919adea1362135a0217c652de17f061510618c75283dc8a6"}},{"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":2055}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1335b1f38670a457498477257db1937f97def7d21c495b298398d516eabba2d"}},{"ruleId":"D1","level":"warning","message":{"text":"production_soak.run_long_context_correctness (cyclomatic 36): production_soak.run_long_context_correctness has cyclomatic complexity 36 (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":"scripts/production_soak.py"},"region":{"startLine":3862}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a3612d3b34e8f23866248be7b07b2344568b34d841bb4e092481ef71e6915f"}},{"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":1032}}}],"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":36}}}],"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":"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":431}}}],"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":3093}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd816b6c0e47efecc76f4ad4af03439ffdccc28cd438058a496c9c90c6940120"}},{"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":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a9868c085e8a7e94a16fe034d217ce7a12fb0aeaebd58156924f50994068226"}},{"ruleId":"D1","level":"warning","message":{"text":"production_soak.load_quality_replay_cases (cyclomatic 34): production_soak.load_quality_replay_cases 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":"scripts/production_soak.py"},"region":{"startLine":9021}}}],"partialFingerprints":{"codehealthFindingId/v1":"47abf0f153ea1ee4f527a75963dc93fc0e65cf1628253fc7df9304e061f9cc5d"}},{"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":1521}}}],"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":"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::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":1485}}}],"partialFingerprints":{"codehealthFindingId/v1":"122a4836318b8aa9c342df8d55a79441292ad313be0102adb70cc74173fc0627"}},{"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":113}}}],"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":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"6461edb3b90175d2d87ef4d18638ef23645ed0101e96cd58cf575f6c48bd3f3f"}},{"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::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":"Nvfp4Layer::from_normalized_parts (cyclomatic 31): Nvfp4Layer::from_normalized_parts has cyclomatic complexity 31 (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":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"febfa98aa9036a90c2b4913370332fa43663590e06817f90265959100d9b3fa5"}},{"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":"Sdpa::run_attention_noflash (cyclomatic 30): Sdpa::run_attention_noflash 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/mod.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f0915288d8c027177cb22e3f9cc3e6517a23d9a5d14779a8e032404022e08f7"}},{"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":711}}}],"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":"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::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":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a41c56df0698ed1f4150ec8696cfdf5c6f70d83725a57831e253121785e460"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::model_loader::loader_from_model_selected (cyclomatic 30): mistralrs_core::model_loader::loader_from_model_selected 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/model_loader.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8d4a7b889f67842aa1792f0298b51a26b67077d67c6762885bfc15e355d2861"}},{"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":4910}}}],"partialFingerprints":{"codehealthFindingId/v1":"1689954744f975dc5291537b911e93dec7030b5ba7a8622e90e7c3ddb85af967"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::paged_attention::calculate_cache_config (cyclomatic 30): mistralrs_core::paged_attention::calculate_cache_config 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/paged_attention/mod.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc0c19ed9c973ab0747d8d86b946086a50ebfef6f80bbbde255b2ecfaaad9bad"}},{"ruleId":"D1","level":"warning","message":{"text":"Runner::send_chat_completion_request (cyclomatic 30): Runner::send_chat_completion_request has cyclomatic complexity 30 (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 shape REPEATS in the file: one other method here (Runner::send_chat_completion_request_to_model) 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-pyo3/src/lib.rs"},"region":{"startLine":1403}}}],"partialFingerprints":{"codehealthFindingId/v1":"610edf6f70819c5dfc2dd6e4b7dd69fdcb9906a959153eb5a16416807056fb37"}},{"ruleId":"D1","level":"warning","message":{"text":"Runner::send_chat_completion_request_to_model (cyclomatic 30): Runner::send_chat_completion_request_to_model has cyclomatic complexity 30 (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 shape REPEATS in the file: one other method here (Runner::send_chat_completion_request) 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-pyo3/src/lib.rs"},"region":{"startLine":2364}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef21a0a36d43251c97a3bb87368c7dd08de1d91f1df4bd7689f4e899eadfa441"}},{"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":"Qwen3VLImageProcessor::prepare_for_paged_prompt_planning (cyclomatic 29): Qwen3VLImageProcessor::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/qwen3_vl/inputs_processor.rs"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d7af5d0828a81e5f11af2ffdb11eef295f6c724ec5eb6c0624b53b46a20dd00"}},{"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":4550}}}],"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":"mistralrs_paged_attn::metal::backend::paged_attention::reshape_and_cache (cyclomatic 29): mistralrs_paged_attn::metal::backend::paged_attention::reshape_and_cache has cyclomatic complexity 29 (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":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"213c569e8f77ed4513a35526bbcb7dc5251bcb7a494f3fcc1ad8e6c0ed6b35ac"}},{"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":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d7bd50a4927f75ba524dec296ad46c34a59531f054bd35cd0ce8fa9050fdb3"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::mxfp4::ops::mxfp4_indexed_moe_gemm (cyclomatic 29): mistralrs_quant::mxfp4::ops::mxfp4_indexed_moe_gemm 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-quant/src/mxfp4/ops.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbddba5ba33edfd181dc77fd6cae2423103dac76e737b09ed4f00b724d4b1f4e"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_cli::commands::run::interactive::stream_assistant_response (cyclomatic 28): mistralrs_cli::commands::run::interactive::stream_assistant_response 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-cli/src/commands/run/interactive.rs"},"region":{"startLine":1408}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa128250c34eccca6ee672d005bc75e56373dd9c98fa1b5bccf9e301379fa74d"}},{"ruleId":"D1","level":"warning","message":{"text":"Qwen3_5TextModel::replay_recurrent_prefixes (cyclomatic 28): Qwen3_5TextModel::replay_recurrent_prefixes 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/vision_models/qwen3_5/text.rs"},"region":{"startLine":1894}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c44842199c52d70a28cbd6c804406d3dd65342844c4d72526dbe2bae27a8fed"}},{"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":1275}}}],"partialFingerprints":{"codehealthFindingId/v1":"536c647f66cd25775bf8bade8d6dd795a8b55ea57a790b7993c35d6e1a89cab5"}},{"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::afq::ops::afq_mm_op (cyclomatic 28): mistralrs_quant::afq::ops::afq_mm_op 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. 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":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"32b8259edf362d74c534c69eeb1511d7b5c873cf7456fe193fbbca31c0100aad"}},{"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":1336}}}],"partialFingerprints":{"codehealthFindingId/v1":"60b7317ab261489d5260454e949f986959e8e845fbbe7969a4c75799ca3fee53"}},{"ruleId":"D1","level":"warning","message":{"text":"Attention::forward (cyclomatic 27): Attention::forward 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/gemma4/text.rs"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"932d57153ce6f4fda2e834fe03e2bf8668be6dcec900e2064164cc2ff731744f"}},{"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::speculative::driver::verify_staged_batch (cyclomatic 27): mistralrs_core::speculative::driver::verify_staged_batch 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/driver.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b7e70e784b8c276f4fc7fc35bece2ddf954f2ccfaed5c27a0f088d7d490e95e"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::pipeline::loaders::auto_device_map::get_device_layers (cyclomatic 27): mistralrs_core::pipeline::loaders::auto_device_map::get_device_layers 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/pipeline/loaders/auto_device_map.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f939db0d5b7c9d8d6de7fede81cef928a48969c63063c580df461c42eb98fdb"}},{"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":3940}}}],"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":4387}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee98b6e9b85a554320d5acd38c27bbae395d391d158fd5c85e5bbbaa5349478a"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::try_fused_quantized_ffn (cyclomatic 27): mistralrs_quant::try_fused_quantized_ffn 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-quant/src/lib.rs"},"region":{"startLine":2142}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b6ee296b7df174af55fc72c9c9a3c5d29b18ef4efabb485fc504ab438dacc4"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::try_fused_gate_up_metal (cyclomatic 27): mistralrs_quant::try_fused_gate_up_metal 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-quant/src/lib.rs"},"region":{"startLine":2455}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b58170c3d8ffc3675343580864df232a5dd5a5918717b1523110259f13ef26"}},{"ruleId":"D1","level":"warning","message":{"text":"production_soak.cuda_graph_evidence (cyclomatic 27): production_soak.cuda_graph_evidence 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":"scripts/production_soak.py"},"region":{"startLine":7369}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2ba6994248385f992e5729de94c508f5549bce897dfc63f63171ea22867071c"}},{"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":"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":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"83ffcdd142da6a19ff7eaaf678bdeec4bdb98d5243a8cf4b9c8b35a1ff866e3a"}},{"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::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::pipeline::sampling::sample_sequence (cyclomatic 26): mistralrs_core::pipeline::sampling::sample_sequence 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/pipeline/sampling.rs"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"9610197cb0220ece89871f8b4268f67937f23b88b101e10d4fbf60e8b4a7b327"}},{"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":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f826f540dcc70a652e3b379e8f86c0fd7e94fdc7c92acc72137ff970cc1768c"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::cutile::nvfp4::launch (cyclomatic 26): mistralrs_quant::cutile::nvfp4::launch 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-quant/src/cutile/nvfp4.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d3a832327c71e63695e248b75c475ff39c9c177cd7c0a3f196e0b1e66280879"}},{"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":"TokenizerAdapter.exact_text (cyclomatic 26): TokenizerAdapter.exact_text has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/production_soak.py"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ee4808637917d987d42036be2bf7c0f183f3e592cbcf5a872a62ea793f0d62"}},{"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":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"641149cee6b88ee6d836205e33486ae940447075904c0a94c94a7b5fe6d4edb3"}},{"ruleId":"D1","level":"warning","message":{"text":"MultimodalPipeline::try_cuda_decode_graph_forward (cyclomatic 25): MultimodalPipeline::try_cuda_decode_graph_forward 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/multimodal.rs"},"region":{"startLine":1925}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a8a8c53426c8f87e699faa8a91cafcbd627ad61e269249cfd8e56637a0f4261"}},{"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::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":1525}}}],"partialFingerprints":{"codehealthFindingId/v1":"08e4ee24c0aced49f999a5cca40e9ef2275e5f06a1f72f9965018e17ae2d79e2"}},{"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":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce2ba5092c2994aa3246e180a18c4d2b4f24ce5c69d0274496d41782926152c"}},{"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":2887}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47eac495e6bb72cc59372dd787542a727ca7f4d7d3a7122691a794fd41b8794"}},{"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::try_fused_quantized_qkv (cyclomatic 25): mistralrs_quant::try_fused_quantized_qkv 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/lib.rs"},"region":{"startLine":2362}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd9ea2ea055816009d570ac9659a29cb8c8b6c7fd8abe1a471d312f1a295d7c8"}},{"ruleId":"D1","level":"warning","message":{"text":"MistralRsForServerBuilder::build_multi_model (cyclomatic 25): MistralRsForServerBuilder::build_multi_model 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-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ab4304eaf4df6ba5e7276cbcca9b873ebf2d918b9ef94e3025d02fee2bedce"}},{"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":"FastExpertsWeights::forward_grouped (cyclomatic 24): FastExpertsWeights::forward_grouped 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/moe/experts/backends.rs"},"region":{"startLine":1453}}}],"partialFingerprints":{"codehealthFindingId/v1":"3590f09c849ddfd8b1b799619fed3e9641ac56b06d6867633881cf493b0f3647"}},{"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":263}}}],"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":"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":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"5752ebcd4b97337acf100998cae6a78b5077c69f0d2e8526527440bbb9e45d9a"}},{"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":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"df1f13d2f3440c5b81ad15298d1714a850facd8f45856ddaeb135c804dea4f23"}},{"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":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8dd4351e590979b80773ebe5bc803fd0921059ac2f59f3242fb58a7f93362dd"}},{"ruleId":"D1","level":"warning","message":{"text":"VectorFP8Linear::apply_isq (cyclomatic 24): VectorFP8Linear::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/vector_fp8/mod.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"3854ee60f03bf4aa10836abf6889f55eaa028e3988aa4927e403874391670f82"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::try_fused_qkv_metal (cyclomatic 24): mistralrs_quant::try_fused_qkv_metal 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/lib.rs"},"region":{"startLine":2598}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b24b434842345d76ebc096a39b2ed8d2d03253e2128ccac6daa910d2994b30"}},{"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":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"a19f1aae235ab5bb9295a750097243a58475d335ac27cfe61a18bb24d4adeb7a"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::mxfp4::metal_ops::mxfp4_indexed_moe_gemm (cyclomatic 24): mistralrs_quant::mxfp4::metal_ops::mxfp4_indexed_moe_gemm 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/mxfp4/metal_ops.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"7343726764ef451ff18a2ee997b79257a3cf24be3e962997ecabb68403059ca5"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_server_core::responses::convert_input_items_to_messages (cyclomatic 24): mistralrs_server_core::responses::convert_input_items_to_messages 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/responses.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"e50e6fed4b5e8078946469259e2ceef8d4d8589a9692dcf483b64ce16763c006"}},{"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":145}}}],"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":318}}}],"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::engine::cuda_memory::maintain_device (cyclomatic 23): mistralrs_core::engine::cuda_memory::maintain_device 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/engine/cuda_memory.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d963dbd2cb3620ecf884bb1f3c879ad00624716f068c17077c25f3dd47698a"}},{"ruleId":"D1","level":"warning","message":{"text":"Nvfp4Layer::load_shape (cyclomatic 23): Nvfp4Layer::load_shape 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/nvfp4/mod.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"951eccb42c04a3f3faa07341dbdb08aea6a2905011dcfacd64357abed217e95c"}},{"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::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":"mistralrs_quant::try_fused_quantized_gate_up (cyclomatic 23): mistralrs_quant::try_fused_quantized_gate_up 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/lib.rs"},"region":{"startLine":2252}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd9d7ef5d6c47891eafcaf2e5a276bc88d2c02055aaa6daf3e382d00f84704c4"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::gptq::gptq_cuda::gptq_linear (cyclomatic 23): mistralrs_quant::gptq::gptq_cuda::gptq_linear has cyclomatic complexity 23 (threshold 15). Of this number, 19 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":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ec7b1f5ce17cc8526ed2e77e679ff7c72ff75f0fec3e28caf09c4b71774ad8"}},{"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":1764}}}],"partialFingerprints":{"codehealthFindingId/v1":"21197b99b468fb5fb8617fd13fd0116039c14a4c0445e445e6ef7025c5029ff1"}},{"ruleId":"D1","level":"warning","message":{"text":"bench_nvfp4_serving.stream_request (cyclomatic 23): bench_nvfp4_serving.stream_request has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/bench_nvfp4_serving.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"333c57d2a0de287a6855407bc7e8ad5e99409906ad0b1c4270cf6960b3d4fbf0"}},{"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":"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":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c5b46c9a9bc633aa51c3d0d41b5a75a76cdc5b8918206e01363f2b4019a0040"}},{"ruleId":"D1","level":"warning","message":{"text":"Qwen3_5TextModel::stage_recurrent_prefixes (cyclomatic 22): Qwen3_5TextModel::stage_recurrent_prefixes 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/qwen3_5/text.rs"},"region":{"startLine":1758}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e02bb24f9bf079ff37e7a576f582edaa784163f3c42317ba496c33d059f61c"}},{"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::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":"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":4802}}}],"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":5234}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4647d9c6c197b68a0610e717afcb22c0f3baca84e754fc7446865b062f92e62"}},{"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":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"5636abe3ff82d0aa9b006bfef8d49ce5cf9167e695508875ff8ff4fa9ecad760"}},{"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":"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":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f53a4227e88a22e8a354bb7ad350bf47112c0abaef6ddd9d9bd91f6cd8208e8"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::cutile::fp8_w8a8::launch (cyclomatic 22): mistralrs_quant::cutile::fp8_w8a8::launch 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/cutile/fp8_w8a8.rs"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"8416b0575346ec9fa2d26b3d49f32b80e5ba40b953787679858034b75edf312e"}},{"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":528}}}],"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":"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":"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":2889}}}],"partialFingerprints":{"codehealthFindingId/v1":"494a1731f1f5cda438f861564dbd4ec3036f7750fd4b8e8dca4c38bdc7da14c5"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::speculative::verifier::finish_verified_step (cyclomatic 21): mistralrs_core::speculative::verifier::finish_verified_step 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/speculative/verifier.rs"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f392f4b83946fbc30ff99aeeef557f94c74ab5ce026dfcdb19ed6e49dfe1c9c"}},{"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":4573}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e25c6bca6ee7af2b10d81b5da66b0398f82d05f40e81f9418e762d93d5afed2"}},{"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_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":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"1680396f17c6d88100a067d610584a71456d68cd5ac018afe72521a7c09fa27d"}},{"ruleId":"D1","level":"warning","message":{"text":"BlockwiseFP8Linear::forward_raw (cyclomatic 21): BlockwiseFP8Linear::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/blockwise_fp8/mod.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e835c661390549abdf4d5d0f2e87da52ce73f9550d5dd42b977e5a981dcd986"}},{"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":2123}}}],"partialFingerprints":{"codehealthFindingId/v1":"efad79f450e682fd81cf4a91280593532567fefeec733a707610a462b8ceddc3"}},{"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::cutile::fp8_w8a16::launch (cyclomatic 21): mistralrs_quant::cutile::fp8_w8a16::launch 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c96547c109fb10d813ae56c29c3801572701f9d45223da820af4e73c65f255f"}},{"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::gguf::fast_mmvq::fused_qkv (cyclomatic 21): mistralrs_quant::gguf::fast_mmvq::fused_qkv 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. 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":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"6236d9218ce3b055a9f29fd44cce2d7f0e619e7b5db72c30d355d0f4b1349a65"}},{"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::cutile::nvfp4_matmul::launch_gather (cyclomatic 21): mistralrs_quant::cutile::nvfp4_matmul::launch_gather 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_matmul.rs"},"region":{"startLine":1377}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2c52fab2d118b96a44317107eb338526d078127c824b324158f0d5121bb1bc"}},{"ruleId":"D1","level":"warning","message":{"text":"production_soak.quality_replay_pressure_plan_evidence (cyclomatic 21): production_soak.quality_replay_pressure_plan_evidence has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/production_soak.py"},"region":{"startLine":9613}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4100f6994e0b87b814e2d55a7cd86aa1c112c74b0bb7dc963e5345f7fd44c03"}},{"ruleId":"D1","level":"warning","message":{"text":"production_soak.compare_time_windows (cyclomatic 21): production_soak.compare_time_windows has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/production_soak.py"},"region":{"startLine":11058}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb4ea98a28ae23e5272acc14c64ad777fd0b0ad028d20e34cae8841e03dc1b24"}},{"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":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b1438dc98abf5766620d91a31f664131a8106bdd8824472ed5a1a41bbb02bd"}},{"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":"Qwen3_5Model::mtp_propose (cyclomatic 20): Qwen3_5Model::mtp_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/vision_models/qwen3_5/speculative.rs"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01e2b09497995a314526bff1da4750cf161d6938824dcc1e0c39c7e19dbdf9c"}},{"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":2113}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffa91cddd08adf9778fe4b5cfb7c34337759eca723031dad1f90f9b36081cbb8"}},{"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::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":"ChatCompletionStreamer::__next__ (cyclomatic 20): ChatCompletionStreamer::__next__ has cyclomatic complexity 20 (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-pyo3/src/stream.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"44fbf95a61f4802c2c05041650f578bdaa767e6e13e48847f85850cbeef53f85"}},{"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":152}}}],"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::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":"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":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3a86aba9840328a33bf1e0aea1cc7ccc8588143825ad297c1863a67d7491c8b"}},{"ruleId":"D1","level":"warning","message":{"text":"production_soak.multimodal_mode (cyclomatic 20): production_soak.multimodal_mode 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":"scripts/production_soak.py"},"region":{"startLine":11761}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d256b5c0bcde436dc21211e43da4e21674a6f83ff294ac3fc47764917e3918"}},{"ruleId":"D1","level":"warning","message":{"text":"production_soak.async_main (cyclomatic 20): production_soak.async_main 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":"scripts/production_soak.py"},"region":{"startLine":14083}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3aef6107ee3c03b286ddd0bf31d5567a5321badfbfeed795bf5f8ebd049a652"}},{"ruleId":"D1","level":"warning","message":{"text":"Sdpa::run_attention (cyclomatic 19): Sdpa::run_attention 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/attention/mod.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e6530fb8ee262e56582ca0098220fd0c55e249cbdc18c99cbf6219598cb2f2"}},{"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":58}}}],"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":2178}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff3e4f85bdff26d0fb6403ec5638001c7c029efa0698d689885267fc38c772ee"}},{"ruleId":"D1","level":"warning","message":{"text":"GGUFLoader::infer_multimodal_asset_paths (cyclomatic 19): GGUFLoader::infer_multimodal_asset_paths 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-core/src/pipeline/gguf.rs"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"88464c860e42e5c3b7cb18204960348c956cbf58e1b5cea2f232a8f68996afb0"}},{"ruleId":"D1","level":"warning","message":{"text":"NormalPipeline::try_cuda_decode_graph_forward (cyclomatic 19): NormalPipeline::try_cuda_decode_graph_forward 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. This is NOT this file\u0027s highest cyclomatic complexity: NormalLoaderBuilder::build_inner (cyclomatic 27) 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":1762}}}],"partialFingerprints":{"codehealthFindingId/v1":"e52c47426932946f316e45d41b0e11aeae4b8ddc3806e15243c4463120533c93"}},{"ruleId":"D1","level":"warning","message":{"text":"TextModel::new (cyclomatic 19): TextModel::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-core/src/vision_models/gemma4/text.rs"},"region":{"startLine":1574}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa338c5b707b62bb1c7620fcfac4dffc88b40728066f854198ad8a1f6421f3d3"}},{"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::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":606}}}],"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":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"32058458962681f8ef022157e91da52ca3b7eb11da52b55a4c28d3f41f4b68bf"}},{"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":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd993d6c58f3453eae53c0e6581c0eb0de38ba007dd5668af660a0a52e7e1f6"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_core::kv_cache::try_kv_append_rotating_metal (cyclomatic 19): mistralrs_core::kv_cache::try_kv_append_rotating_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":1493}}}],"partialFingerprints":{"codehealthFindingId/v1":"eefeb022e0d2ebec48ca8d3c982e3d0cec5a6c5a942ee5ff3fae1e84c910a082"}},{"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":"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":"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":963}}}],"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. This is NOT this file\u0027s highest cyclomatic complexity: mistralrs_quant::gguf::cuda::indexed_moe_fused_decode (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-quant/src/gguf/cuda.rs"},"region":{"startLine":1129}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab2967766dd4740f8e5cd935c71f7edb2f55a0f6e8f8f7a84877ea20cebdb9fb"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::cutile::nvfp4_gemv::launch (cyclomatic 19): mistralrs_quant::cutile::nvfp4_gemv::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/nvfp4_gemv.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f5d4830a0796bcc62ed9428f823577afee6057e5b5866074c87e5045d67ea2"}},{"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":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fdcddbda8e2f35a9eb16509cd3de70704f139a3a032447b7a2e95b65a5d0c96"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::gguf::fast_mmq::grouped_pair_packed (cyclomatic 19): mistralrs_quant::gguf::fast_mmq::grouped_pair_packed 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":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a7aaf03e4682b597e07b2e38eb4e64211895dacae92f0496e0df52d0967d33c"}},{"ruleId":"D1","level":"warning","message":{"text":"production_soak.text_prerequisite_evidence (cyclomatic 19): production_soak.text_prerequisite_evidence has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/production_soak.py"},"region":{"startLine":11401}}}],"partialFingerprints":{"codehealthFindingId/v1":"2faa5393d469ed57a0fcbfb2a025851b3db1a09754a38c9a7cac6caefca94c45"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatStore.editMessage (cyclomatic 19): ChatStore.editMessage has cyclomatic complexity 19 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 1 belongs to one function literal 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-cli/webui/src/lib/stores/chat.svelte.ts"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e39aad10e75f446a8457de77a09408c6c7541b06db0741f053822b99a94e3e"}},{"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":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"9267ae038863b435c2fdfa9fe633df71ab4e3cad5fb2f311b9132c53b053979f"}},{"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":"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::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":4260}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d194dc5704be49f790b37be8c97874ee917c2595d84ecfb4a2205c35c9bfc3e"}},{"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":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ce7e6abbf0c5eae03bcfa2868b0a665c9e88f5e3c7cb750428af3566aeaaf6"}},{"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":"mistralrs_pyo3::parse_which (cyclomatic 18): mistralrs_pyo3::parse_which has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: 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":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"38cd0527d828967ac1bfd21fffc501aa2f197991bafffaab0361fd6850dfe2de"}},{"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":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa7860eefebcad6843ea450f5b3b02bb402faf415bcfd685f6797c084b1950fa"}},{"ruleId":"D1","level":"warning","message":{"text":"Nvfp4Layer::gather_forward_raw (cyclomatic 18): Nvfp4Layer::gather_forward_raw has cyclomatic complexity 18 (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/nvfp4/mod.rs"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc221bd479a1c1fd95d69c7ec71a060cadd8c51a6de0e3d38fd83c443dfe61f0"}},{"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_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":"production_soak.exact_output_diagnostics (cyclomatic 18): production_soak.exact_output_diagnostics has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/production_soak.py"},"region":{"startLine":2195}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04461db3d5ff4c1d9e953eca3ea8365813311a42a1f71b49ee1cca378bb95cc"}},{"ruleId":"D1","level":"warning","message":{"text":"production_soak.load_canary_artifact (cyclomatic 18): production_soak.load_canary_artifact has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/production_soak.py"},"region":{"startLine":2683}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb87687c171540eb797de0851262f4b263bb2bb9d6e71c11aecfb84505edd754"}},{"ruleId":"D1","level":"warning","message":{"text":"production_soak.process_telemetry (cyclomatic 18): production_soak.process_telemetry has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/production_soak.py"},"region":{"startLine":8792}}}],"partialFingerprints":{"codehealthFindingId/v1":"3204ace5a4ff6c64f97ff5aaad3734a9b83b91757596b3ca986676764f0744a0"}},{"ruleId":"D1","level":"warning","message":{"text":"production_soak.production_mode (cyclomatic 18): production_soak.production_mode has cyclomatic complexity 18 (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":"scripts/production_soak.py"},"region":{"startLine":10233}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d815910d6441792965865b705f0bbc7ce56a948f24105faaff49f04329c0c9a"}},{"ruleId":"D1","level":"warning","message":{"text":"verify_release_assets.main (cyclomatic 18): verify_release_assets.main has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/verify_release_assets.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a03d4e8cf7112bd661ad459cb6fd86fa858ffc2923c677ae86e2c4477b07408"}},{"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":863}}}],"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":303}}}],"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::precapture_cuda_decode_graphs_impl (cyclomatic 17): MultimodalPipeline::precapture_cuda_decode_graphs_impl 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: MultimodalLoaderBuilder::build_inner (cyclomatic 24) 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":2133}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a792cfaee6d616f3fc7f418ed625c016479b1f1fc57a6c7ca8f2c622b480474"}},{"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":2457}}}],"partialFingerprints":{"codehealthFindingId/v1":"362acfa17fc7fe0ce93d9052c6b432bc751a2910d0e1dbd28184846b297d27a8"}},{"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":1307}}}],"partialFingerprints":{"codehealthFindingId/v1":"22314f13508ae36436732dd2d1490083f8695dc58b7c1fc6d64810858a4be6da"}},{"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":"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":730}}}],"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":133}}}],"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::cutile::tune::tune (cyclomatic 17): mistralrs_quant::cutile::tune::tune 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/cutile/tune.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e4a2b8378bdbd7052d408c9d815afcfdbeb5020428340579f658d49f569ef0e"}},{"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":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b9adaba4c9d89b3890332c20d199ffa1042b03e907d035a75ff9a28be435de4"}},{"ruleId":"D1","level":"warning","message":{"text":"mistralrs_quant::cutile::nvfp4_matmul::launch_inner (cyclomatic 17): mistralrs_quant::cutile::nvfp4_matmul::launch_inner 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/cutile/nvfp4_matmul.rs"},"region":{"startLine":1153}}}],"partialFingerprints":{"codehealthFindingId/v1":"262e28352548cfc1a4f6056c46d80aa6a9f6379f419f2d8f7614ce76bb71afe8"}},{"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":"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":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"317396316ed46d4f58f1a72fef4af3c95f0d76a518af9f7f7dcc4df55479cad9"}},{"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":337}}}],"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":1314}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6af4cea45b38b28b0f0fd103688798ecd6abaaee8a7f8ccc29224d1537ce47"}},{"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":104}}}],"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":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc62d8ffe911077a7864c775df91033250f4c7dc8d1ebe4decc4587c9e132e15"}},{"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":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d02e1c238a5f60d0aa221f772451fe7c76f416a25248d0adbee44c12dd7acc"}},{"ruleId":"D1","level":"warning","message":{"text":"Engine::new (cyclomatic 16): Engine::new 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/engine/mod.rs"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"12297395efcc1efa4bd2abebb0cbce1b5fbf87bec172e615cbcc8fcd7240fa15"}},{"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":1171}}}],"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":198}}}],"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":440}}}],"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":595}}}],"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":3098}}}],"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":1976}}}],"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 24) 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":2624}}}],"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":1465}}}],"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":1644}}}],"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":2461}}}],"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":373}}}],"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":"Qwen3_5TextModel::apply_pending_recurrent_transitions (cyclomatic 16): Qwen3_5TextModel::apply_pending_recurrent_transitions 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/qwen3_5/text.rs"},"region":{"startLine":1569}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a37a21cd8ac7df408f47d7ccdb50eca0360f1390f9868cff3b1a341850d1d2"}},{"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::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_core::speculative::verifier::finish_verified_step_stochastic (cyclomatic 16): mistralrs_core::speculative::verifier::finish_verified_step_stochastic 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/speculative/verifier.rs"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa7897579e5ddaed1018022ee2220db03f9e4eda5356a447480f2a007d16830"}},{"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":3429}}}],"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":3855}}}],"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":3985}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ecb8f8f16f48a0adb9685ce4f2820e4eb79bb4d4363a373bea5075d895a62a"}},{"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":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a6e13410fb5631a80a77cfd2d5542cc00f5d824a86695bcd295634028d4171"}},{"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":"BlockwiseFP8Linear::try_forward_fused_split_glu (cyclomatic 16): BlockwiseFP8Linear::try_forward_fused_split_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":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba70492be33cc3104758bcfb573f5721f46dcfaa24594cf5f2e29e4f11b6bba8"}},{"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":805}}}],"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":2565}}}],"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":345}}}],"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":"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":1524}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaf1c90f48127710975bb71192c0ced4b0099acbbc26f56f0686a60b206e0840"}},{"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":1045}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f99d21093374d388c2f961b994854e219e47723ab93ec2cd3be7856c2121cb3"}},{"ruleId":"D1","level":"warning","message":{"text":"TokenizerAdapter.retrieval_text (cyclomatic 16): TokenizerAdapter.retrieval_text 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":"scripts/production_soak.py"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"859749a5a933b0fa410c8a32cb2e39f191f801ff773b0f921904b0e7617f44d5"}},{"ruleId":"D1","level":"warning","message":{"text":"production_soak.server_provenance_evidence (cyclomatic 16): production_soak.server_provenance_evidence has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/production_soak.py"},"region":{"startLine":1544}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54c9aa6ba3890000f8ceb618d602004b1b65ba451ad53d36a2cee57dc41e5af"}},{"ruleId":"D2","level":"warning","message":{"text":"Engine::run (cognitive 398): Engine::run has cognitive complexity 398 (threshold 15). Drivers by points: if/else 90 (289 pts), loops 17 (61 pts), match/switch 8 (30 pts), boolean chains 18 (nesting depth added 265). 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":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"c634693a78e250c69e3086fb25d170eb2f6d91b87bda3c8881f0ced9fb771025"}},{"ruleId":"D2","level":"warning","message":{"text":"production_soak.validate_args (cognitive 332): production_soak.validate_args has cognitive complexity 332 (threshold 15). Drivers by points: if/else 134 (272 pts), boolean chains 34, loops 11 (24 pts), ternaries 1 (2 pts) (nesting depth added 152). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/production_soak.py"},"region":{"startLine":13305}}}],"partialFingerprints":{"codehealthFindingId/v1":"c10ed66d175f408fb462e8d236aaec6170f05f7c08e623a6862940ddfb2741ed"}},{"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::pipeline::sampling::finish_or_add_toks_to_seq (cognitive 231): mistralrs_core::pipeline::sampling::finish_or_add_toks_to_seq has cognitive complexity 231 (threshold 15). Drivers by points: if/else 68 (184 pts), loops 5 (29 pts), boolean chains 11, match/switch 3 (7 pts) (nesting depth added 144). 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":"Engine::add_request (cognitive 230): Engine::add_request has cognitive complexity 230 (threshold 15). Drivers by points: if/else 75 (165 pts), match/switch 22 (46 pts), boolean chains 11, loops 4 (8 pts) (nesting depth added 118). 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/add_request.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"3585eec935268b59a3d1e279cba8107b719cc2e7b94953367748cd1c9c6d0163"}},{"ruleId":"D2","level":"warning","message":{"text":"Pipeline::submit_step (cognitive 226): Pipeline::submit_step has cognitive complexity 226 (threshold 15). Drivers by points: if/else 50 (134 pts), loops 15 (49 pts), boolean chains 24, match/switch 7 (19 pts) (nesting depth added 130). 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/mod.rs"},"region":{"startLine":2002}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4521369fb3acf906a0d4183891d70a692dbb540c6238a1f4151ed7ce44f6c2b"}},{"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":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"c42598723592d279d9abcff48e90b1104ff02900040093a1260f8e2df254c759"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_server_core::chat_completion::parse_request (cognitive 155): mistralrs_server_core::chat_completion::parse_request has cognitive complexity 155 (threshold 15). Drivers by points: if/else 23 (70 pts), match/switch 15 (47 pts), loops 10 (33 pts), boolean chains 5 (nesting depth added 102). To reduce it, split the body into named stages: move each independent step or branch into its 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":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"bec8be73533a2432ea618bbba350133d72353be5cf1cdbdb57a3c91b28a1736f"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::engine::agentic_loop::agentic_loop (cognitive 152): mistralrs_core::engine::agentic_loop::agentic_loop has cognitive complexity 152 (threshold 15). Drivers by points: if/else 43 (118 pts), match/switch 6 (17 pts), loops 6 (12 pts), boolean chains 5 (nesting depth added 92). To reduce it, split the body into named stages: move each independent step or branch into its 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":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a674aeab020af7e46fca02339ba7a1ba73a6ffaacbbd27134c84e70b6a5d548"}},{"ruleId":"D2","level":"warning","message":{"text":"MultimodalLoader::load_model_from_path (cognitive 142): MultimodalLoader::load_model_from_path has cognitive complexity 142 (threshold 15). Drivers by points: if/else 78 (106 pts), match/switch 16 (24 pts), boolean chains 6, loops 5 (6 pts) (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its 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":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"c635a33d7c3760dc0151cba34fe333dc0e2dd3a9dd208cc02b6281eab29e43df"}},{"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":"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":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"af305e92610ad6aee71f1469923d7a13eee154c356d5c4ee39470cbed5bf3f4c"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::pipeline::inputs_processor::text_models_inputs_processor::make_prompt_chunk (cognitive 133): mistralrs_core::pipeline::inputs_processor::text_models_inputs_processor::make_prompt_chunk has cognitive complexity 133 (threshold 15). Drivers by points: if/else 63 (110 pts), loops 7 (18 pts), boolean chains 5 (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/pipeline/inputs_processor.rs"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e65b79989fcca99c82a9f986d57632cd1003a4125d5a2a1213010349a434fd6"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3VLImageProcessor::process_inputs (cognitive 120): Qwen3VLImageProcessor::process_inputs has cognitive complexity 120 (threshold 15). Drivers by points: if/else 49 (95 pts), loops 8 (17 pts), boolean chains 7, match/switch 1 (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/vision_models/qwen3_vl/inputs_processor.rs"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee5d5b84f1b4d397f962e8176efed75be0b16e49a980e59f82bd68d9206b41d"}},{"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":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ecdab7f88db4ca71ff5ddd9d9be1b01d50b22b8896cb9f77123bdb7a20539d8"}},{"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":885}}}],"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":"NormalLoader::load_model_from_path (cognitive 105): NormalLoader::load_model_from_path has cognitive complexity 105 (threshold 15). Drivers by points: if/else 59 (79 pts), match/switch 12 (18 pts), boolean chains 4, loops 3 (4 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-core/src/pipeline/normal.rs"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"e721da34af5eccd9f7c76fa9fb8362e9028162ac545953da0dbd1b69083090f1"}},{"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":1104}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd653a872d477d90eb5f07909312d89dea42b782877ca2d9a98415f33084fc6e"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenResponsesStreamer::poll_next (cognitive 92): OpenResponsesStreamer::poll_next has cognitive complexity 92 (threshold 15). Drivers by points: if/else 23 (75 pts), loops 3 (12 pts), match/switch 3 (4 pts), boolean chains 1 (nesting depth added 62). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/responses.rs"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22c39871264e6802a21c59376d6c55f8af7f8983e63e3af00e7eeada46da268"}},{"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":1521}}}],"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":"streaming.streamChatCompletion (cognitive 85): streaming.streamChatCompletion has cognitive complexity 85 (threshold 15). Drivers by points: if/else 32 (71 pts), error handling 4 (8 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 44). 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":"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":499}}}],"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":"Runner::send_chat_completion_request (cognitive 82): Runner::send_chat_completion_request has cognitive complexity 82 (threshold 15). Drivers by points: match/switch 10 (32 pts), loops 9 (29 pts), if/else 9 (20 pts), boolean chains 1 (nesting depth added 53). To reduce it, split the body into named stages: move each independent 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 (Runner::send_chat_completion_request_to_model) 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-pyo3/src/lib.rs"},"region":{"startLine":1403}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb1700e6998b1d7750df6bc683338de81a237e0ce7bf68ab0cb3a536487b8edd"}},{"ruleId":"D2","level":"warning","message":{"text":"Runner::send_chat_completion_request_to_model (cognitive 82): Runner::send_chat_completion_request_to_model has cognitive complexity 82 (threshold 15). Drivers by points: match/switch 10 (32 pts), loops 9 (29 pts), if/else 9 (20 pts), boolean chains 1 (nesting depth added 53). To reduce it, split the body into named stages: move each independent 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 (Runner::send_chat_completion_request) 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-pyo3/src/lib.rs"},"region":{"startLine":2364}}}],"partialFingerprints":{"codehealthFindingId/v1":"001c506416873364865f2c93017bfc1d8cc58bf81454b088217d21ff631dcb50"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3_5TextModel::forward_embeds (cognitive 81): Qwen3_5TextModel::forward_embeds has cognitive complexity 81 (threshold 15). Drivers by points: if/else 31 (50 pts), boolean chains 15, match/switch 7 (15 pts), loops 1 (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/qwen3_5/text.rs"},"region":{"startLine":2268}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1539db6a7db7ad6f5ec6fdf1c2656b8719725845a8008a2a4d4581aae13545"}},{"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":651}}}],"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":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"94639de1d0a5c9182d8f63be6b9df3d0967ed6421383b59d256a35cfd38a1327"}},{"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":"SoakClient.stream_request (cognitive 77): SoakClient.stream_request has cognitive complexity 77 (threshold 15). Drivers by points: if/else 25 (53 pts), boolean chains 8, ternaries 7 (8 pts), loops 2 (6 pts), error handling 2 (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":"scripts/production_soak.py"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c797fbe6045922d00e656fb1530f8e3aa46536315bef8992316b3ffafa38e4"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatStore.generateAssistant (cognitive 77): ChatStore.generateAssistant has cognitive complexity 77 (threshold 15). Drivers by points: if/else 30 (52 pts), boolean chains 15, loops 3 (9 pts), ternaries 1 (nesting depth added 28). Of this number, 31 points are the body\u0027s own statements and 46 belong to 12 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/stores/chat.svelte.ts"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45e3e727ca2791ad2a984a443670b4563c2528475ddf97ec8c6701f6d27f789"}},{"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":"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":408}}}],"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":170}}}],"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":3396}}}],"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":431}}}],"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::distributed::layers::load_packed_weights (cognitive 68): mistralrs_quant::distributed::layers::load_packed_weights has cognitive complexity 68 (threshold 15). Drivers by points: if/else 20 (45 pts), loops 5 (12 pts), match/switch 4 (6 pts), boolean chains 5 (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-quant/src/distributed/layers.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"41e48bd4c72fbf5d5df0df0de74505c54255e8fb0a8c991999a01015cbde6b6a"}},{"ruleId":"D2","level":"warning","message":{"text":"production_soak.canary_mode (cognitive 65): production_soak.canary_mode has cognitive complexity 65 (threshold 15). Drivers by points: if/else 11 (26 pts), loops 7 (20 pts), boolean chains 19 (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":"scripts/production_soak.py"},"region":{"startLine":3141}}}],"partialFingerprints":{"codehealthFindingId/v1":"596e74e630a236ac72804681d936dfcacfab9220018e41a56d2b5b568928b345"}},{"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":1336}}}],"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":2055}}}],"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":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"81bfb0829adb57c3fed21743ee6fcb89f85b682c61c7be7f0f7e1799e1f4c0a8"}},{"ruleId":"D2","level":"warning","message":{"text":"TextModel::forward_embeds_scaled (cognitive 63): TextModel::forward_embeds_scaled has cognitive complexity 63 (threshold 15). Drivers by points: if/else 32 (45 pts), match/switch 6 (9 pts), boolean chains 8, 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":2096}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce18da4e786450e14c99f59a27e53354f9b66e87ad92d830c536d8b9ac41b1f"}},{"ruleId":"D2","level":"warning","message":{"text":"Attention::forward (cognitive 61): Attention::forward has cognitive complexity 61 (threshold 15). Drivers by points: if/else 35 (49 pts), match/switch 5 (11 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/gemma4/text.rs"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"2975c7ab3b182542fd35e115d3c268d8a4d3093a90a3411984ff1cdcbc3a3474"}},{"ruleId":"D2","level":"warning","message":{"text":"production_soak.run_long_context_correctness (cognitive 59): production_soak.run_long_context_correctness has cognitive complexity 59 (threshold 15). Drivers by points: loops 9 (21 pts), if/else 9 (20 pts), boolean chains 18 (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":"scripts/production_soak.py"},"region":{"startLine":3862}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e0ef85bbdb73fd9282a46c1e5b3dcc0a68ea13d899f1404262b5ddc9283efeb"}},{"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":113}}}],"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":98}}}],"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 28 (38 pts), loops 3 (9 pts), match/switch 7 (8 pts), boolean chains 3 (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-pyo3/src/lib.rs"},"region":{"startLine":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2692c7f921bf3693b90d2d7334f1cc930e6483fa38a82b37f2d80e5865b71eb"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::afq::ops::afq_mm_op (cognitive 58): mistralrs_quant::afq::ops::afq_mm_op has cognitive complexity 58 (threshold 15). Drivers by points: if/else 23 (42 pts), match/switch 2 (6 pts), boolean chains 5, 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":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e88a51cd3cd0009878591c071b12df2a41f4eda57c6dffd48602102a94a0cb"}},{"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":"Qwen3VLImageProcessor::prepare_for_paged_prompt_planning (cognitive 57): Qwen3VLImageProcessor::prepare_for_paged_prompt_planning has cognitive complexity 57 (threshold 15). Drivers by points: if/else 24 (47 pts), loops 6 (8 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_vl/inputs_processor.rs"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f696d750fb7d8b22e027633e3b6fce9282ec168abec76ffe1af0e248e645f35"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_server_core::responses::convert_input_items_to_messages (cognitive 57): mistralrs_server_core::responses::convert_input_items_to_messages has cognitive complexity 57 (threshold 15). Drivers by points: match/switch 7 (31 pts), if/else 8 (21 pts), loops 2 (5 pts) (nesting depth added 40). 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":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"0697ba7b30621e4242e6cc8b278187766f24b085ff6d62ec1a80e0ab51d0beca"}},{"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":5587}}}],"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":"PagedAttention::try_prefix_gather_prefill (cognitive 55): PagedAttention::try_prefix_gather_prefill has cognitive complexity 55 (threshold 15). Drivers by points: if/else 32 (45 pts), boolean chains 7, match/switch 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/paged_attention/layers/paged_attention.rs"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"cedffb7a4870eb49463adca6770f99f15990a767ef03c1f1881edbeea9a06714"}},{"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":5158}}}],"partialFingerprints":{"codehealthFindingId/v1":"6211f5d41b658253b4d3cacc02ade3d84f61b61338d442e31d09179303e7a424"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::pipeline::sampling::sample_sequence (cognitive 55): mistralrs_core::pipeline::sampling::sample_sequence has cognitive complexity 55 (threshold 15). Drivers by points: if/else 17 (39 pts), boolean chains 8, loops 1 (5 pts), match/switch 3 (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/pipeline/sampling.rs"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd4e61bb1be72171cc64386eea64b8addac739a62ad8d1c9ae78d30918249d5"}},{"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":"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":"mistralrs_core::pipeline::loaders::auto_device_map::get_device_layers (cognitive 53): mistralrs_core::pipeline::loaders::auto_device_map::get_device_layers has cognitive complexity 53 (threshold 15). Drivers by points: if/else 22 (40 pts), loops 3 (5 pts), match/switch 4 (5 pts), boolean chains 3 (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/pipeline/loaders/auto_device_map.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd380580a51fefa785f8839c758202c305489f22599ad0b3f34b365d6d8ce7a"}},{"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":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f2e71fc380189ca21a80ab57559690908c0db458e6b1a17c0453cbe75f22e6b"}},{"ruleId":"D2","level":"warning","message":{"text":"production_soak.adversarial_mode (cognitive 53): production_soak.adversarial_mode has cognitive complexity 53 (threshold 15). Drivers by points: boolean chains 17, loops 13 (16 pts), if/else 7 (14 pts), ternaries 5 (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":"scripts/production_soak.py"},"region":{"startLine":5184}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e6d9508a8850c38811fa0a1a537e516a37fe9d8e33e08614033cd0bc4aa319"}},{"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":2178}}}],"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":711}}}],"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_core::paged_attention::calculate_cache_config (cognitive 50): mistralrs_core::paged_attention::calculate_cache_config has cognitive complexity 50 (threshold 15). Drivers by points: if/else 23 (39 pts), match/switch 2 (5 pts), boolean chains 4, loops 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/paged_attention/mod.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fec00ac9e81b8184586e15c8e41e93bcb6e958b7d37585a2b32a7baa1022a36"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::mxfp4::ops::mxfp4_indexed_moe_gemm (cognitive 50): mistralrs_quant::mxfp4::ops::mxfp4_indexed_moe_gemm has cognitive complexity 50 (threshold 15). Drivers by points: if/else 28 (36 pts), match/switch 9 (12 pts), boolean chains 2 (nesting depth added 11). 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":"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":1525}}}],"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":1192}}}],"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":"mistralrs_quant::gptq::gptq_cuda::gptq_linear (cognitive 47): mistralrs_quant::gptq::gptq_cuda::gptq_linear has cognitive complexity 47 (threshold 15). Drivers by points: if/else 31 (40 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 11). Of this number, 39 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":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb55c7d508f133cddc6ab6a4c3af5138e59589c858f97cb67815819e3cb38a7"}},{"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":"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":"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":"Qwen3_5TextModel::replay_recurrent_prefixes (cognitive 43): Qwen3_5TextModel::replay_recurrent_prefixes has cognitive complexity 43 (threshold 15). Drivers by points: if/else 16 (27 pts), loops 4 (7 pts), match/switch 3 (5 pts), boolean chains 4 (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/qwen3_5/text.rs"},"region":{"startLine":1894}}}],"partialFingerprints":{"codehealthFindingId/v1":"c51951605d0d2a1587731cefeaebf1708fd17e68285917f5bdd2e1e80298b3e9"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::speculative::driver::verify_staged_batch (cognitive 43): mistralrs_core::speculative::driver::verify_staged_batch has cognitive complexity 43 (threshold 15). Drivers by points: if/else 16 (30 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":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ddb9d193e49c77f8361e498a9453d2ef2bd376aea5f6bef291cd84210e68c3f"}},{"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":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"579c8a9ff6011bb06edf6457c26175e71c3fda59cb47619892261c1a948a0d1b"}},{"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":"TokenizerAdapter.exact_text (cognitive 42): TokenizerAdapter.exact_text has cognitive complexity 42 (threshold 15). Drivers by points: if/else 16 (30 pts), loops 6 (9 pts), boolean chains 3 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/production_soak.py"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"91cff3d264061b71de9364d85ad7977071fb8c2033a4436ee31301c834122729"}},{"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":"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":"PagedAttention::cuda_fwd_t (cognitive 41): PagedAttention::cuda_fwd_t has cognitive complexity 41 (threshold 15). Drivers by points: if/else 21 (22 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":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"549d8e6d3bc67498a737b7eb3edfe558aa28bc46e8d21959fcd9341e6bb1d836"}},{"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":1702}}}],"partialFingerprints":{"codehealthFindingId/v1":"23adf53f9d64ca928011017cf5bb2c5b14661645becfda09b77db5b1643c3f1b"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::gguf::normal_bindings::bind_block_tensor (cognitive 40): mistralrs_core::gguf::normal_bindings::bind_block_tensor has cognitive complexity 40 (threshold 15). Drivers by points: if/else 11 (21 pts), match/switch 6 (10 pts), boolean chains 9 (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/gguf/normal_bindings.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"34606e02fd52c64df80c361c7fb172b140eb3bdbcb3cd9896c56fc834651cb6c"}},{"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":2035}}}],"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":"PagedAttention::metal_fwd (cognitive 39): PagedAttention::metal_fwd has cognitive complexity 39 (threshold 15). Drivers by points: if/else 18 (20 pts), match/switch 10 (14 pts), boolean chains 5 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/metal/backend/paged_attention.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"b204cd1c820c41c81ec9250a7e99b9f79e822dd84e64038e79412d140398bda7"}},{"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":407}}}],"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":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7377166d35742047fe1ee888187e67a02ed4acee8ef064c13f46e3ca1f0cd1d"}},{"ruleId":"D2","level":"warning","message":{"text":"production_soak.load_quality_replay_cases (cognitive 39): production_soak.load_quality_replay_cases has cognitive complexity 39 (threshold 15). Drivers by points: if/else 16 (24 pts), boolean chains 9, loops 3 (4 pts), error handling 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":"scripts/production_soak.py"},"region":{"startLine":9021}}}],"partialFingerprints":{"codehealthFindingId/v1":"703f01c4d748ca2f21ec8307cd0925c65cd1828d702c9d589b33969911e8de17"}},{"ruleId":"D2","level":"warning","message":{"text":"Sdpa::run_attention_noflash (cognitive 38): Sdpa::run_attention_noflash has cognitive complexity 38 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 11, 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":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d5551fd552917aa2506b2586b9d2ba4fb69ce38fe7703ad568ba9d036524e6"}},{"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::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":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b6e12a459c189cfbbc20b2c7ed51ac7f07a53a53ee7a7cac256ecbb2202e6b"}},{"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":"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":"bench_nvfp4_serving.stream_request (cognitive 38): bench_nvfp4_serving.stream_request has cognitive complexity 38 (threshold 15). Drivers by points: if/else 15 (30 pts), loops 3 (4 pts), boolean chains 3, error handling 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":"scripts/bench_nvfp4_serving.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"8339452a46ee0623a0c67f39e1cf4e5d674c5063a3a5ea7b9d2e7c41a1ab1438"}},{"ruleId":"D2","level":"warning","message":{"text":"production_soak.compare_mode (cognitive 38): production_soak.compare_mode has cognitive complexity 38 (threshold 15). Drivers by points: boolean chains 31, if/else 4, loops 1 (2 pts), ternaries 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/production_soak.py"},"region":{"startLine":2763}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a06a786ac9662e7a715691d88f25663efcb9eee5877a230c39cee855c437a55"}},{"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":4550}}}],"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":"Nvfp4Layer::from_normalized_parts (cognitive 37): Nvfp4Layer::from_normalized_parts has cognitive complexity 37 (threshold 15). Drivers by points: if/else 23 (28 pts), boolean chains 8, 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-quant/src/nvfp4/mod.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6e4997bfddc2a5cf5c33f3c401b32226c42be0453b0238ac241812fe77a76db"}},{"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":3093}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc61a0e16ad59a25c0a322f22086965426ffc2e1574c0ec70d1c8877a1f2ce3"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockwiseFP8Linear::forward_raw (cognitive 36): BlockwiseFP8Linear::forward_raw has cognitive complexity 36 (threshold 15). Drivers by points: if/else 18 (30 pts), boolean chains 4, match/switch 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-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff3ac0e5e964cc15ac8d7c266c85d3ab377281b4b7c7606fe77674b61d255500"}},{"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_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":1408}}}],"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":"FastExpertsWeights::forward_grouped (cognitive 35): FastExpertsWeights::forward_grouped has cognitive complexity 35 (threshold 15). Drivers by points: if/else 16 (21 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-core/src/moe/experts/backends.rs"},"region":{"startLine":1453}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d943c614efc980b095d3fe42a42e221634f45ea9cc8e2e849eb0d96efd8cf73"}},{"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":5920}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ef4969a9ea5a0ff47762f2a7ab880c908697bfc18d54cf085ea65dcb604f3cb"}},{"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":"MistralRsForServerBuilder::build_multi_model (cognitive 35): MistralRsForServerBuilder::build_multi_model has cognitive complexity 35 (threshold 15). Drivers by points: if/else 27 (34 pts), 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":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba59ee4a0d61fcceaf91081064c2e08fc07bb5542265ae4fed97fa915dd404ba"}},{"ruleId":"D2","level":"warning","message":{"text":"production_soak.cuda_graph_evidence (cognitive 35): production_soak.cuda_graph_evidence has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 14, 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":"scripts/production_soak.py"},"region":{"startLine":7369}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c107c8d20963faaba4ecb522ee51e9ec1f83b19d865220457b9863e535870d4"}},{"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":597}}}],"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":712}}}],"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":2123}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e9e09759c81ab4aa93c94d28939b24e1d3f7ae8ac78a9f9bbdacb223f6beffd"}},{"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":37}}}],"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::cutile::nvfp4_matmul::launch_gather (cognitive 34): mistralrs_quant::cutile::nvfp4_matmul::launch_gather has cognitive complexity 34 (threshold 15). Drivers by points: if/else 33, 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":1377}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab74e01164895809972e7c252f15b97733c32702ab098878299ead5ac344a41"}},{"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":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"925ac46b5d1034dac3e15eb7f4167db3dd2cb4181142f1225a5e85860188f936"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3_5TextModel::stage_recurrent_prefixes (cognitive 33): Qwen3_5TextModel::stage_recurrent_prefixes has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":1758}}}],"partialFingerprints":{"codehealthFindingId/v1":"d73497e952499ae44175aa0a471ddb0207a7e31a230ff8afe74309a1e7c4e775"}},{"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":"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":1485}}}],"partialFingerprints":{"codehealthFindingId/v1":"28dfdca7353a1fe1e6cd850acbbb5a31444a1410bb6e5aecddcccd05e79cd17f"}},{"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":"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":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"9be6b90a769f593d62555fdb573f95d2bd46ac184e5a882dc66a9a6953c19cdf"}},{"ruleId":"D2","level":"warning","message":{"text":"Nvfp4Layer::load_shape (cognitive 33): Nvfp4Layer::load_shape has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16 (21 pts), match/switch 4 (6 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":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"303b368b534d22c76945148eaa7ad63925cffb061a650b7f132aa330941a678e"}},{"ruleId":"D2","level":"warning","message":{"text":"production_soak.process_telemetry (cognitive 33): production_soak.process_telemetry has cognitive complexity 33 (threshold 15). Drivers by points: if/else 6 (12 pts), error handling 6 (11 pts), loops 3 (5 pts), ternaries 2 (5 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":"scripts/production_soak.py"},"region":{"startLine":8792}}}],"partialFingerprints":{"codehealthFindingId/v1":"4faafaffefdc78e77b7a1dcfe6f2c5dddf0c1aea63ba130612f76ab64d990a9e"}},{"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":1171}}}],"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":"mistralrs_quant::cutile::nvfp4::launch (cognitive 32): mistralrs_quant::cutile::nvfp4::launch has cognitive complexity 32 (threshold 15). Drivers by points: if/else 20 (23 pts), boolean chains 6, 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-quant/src/cutile/nvfp4.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb5a7b725a34079442400ce9b31a5079c2750af613c457d57d4f73997dcf6bc"}},{"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":"TextModel::new (cognitive 31): TextModel::new has cognitive complexity 31 (threshold 15). Drivers by points: if/else 21 (25 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":1574}}}],"partialFingerprints":{"codehealthFindingId/v1":"2988a4a16158e0a18ef408f0ade36e7f7bdfea00bafed1d72211f081c3e795e6"}},{"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::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":3940}}}],"partialFingerprints":{"codehealthFindingId/v1":"2252d4826257e4da058d87ceb31ec03b406e989d4f92a44880525d81857d0f83"}},{"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":4910}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe320c41465ddf2b2f8ed4e1bffbec38e80ac94c6cae89f4d013e76e804c83b"}},{"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":152}}}],"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":"ChatStore.editMessage (cognitive 31): ChatStore.editMessage has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (18 pts), error handling 2 (5 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 12). Of this number, 30 points are the body\u0027s own statements and 1 belongs to one function literal 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-cli/webui/src/lib/stores/chat.svelte.ts"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"e964f6622c42ada98d751fc3d9a6de205db0b39d0b5b7bb40493955604997168"}},{"ruleId":"D2","level":"warning","message":{"text":"CacheEngine::allocate_gpu_cache (cognitive 30): CacheEngine::allocate_gpu_cache has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (26 pts), match/switch 1 (2 pts), boolean chains 1, 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/paged_attention/cache_engine.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"10ef9121a5710f69f44d49d5f3e7791d90e9ed3306947873d013e79a0d3023ac"}},{"ruleId":"D2","level":"warning","message":{"text":"MultimodalPipeline::try_cuda_decode_graph_forward (cognitive 30): MultimodalPipeline::try_cuda_decode_graph_forward has cognitive complexity 30 (threshold 15). Drivers by points: if/else 20 (25 pts), boolean chains 5 (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":1925}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd50fa72eabb16160b736c857e40108d3ccf5593354aeec4ff3614a5f65ea07"}},{"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":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb04b2a461eebe9c3ee11df65c55ea128ebad4ef1904559cf1970838f11451a"}},{"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::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":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5de844902371d03c553086a7a8b18689eb2dba30b10d33b47a14c45993d100e"}},{"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":912}}}],"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":545}}}],"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":691}}}],"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":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d7a108e2b30c6bf5ae0bb07a363dc3d1f00a7daa8551ff20b42e742ca9a88eb"}},{"ruleId":"D2","level":"warning","message":{"text":"VectorFP8Linear::apply_isq (cognitive 30): VectorFP8Linear::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/vector_fp8/mod.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d8a377858f97ca12eeaff2a70da11b176e2c29887944139729a3a8a7488abc"}},{"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":1314}}}],"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":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cdec5d20c52c19545dd02ca23314d2f462ac6936184c02ef6ee17fe6061d565"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::speculative::verifier::finish_verified_step_stochastic (cognitive 29): mistralrs_core::speculative::verifier::finish_verified_step_stochastic has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (20 pts), match/switch 4 (5 pts), loops 2 (3 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/speculative/verifier.rs"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e44bc229031e6e784f389b9081deb4952d5df96bd7b89ac4e4afe1ffb07e28"}},{"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":133}}}],"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":"TokenizerAdapter.retrieval_text (cognitive 29): TokenizerAdapter.retrieval_text has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 6 (9 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":"scripts/production_soak.py"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"5419908b60ed7e78a201ef53eff14505d935654d9b32f7fdd503d539e5f25b0c"}},{"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":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"930fe5f2f0dbd2f9a8f8277cd92fa8268e25d80978821f7655fa41bce37f546f"}},{"ruleId":"D2","level":"warning","message":{"text":"Sdpa::run_attention (cognitive 28): Sdpa::run_attention has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 7, 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-core/src/attention/mod.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14cc1ba48935cc9d4a156db37bb0ddf0091ebb4b5ff8c282212e06ae7c555cb"}},{"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":318}}}],"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":5537}}}],"partialFingerprints":{"codehealthFindingId/v1":"517e023dc238e45c692afcdc568f7bac1315cffc7c10c7456fe6db0eb69fea30"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3_5Model::mtp_propose (cognitive 28): Qwen3_5Model::mtp_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/vision_models/qwen3_5/speculative.rs"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b998199262ae328acfec2bae4795c41b4e98ea70d691222d92bec824f0a8f91"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3_5TextModel::apply_pending_recurrent_transitions (cognitive 28): Qwen3_5TextModel::apply_pending_recurrent_transitions has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 4 (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/vision_models/qwen3_5/text.rs"},"region":{"startLine":1569}}}],"partialFingerprints":{"codehealthFindingId/v1":"62cfcf7abb07a35ca433b7c7cdde2828a929384c75c4388cce7a02d4ea8cceda"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::speculative::verifier::finish_verified_step (cognitive 28): mistralrs_core::speculative::verifier::finish_verified_step has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (20 pts), match/switch 3 (4 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-core/src/speculative/verifier.rs"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcfbf8ab54f2b43d63c3d5e1a077c8658e59754afec1b11ba95d00daf6fb04ba"}},{"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":4387}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b0c72a32e7fd93efd0c946744579e8e311b3a701c261e1392bdc769d7f9d2c"}},{"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_paged_attn::metal::backend::paged_attention::reshape_and_cache (cognitive 28): mistralrs_paged_attn::metal::backend::paged_attention::reshape_and_cache has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (13 pts), match/switch 9 (11 pts), boolean chains 4 (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/metal/backend/paged_attention.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b7b56609527d1b236d0cf4342d30b234e6c851f9f81eea47be27cd579d614b0"}},{"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":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"e537d266476896299d4457262e676ade8c165a85b0076f80f5cf08b733eee902"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::try_fused_quantized_qkv (cognitive 28): mistralrs_quant::try_fused_quantized_qkv has cognitive complexity 28 (threshold 15). Drivers by points: if/else 19 (22 pts), boolean chains 6 (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/lib.rs"},"region":{"startLine":2362}}}],"partialFingerprints":{"codehealthFindingId/v1":"746685b8d3464ce7086ae124eb6f9bb8348cf83f5ec9c506f817074e6930d778"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::mxfp4::metal_ops::mxfp4_indexed_moe_gemm (cognitive 28): mistralrs_quant::mxfp4::metal_ops::mxfp4_indexed_moe_gemm has cognitive complexity 28 (threshold 15). Drivers by points: if/else 17 (22 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::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":443}}}],"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":576}}}],"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":692}}}],"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":692}}}],"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":605}}}],"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":704}}}],"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":706}}}],"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":663}}}],"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":624}}}],"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":595}}}],"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":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"31ad3ce5a241b859462ba922003bce38134a6c3493da6531544092462baf6ad4"}},{"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":664}}}],"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":5234}}}],"partialFingerprints":{"codehealthFindingId/v1":"577cc12d862a1ecffaca3c06bf8b26f1b45580e18987c99ee4bb0c33d21674dc"}},{"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":2565}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc5280fe710047e172a6499ec8e25df1935c60c519f09272e866b093ae3c95a"}},{"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":"production_soak.compare_time_windows (cognitive 27): production_soak.compare_time_windows has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 6, loops 2 (3 pts), ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/production_soak.py"},"region":{"startLine":11058}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fcce5ea6b8104ef5b0b3cfc111bd951bd4c658c927018af73fe73f563a2afba"}},{"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":378}}}],"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":1938}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1878ed95033c09861b4a09df0aab4d533dab8e608c8435570685fc98e5faa05"}},{"ruleId":"D2","level":"warning","message":{"text":"MultimodalPipeline::precapture_cuda_decode_graphs_impl (cognitive 26): MultimodalPipeline::precapture_cuda_decode_graphs_impl has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (21 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":2133}}}],"partialFingerprints":{"codehealthFindingId/v1":"828f70a8efbe3086972cdf90ad3ffc56df7e84f7552c377f6055779202231276"}},{"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":373}}}],"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":1307}}}],"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":1225}}}],"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":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ff43e42e8f3d4cea071c74f8cda7629c74ef5344405c3942daa81a17730520"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::engine::cuda_memory::maintain_device (cognitive 26): mistralrs_core::engine::cuda_memory::maintain_device has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 8, 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":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"deee478f1f5f0d1fb02d142d4b53560e7fa3d64e2241eb27b0c703068063556e"}},{"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":4802}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee66554f00f4355db961890732f12295321181e66e36851fc9272d82d974f36"}},{"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":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"79fe7c60a69bd50afd440399b78a0632af0dc81442cc1a440d7b3295e9d16ff7"}},{"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":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8d19fd04bba64ad7bfa488f50bb19445c1be159bd487720add5136dea9c890"}},{"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":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c5f756412050de2c074547093d7f0d5d9f0eacee2a08422ec67e5d2d6ef970"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::try_fused_quantized_ffn (cognitive 26): mistralrs_quant::try_fused_quantized_ffn has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17 (18 pts), boolean chains 7, 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/lib.rs"},"region":{"startLine":2142}}}],"partialFingerprints":{"codehealthFindingId/v1":"d704eee5bdec4c4d70a8b3170cc8403e57f04266dab4438150dfa1a2ce9b166d"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::try_fused_quantized_gate_up (cognitive 26): mistralrs_quant::try_fused_quantized_gate_up has cognitive complexity 26 (threshold 15). Drivers by points: if/else 19 (22 pts), boolean chains 4 (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/lib.rs"},"region":{"startLine":2252}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f34025b64bd597e2b827e61c905ca18f94f389cccc69749a26b5c790b0a002c"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::cutile::tune::tune (cognitive 26): mistralrs_quant::cutile::tune::tune has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 4 (8 pts), loops 2 (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-quant/src/cutile/tune.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"0592d91e92079a84f906e4ff04d1e567e444598b93f42fc5571582bea22e299d"}},{"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":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"c98f3dbb922d37dcf4eaa121b6bb2f0f3ff9f4b680f9a217b6e5f9f6ef79517a"}},{"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::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":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"945850010ccf86b41dafff86f0c738ed8f83a7c29e9f4d23ccdc543f7a3e1078"}},{"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":399}}}],"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":1984}}}],"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":1737}}}],"partialFingerprints":{"codehealthFindingId/v1":"e57e77a589284d1688545e07aa78780e7ed2d88ee6195ba210f510b5394e3cb3"}},{"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_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":"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":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"38f084e5e4cb9cabd9977326d0b614e4e61f41fb80ddeac9b659878150605252"}},{"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_quant::cutile::nvfp4_matmul::launch_inner (cognitive 25): mistralrs_quant::cutile::nvfp4_matmul::launch_inner has cognitive complexity 25 (threshold 15). Drivers by points: if/else 21 (22 pts), match/switch 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-quant/src/cutile/nvfp4_matmul.rs"},"region":{"startLine":1153}}}],"partialFingerprints":{"codehealthFindingId/v1":"66ce4c7a03f6cbaa793486693a9b6570e88c9c0d219db6c3bb30931e1e86cef3"}},{"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":"production_soak.calibrate_prompt_profiles (cognitive 25): production_soak.calibrate_prompt_profiles has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (14 pts), ternaries 2 (6 pts), loops 2 (3 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":"scripts/production_soak.py"},"region":{"startLine":3608}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e25aa6e07b0956b07b98ac1bdb09ea550b81af01f23a42f4489f7a700dc557"}},{"ruleId":"D2","level":"warning","message":{"text":"verify_release_assets.main (cognitive 25): verify_release_assets.main has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 5, boolean chains 2, error handling 1 (2 pts), ternaries 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":"scripts/verify_release_assets.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd5061c005080c96e0eee62376f5540f6fe1223be0f484636aebfbd95a380f8c"}},{"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":104}}}],"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":198}}}],"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":1644}}}],"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":2997}}}],"partialFingerprints":{"codehealthFindingId/v1":"88dbfc81a12cdc7db8f55be24a8123e58c3885cd51bad497357ad57554d37df9"}},{"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":263}}}],"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::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":"mistralrs_core::model_loader::loader_from_model_selected (cognitive 24): mistralrs_core::model_loader::loader_from_model_selected has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 4, 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::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":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa23459c98e4e3686d6cc17ef4b67fa6d0a6035e29ef64ddc86ee0abe64c7a2"}},{"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":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"12dedd7721117b18eb4535d57bb4bc6ae6a0268c509a052cf3faea83e67b94dd"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::cutile::fp8_w8a8::launch (cognitive 24): mistralrs_quant::cutile::fp8_w8a8::launch has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 5, match/switch 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-quant/src/cutile/fp8_w8a8.rs"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f8a4b9d09714aad4a510ecf4fada139afa562fe668b251572ac1926619f895e"}},{"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":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"723a69fdf2f203088ffe9ac834342db0de59a8b1e70e1a22c71590d6a76b2c9b"}},{"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":1764}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9f245347f72249c52d0a630cf7d90e6ea73d5b9d969dc00f10d0ff8dcf7fe67"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::cutile::nvfp4_gemv::launch (cognitive 24): mistralrs_quant::cutile::nvfp4_gemv::launch has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17 (19 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":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51292dc3812d625da018873d0654f9864a0c7dc5961c11b343b61159751d379"}},{"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":"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":1045}}}],"partialFingerprints":{"codehealthFindingId/v1":"d814c059bf5a0e129934419c38c5e593a42ea326ff407091b2339ac2911c7eb2"}},{"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":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c7dccecbe155e7bebd290bdd1a5d00aa570e436af8c552a4ac58f900d4c7a5c"}},{"ruleId":"D2","level":"warning","message":{"text":"bench_nvfp4_serving.prepare (cognitive 24): bench_nvfp4_serving.prepare has cognitive complexity 24 (threshold 15). Drivers by points: loops 4 (10 pts), ternaries 2 (8 pts), if/else 2 (6 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":"scripts/bench_nvfp4_serving.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"25aa9f6ed72cbb57f3c9a36af4f76c3009d7a0cfeda17678a539f2172e385ea3"}},{"ruleId":"D2","level":"warning","message":{"text":"production_soak.gpu_driver_provenance (cognitive 24): production_soak.gpu_driver_provenance has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (15 pts), error handling 2 (5 pts), loops 2 (4 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":"scripts/production_soak.py"},"region":{"startLine":1454}}}],"partialFingerprints":{"codehealthFindingId/v1":"b396fa8f91b7c153168fc424d557585e38c7f9fa337a8849548aa83a5f983e0f"}},{"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":253}}}],"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":"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":950}}}],"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":1465}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dfcdaf9cd341b773376b3d047e06b7cc56069195c9b17823caf08e4dba5b281"}},{"ruleId":"D2","level":"warning","message":{"text":"FixedBucketingManager::bucket_and_waitlist_seqs_waiting (cognitive 23): FixedBucketingManager::bucket_and_waitlist_seqs_waiting has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 3 (6 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/scheduler/default_scheduler.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"315e9d1961012cdf6cd8829ab0a05ae3fa3d54ae0c1df8427202e64b72b52bd2"}},{"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":2461}}}],"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":"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":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a648b30873ddb6432bc967b5cef0abc27e52d8512595799d35180b613815ab2"}},{"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_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":1275}}}],"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":2887}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0ca995b91c9cba16b43c71f8e468865c94cfe609bf1b461723c675d7ce64bd"}},{"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":"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":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"de91aa4a7e7e5a4086f3b5bb8624882c2924098077203d4e23b95874bb44e3be"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::try_fused_gate_up_metal (cognitive 23): mistralrs_quant::try_fused_gate_up_metal has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19, 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-quant/src/lib.rs"},"region":{"startLine":2455}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ff8ee783752c6b4d8c9d632c1c65511316feb64798b5ab99e4b870c504b198"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::try_fused_qkv_metal (cognitive 23): mistralrs_quant::try_fused_qkv_metal has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17, boolean chains 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-quant/src/lib.rs"},"region":{"startLine":2598}}}],"partialFingerprints":{"codehealthFindingId/v1":"360f024427d7a233146c1406b82bf444f2620bd2a2e562f86e58098753a27be0"}},{"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":"production_soak.multimodal_mode (cognitive 23): production_soak.multimodal_mode has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 7, loops 3, error handling 1, ternaries 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":"scripts/production_soak.py"},"region":{"startLine":11761}}}],"partialFingerprints":{"codehealthFindingId/v1":"245a6f39ff6601fbf3ee32c68decde92ab98fea82a8c8fa11eed464f9e32cded"}},{"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":737}}}],"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":39}}}],"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":651}}}],"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":647}}}],"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":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"891b5151fee332ec02ecdddb37cf37780464ad0f0aaf9f2751a71562d466d2ca"}},{"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":3806}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd1552ae0e3923505485bbe828a32fa6283049fadc3822653307afe3375a4d0"}},{"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":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc3612284591e17b4dc55d3ab1ab007c1650f26fc48c12595d14d6590ab705ae"}},{"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_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":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d709c2d67b6f9ed51c10ef32feb3946a6e11552c288d5e286e6b2f087a77773"}},{"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":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"673568e7926fe28cbdfe3cc0663f45eb36e163fe794ca5bd34a11289537cd5e3"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockwiseFP8Linear::prepare_provider (cognitive 22): BlockwiseFP8Linear::prepare_provider has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 3, 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-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0a5e3ff98d8e3f6aec286d6fea9db35186549d7da61dd1da584c6ceb8edd9b"}},{"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":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ad9e0552f19850225be7381157304a5b8da72a63daee1f459e4b53384ea7a4"}},{"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":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"57d1be8211a834653ca5a2dcaa1cd43264ab7962ac10a9dfbe9971aa7ab6ddaf"}},{"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_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_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":1412}}}],"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":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"447eba9575f25cf37e5a7d2532bd5bdcc3dcc4e701bda551f4c542a7419122ad"}},{"ruleId":"D2","level":"warning","message":{"text":"Engine::new (cognitive 21): Engine::new has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (12 pts), match/switch 4 (5 pts), boolean chains 4 (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/mod.rs"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca8b52577172ff1a69e44323efe86a733a62d5b4df2987bef0f3c5ca5d11d747"}},{"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":"GGUFLoader::infer_multimodal_asset_paths (cognitive 21): GGUFLoader::infer_multimodal_asset_paths has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (13 pts), match/switch 6 (7 pts), boolean chains 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/pipeline/gguf.rs"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93df803ee89ccc003433c22869da22daffe8d3d1e6d94229dcc5a43ca227808"}},{"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::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":"mistralrs_core::paged_attention::layers::paged_attention::prefix_gather_causal_mask (cognitive 21): mistralrs_core::paged_attention::layers::paged_attention::prefix_gather_causal_mask has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (11 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":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"88073d9e24e3add54bdef8f6a11736f2bab6f321e05acb33c6675d261ae33100"}},{"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":"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":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"5877e3805636ae72a4d9d800205e2e051d27e4e768bd7087ea7e48eb62885da5"}},{"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":1102}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a7d4de4f47b1662f28b32d983680f291bf7fd7026926c5e58be7956c71c5b3"}},{"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::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":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"6108baa08406ee667636d8de7715ff2cb6458a04b31bb317f59ec22e0fb4a693"}},{"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":"production_soak.exact_output_diagnostics (cognitive 21): production_soak.exact_output_diagnostics has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 4, ternaries 3, 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":"scripts/production_soak.py"},"region":{"startLine":2195}}}],"partialFingerprints":{"codehealthFindingId/v1":"4476cd00a8e8aa2339bbba8191744d3cb9e0b1201f70027d4b027320a1b6778d"}},{"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":1327}}}],"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":"NormalPipeline::try_cuda_decode_graph_forward (cognitive 20): NormalPipeline::try_cuda_decode_graph_forward has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16 (17 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":1762}}}],"partialFingerprints":{"codehealthFindingId/v1":"f34d6a9e639adc78fd03bb067f95a60e83ca686dd68ab74467f0fc45c6373264"}},{"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":114}}}],"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":296}}}],"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::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::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_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::try_forward_fused_split_glu (cognitive 20): BlockwiseFP8Linear::try_forward_fused_split_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":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"971265d11b2d59390e871f5dccd6bd7c3dd2990e5505340f492c4b646db74b11"}},{"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":1129}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e4c44cbe71e935f0db377aa87f10863fae933db919ba54b327208ccb8889fe"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::cutile::fp8_w8a16::launch (cognitive 20): mistralrs_quant::cutile::fp8_w8a16::launch has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11, boolean chains 5, match/switch 3 (4 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/cutile/fp8_w8a16.rs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a8510c32a298fe1611cced55ccdae37fcbc537ee0bdf651293ac93be069e8f"}},{"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":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"c315d51cd3ba886b7cf48da54d275cbcc6c1ce447df36a5ccda4d1fa5d637005"}},{"ruleId":"D2","level":"warning","message":{"text":"production_soak.load_canary_artifact (cognitive 20): production_soak.load_canary_artifact has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 4 (7 pts), error handling 1 (2 pts), loops 1 (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/production_soak.py"},"region":{"startLine":2683}}}],"partialFingerprints":{"codehealthFindingId/v1":"b75f2865fb9fe6461989b77e44af19545fdcd76ae5bbb535f6e46ba82fbefc9f"}},{"ruleId":"D2","level":"warning","message":{"text":"production_soak.quality_replay_pressure_plan_evidence (cognitive 20): production_soak.quality_replay_pressure_plan_evidence has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 13, ternaries 7. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/production_soak.py"},"region":{"startLine":9613}}}],"partialFingerprints":{"codehealthFindingId/v1":"336559f1bc804a21aa5c361072706b426a7c46fe3b19471b91183ce861ec67a9"}},{"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":197}}}],"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":58}}}],"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":381}}}],"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":1902}}}],"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":2361}}}],"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":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"e833732839cc407677dcd48250a471dd6187568687723745772edbb859442cc5"}},{"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":2457}}}],"partialFingerprints":{"codehealthFindingId/v1":"2093feab25631fb3378a2da1e938e9f3805edf7e436bd334cfdf9f78f9a30729"}},{"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::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::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::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":2889}}}],"partialFingerprints":{"codehealthFindingId/v1":"b945c30e636f55a3f8948cebece9322c09d9025c4637e1695e10f3090683e971"}},{"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":2113}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f8f57de45318843c4878efc03c4e64335085bde1c20002483a262b5c883eb22"}},{"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":"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":"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":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"4617614c5985d70851ddbd131d3b74f71c3afd24460b1e2a3291471922edfa6b"}},{"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::handlers::models (cognitive 19): mistralrs_server_core::handlers::models has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (8 pts), match/switch 4 (8 pts), loops 2, 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-server-core/src/handlers.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"73733554cc2f77f8212f09c35935809318f056e9e85b5c5770c8503e890c0e4e"}},{"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":1268}}}],"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":"production_soak.text_prerequisite_evidence (cognitive 19): production_soak.text_prerequisite_evidence has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 11, ternaries 2 (4 pts), if/else 2 (3 pts), loops 1 (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/production_soak.py"},"region":{"startLine":11401}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f16a5a91c2ce3db685f4a9ea5f050e42c0d91562d9f254054e3427df7a31d6"}},{"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":534}}}],"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":153}}}],"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":337}}}],"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":156}}}],"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":1515}}}],"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":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d05a6d7fadae53edb3ec90975ecf8bcf4ee9bdd3816ddb393914e33b0cefb33"}},{"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":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"9657450b2d15c9ae7ef2858ffc8842f3edf222c7b940efcc98a2fdd69f52a384"}},{"ruleId":"D2","level":"warning","message":{"text":"Sequence::take_ready_streaming_emissions (cognitive 18): Sequence::take_ready_streaming_emissions has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/sequence.rs"},"region":{"startLine":1544}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe691a381558e38cc4fe11ae169a62e7b2a6a061b8645d1076f0a2533fe982b"}},{"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":3255}}}],"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":3376}}}],"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":"ToolCallingMatcher::get_call_with_content (cognitive 18): ToolCallingMatcher::get_call_with_content 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/tools/mod.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"d01e242323d18e43557e0fdc4ae01e906ad1284b69c6d436f1e6925bf7a64566"}},{"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":1191}}}],"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":2423}}}],"partialFingerprints":{"codehealthFindingId/v1":"1795102e238ef135896a532523edc9f0bd2628b2e25f642e0c4d6693b226ba25"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3_5Model::mtp_prefill (cognitive 18): Qwen3_5Model::mtp_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/vision_models/qwen3_5/speculative.rs"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3fbf5e163af0863b7426341c4610b24dd9a5d6ef2ee5f2a0177de6b2563f3da"}},{"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":550}}}],"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::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::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":4573}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dcfb4ad80aea20ea1282977d9dd49b222b238898cbf7fa00f7f9bb421f13c38"}},{"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":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"3edcf0f4d92bf2de9c801d098737694ef6593cc15e75de4a36db33549b357934"}},{"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":935}}}],"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":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d437fa917b4f57037c133c0b8c114f2aaed3df451f78029ddeb4f9794e3e2d2"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::kv_cache::try_kv_append_rotating_metal (cognitive 18): mistralrs_core::kv_cache::try_kv_append_rotating_metal has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, 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-core/src/kv_cache/mod.rs"},"region":{"startLine":1493}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c4b41e34d9c29db630517c5b5ce8525dc73a4a39314785dbfc779dfcbd9c49f"}},{"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":8}}}],"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::gguf::fast_mmvq::fused_qkv (cognitive 18): mistralrs_quant::gguf::fast_mmvq::fused_qkv has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, boolean chains 4, 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":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd391fa90f034c345808c33f59a398a5243ff90104528404cc698520dc50506"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::vector_fp8::ops::fp8_vector_quantize (cognitive 18): mistralrs_quant::vector_fp8::ops::fp8_vector_quantize has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 5 (9 pts), if/else 6 (8 pts), boolean chains 1 (nesting depth added 6). 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/vector_fp8/ops.rs"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05947e50ce987c5f088d585828eed0981c64563038b2e0f9ebe03261e4e8011"}},{"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":"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":"production_soak.resident_decode_mode (cognitive 18): production_soak.resident_decode_mode has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 7, loops 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":"scripts/production_soak.py"},"region":{"startLine":7647}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d3574ae015f93ff7f60f69570fe38252d5e9785bde36e9a4f5dcd0849e18460"}},{"ruleId":"D2","level":"warning","message":{"text":"production_soak.production_mode (cognitive 18): production_soak.production_mode has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 8, if/else 5, ternaries 2 (3 pts), loops 2 (nesting depth added 1). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/production_soak.py"},"region":{"startLine":10233}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f9e8ddf7b1707e4bf9135ae55fd232202b366fd0f6de5914d0ab4d738615814"}},{"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":"FastExpertsWeights::forward_impl (cognitive 17): FastExpertsWeights::forward_impl has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 1 (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-core/src/moe/experts/backends.rs"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"5684e44916bb0a540bcc2c19b31bec7971017833d402863ddbbdc15845b82a1f"}},{"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":8376}}}],"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":2624}}}],"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":405}}}],"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":1898}}}],"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":2558}}}],"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::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":1639}}}],"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":5063}}}],"partialFingerprints":{"codehealthFindingId/v1":"601992f6e3231d3d849b195db0155c9808df9d8aaacf08bb7f0c70fc39e6bdb7"}},{"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::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":888}}}],"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::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":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f00789568b88f4cf3a8a76000301d1715651ce3f5fc8cd743c75307e7e7f1e"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_core::vision_models::qwen3_vl::inputs_processor::qwen3_packed_layout (cognitive 17): mistralrs_core::vision_models::qwen3_vl::inputs_processor::qwen3_packed_layout has cognitive complexity 17 (threshold 15). Drivers by points: loops 4 (8 pts), if/else 4 (7 pts), boolean chains 2 (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6895675ba2091d085520876b9806952b06f05f330babf0dc4c6ebce9f233833"}},{"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::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":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"925203a6afc72225b347c5416b32797b8fe182b153626b04cbde684ccb175041"}},{"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":515}}}],"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::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":"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":"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":827}}}],"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":506}}}],"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":345}}}],"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":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc3482c88f385c9520c8bd631f065e7d83b5cf3d02eec1bbf16993edbc7ee61"}},{"ruleId":"D2","level":"warning","message":{"text":"Nvfp4Layer::gather_forward_raw (cognitive 17): Nvfp4Layer::gather_forward_raw has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (7 pts), boolean chains 6, match/switch 2 (3 pts), loops 1 (nesting depth added 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-quant/src/nvfp4/mod.rs"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"f626e3e4b9cdd6c5e7880b3187ac680534e2e9e0c38a600a02d3f1022427a1ad"}},{"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":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db09d1558ad62cf85e397cf438b5a0f26a928568e190132117deaea267f8b63"}},{"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::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":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f9dae585d0fd46dab809e5c7800e71f0f8f0964a464103804540ee7b44b680"}},{"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":"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::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::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::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":38}}}],"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":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d3e3402c323c9c295214df07c06f363b5a2e362a631947ba9b1738328ecdd4"}},{"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":1524}}}],"partialFingerprints":{"codehealthFindingId/v1":"dee6c23bb16b812d5d457dc344edc0cdafacac73d1f1d35ed9a32da189df8746"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_server_core::responses::chat_response_to_response_resource (cognitive 17): mistralrs_server_core::responses::chat_response_to_response_resource has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 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":1722}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce5454b32946933272a79dd287cd7c500bfeeb293379ab94d5a99dc709dec1a"}},{"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":"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":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"940ce5a020625695e0758715c6aa7be4bf99fd19374bc75c5bcc0a5f7dd55c5d"}},{"ruleId":"D2","level":"warning","message":{"text":"upload_wheels.main (cognitive 17): upload_wheels.main has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (8 pts), loops 4 (6 pts), ternaries 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/upload_wheels.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c32e9f52a7077859c1ea412f1ed370361eef1242b04c10dc2d8a6b02b2fa449"}},{"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":"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":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"56a0ad0a3280be8622a36518b29edda78c10ea5ee9292d681e8704cec28a36b9"}},{"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":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"f41520676a82f7ebbedca4eea0e2a88c67a65f66cd7e21fdcc6925014c63e86d"}},{"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":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"13acbc55af3b6d2616cb7eae0bb459094e4536712bcd59806fe91670d66e6b56"}},{"ruleId":"D2","level":"warning","message":{"text":"MultimodalPipeline::capture_cuda_decode_graph_step (cognitive 16): MultimodalPipeline::capture_cuda_decode_graph_step has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, 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":2293}}}],"partialFingerprints":{"codehealthFindingId/v1":"accbe876e0160f1f6c70282d8a367c5656933a9a0ad98465b63f135a2bc2cce6"}},{"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":2127}}}],"partialFingerprints":{"codehealthFindingId/v1":"db87f627945c9b4d63cd399132908f6274d137e3ecd667a3dfabd6a3e88ff2b6"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultScheduler::schedule (cognitive 16): DefaultScheduler::schedule has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (4 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/scheduler/default_scheduler.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"35d7558e4e47adb1c1622d033d227898eb34d16b289e65e81dec4a98f6c6e202"}},{"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":1863}}}],"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":275}}}],"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":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"09d702aa360e05dc50292ad7388c1a57a12bd4e56d80853f5142a82cb9dec4b9"}},{"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":"mistralrs_core::pipeline::paths::get_model_paths (cognitive 16): mistralrs_core::pipeline::paths::get_model_paths has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), loops 2 (4 pts), boolean chains 3, match/switch 1 (nesting depth added 4). 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":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"47cd61576efea1a080ce1b5b495508090dff27f15bc5bb381528dab8fed1bab2"}},{"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":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"debc27cdab041889e81512e0e3ccf7b2be7d8bb473e327790b2450a8021a90aa"}},{"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":2703}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec5015f151ae828601db828a8226fbbc4fd6e73e215f21c6cde46dc8eb491c4a"}},{"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":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca4a12af7da6a865177b2e9258da0cff6a2223b711495541e6f6d5c28e5ada4"}},{"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":3429}}}],"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":4260}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3e1b6981eab57d7fa56cc0f911e45e01652b13b8354e0b8d3d3889a7f74efb"}},{"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::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_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::qwen3_vl::inputs_processor::expand_video_placeholders (cognitive 16): mistralrs_core::vision_models::qwen3_vl::inputs_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/qwen3_vl/inputs_processor.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"7645989331abc383c32af2ba4f70a6b2ee3833d5916f0327a8fb690bfc1dd2a3"}},{"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":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad501264beca513006537b3569ed7565948e7b2e0a5c20ff9a507f4ca1703920"}},{"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_paged_attn::metal::backend::cache::swap_blocks (cognitive 16): mistralrs_paged_attn::metal::backend::cache::swap_blocks has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 2 (4 pts), match/switch 2 (3 pts) (nesting depth added 7). Of this number, 14 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":"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":1291}}}],"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":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f913b71d880f7b83aa55f3a7fb95e20450f5f52f429cb43147064754f4a94e"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::afq::ops::cuda_backend::afq_mm_op (cognitive 16): mistralrs_quant::afq::ops::cuda_backend::afq_mm_op has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), match/switch 4 (5 pts), boolean chains 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-quant/src/afq/ops.rs"},"region":{"startLine":2942}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a151f205d1cbb6296e497f367126def6950233a1aac7456648773ef5a20f0b"}},{"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_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":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a319928f2f473a287de3cfd6366b834554e712c62023bd0294bc30535a35b2a"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::fp8_config::checkpoint_linear_b (cognitive 16): mistralrs_quant::fp8_config::checkpoint_linear_b has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), match/switch 4, boolean chains 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/fp8_config.rs"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"18b817543c4fed78afef07979d7ffbd1dab215dba1f07d337375daec4722b38a"}},{"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":1383}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb9db6016b82a1c291828fbdc60d5e90a21a21c133b782ee45c78d63b132ab9"}},{"ruleId":"D2","level":"warning","message":{"text":"mistralrs_quant::cutile::nvfp4_glu::launch (cognitive 16): mistralrs_quant::cutile::nvfp4_glu::launch has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 2, 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_glu.rs"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2429fcae8394a03f6cf5fb88d843dfd3adb01febcfd9ab63020fbfcfd6d82da"}},{"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":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b7c257561bc6de772cda86e5df4f9a4b73691d1d99e6c7cefa9afe8413aca2"}},{"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":"D2","level":"warning","message":{"text":"build_wheels._detect_nccl (cognitive 16): build_wheels._detect_nccl has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 3 (4 pts), error handling 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":"scripts/build_wheels.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"47df255f90c5ce9af845522a62963d7cbeba13266c80ea245b8cc11c82a76ab0"}},{"ruleId":"D2","level":"warning","message":{"text":"production_soak.histogram_quantile_delta (cognitive 16): production_soak.histogram_quantile_delta has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2, ternaries 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":"scripts/production_soak.py"},"region":{"startLine":8173}}}],"partialFingerprints":{"codehealthFindingId/v1":"912971e5714dd8f9536d2564152cc51048a010f15c1f3f34ada76065705e3347"}},{"ruleId":"D2","level":"warning","message":{"text":"production_soak.async_main (cognitive 16): production_soak.async_main has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (7 pts), ternaries 3 (4 pts), error handling 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":"scripts/production_soak.py"},"region":{"startLine":14083}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcaeb03bade81bbcdd329091c13d2c1171c738751f50f31c2a4b49af5f6b7992"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scripts/production_soak.py: FileTooLong \u2014 11920 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 11420 over it, 23.84\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/production_soak.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca062f4174311ed1acb96ee0549da2521fdad15825741dd61027758a9db642eb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: loaders/multimodal_loaders.rs: FileTooLong \u2014 7040 significant 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 6540 over it, 14.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ad70d71b43512a9e97a1bca4decbc8f023dd25dba1b78ea20d136367b4e27a8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ops.rs: FileTooLong \u2014 5001 significant 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 4501 over it, 10.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/ops.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"17743c7664d1a6f71b523f47d75f672e5e775bb4f8c886d1d6c856c5c61387fa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: loaders/normal_loaders.rs: FileTooLong \u2014 4879 significant 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 4379 over it, 9.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/loaders/normal_loaders.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c489f36cc517b071497193c474eee219bda3dd494a783d7bfc11b6eb3472a77"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cuda/gdn.rs: FileTooLong \u2014 4617 significant 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 52 free functions. The bar is 500 significant lines; this is 4117 over it, 9.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/cuda/gdn.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"707a1f0fcfdbdf68e2c315a6671c1015285b1d3d5da296ba3a389b5be33c8b27"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Engine.run: MethodTooLong \u2014 run runs 876 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 776 over it, 8.76\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn 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":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a3819453541ca124ffd0a88e71b07823b49b250fbe37f7a590ad943eaf267a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MultimodalLoader.load_model_from_path: MethodTooLong \u2014 load_model_from_path runs 816 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 716 over it, 8.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/multimodal.rs"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c26a7427127645f217c4d80e5bffc5743d23cb0df2c2c8577df1c627157828"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Pipeline.submit_step: MethodTooLong \u2014 submit_step runs 761 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 661 over it, 7.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/pipeline/mod.rs"},"region":{"startLine":2002}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef03eb93d91a1b1ce7bbc8b554969e7653da67ec4ed90dfd7607e8c59ada841"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NormalLoader.load_model_from_path: MethodTooLong \u2014 load_model_from_path runs 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) in one body. The bar is 100 significant lines; this is 597 over it, 6.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/normal.rs"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"92516835f295c838c48ae6cc6da17df632d65a09e2abe1085606521db8542445"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Engine.add_request: MethodTooLong \u2014 add_request runs 662 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 562 over it, 6.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/engine/add_request.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"125ee0ec0c1d3b57ea56c4d967c323d4aaa82c5e417d0c9c97cd4756bea59b29"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/layers.rs: FileTooLong \u2014 3076 significant 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 36 free functions. The bar is 500 significant lines; this is 2576 over it, 6.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/layers.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ebc33200d3ab70885213ccace822e6db7a16e1356b34b383eea9b83b0137f16"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: speculative/dflash.rs: FileTooLong \u2014 3050 significant 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 2550 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 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) in one body. The bar is 100 significant lines; this is 462 over it, 5.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/model_loader.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f84a86a484f6e627933cf808fde7dd4bbcb796cabf95898cb7be61d30ec270"}},{"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 553 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 453 over it, 5.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/pipeline/inputs_processor.rs"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d840742f9f569c4ad4eaf7c38433764300193cdc64e3c457806aba79dc02044"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pipeline/cuda_graph.rs: FileTooLong \u2014 2755 significant 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 68 free functions. The bar is 500 significant lines; this is 2255 over it, 5.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-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"38da92eb74de13159750a91517e5e14561485af0ffed35499c5e6e367cef277b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen3VLImageProcessor.process_inputs: MethodTooLong \u2014 process_inputs runs 538 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 438 over it, 5.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/qwen3_vl/inputs_processor.rs"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb38621d43661c0d7689686d157da0639118ce2c9d1a2b56a9f7cece8d38dbb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 2616 significant 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: Runner (3 blocks, 302-3023). The bar is 500 significant lines; this is 2116 over it, 5.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-pyo3/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"44971c949700bb453262c7ffa58b68b5a48487f0336037bd5e5609c190f70077"}},{"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 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) in one body. The bar is 100 significant lines; this is 422 over it, 5.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/afq/ops.rs"},"region":{"startLine":2942}}}],"partialFingerprints":{"codehealthFindingId/v1":"4812aea46282903fd1021eb31510c2681c8c293830b90467c7169e9bc9d45751"}},{"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":"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":"TooManyMethods: Sequence: TooManyMethods \u2014 147 methods. The bar is 30 methods; this is 117 over it, 4.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/sequence.rs"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c65a5c337a8aa2dec815545dd95ade87f1941ae0dcdef72ce13c51565dfbebb"}},{"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: pipeline/multimodal.rs: FileTooLong \u2014 2434 significant 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 1934 over it, 4.87\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":"FileTooLong: afq/ops.rs: FileTooLong \u2014 2398 significant 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 1898 over it, 4.80\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":"FileTooLong: pipeline/mod.rs: FileTooLong \u2014 2258 significant 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 1758 over it, 4.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-core/src/pipeline/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98682902a7abbfdf38ed08f2a94cd3cc403050382347b2d8a5f7792b18018799"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pipeline/inputs_processor.rs: FileTooLong \u2014 2244 significant 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 1744 over it, 4.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/pipeline/inputs_processor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"17dc444e7d1c6f7191d07ce63b52c9d952f9ac76102b1f73cd7c97c002e17a3c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pipeline/normal.rs: FileTooLong \u2014 2236 significant 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 1736 over it, 4.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/normal.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e24e345b9c31f34bae17d91708917ebc9e7c25dd9d0ecc9f65d613d30e8705e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: qwen3_5/text.rs: FileTooLong \u2014 2189 significant 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 1689 over it, 4.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/qwen3_5/text.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e96bf39ce1e1dece8352db8cb68ee6c28184828f3982c27d32a3314fb54ee4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: distributed/layers.rs: FileTooLong \u2014 2188 significant 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 1688 over it, 4.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-quant/src/distributed/layers.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b84b669ac80de4c7d80de61e81a4ed36722c44aea14b2ef065c3c9d66eae1c"}},{"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":"FunctionTooLong: mistralrs_pyo3::parse_which: FunctionTooLong \u2014 mistralrs_pyo3::parse_which runs 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) in one body. The bar is 100 significant lines; this is 325 over it, 4.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-pyo3/src/lib.rs"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"257aa8ad11fd872bc98fa7d3997c76ad4b2993b69d081f79caa8c99d6490a3ab"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 2102 significant 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, 440-2967). The bar is 500 significant lines; this is 1602 over it, 4.20\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":"FileTooLong: src/lib.rs: FileTooLong \u2014 2094 significant 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 36 free functions. The bar is 500 significant lines; this is 1594 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/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe5e55ec15fbdc333bdf6d101aafd8cf53d14d5da4c36dce97cad181fcfcd41"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gemma4/text.rs: FileTooLong \u2014 2042 significant 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 1542 over it, 4.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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 408 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 308 over it, 4.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":3388}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c23c640fe1dafb57221f1f70e5b720d7beea9d2cbac30bd14bc138f7f7cea8e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Runner: 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), 35 methods, 3 blocks, lines 302-3023. 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-pyo3/src/lib.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff47cc70e016beda4a04268a21470c3f99d2d1128894f7163425862a4c49b825"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_server_core::chat_completion::parse_request: FunctionTooLong \u2014 mistralrs_server_core::chat_completion::parse_request runs 406 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 306 over it, 4.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-server-core/src/chat_completion.rs"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a2cd002a4da6a9402583e37c1d1422ec0862384e6170549f312e1c4e80ea8e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MistralRs: ClassTooLong \u2014 1621 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 80 methods, 3 blocks, lines 440-2967. The bar is 400 significant lines; this is 1221 over it, 4.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/lib.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f880af4a7d26aeb89c1c5e522098dc6e5d163998a4cae996db3148210e6039a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EmbeddingLoader.load_model_from_path: MethodTooLong \u2014 load_model_from_path 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-core/src/pipeline/embedding.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"f031b26ad93d738d089a4d32ff64405b456cac15bea7eb2aa9fc329d974b87f4"}},{"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":2455}}}],"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":"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: kv_cache/hybrid_cache.rs: FileTooLong \u2014 1941 significant 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, 1053-4139). The bar is 500 significant lines; this is 1441 over it, 3.88\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":"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: gguf/normal_config.rs: FileTooLong \u2014 1855 significant 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 69 free functions. The bar is 500 significant lines; this is 1355 over it, 3.71\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: layers/paged_attention.rs: FileTooLong \u2014 1799 significant 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 32 free functions. The bar is 500 significant lines; this is 1299 over it, 3.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/paged_attention/layers/paged_attention.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b831e1bf7002ebdac5d44f22ea8e87151a747abe7db003991007ef56c18fb5ba"}},{"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 359 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 259 over it, 3.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/sampling.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b7740d04baf0307b8e33796c32bc2e72811b3a90f498dafd4b87d1dee025f26"}},{"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":"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":"FileTooLong: src/sequence.rs: FileTooLong \u2014 1744 significant 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 1244 over it, 3.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/sequence.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa4ba1e63dadd9f9981464d4c9f43951df2590e9730452695cc7f3c2a1eadd32"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: engine/mod.rs: FileTooLong \u2014 1742 significant 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 79% of them inside a single declaration: Engine (3 blocks, 200-2284). The bar is 500 significant lines; this is 1242 over it, 3.48\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":"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 1283-3858. 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":1283}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df628aacda705683098e8d2125ea8470f31464a8fd3af45c5285126e2444961"}},{"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":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a7e99ed3c0db624516fef9a18ac4a1560acb8864e67efa3d726c034442cceb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Engine: ClassTooLong \u2014 1377 significant 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 200-2284. The bar is 400 significant lines; this is 977 over it, 3.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-core/src/engine/mod.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbed5ae4b8d10bc58acc21ead06ba3e81a0459ea96ddc71fac25185decaa3f2e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Runner.new: MethodTooLong \u2014 new runs 341 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 241 over it, 3.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-pyo3/src/lib.rs"},"region":{"startLine":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"722191c1a211a426d5a7e9c553a44dc0f27bd2d6c9ff76e72e862ca4326fd979"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/responses.rs: FileTooLong \u2014 1662 significant 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 1162 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":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5a56932ec2ff0b89e508f75958cab941c874733afa695b11654e9bc9d077c5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OpenResponsesStreamer.poll_next: MethodTooLong \u2014 poll_next 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-server-core/src/responses.rs"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed5cbf144b92345e9f1a356ef3bb02537a271656569a4ddda30d989750be5c37"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gemma3n/text.rs: FileTooLong \u2014 1627 significant 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 1127 over it, 3.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-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 324 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 224 over it, 3.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/cuda/gdn.rs"},"region":{"startLine":3940}}}],"partialFingerprints":{"codehealthFindingId/v1":"23cb759420454f094c8e657168d042c3722c0af1a38916f1a9d19969fd725b33"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MistralRsForServerBuilder.build_multi_model: MethodTooLong \u2014 build_multi_model runs 322 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 222 over it, 3.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-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4452b71e678e7eb05cfd1c97dd899fb2e95c5a4a3b4381e8830fb1094925797"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: blockwise_fp8/ops.rs: FileTooLong \u2014 1594 significant 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 1094 over it, 3.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/blockwise_fp8/ops.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f45c76a31fc29f08bb8e425bbbf881bf8d1e2ed72eefec0fba2b5f367d48d4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Qwen3_5TextModel: ClassTooLong \u2014 1273 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 30 methods, 5 blocks, lines 1170-2832. The bar is 400 significant lines; this is 873 over it, 3.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-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c64a603a2086f216c3cf859298a109082d7d049d23d2ab69b96e59554c68a3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: qwen3_vl/inputs_processor.rs: FileTooLong \u2014 1565 significant 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 65% of them inside a single declaration: Qwen3VLImageProcessor (5 blocks, 50-1976). The bar is 500 significant lines; this is 1065 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/vision_models/qwen3_vl/inputs_processor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3433f65ef1af8894b7e5a8d88030fb4362aba87767ef89d0b9acc1f9b00e243"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/sampler.rs: FileTooLong \u2014 1563 significant 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: Sampler (2 blocks, 299-2232). The bar is 500 significant lines; this is 1063 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":"FileTooLong: run/interactive.rs: FileTooLong \u2014 1557 significant 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 1057 over it, 3.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/run/interactive.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40e33849f6e70c69ef210d0387478e75a9fc27d32d7d761937ded3e444052a8"}},{"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":1929}}}],"partialFingerprints":{"codehealthFindingId/v1":"b438e68a74d0e027f976cb97dae75c1877a6eb0fc245ef8da92a06aaacdbb72b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MultimodalPipeline: ClassTooLong \u2014 1228 significant 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 216-3145. The bar is 400 significant lines; this is 828 over it, 3.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/pipeline/multimodal.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc248c7e4dedf848cac711621bd2747304f9b65012ebec1fe1dadedb600e6a8"}},{"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":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"8419ffc3688f555ae205380f5bc25f9a4f71448dcb6db26834390657b7bc07e5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Runner.send_chat_completion_request: MethodTooLong \u2014 send_chat_completion_request runs 297 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 197 over it, 2.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-pyo3/src/lib.rs"},"region":{"startLine":1403}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa75d254c3b960bd5354bae09458e986d70bce13d72cbee1c5dd68cdaac50461"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Runner.send_chat_completion_request_to_model: MethodTooLong \u2014 send_chat_completion_request_to_model runs 297 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 197 over it, 2.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-pyo3/src/lib.rs"},"region":{"startLine":2364}}}],"partialFingerprints":{"codehealthFindingId/v1":"712816cedd9caa09a266bdf2a0492965a05527654f6644aa2228b65f7f426a6a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/anthropic.rs: FileTooLong \u2014 1484 significant 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 984 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-server-core/src/anthropic.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e2e16521053729e420f73dafa8c3a8fa36776600d5d505392dc5ff147f27552"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cutile/nvfp4_matmul.rs: FileTooLong \u2014 1483 significant 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 983 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-quant/src/cutile/nvfp4_matmul.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a62b6b670cea4fa40b0ce013266ef99712ccaf1c8d8594800358f8cb92117a2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PagedAttentionScheduler.schedule: MethodTooLong \u2014 schedule runs 294 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 194 over it, 2.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-core/src/paged_attention/scheduler.rs"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb5cfe9d4764a4836fcbee29759bcc323e9401476cb1ab3cf5bfddacd0a96f3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::engine::agentic_loop::agentic_loop: FunctionTooLong \u2014 mistralrs_core::engine::agentic_loop::agentic_loop runs 293 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 193 over it, 2.93\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn 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":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"1973729b13f9b6685cd6ef8618c59570e9d912d4cd39eb1d627468123189d671"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HybridCache: ClassTooLong \u2014 1169 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 67 methods, 5 blocks, lines 1053-4139. The bar is 400 significant lines; this is 769 over it, 2.92\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":1053}}}],"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":651}}}],"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":96}}}],"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: Qwen3_5TextModel.forward_embeds: MethodTooLong \u2014 forward_embeds runs 290 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 190 over it, 2.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/qwen3_5/text.rs"},"region":{"startLine":2268}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5617a57830c15325ff5496a1cbd764e857c0d4da75b7228708148275c51748"}},{"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 299-2232. 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":299}}}],"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: 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":"FileTooLong: src/openai.rs: FileTooLong \u2014 1372 significant 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 872 over it, 2.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-server-core/src/openai.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e130a57c9ffcef41197aef1de593602d109171234c5f3d65692b2e478f8b288d"}},{"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: PagedAttentionScheduler: 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), 34 methods, 4 blocks, lines 100-1551. 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/paged_attention/scheduler.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"6855898f010c92ca0765d86abb4366862d7929cdace8fa38a4c3620a467e06cd"}},{"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":"FunctionTooLong: mistralrs_quant::cutile::nvfp4_matmul::launch_gather: FunctionTooLong \u2014 mistralrs_quant::cutile::nvfp4_matmul::launch_gather 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-quant/src/cutile/nvfp4_matmul.rs"},"region":{"startLine":1377}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc2d80164fb2a8379fe3debcc05152e4c4407d869f4b49544ec28f748a95cf0c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cutile/routed_lora.rs: FileTooLong \u2014 1345 significant 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 46 free functions. The bar is 500 significant lines; this is 845 over it, 2.69\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/routed_lora.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da74363213c529fd9e3cab565ff4794ab70753a8b5b80042c7a636da7f17f7ff"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MistralRs: TooManyMethods \u2014 80 methods. The bar is 30 methods; this is 50 over it, 2.67\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":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"839d80c293caf696f524126aebd8d03e5c9cee01784da77a71d6b8f884b1b1a3"}},{"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":5537}}}],"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":2565}}}],"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: 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":113}}}],"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":98}}}],"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":"MethodTooLong: TextModel.forward_embeds_scaled: MethodTooLong \u2014 forward_embeds_scaled 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/vision_models/gemma4/text.rs"},"region":{"startLine":2096}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa20819820889db8b7adebd291f208595d76131fa0d7f58655e761b419b97b9"}},{"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":"MethodTooLong: FastExpertsWeights.forward_grouped: MethodTooLong \u2014 forward_grouped runs 257 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 157 over it, 2.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/moe/experts/backends.rs"},"region":{"startLine":1453}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a03999882ec835c71bcdd9cfac515c455d8ec615853683f20ebfddc76183ce"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::speculative::driver::verify_staged_batch: FunctionTooLong \u2014 mistralrs_core::speculative::driver::verify_staged_batch runs 254 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 154 over it, 2.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/speculative/driver.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"160f7e3cea2458a8cb5ad8dabf1f86349a4c26e63b940bfe2955590b0f5134ae"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TextModel.new: MethodTooLong \u2014 new runs 254 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 154 over it, 2.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/gemma4/text.rs"},"region":{"startLine":1574}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c514b401033ea9ef09854a2fc81d076a3bb42a1185afdda5530d839be2478cc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: PreProcessorConfig: TooManyFields \u2014 76 stored fields beside 2 methods. The bar is 30 stored fields; this is 46 over it, 2.53\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":"ClassTooLong: Qwen3VLImageProcessor: ClassTooLong \u2014 1013 significant 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, 5 blocks, lines 50-1976. The bar is 400 significant lines; this is 613 over it, 2.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/qwen3_vl/inputs_processor.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"496a25f0ab8da435fcadf1e7ce3510c5d4bd3c2f601c53132c1d5ed8da6ff384"}},{"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":408}}}],"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":544}}}],"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":"FunctionTooLong: mistralrs_quant::distributed::layers::load_packed_weights: FunctionTooLong \u2014 mistralrs_quant::distributed::layers::load_packed_weights 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-quant/src/distributed/layers.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3cfb0583e392412c9230de37ec26406df04a58272420ee0aefca6f46ec283b3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NormalPipeline: ClassTooLong \u2014 1002 significant 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-2792. The bar is 400 significant lines; this is 602 over it, 2.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/pipeline/normal.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"401aafa3b8bc7bd91a1b36ccd2414e4bced646a6d7406221c732a3944856db3a"}},{"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: pipeline/gguf.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), about 65% of them inside a single declaration: GGUFLoader (3 blocks, 147-1431). The bar is 500 significant lines; this is 749 over it, 2.50\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":"ClassTooLong: Sequence: ClassTooLong \u2014 994 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 147 methods, 2 blocks, lines 752-2250. The bar is 400 significant lines; this is 594 over it, 2.49\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":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe1926700588cc9aef17dfa13214fc360336527912eff01dd43946075bc64e5c"}},{"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":"FileTooLong: uqff/report.rs: FileTooLong \u2014 1213 significant 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 713 over it, 2.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-quant/src/uqff/report.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"808b4cf0d678c6a21a5ee14e4910a02f2c76601a61d9efc4ed03116d296112bc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DecodePagedRows.build_inner: MethodTooLong \u2014 build_inner runs 242 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 142 over it, 2.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/pipeline/inputs_processor.rs"},"region":{"startLine":2097}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff71e254c0f731149736e5c2fbf1b061b0b726431b807b692151bdd92c6d1598"}},{"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":"ClassTooLong: Pipeline: ClassTooLong \u2014 967 significant 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. The bar is 400 significant lines; this is 567 over it, 2.42\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":1749}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1020107ae08f70a30886300b401a457d2d4106b45e57d815b32d41d0982894f"}},{"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":"FunctionTooLong: mistralrs_cli::commands::run::interactive::multimodal_interactive_mode: FunctionTooLong \u2014 mistralrs_cli::commands::run::interactive::multimodal_interactive_mode 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-cli/src/commands/run/interactive.rs"},"region":{"startLine":1521}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc9c61bb504a0246b5cb65ee0d7c9a5c46c90b7e4320bbdd2e198ee486b4e8b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gguf/fast_mmq.rs: FileTooLong \u2014 1195 significant 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 695 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":"FunctionTooLong: mistralrs_core::pipeline::loaders::auto_device_map::get_device_layers: FunctionTooLong \u2014 mistralrs_core::pipeline::loaders::auto_device_map::get_device_layers runs 235 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 135 over it, 2.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/pipeline/loaders/auto_device_map.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ccf72addbc711042cda5f3872bd50e99de7d8e9aaf3f32a55d8bd0d03efb1c5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PagedAttention.cuda_fwd_t: MethodTooLong \u2014 cuda_fwd_t runs 235 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 135 over it, 2.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/cuda/backend/paged_attention.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e205a200284791b7a857c2bec5b10d6c5da9cf933b8f7361630b21d21675c6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gguf/cuda.rs: FileTooLong \u2014 1172 significant 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 672 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-quant/src/gguf/cuda.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55bb5ac9b715fbf85f290e51f657141f6a705806c2fa9891730ed88ba0dea34d"}},{"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":1307}}}],"partialFingerprints":{"codehealthFindingId/v1":"738638d2d9d58c30f042d1bb0e2d2f2d55f03de41b4bbf96381b8aa230197211"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/lfm2.rs: FileTooLong \u2014 1169 significant 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 669 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: 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":"FunctionTooLong: mistralrs_quant::mxfp4::ops::mxfp4_indexed_moe_gemm: FunctionTooLong \u2014 mistralrs_quant::mxfp4::ops::mxfp4_indexed_moe_gemm 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-quant/src/mxfp4/ops.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"51162bd2ee05f825d76dea6b2bf197db393daee45517028b353b4af86717c400"}},{"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: paged_attention/scheduler.rs: FileTooLong \u2014 1146 significant 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: PagedAttentionScheduler (4 blocks, 100-1551). The bar is 500 significant lines; this is 646 over it, 2.29\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/model_builder_trait.rs: FileTooLong \u2014 1142 significant 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 642 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/src/model_builder_trait.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f8e11ba225a269cb086a87992407d7e86d3a25b7cc33494a81b685238e91a6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: experts/backends.rs: FileTooLong \u2014 1141 significant 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: FastExpertsWeights (4 blocks, 54-1766). The bar is 500 significant lines; this is 641 over it, 2.28\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/moe/experts/backends.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"226139b300e06d54ee38dd5d8bbff0e2ac7180cdfe296fd5a1f051151fd97ccb"}},{"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":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"7588f6d3f129b3ffeefde658c1ab8c5ff212c96ef26fc80ff0a85dfaa1bb5233"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Attention.forward: MethodTooLong \u2014 forward runs 227 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 127 over it, 2.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/gemma4/text.rs"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c429fb121a609cb2353f37f75bd8c9512c25d15bcc994b93a1a1eb904f6aa4c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: speculative/verifier.rs: FileTooLong \u2014 1133 significant 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 31 free functions. The bar is 500 significant lines; this is 633 over it, 2.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/speculative/verifier.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"06efca5bed43fb8f7518d4a3a3177c54fe2658d1ca382ce2960c97aeea1001a9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: engine/agentic_loop.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), declaring 44 free functions. 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-core/src/engine/agentic_loop.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5b55d2b7546fef313ea0360b63d947981ffd7ee013283a2b4be91982327127"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MultimodalLoader: ClassTooLong \u2014 902 significant 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 242-1557. The bar is 400 significant lines; this is 502 over it, 2.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/pipeline/multimodal.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d586961c2786a6171d1322519ad85ece7146ccdea421cee741031699d160fac"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: kv_cache/mod.rs: FileTooLong \u2014 1126 significant 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 626 over it, 2.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-core/src/kv_cache/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab3a9a81ea48d3a51cf24a68ec6850615e9210daf0cccc4cac70ee4bb3ce0d5"}},{"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":"MethodTooLong: PagedAttention.metal_fwd: MethodTooLong \u2014 metal_fwd 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-paged-attn/src/metal/backend/paged_attention.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a9f68b20ba9b73cb77c4cb8acac22dd83d8841e0e0716e6e4c0965ac58dd2c4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::afq::ops::afq_mm_op: FunctionTooLong \u2014 mistralrs_quant::afq::ops::afq_mm_op runs 224 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 124 over it, 2.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-quant/src/afq/ops.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"562b4e1c0749c25c01ad82394defd626fdaa8d803c95e46a9e8ad05dc5c8ba97"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HybridCache: TooManyMethods \u2014 67 methods. The bar is 30 methods; this is 37 over it, 2.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/kv_cache/hybrid_cache.rs"},"region":{"startLine":1053}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e3d607a50b807e850a0569685fb09d484246e0232a718048a76252dd9f65d2c"}},{"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":"FileTooLong: commands/serve.rs: FileTooLong \u2014 1114 significant 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 614 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":"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":"FunctionTooLong: mistralrs_core::pipeline::paths::get_adapter_paths: FunctionTooLong \u2014 mistralrs_core::pipeline::paths::get_adapter_paths 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/pipeline/paths.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"74672ff01b3f5b253c2075f9aab4735eecb42bd9847183d5a39d7cc616c68e5e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pipeline/sampling.rs: FileTooLong \u2014 1104 significant 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 604 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-core/src/pipeline/sampling.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e8b5914c272e9b85bc05e60ac161562d9f3a4312657733b919cb865e652a33b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Model: TooManyMethods \u2014 66 methods. The bar is 30 methods; this is 36 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/src/model.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"3756a9df6e11da1958603ce21ea62142bf8d86e61437a13d95a50c681d540da9"}},{"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":"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":"MethodTooLong: CacheEngine.allocate_gpu_cache: MethodTooLong \u2014 allocate_gpu_cache runs 214 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 114 over it, 2.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/cache_engine.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"c820d6a7798e5526856ff9b224cfa2d2b96cd3e43fe0e7e34f54d673ce288509"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TextModel: ClassTooLong \u2014 854 significant 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 1484-2675. The bar is 400 significant lines; this is 454 over it, 2.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/gemma4/text.rs"},"region":{"startLine":1484}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd861e3db3f345a1ad7cd34d214c2ac0a6a6413578f0dfdbcb81613336e0a66f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Sequence: TooManyFields \u2014 64 stored fields beside 147 methods. The bar is 30 stored fields; this is 34 over it, 2.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/sequence.rs"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a45bd5901a5eb21ac38e96e1ebb91c7d014e4098e50bd31ede739e655bb468"}},{"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":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"545dea78d1baf9777f04ee5d8f3a2ab0a06ae70104483d1d4e1aa4366d6d40f1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PagedAttentionInputMetadata.for_reduced_prefill_queries: MethodTooLong \u2014 for_reduced_prefill_queries 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-core/src/pipeline/inputs_processor.rs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"8776a78023d667135e623214686de9d8d7322e0d4f06d241e23784fe6617ec30"}},{"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_cli::commands::bench::run_bench: FunctionTooLong \u2014 mistralrs_cli::commands::bench::run_bench 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-cli/src/commands/bench.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ede12abdd22a7885b279943440fbb0d1ba5f51fa2baae21a80069840486c95f"}},{"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":5231}}}],"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":2584}}}],"partialFingerprints":{"codehealthFindingId/v1":"37f9e87885c8e4f3867d59c90af31c4c1d386b265a6138ef7b9761a56e2f079e"}},{"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":"FileTooLong: src/fp8_config.rs: FileTooLong \u2014 1039 significant 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 539 over it, 2.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/fp8_config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b9ded446bf737a1419e069152b4989b3ab19a969363817250b4c4ff491cfbc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MistralRsForServerBuilder: TooManyMethods \u2014 62 methods. The bar is 30 methods; this is 32 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-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84fecac0ee49be6bfe7ac95e4eb97764d65b95b439a6e9b615f0aa87159352a"}},{"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":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b957fc53f250767d2ab9c01a9aa2ef495bbfa93b261efa8b1a3e71cb3198df4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen3_5TextModel.new: MethodTooLong \u2014 new runs 205 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 105 over it, 2.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/vision_models/qwen3_5/text.rs"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b46acda8feb97e0744c4d9e5620b565560870cd897f75f7442d550fd057742c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_server_core::responses::create_response: FunctionTooLong \u2014 mistralrs_server_core::responses::create_response runs 205 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 105 over it, 2.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-server-core/src/responses.rs"},"region":{"startLine":2055}}}],"partialFingerprints":{"codehealthFindingId/v1":"933ea897da0ae8673dea5b648e68afb91289d0c69b789ca09ed55fdb00822c96"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/mistralrs_for_server_builder.rs: FileTooLong \u2014 1020 significant 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: MistralRsForServerBuilder (3 blocks, 183-1383). The bar is 500 significant lines; this is 520 over it, 2.04\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60bed441b6241e41d4d7951352ebeb31a5743b5447496a7db3ff36d463c26eea"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::cutile::gdn_prefill::launch: FunctionTooLong \u2014 mistralrs_quant::cutile::gdn_prefill::launch 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/cutile/gdn_prefill.rs"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d785ed590bf9ad001caba91479de244e399d7eb56f52f23a02ed9dbf3a8fc72"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::cutile::nvfp4_gemv::launch: FunctionTooLong \u2014 mistralrs_quant::cutile::nvfp4_gemv::launch 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/cutile/nvfp4_gemv.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8673f96734c88709e0350b38408a806b0eb9aa04ca01b895d058b2f8edbff44"}},{"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":"ClassTooLong: GGUFLoader: ClassTooLong \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), 8 methods, 3 blocks, lines 147-1431. The bar is 400 significant lines; this is 413 over it, 2.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/pipeline/gguf.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee9ba7b982a49f3f24574bdb6cb119c8af6fab16946e1e3cb5ff5fafd29ede27"}},{"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":4797}}}],"partialFingerprints":{"codehealthFindingId/v1":"952b2a88f674abf8e87b01ffffbf47c499373a02ae0c44f16ac6a73095c936b0"}},{"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/weight_source.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/weight_source.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bc026e1f153b098843dca58a82b4c49489a126fba1f6e82f854f0b290ccd8cb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hqq/mod.rs: FileTooLong \u2014 995 significant 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 495 over it, 1.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-quant/src/hqq/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b0081a9ac2fd07512f1550352e4277ecfbaf573cf9c57c78174221582157d2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Model: ClassTooLong \u2014 793 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 66 methods, 2 blocks, lines 80-1278. The bar is 400 significant lines; this is 393 over it, 1.98\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: 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":2178}}}],"partialFingerprints":{"codehealthFindingId/v1":"a25e3f95b3f3a6442dbcf1909f2c330eb475e44b1fbcb3e39172149f42cc2707"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GdnWeights.load: MethodTooLong \u2014 load 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/gdn/weights.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"96472e1d33b8c371d26924234c2a5bfed4af79425175357ebdedc4fdcb001ed5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::cutile::fp8_w8a16::launch: FunctionTooLong \u2014 mistralrs_quant::cutile::fp8_w8a16::launch 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-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c28937ca332355baf18b814febf8756647501e149851ea1da07210aad09b2f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen3VLImageProcessor.prepare_for_paged_prompt_planning: MethodTooLong \u2014 prepare_for_paged_prompt_planning 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_vl/inputs_processor.rs"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35c417dfbb7f2aac9c94a50959bc45e051a0eb89cb6ab6bc81d0e773bf0694b"}},{"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: src/chat_completion.rs: FileTooLong \u2014 967 significant 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 467 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-server-core/src/chat_completion.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3351229bf63ec8607bf5aaee13c44561412cafa4612a3feb2b9134034700074"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::cutile::fp8_w8a8::launch: FunctionTooLong \u2014 mistralrs_quant::cutile::fp8_w8a8::launch runs 193 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 93 over it, 1.93\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and 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":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f98232d725be9266b9cc121d1fba5045db6830833e7d1212e08475b1a24040"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::gguf::fast_mmvq::fused_qkv: FunctionTooLong \u2014 mistralrs_quant::gguf::fast_mmvq::fused_qkv runs 193 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 93 over it, 1.93\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and 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":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d4fff45fa92e754af97b7f8ebb385d6a3ec864caa323ff2b39d961f2486b689"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NormalLoader: ClassTooLong \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), 0 methods, 2 blocks, lines 315-1491. The bar is 400 significant lines; this is 371 over it, 1.93\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde250c4713ef2f97db1fbacfd5b21983740d733eadc4af82683557655f3ba92"}},{"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":1764}}}],"partialFingerprints":{"codehealthFindingId/v1":"db088b338b99760d6727184270647c3ffdbe54a484bc05fc575e91c39f6008b1"}},{"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":"ClassTooLong: Gemma4Model: ClassTooLong \u2014 767 significant 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-1241. The bar is 400 significant lines; this is 367 over it, 1.92\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: gemma4/mod.rs: FileTooLong \u2014 958 significant 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-1241). The bar is 500 significant lines; this is 458 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/gemma4/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c8757e6209d1dc634981e05be9e26ae11d54572d545ec22df562c94e90a3d8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cutile/fused_moe_fp8.rs: FileTooLong \u2014 957 significant 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 457 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-quant/src/cutile/fused_moe_fp8.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"319e769a6398769ebec964a78de850728fcae1a3c586cd8c4dcf47d5ac0806ce"}},{"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":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a601820394d9c8ad18cb089e302f00bbfc044bd954eec158f4e7d80e0f86f7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentStream.next: MethodTooLong \u2014 next 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/src/agent.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"da4df61a64852f013feb18f5e6ba527f95232932e880507ebfb5e88f74a5aa13"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/deepseek3.rs: FileTooLong \u2014 953 significant 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 453 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":"FileTooLong: models/qwen3_next.rs: FileTooLong \u2014 950 significant 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 450 over it, 1.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/qwen3_next.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5797b62ef48e2a2cbd424130e8b4e7a59043d41f30262f3f0688a2c60145e2d8"}},{"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: GatedDeltaNet: ClassTooLong \u2014 757 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 30 methods, 2 blocks, lines 185-1084. The bar is 400 significant lines; this is 357 over it, 1.89\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":"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":303}}}],"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":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"11496b2ae4429e54bdbf612917f611b933ed6e9ccaac7a9d34adf63a774db555"}},{"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":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d7f428450cbf4ddb413e940e415b135f615f98c9cf313b6bce0d9a5e392aeb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MistralRsForServerBuilder: ClassTooLong \u2014 749 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 62 methods, 3 blocks, lines 183-1383. The bar is 400 significant lines; this is 349 over it, 1.87\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":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cf9b9ae3e6a9e3664c575a5478071fd3b56e1ea49be284c15d192b479932c0d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gguf/archive.rs: FileTooLong \u2014 935 significant 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 435 over it, 1.87\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":"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: qwen3_5/speculative.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 86% of them inside a single declaration: Qwen3_5Model (2 blocks, 159-1245). 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/vision_models/qwen3_5/speculative.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d971cd4aab53d784deaec47806fdd2f63ac1c86b8bf3c58dcf64b043ac5705c6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dynamic/moe_cuda.rs: FileTooLong \u2014 923 significant 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-1147). The bar is 500 significant lines; this is 423 over it, 1.85\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":"ClassTooLong: BlockwiseFP8Linear: ClassTooLong \u2014 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), 5 methods, 4 blocks, lines 37-1091. The bar is 400 significant lines; this is 338 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-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"257237938361b641370a7b9afcf85795c28af1cb59d884e20574a1d20b9b8cbb"}},{"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":1938}}}],"partialFingerprints":{"codehealthFindingId/v1":"827833c643ea4ff37b937902904cafe5ea8ecb83c0150a22311675726ac6e6fa"}},{"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":"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":3086}}}],"partialFingerprints":{"codehealthFindingId/v1":"4826af5a794eaf5974ee462e0839161fbe5325c0a1b2159c05f667ad425074a4"}},{"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 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-core/src/models/glm4_moe_lite.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b815a84c4ecc98125cce178ac57be8146f7fee0f2b2cd71167c9c4efb3f7fb94"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: blockwise_fp8/mod.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), about 81% of them inside a single declaration: BlockwiseFP8Linear (4 blocks, 37-1091). The bar is 500 significant lines; this is 407 over it, 1.81\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":"FileTooLong: models/deepseek2.rs: FileTooLong \u2014 906 significant 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 406 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: Qwen3_5MoeTextModel.new: MethodTooLong \u2014 new runs 181 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 81 over it, 1.81\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn 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":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"5374bb7ccc3c98d1917b298bece1540d1f2584c23bfdeeea16890024fedf7936"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gdn/layer.rs: FileTooLong \u2014 903 significant 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-1084). The bar is 500 significant lines; this is 403 over it, 1.81\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":"ClassTooLong: FastExpertsWeights: ClassTooLong \u2014 722 significant 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 54-1766. The bar is 400 significant lines; this is 322 over it, 1.81\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/moe/experts/backends.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f938fc768c580dc3387ed2d8e3328f2e6edb365f892167daf3aa470e562a20"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Nvfp4Layer: ClassTooLong \u2014 720 significant 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 57-1041. The bar is 400 significant lines; this is 320 over it, 1.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-quant/src/nvfp4/mod.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bdb00097700df6c74f3cdf4bc801bd0bbbab45ebe5039e64b518e4d26e946fe"}},{"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 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/paged_attention/plan.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"a666f5b8455df444049346c476a98214abd5f5ebaa3c9110bc266557d30e093e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/messages.rs: FileTooLong \u2014 894 significant 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 394 over it, 1.79\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":"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":"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_core::speculative::paged_rows::make_paged_rows_metadata: FunctionTooLong \u2014 mistralrs_core::speculative::paged_rows::make_paged_rows_metadata 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/speculative/paged_rows.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1deb3bd97d7070b5607b4141b7a30132424121aa9b057c5a6953d5fb009cf73"}},{"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: qwen3_vl/mod.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/qwen3_vl/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"88b062a9ec5756962c032a2940e9566a3e9f6923a1631d3ebf98237aaf74c819"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: llama4/text.rs: FileTooLong \u2014 878 significant 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 378 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":"FunctionTooLong: mistralrs_quant::cutile::nvfp4_matmul::launch_inner: FunctionTooLong \u2014 mistralrs_quant::cutile::nvfp4_matmul::launch_inner 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-quant/src/cutile/nvfp4_matmul.rs"},"region":{"startLine":1153}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93715017487617997e9b0ac52a6ac98686c1e9fd46636c018204dcd485448d5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gdn/backend.rs: FileTooLong \u2014 874 significant 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 374 over it, 1.75\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":"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":"MethodTooLong: Qwen3_5TextModel.replay_recurrent_prefixes: MethodTooLong \u2014 replay_recurrent_prefixes 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/qwen3_5/text.rs"},"region":{"startLine":1894}}}],"partialFingerprints":{"codehealthFindingId/v1":"711f31ced29db45eed0d768e446cd000c64cd7d28f46339c2de194a6e9cb3c46"}},{"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: GGUFLoader.load_model_from_path: MethodTooLong \u2014 load_model_from_path 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/pipeline/gguf.rs"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf1c6d0c0c96920482c4066a16c7d473f30865a2ee3ceeea14095ac649a1fce"}},{"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":4544}}}],"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":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"67324049b564f4069d3fc564227c0fddffe05b8860e0a5599f48d5b8565f0555"}},{"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":"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":1525}}}],"partialFingerprints":{"codehealthFindingId/v1":"41885a5e647bf2069ee159a5cea03da2ba1284eef6e0c74541cf908ccad9b33e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: engine/add_request.rs: FileTooLong \u2014 844 significant 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: Engine (57-1126). The bar is 500 significant lines; this is 344 over it, 1.69\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":"MethodTooLong: HqqLayer.dequantize: MethodTooLong \u2014 dequantize 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":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e02dbaacb73a8367e9190eb73303dea8fef054763e58e7ef28bf84342f583e8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/model.rs: FileTooLong \u2014 839 significant 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-1278). The bar is 500 significant lines; this is 339 over it, 1.68\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs/src/model.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d60b525bd50c2be5329366a340c2003ae46c842e2e7b236c755287a13ed41c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Engine.new: MethodTooLong \u2014 new 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/engine/mod.rs"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c4259928005ddb750e26c6e8bfbfc3a249216165607dcd9b18609b12150d055"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gguf/normal_registry.rs: FileTooLong \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). The bar is 500 significant lines; this is 332 over it, 1.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/gguf/normal_registry.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56507b9461971f4d48836a4bfbc5aaf494399311aa999de0a4fdf0672d0c77b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mllama/text.rs: FileTooLong \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). The bar is 500 significant lines; this is 332 over it, 1.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/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":969}}}],"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::gguf::fast_mmq::grouped_pair_packed: FunctionTooLong \u2014 mistralrs_quant::gguf::fast_mmq::grouped_pair_packed 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/gguf/fast_mmq.rs"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac933e79fd856994388e178e534eef0605544712e57aa673cacb3800ceb170d8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cutile/fused_moe.rs: FileTooLong \u2014 826 significant 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 326 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-quant/src/cutile/fused_moe.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"078aa7d18359fe37cf9e889df20f76192bbdc198c99c470e7d1967fa9a829790"}},{"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":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b896166c7372bb014636874bd7ba6f71691b350be47cd456a9e61c636f639d0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/gpt_oss.rs: FileTooLong \u2014 821 significant 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 321 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-core/src/models/gpt_oss.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"638f46ebdcceefc0d1ab2c060be088a1d9de72f13aac959675bd1540ba8be642"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RequestBuilder: 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/messages.rs"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c185bcefbe62dd3554f0b94836594a90e9049efbeba4dc97b4ab389031286ce"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: voxtral/mod.rs: FileTooLong \u2014 816 significant 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 316 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":"MethodTooLong: MistralRs.new: MethodTooLong \u2014 new 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-core/src/lib.rs"},"region":{"startLine":1515}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca172e035df2e7d5ea5425759000820823774c600ff50f2003cbd5f91907ea4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MultimodalPipeline.try_cuda_decode_graph_forward: MethodTooLong \u2014 try_cuda_decode_graph_forward 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-core/src/pipeline/multimodal.rs"},"region":{"startLine":1925}}}],"partialFingerprints":{"codehealthFindingId/v1":"e537f62ce60a1b6bfb1f5131b948ba1706ef73483f703984885c5189cac150a5"}},{"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":"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":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd5468123929c454cea4acf8fc92b356ddeac9bbfd4f9df8781f8cf137345075"}},{"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 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/models/glm4_moe.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b7f3cac5f79ace876f209389ad8e45f4fb689eb5ef83b66efef151e506ffe8"}},{"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: 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":"ClassTooLong: RoutedLoraAdapterWeight: ClassTooLong \u2014 639 significant 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-1147. The bar is 400 significant lines; this is 239 over it, 1.60\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":"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_quant::mxfp4::metal_ops::mxfp4_indexed_moe_gemm: FunctionTooLong \u2014 mistralrs_quant::mxfp4::metal_ops::mxfp4_indexed_moe_gemm 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-quant/src/mxfp4/metal_ops.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"d033ff7579932cd7a75112dd2827d5289699db13ed70a813308730a1b110a382"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/model_loader.rs: FileTooLong \u2014 791 significant 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 291 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/model_loader.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa702ec8b3b01fc8a004fd9ab06dee1a5a7fb9b437d8298e64297d9c96648a1f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: xlora_models/mixtral.rs: FileTooLong \u2014 791 significant 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 291 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":"MethodTooLong: Sdpa.run_attention_noflash: MethodTooLong \u2014 run_attention_noflash 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/attention/mod.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a16430d77607ba41f699e00131a2d7035117679a879093d7e40dfb8eecfa8ad"}},{"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":1737}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b96203f74daf5beb108868d686681973a179f0ab93d2304cf64e58772a95c8"}},{"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::model_builder_trait::build_gguf_pipeline: FunctionTooLong \u2014 mistralrs::model_builder_trait::build_gguf_pipeline 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/src/model_builder_trait.rs"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3ec1819333476d01b70cc2ffdf8bf1bd57ddd9cc1c78aa9781bd19f951acd8e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: nvfp4/mod.rs: FileTooLong \u2014 788 significant 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 91% of them inside a single declaration: Nvfp4Layer (4 blocks, 57-1041). The bar is 500 significant lines; this is 288 over it, 1.58\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::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":"TooManyMethods: GgufModelBuilder: TooManyMethods \u2014 47 methods. The bar is 30 methods; this is 17 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/src/gguf.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c70bea765f532deafea99847308f2696c29214152f3ec69659f8bedc8af8b7"}},{"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_paged_attn::metal::kernels::call_paged_attention_v2: FunctionTooLong \u2014 mistralrs_paged_attn::metal::kernels::call_paged_attention_v2 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-paged-attn/src/metal/kernels/mod.rs"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff8ae1cc57575ed2f0314122a180e73fb57d725b4fdb83361071e196a2c1c4f"}},{"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":499}}}],"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":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"034f23414662a4cc2c9b204476eb49fd7cd1a7a08b3e932c862758f1c6745b9a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MXFP4Layer: ClassTooLong \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), 15 methods, 5 blocks, lines 25-930. The bar is 400 significant lines; this is 218 over it, 1.55\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: 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":"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":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2043b0afed93a7d3df3685e241c32bf36042e45c6a6010d2f60e2488f98570"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_server_core::responses::parse_openresponses_request: FunctionTooLong \u2014 mistralrs_server_core::responses::parse_openresponses_request 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-server-core/src/responses.rs"},"region":{"startLine":1839}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c90280cb03c744614b87142ec3fe27d20aa1c2ce00c2dbf4c70758561c76c50"}},{"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":"FileTooLong: qwen3_5_moe/text.rs: FileTooLong \u2014 764 significant 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 264 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-core/src/vision_models/qwen3_5_moe/text.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39fc0cd13a44bdb23efcc16c5af0cdf6f02b0e73e9c7da14a2c820be4241de15"}},{"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: cutile/gdn_prefill.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/cutile/gdn_prefill.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05fa81b69c1a0fde5644794ea3f26f81100de25abc7797ab304a88258d21a5f0"}},{"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: distributed/mod.rs: FileTooLong \u2014 762 significant 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 262 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/distributed/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65416ae6ecf82b430fc1a250cb9f556a99885bff9ffd6a98a7bed928fa0fd3d4"}},{"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":"MethodTooLong: MultimodalPipeline.capture_cuda_decode_graph_step: MethodTooLong \u2014 capture_cuda_decode_graph_step 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/pipeline/multimodal.rs"},"region":{"startLine":2293}}}],"partialFingerprints":{"codehealthFindingId/v1":"55494da630f496ca2867e5693c6467dd0239092c15915123d12f509f05bbe695"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TextModel: ClassTooLong \u2014 603 significant 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 1221-2049. The bar is 400 significant lines; this is 203 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":1221}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef8394fe159d39e8e3444f962eef7863f94a7f5b8ed505c0146f00854623f9ca"}},{"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":472}}}],"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":"MethodTooLong: NormalPipeline.try_cuda_decode_graph_forward: MethodTooLong \u2014 try_cuda_decode_graph_forward 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-core/src/pipeline/normal.rs"},"region":{"startLine":1762}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc450f1594985e77a9091bc63f7da61e8de60f6aae44e4356f0a2752249f69d"}},{"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":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"4904c2271f897b848f88681d95d87cf5b0a23a388e344215d8af5e929cab95a6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs::model_builder_trait::build_auto_pipeline: FunctionTooLong \u2014 mistralrs::model_builder_trait::build_auto_pipeline runs 148 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 48 over it, 1.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/src/model_builder_trait.rs"},"region":{"startLine":1346}}}],"partialFingerprints":{"codehealthFindingId/v1":"232d8b81e46f4272b629fd716c9c736729ce2c78f9fb02a3fd666a0cb43e1d68"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatStore.generateAssistant: MethodTooLong \u2014 generateAssistant runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) 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-cli/webui/src/lib/stores/chat.svelte.ts"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fcdc1120050771861d3adbe7c3b0c5243ebeac2d5a7f4fd2c077ba536af7da8"}},{"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":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a0020129e04e377bd93a690b3a861f9640d4f3013454049d693f092a5aa378"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: xlora_models/gemma2.rs: FileTooLong \u2014 734 significant 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 234 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":"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":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f7f1f10a9529238843e10f1d7e0b37c3385198b02aba41f18672777dc6210c"}},{"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":"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":1104}}}],"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: Gemma3nLoader: ClassTooLong \u2014 583 significant 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 5209-6098. The bar is 400 significant lines; this is 183 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/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":5198}}}],"partialFingerprints":{"codehealthFindingId/v1":"d018a84b55da0ca6e532347f532438408c4283533560f828e385648b72047485"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/skills.rs: FileTooLong \u2014 727 significant 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 227 over it, 1.45\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_core::speculative::verifier::finish_verified_step: FunctionTooLong \u2014 mistralrs_core::speculative::verifier::finish_verified_step runs 145 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 45 over it, 1.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/speculative/verifier.rs"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cac1b64b94bb30afd3162ad90103bd214e5b0fe207f3322872704032e877131"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::gguf::fast_mmq::grouped: FunctionTooLong \u2014 mistralrs_quant::gguf::fast_mmq::grouped runs 145 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 45 over it, 1.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-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ebc8f42580c69cad68af376b44186624f53c7b567c3922a6b6f09eafdfaa71"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gemma4/mtp.rs: FileTooLong \u2014 720 significant 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 220 over it, 1.44\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: 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":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a86f9dd8484fcc01bc4950dcca9bac304cdaaa6e0e0591164475d9ba6a34c32"}},{"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 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/openapi_doc.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"3351dfec319dec4ba158c32d57541fd01c4c327c232eb7f1870e43c245f8f8e8"}},{"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":"FunctionTooLong: mistralrs_cli::commands::run::interactive::text_interactive_mode: FunctionTooLong \u2014 mistralrs_cli::commands::run::interactive::text_interactive_mode 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-cli/src/commands/run/interactive.rs"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad5f6c06c26dd07f10ec8312db127a8b133e218e0a46354792b40f94e437aee"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GGUFLoader.load_native_normal: MethodTooLong \u2014 load_native_normal 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-core/src/pipeline/gguf.rs"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"68aa7342f553d8b97e9a76375414bc7e472aef3361b17cfa1007bf873913539f"}},{"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":345}}}],"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":"ClassTooLong: HqqLayer: ClassTooLong \u2014 568 significant 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, 4 blocks, lines 581-1338. The bar is 400 significant lines; this is 168 over it, 1.42\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":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"618afa288bac2a211b7cebc32df93f708d20529342af0eccc3614ee680dc8073"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ShardedSafeTensors.get: MethodTooLong \u2014 get runs 141 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 41 over it, 1.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-quant/src/safetensors.rs"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"5073e89a455d35f002f4b3a42d5bd0f6f046329e09844c339047765992f81cd5"}},{"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: gguf/normal_bindings.rs: FileTooLong \u2014 700 significant 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 200 over it, 1.40\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_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::cutile::nvfp4_glu::launch: FunctionTooLong \u2014 mistralrs_quant::cutile::nvfp4_glu::launch 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/cutile/nvfp4_glu.rs"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"f161530db8bb50fd54fdfb6b1ad87d714c80e60ed55f10b09fc561a29e16abe1"}},{"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":1847}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea26c50760f00bbb92e6068d2b8768ba112d31f569b62985bded8233f7f837c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cutile/fp8_w8a8.rs: FileTooLong \u2014 699 significant 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 199 over it, 1.40\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":"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":2884}}}],"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":8376}}}],"partialFingerprints":{"codehealthFindingId/v1":"5873acb22a936ee123f68fee2b27214c56775f9755608894a1846e36e71a935a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gguf/fast_mmvq.rs: FileTooLong \u2014 691 significant 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 191 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-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef366e8cf93ef6b3c78b5169d3a20fc5f8848b4c14a5a6c40d182ecf6c5f58a2"}},{"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":"FunctionTooLong: mistralrs_cli::commands::run::run_interactive: FunctionTooLong \u2014 mistralrs_cli::commands::run::run_interactive 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-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 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-cli/src/commands/serve.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"58347527a94913ef1ac6208e2446e79eb599a0b217b6c0b8bae900cdac9e11d7"}},{"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":408}}}],"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":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"86f9b39cf99faf678d2d3a049d3c7356529c0121f4d85eaf4788626da9bc1781"}},{"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 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/cuda.rs"},"region":{"startLine":1442}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f5558e5cea66ff1d283d4279bc8900d1d9237b090a3fecfeca334b03096369e"}},{"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/mistral.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/mistral.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9428061b863a01dfeb4209aaf264a18aff3e5d760a3cb6720446e0f659bc97"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: xlora_models/gemma.rs: FileTooLong \u2014 686 significant 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 186 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/gemma.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7b438c251c26425f83c3e5edf52906c189776bf66e61ec66c26342d92b81e8"}},{"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_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":"TooManyFields: GgufModelBuilder: TooManyFields \u2014 41 stored fields beside 47 methods. The bar is 30 stored fields; this is 11 over it, 1.37\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 41 stored fields beside 3 methods. The bar is 30 stored fields; this is 11 over it, 1.37\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":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f791ea38ad41963bb642d7d014788049d3ea0f0dbcb5251ab13959d5bb683c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: OpenResponsesCreateRequest: TooManyFields \u2014 41 stored fields. The bar is 30 stored fields; this is 11 over it, 1.37\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":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69de1abe0541582099288ba663a190b45472356d5a4a55226cb2af0ab462f59"}},{"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":"FunctionTooLong: mistralrs_cli::commands::run::interactive::oneshot_multimodal: FunctionTooLong \u2014 mistralrs_cli::commands::run::interactive::oneshot_multimodal runs 136 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 36 over it, 1.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-cli/src/commands/run/interactive.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc81e0353a9d666309d378c2a5028eb322d7085bbbe7480e2e6dbb9832963d0"}},{"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 136 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 36 over it, 1.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-paged-attn/src/metal/backend/gather_kv.rs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"22396ff9c93a5bc7e1c63b3d9aa77f476d8e8cbc6bbaaacf3980fe5ce9623d99"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::gptq::gptq_cuda::gptq_linear: FunctionTooLong \u2014 mistralrs_quant::gptq::gptq_cuda::gptq_linear runs 136 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 36 over it, 1.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/gptq/gptq_cuda.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa426a8add7eb273200f3ee51a0158a14135d1cb2c3a2b8905af13fd10b471d"}},{"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::speculative::verifier::finish_verified_step_stochastic: FunctionTooLong \u2014 mistralrs_core::speculative::verifier::finish_verified_step_stochastic 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/speculative/verifier.rs"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bb75184d826c721f9bc92e4535cce195d3812165167392b4dbbdb41412b8f6f"}},{"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":"FileTooLong: cutile/fp8_w8a16.rs: FileTooLong \u2014 674 significant 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 174 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-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7970d0194aac8adb54e97ecfae84eeeef2cdfe4b00c168d63e9c50365fcc2d2e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: xlora_models/starcoder2.rs: FileTooLong \u2014 673 significant 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 173 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/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":"FileTooLong: pipeline/embedding.rs: FileTooLong \u2014 671 significant 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: EmbeddingLoader (2 blocks, 73-722). The bar is 500 significant lines; this is 171 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/pipeline/embedding.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92089045039aad5ad891c51dc021d298e7040852664622785ee20fe116af18ab"}},{"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":1137}}}],"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":1863}}}],"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":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a60d94e13bc53371386337cddca767f39a475c8d1e043ca4119b63f6eaca114"}},{"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":"FileTooLong: models/qwen2.rs: FileTooLong \u2014 668 significant 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 168 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":"TooManyMethods: RecurrentStatePool: 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/kv_cache/hybrid_cache.rs"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd3d00cab4f560e28756ae01aa44fb3c4398f5ccef8aa749e0630dff71effb5"}},{"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":1283}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe7da46a2df07be723fbd6ae4ef8e6857e0af40b67f2bcbd6d2988d5dc12f0b"}},{"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":"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":1336}}}],"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":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6c2d5d306a4788aa84ccfa6cf606048071d6d6a270b80915d77455bb09b1600"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/mistral.rs: FileTooLong \u2014 664 significant 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 164 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::gguf::normal_bindings::bind_block_tensor: FunctionTooLong \u2014 mistralrs_core::gguf::normal_bindings::bind_block_tensor 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/gguf/normal_bindings.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60f2d61099310802d7a3fc4e172c2e61d9658be6dee83c5a5132d12c48f4280"}},{"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":714}}}],"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":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"0614302f9d627900e24082069dbe21d9e5f15e2ab59b5529ec7f437de72d8cc6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::pipeline::normal::build_normal_pipeline: FunctionTooLong \u2014 mistralrs_core::pipeline::normal::build_normal_pipeline 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/normal.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8bec0a86276cef21435a3a7275683bf8c2a7a9e91a99eca6965c39e767926f1"}},{"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: models/gemma2.rs: FileTooLong \u2014 658 significant 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 158 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 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/models/glm4.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e81bfdefa50f65c75cc13d8cffae7b21107f0d37a880f01efe23ce03b8ad76"}},{"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":"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":266}}}],"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":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf25a2805029bc8ac926938758ce97282a428e4896e70a0ab2beab3bf4f15e5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::cutile::tune::tune: FunctionTooLong \u2014 mistralrs_quant::cutile::tune::tune 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/cutile/tune.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"b77e06eebb1d5f5574d42ecf405e10c417c1427beebd4a5e853dc00e2ea68aee"}},{"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":4350}}}],"partialFingerprints":{"codehealthFindingId/v1":"88339ad4d5144b5a6dd192bcb77a447a79f73ef014effb1c2f546f99d74f02df"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TextModel.forward_embeds: MethodTooLong \u2014 forward_embeds 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/vision_models/gemma3/text.rs"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf28dfdabaf4382b702d91bff95f22c0b1d9314cab79dab8120c75bdf6fde77"}},{"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":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe0a11d8b825f763ba82c8a3c4da26cb5d0fd5d4e1a35ecb7b873222f6f43b4f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: ChatCompletionRequest: TooManyFields \u2014 39 stored fields. 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-server-core/src/openai.rs"},"region":{"startLine":1127}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a6a14f39b12ea0b6e549dfbb30936cdd37b9f26b10f39dcde1ebd61b223f0a5"}},{"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":"ClassTooLong: Attention: ClassTooLong \u2014 517 significant 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 273-914. The bar is 400 significant lines; this is 117 over it, 1.29\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":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"4247530c69b327ee9beb229fd800808a2a10cc4de74b0dac0b71b48df926cdf1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: xlora_models/phi2.rs: FileTooLong \u2014 645 significant 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 145 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: 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":"MethodTooLong: VectorFP8Linear.apply_isq: MethodTooLong \u2014 apply_isq 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-quant/src/vector_fp8/mod.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"18bfe112af7b40e39272aaf854d47e594465304f9174b4eefbbc746c43bb98ff"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_server_core::video::decode_video_ffmpeg: FunctionTooLong \u2014 mistralrs_server_core::video::decode_video_ffmpeg 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-server-core/src/video.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e8c4652a572eb97b6be6a4fbf8f088035ee0b8f0566b479c980a2019e8392e"}},{"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":"FileTooLong: kernels/mod.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-paged-attn/src/metal/kernels/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2e55952fcd008a363f65889197c4090ac6328a6b9f368a7e9cbd3d9bd192028"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: xlora_models/phi3.rs: FileTooLong \u2014 642 significant 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 142 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":"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 498-1183. 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":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbe8434b6e6df650094770c73ffda656bda490e8e1d4485cd9782a7d40df169c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::paged_attention::calculate_cache_config: FunctionTooLong \u2014 mistralrs_core::paged_attention::calculate_cache_config 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/paged_attention/mod.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"536067cfdb83e837aa52b1f27501473e155ac1f99ba7c02813600090535c914c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MultimodalPipeline.precapture_cuda_decode_graphs_impl: MethodTooLong \u2014 precapture_cuda_decode_graphs_impl 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/pipeline/multimodal.rs"},"region":{"startLine":2133}}}],"partialFingerprints":{"codehealthFindingId/v1":"44403245c8a53b27eaddd893e1816159a18f159e41e7d857f019dd68f24e4695"}},{"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":527}}}],"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":546}}}],"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":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"a504cf10e54eb7714866e6abf5d3d0bbe1203f2dbc081f146dc9417dd6ff8ea1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/qwen3.rs: FileTooLong \u2014 638 significant 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 138 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/models/qwen3.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"885825389fc420be1079d0343b4b2089a320e0376de73a4e0931298942506b94"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: llava_llm/mistral.rs: FileTooLong \u2014 637 significant 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 137 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":2699}}}],"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: 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":"FileTooLong: mxfp4/mod.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), about 97% of them inside a single declaration: MXFP4Layer (5 blocks, 25-930). The bar is 500 significant lines; this is 134 over it, 1.27\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":"TooManyFields: ModelBuilder: TooManyFields \u2014 38 stored fields beside 10 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/auto_model.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"03c472b05799d2123d520a4a7cb74c8b142c613fe69e9253446916956917d012"}},{"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: src/prefix_cacher.rs: FileTooLong \u2014 632 significant 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 (2 blocks, 178-894). The bar is 500 significant lines; this is 132 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/prefix_cacher.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7376c4acec392f3218880b311652d21c29d84fc9cadac37249f4eee363d772bf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: muse_glimmer/text.rs: FileTooLong \u2014 632 significant 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 132 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/muse_glimmer/text.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2fd6e5e011ea97d2b5bebbb37a18108d84ea4d1abae2b3d8eee901c8d5a780b"}},{"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 1899-2577. 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":1899}}}],"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":1876}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc7c5dad83dfa6792a6292ec91291b0fe08cbcc96f88b2f2a83a38878e603fc"}},{"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":"FunctionTooLong: mistralrs_server_core::responses::convert_input_items_to_messages: FunctionTooLong \u2014 mistralrs_server_core::responses::convert_input_items_to_messages 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-server-core/src/responses.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d9a44c6b84a71c024e839e28078849812e4e4020e14beee78895e13590c0253"}},{"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: loaders/mod.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). The bar is 500 significant lines; this is 127 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-core/src/pipeline/loaders/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c39793adbc094979095c08bb53572cb913443eb90c6f290f908a70d58b0fe0"}},{"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":1639}}}],"partialFingerprints":{"codehealthFindingId/v1":"00cc87e663c31dca61dbd513fcfca2be8a68a3bd3af1a443bd71be402bac4127"}},{"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":"FunctionTooLong: mistralrs_quant::gguf::fast_mmvq::plain: FunctionTooLong \u2014 mistralrs_quant::gguf::fast_mmvq::plain 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/gguf/fast_mmvq.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"96ccd4d699d7016c6eda4ab5d2721a90b8e19d6528d801a057863310bf4fd977"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: args/mod.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-cli/src/args/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1f285c695a9b45a0f49af23404aa27a1c4a217dc71b90f549a128094e96bd6"}},{"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":"FunctionTooLong: mistralrs_cli::commands::config::run_serve_config: FunctionTooLong \u2014 mistralrs_cli::commands::config::run_serve_config 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-cli/src/commands/config.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a6a8ab73a9748154435a221314b0aea62db56d471d2f7bf201ae22b23bc329"}},{"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":405}}}],"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":"FunctionTooLong: mistralrs::model_builder_trait::build_multimodal_pipeline: FunctionTooLong \u2014 mistralrs::model_builder_trait::build_multimodal_pipeline 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/src/model_builder_trait.rs"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"a21f20e73120b847ea8dbe284b8b6228ae0bf7e03f74169c617a6a83e6f499fb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handlers/api.rs: FileTooLong \u2014 619 significant 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 119 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-cli/src/ui/handlers/api.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"157698ba1d913ba31216eae553f57fcdf78d76e4fe9de9de2b7a831f70c7eed6"}},{"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":"TooManyFields: MistralRsForServerBuilder: TooManyFields \u2014 37 stored fields beside 62 methods. The bar is 30 stored fields; this is 7 over it, 1.23\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":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"678970d3a60fcd467377c82c734447ad4324b1d631637245e8abfc5f321e0028"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: TextModelBuilder: TooManyFields \u2014 37 stored fields beside 10 methods. The bar is 30 stored fields; this is 7 over it, 1.23\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: 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":"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":1307}}}],"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: 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":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"705216db2017b518d6b7e64e1b22eaeb8af29b4834c277711a9cf4fa7b0e8aef"}},{"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::engine::cuda_memory::maintain_device: FunctionTooLong \u2014 mistralrs_core::engine::cuda_memory::maintain_device 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/engine/cuda_memory.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"00847d201f3c0c4c94151078248f860389a7334800b9a125e34229ef3aa6c082"}},{"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 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-paged-attn/src/metal/backend/paged_attention.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f656c2e1099f5beefc67b89f29cd07e047c3375f6ccc2c58f7fb874c967563"}},{"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 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/gguf/fast_mmq.rs"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"2148d826cb479ee11458ffb0f4293e9cec43821d3ed6940891efa3f38e2fbc93"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::try_fused_qkv_metal: FunctionTooLong \u2014 mistralrs_quant::try_fused_qkv_metal 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/lib.rs"},"region":{"startLine":2598}}}],"partialFingerprints":{"codehealthFindingId/v1":"9776553e9216200ccd4ae8f63f1575666ef9a1a224e4c0d71ee4f3dd6fd07f1c"}},{"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: 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: gguf/qwen_multimodal_bindings.rs: FileTooLong \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). The bar is 500 significant lines; this is 106 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/gguf/qwen_multimodal_bindings.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fb88a9e960f878079ed8f92593fb949e64c3b9d4de464bf8e196f78b5830101"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pipeline/chat_template.rs: FileTooLong \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). The bar is 500 significant lines; this is 106 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/pipeline/chat_template.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4900be559956759506e5890f528f524587822cb276efa9cad8f0795cf106c97"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GgufWeightSource: 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), 21 methods, 4 blocks, lines 268-890. 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-quant/src/gguf/weight_source.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"385da5852f54f0c853335a46fa3807d3173b4978a9b94c261e164d8e40cbe118"}},{"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":"FileTooLong: models/starcoder2.rs: FileTooLong \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). The bar is 500 significant lines; this is 105 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":"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":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"585cd837259e0ae829aca96d7aef32a71f396781c9d8ec07c7b42a0f183f7c5f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Model.forward: MethodTooLong \u2014 forward 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/qwen3_next.rs"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b7ccf3d373850770753e27111a2c9304873e43f7357e5d627a97ed34b22609"}},{"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":1976}}}],"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: 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":"TooManyFields: MultimodalModelBuilder: TooManyFields \u2014 36 stored fields beside 9 methods. The bar is 30 stored fields; this is 6 over it, 1.20\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":"FileTooLong: models/smollm3.rs: FileTooLong \u2014 600 significant 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 100 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":"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":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"329f9a6262c63ab7d95d8bc5b3f9938aecba3042bde6f21c25987f49b20d7577"}},{"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":3376}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a13a98254c23a7caa9a496bd97b94a00c3812575aa22fe300521ef1bd24b52"}},{"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/phi2.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/phi2.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15f53edc1005a724a882f880afb4e945c1a360efbcac10495d7c60163f2fd34d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PrefixCacheManagerV2: ClassTooLong \u2014 479 significant 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, 2 blocks, lines 178-894. The bar is 400 significant lines; this is 79 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-core/src/prefix_cacher.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68684713912bca6e6c1c28d2acf4e923e10e4729cfce362fd014442c269a8b1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GgufMatMul: ClassTooLong \u2014 479 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 16 methods, 4 blocks, lines 44-806. The bar is 400 significant lines; this is 79 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-quant/src/gguf/mod.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"90db1960dd4c35c8021ee037338eca5d0eae59fad45a6482f59d37bb8f13ce76"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RequestBuilder: ClassTooLong \u2014 478 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 49 methods, 6 blocks, lines 568-1324. The bar is 400 significant lines; this is 78 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/src/messages.rs"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"9301b17d96883f39ac41a7b6ca466dd1acb7e689606912f99ce0aefbad3803a4"}},{"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":"FileTooLong: models/phi3_5_moe.rs: FileTooLong \u2014 595 significant 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 95 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":"MethodTooLong: MistralRs.create_engine_instance: MethodTooLong \u2014 create_engine_instance 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/lib.rs"},"region":{"startLine":1172}}}],"partialFingerprints":{"codehealthFindingId/v1":"9366808d5107266ffcad08754a70f858e2232557814bac2b616403a67a6349e3"}},{"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":808}}}],"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":871}}}],"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":2178}}}],"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":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"2273f4af1d8d98c0f09c353c84f69ea9ca2e68291cfa45de5f82578c054d750d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GGMLLoader.load_model_from_path: MethodTooLong \u2014 load_model_from_path 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/pipeline/ggml.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a254b09597900cd753737a24a70855ec034f271df7d1e2c47a2d8634297d33e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GGUFLoader.infer_multimodal_asset_paths: MethodTooLong \u2014 infer_multimodal_asset_paths 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/pipeline/gguf.rs"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af331c95fb98d1cd77a3cb93f571b1b1fe7eb228835b8032362b06d049cc40b"}},{"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":"MethodTooLong: Qwen3_5Model.mtp_propose: MethodTooLong \u2014 mtp_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/vision_models/qwen3_5/speculative.rs"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"43de84eb7807768372ccc7d3d5aa2561dff2e475cba65b531a0e0f281454b686"}},{"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":"MethodTooLong: BlockwiseFP8Linear.forward_raw: MethodTooLong \u2014 forward_raw 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-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd7ea395e4f66890c1b0f33c5e959d54ed99c7de24f4047ab398da96b5942e5"}},{"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: ColumnParallelLayer: ClassTooLong \u2014 475 significant 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, 4 blocks, lines 1270-1911. The bar is 400 significant lines; this is 75 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-quant/src/distributed/layers.rs"},"region":{"startLine":1270}}}],"partialFingerprints":{"codehealthFindingId/v1":"f48fd168ef1d55ddc211a5335169062aebca02a8ec8d91e2b73b83f9da8fa2ea"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: paged_attention/plan.rs: FileTooLong \u2014 592 significant 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 92 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/paged_attention/plan.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55bf394d6e7fcee00de091627549f4c681c121d8746c84c4b6c86f6e610e7fd5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: speculative/driver.rs: FileTooLong \u2014 592 significant 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 92 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/speculative/driver.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"052ae8b99ec1b1604bf6009d993c5f42b5e2d6a8187c9dbb1c21e4584fe70045"}},{"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":"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":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"606ebc2f2cd91979d30bf6ed4fcd4e27b7cdf5a695f278b14a06c7d4dcc40a66"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs::model_builder_trait::build_text_pipeline: FunctionTooLong \u2014 mistralrs::model_builder_trait::build_text_pipeline 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/src/model_builder_trait.rs"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc36839caa04abcabd62522a79c2c56aa480e4d838edb80d49bbd5f8e3dd68fc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/phi3.rs: FileTooLong \u2014 589 significant 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 89 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":"ClassTooLong: MambaLayer: ClassTooLong \u2014 471 significant 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-1390. The bar is 400 significant lines; this is 71 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-core/src/models/granite.rs"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0502f452b86db2d8248c28b41e8814473d592427200dbfd6ca6490d5a181759"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/llama.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). The bar is 500 significant lines; this is 86 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: 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: 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: NormalLoaderType.arch_metadata: MethodTooLong \u2014 arch_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/model_metadata.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c68bed555e75dc97b55857a6e6a46fda30621fcb973c6c287346e78a1d4b4e"}},{"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":570}}}],"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":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75e49f9e8e4e8865fd288317f364c61ad0ec80ee5752f2decb9616b1b2fd09b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_core::pipeline::sampling::sample_sequence: FunctionTooLong \u2014 mistralrs_core::pipeline::sampling::sample_sequence 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/sampling.rs"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aac23b70dafd3b36e91ba8087d817d6debec3818e6b50103fb55dde913991e1"}},{"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":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"4073b5c91ce1d928667d845d82500a23f1e708d68235df3ae9f8bfe5c62c4ec0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/client.rs: FileTooLong \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), about 61% of them inside a single declaration: McpClient (3 blocks, 200-1172). The bar is 500 significant lines; this is 84 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":"TooManyMethods: Runner: 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-pyo3/src/lib.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"8091cc47f824787528d7a2f0728e8156f7fad9c87d51429932c2f4330aaf4de0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OpenResponsesStreamer: ClassTooLong \u2014 466 significant 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 970-1626. The bar is 400 significant lines; this is 66 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":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5e83b09e5baef3e12860c43a4472b724c24a6ba19694060c45f538e252e256"}},{"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":386}}}],"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":1293}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee772f03ffb0214346b79500ef95e4fad2a8ec5c539a9c4e367428ac1fe0d43"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Sequence.new_waiting: MethodTooLong \u2014 new_waiting 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/sequence.rs"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"001b3ea374e440162e1d0bda476cfc8971cd98e6688f0e60fbd48b48925ae58e"}},{"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":"FileTooLong: pipeline/amoe.rs: FileTooLong \u2014 578 significant 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: AnyMoePipeline (8 blocks, 47-717). The bar is 500 significant lines; this is 78 over it, 1.16\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":"ClassTooLong: ChatStore: ClassTooLong \u2014 462 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 62 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-cli/webui/src/lib/stores/chat.svelte.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2288aa941e3a18313715d69a847bec562ebaba6f24ee16c800b431a2afcf595"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TextModel: ClassTooLong \u2014 462 significant 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 408-1021. The bar is 400 significant lines; this is 62 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":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3a6ab44a9cee21cd0dee343e6480ad31505ef16a871b86acc5ba08a6268b1d5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pipeline/hf.rs: FileTooLong \u2014 576 significant 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 43 free functions. The bar is 500 significant lines; this is 76 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/hf.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"43f4ed39c0fb478ca4f6129e0f07092bdf967f00de3e0ed4b21e8fe97c67675d"}},{"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":"ClassTooLong: EmbeddingLoader: 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), 0 methods, 2 blocks, lines 73-722. 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/pipeline/embedding.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c365daaafdec03301851f0de8dbaffcd5eb9d416ca9f8458d608d5820757625"}},{"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_core::metal::gdn::causal_conv1d_metal: FunctionTooLong \u2014 mistralrs_core::metal::gdn::causal_conv1d_metal 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/metal/gdn.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"2714e5851c032ba6a4e7372e8606423472c8678d41cbeb9d706e90fe01c3a6b2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PagedSpeculativeCacheAccess.make_verify_input_metadata: MethodTooLong \u2014 make_verify_input_metadata 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/speculative/cache.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7ff5599c11f89f652a6be36abce187d7b293aec6e9ce4e161c883c315c35d5"}},{"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":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ea5f20bf0ac5ab8d66b5644e3154b0b74a07c8d5b0f3cb671e50db520abe5b"}},{"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":"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":429}}}],"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":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a138243d5b2c0a7d226ff6f30d5ce93ca2a8a952bee7c0336d27cd7c7f1b86"}},{"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: 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: MistralRsForServerBuilder.build_single_model: MethodTooLong \u2014 build_single_model 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-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"55faa3e414b8ff84a8963ae7b0f04c9a33d1e08a6d0b43de469bac093c4320d2"}},{"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: PagedAttentionScheduler: 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/paged_attention/scheduler.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4fcb4aaf0d6badab6a6531c73ce03fd9650bbda2167c6f89583a7f9cfb7ddec"}},{"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: gguf/mod.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), about 85% of them inside a single declaration: GgufMatMul (4 blocks, 44-806). The bar is 500 significant lines; this is 66 over it, 1.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-quant/src/gguf/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"368451a73ebbeaf31450263097bbef9c4a6f524fbddf9e64a7094cb1527914d0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/safetensors.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-quant/src/safetensors.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c8f393d8cfea5b1e40d3d84d552a4af658928d4d94829c8ff55674db50f323b"}},{"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":428}}}],"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":743}}}],"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":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbdfccf5ae7f15565ddc5a42f94153927dcc3f69890a75554d92184f01790669"}},{"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":2123}}}],"partialFingerprints":{"codehealthFindingId/v1":"563186e3f224e8c3f605352c342f0c0633ded95af064b31b2b5253ae83f31897"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: commands/quantize.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-cli/src/commands/quantize.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"75de516e222a4609f8498304396349f7e230e1346f40ce5ecb92216e270e702b"}},{"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: 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 561 significant 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 61 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":"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":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c5cb084e51103dbc2d55019c3573080c77ff0dd70013fdb927f31c81dda0157"}},{"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":"FileTooLong: cuda/ffi.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-paged-attn/src/cuda/ffi.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"104e4b1afcf4b272982f735bab17103c9393225adceb6e563a1d29f8660d14fe"}},{"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":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"88679e41e2ede6f4960ff3566151b90d64bd76d35cb83cea8a42ef9f74e23cdf"}},{"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":1106}}}],"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":"ClassTooLong: UnquantLinear: 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), 4 methods, 4 blocks, lines 18-678. 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-quant/src/unquantized/mod.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d8608646bc31b558d388e197f7782a720c124d909533a14471449cec0c53553"}},{"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":"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_cli::main: FunctionTooLong \u2014 mistralrs_cli::main 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-cli/src/main.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"059ebc8a046ea48cadb261d87e329d063945989768588f529e9ced1800fff826"}},{"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":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"015f827820d8a09edae80cd43fa743fc274a001418db196e2e9e71ef4f4d43c0"}},{"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 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/paged_attention/plan.rs"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5eb11362f0c5a5042f435b43d5244193bebcbdf58bf2dee3eca61ec22c5a0a"}},{"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":"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":"FunctionTooLong: streaming.streamChatCompletion: FunctionTooLong \u2014 streamChatCompletion runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/services/streaming.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe8a6bf38fe42f8048b1d0c33f82e6be10c152bc0a9009606c2d2f2eed46d1b"}},{"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":1104}}}],"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":"MethodTooLong: GGUFLoader.load_native_multimodal: MethodTooLong \u2014 load_native_multimodal 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/pipeline/gguf.rs"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd501461d2e77c0ab7a7281d76cf5e582db80a722771cb00f9335c9c66c25624"}},{"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 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/pipeline/sampling.rs"},"region":{"startLine":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5c459fce31e32f98595cbb1483b910c4ebd89f9f70fd2686f5e7a1f518316cf"}},{"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":"ClassTooLong: Qwen3VLModel: ClassTooLong \u2014 433 significant 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 42-1136. The bar is 400 significant lines; this is 33 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_vl/mod.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aed32c51c8e73c3c19e292ad4d1faecdc44a9ea8db930ca95fcb5c7e8042994"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Qwen3VLMoEModel: ClassTooLong \u2014 433 significant 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-565. The bar is 400 significant lines; this is 33 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_vl_moe/mod.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c4abfb5e1eb79c2102c61e459fdf59db1b66d88b491d20e079d515d8a09e451"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/diagnostics.rs: FileTooLong \u2014 540 significant 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 40 over it, 1.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/diagnostics.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c407111b66feefb11e8e298e908e7619e5756c6f26750a3ad975730b337444e5"}},{"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":5063}}}],"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":427}}}],"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":2457}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18b22c53bef89c8fbf94e34285ac0eae84903489b973448c0dabc103cc4233d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: loaders/embedding_loaders.rs: FileTooLong \u2014 539 significant 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 39 over it, 1.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/embedding_loaders.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a87fdafbc9e5f383642081b4c193aaba737e5ae70a06913363b46d43ba3bad15"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Gemma4Loader: 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), 0 methods, 4 blocks, lines 8050-8636. 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/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":8050}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb93baaec12075bc542259cd1f81a56d58cbc7fcef48297136a6ba468bd74228"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PerTensorFP8Linear: ClassTooLong \u2014 429 significant 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, 4 blocks, lines 17-680. The bar is 400 significant lines; this is 29 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-quant/src/pertensor_fp8/mod.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"d87993c499631039b6092654898670afd0d131c105a527dfc5cea040a3b9f0eb"}},{"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":268}}}],"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":"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":174}}}],"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_server_core::mistralrs_server_router_builder::init_router: FunctionTooLong \u2014 mistralrs_server_core::mistralrs_server_router_builder::init_router 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-server-core/src/mistralrs_server_router_builder.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"a61b8daa5973dc7e6497b57648e2e7291785a3d939c8bbe7d56ad91bd53e65e9"}},{"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":"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":"ClassTooLong: Qwen3_5Model: ClassTooLong \u2014 426 significant 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 46-565. The bar is 400 significant lines; this is 26 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/vision_models/qwen3_5/mod.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"47eb77d64f0efc4f42ebe1ab6556e6c06a0f10c7c269f23d40094069f99be5f3"}},{"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":"ClassTooLong: Qwen3_5MoeModel: ClassTooLong \u2014 424 significant 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 42-561. The bar is 400 significant lines; this is 24 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/qwen3_5_moe/mod.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed0ff2c2d7144fad294a617dc3e9429d9cc1a94a52e0a657148e9907d5634c9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cutile/nvfp4_glu.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-quant/src/cutile/nvfp4_glu.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b72f2698bf3fa43a14aa038f2a9d3e83d4cd65103f8ebc98d8cef361da49f3e2"}},{"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":1453}}}],"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: Qwen3_5MoeTextModel.forward_embeds: MethodTooLong \u2014 forward_embeds 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/qwen3_5_moe/text.rs"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"6918ababf3f7f0a1f60821900dbf83f2f0e4f2235bac4cd58f239a235ef51aeb"}},{"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 527 significant 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 27 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/vision_models/qwen3_vl/text.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe7d5cf726bff37e478e33e2e1e5d378ab487e8a26d53937d4ceadd58b808e2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: xlora_models/quantized_phi3.rs: FileTooLong \u2014 527 significant 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, 226-611). The bar is 500 significant lines; this is 27 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":"FileTooLong: backend/paged_attention.rs: FileTooLong \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). The bar is 500 significant lines; this is 26 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-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d95d096d41f29afc23469494431d9726487825c8d7e7e4f4e84e7919159d9b"}},{"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: DiffusionLoader.load_model_from_path: MethodTooLong \u2014 load_model_from_path 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/diffusion.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a776bf2d4d8313dcb62732ccc52bfa706d1430dabd6be7151031d00c3a981b1"}},{"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":2624}}}],"partialFingerprints":{"codehealthFindingId/v1":"32b8e3d1a93c5db88c5b1201376191bb31592dcd61a9b81caadb2ecf084385e5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen3_5TextModel.stage_recurrent_prefixes: MethodTooLong \u2014 stage_recurrent_prefixes 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/vision_models/qwen3_5/text.rs"},"region":{"startLine":1758}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d136a9551d82763599c565d80201c63043bc13961e2d5248b9b5c3373d11d7"}},{"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 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/kernels/mod.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c21cb11ac5f156147df2fa70718916cf6a2d28cc779d5629ae80aea0ab24a89"}},{"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":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"667821ece73f5c1e7ccd28a250da218b2ea4bc4e279749f9a3c585be94f408d8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Nvfp4Layer.load_shape: MethodTooLong \u2014 load_shape 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/nvfp4/mod.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"29fd3ae2164fefd694d7a1d31dc1741673b4d4970c1c04c39ca161f049d62e62"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pertensor_fp8/mod.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 82% of them inside a single declaration: PerTensorFP8Linear (4 blocks, 17-680). 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-quant/src/pertensor_fp8/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d19678a90f3cc4d41e96d3ce862905fa87bc5bcca948cdd6a5b2c6ef0c55ca11"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/which.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-pyo3/src/which.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5075979a8c147f6e6d888caed0f7a3ee5e8f42a789c2837fb46e09f2be060f77"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/mixtral.rs: FileTooLong \u2014 521 significant 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 21 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/models/mixtral.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7d8edee4f916906e7cc31c249aa1bfffe365c8b2735b4b9d9d1b647a7642e4"}},{"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 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/cuda/gdn.rs"},"region":{"startLine":5603}}}],"partialFingerprints":{"codehealthFindingId/v1":"491af56a6c2f467f5003ecd0366d08d52c165f2570458e2b48aed4d6566c1f87"}},{"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":708}}}],"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":"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":"FunctionTooLong: mistralrs_quant::fp8_config::checkpoint_linear_b: FunctionTooLong \u2014 mistralrs_quant::fp8_config::checkpoint_linear_b 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/fp8_config.rs"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4bda2b8ca8708bdd06066b21247b3c6e3442201ded232dd0f16d40ac06a3df6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AnyMoePipeline: ClassTooLong \u2014 415 significant 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 47-717. The bar is 400 significant lines; this is 15 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/amoe.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"22cf157ea4c806b2562649fbb50c7b17d183a3797ff74c6f57d422f313175b60"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pipeline/paths.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-core/src/pipeline/paths.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"61fbf6d745a29fd4c8b749a0f9921bf91f14a755cf9f77884097693264ab556b"}},{"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":"TooManyFields: NormalRequest: TooManyFields \u2014 31 stored fields beside 6 methods. 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/request.rs"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d66e54e36ce30111cadf674dd61efd310d2d8d135cb738d15c7531f888fbe38"}},{"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":"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: MultimodalLoaderType.arch_metadata: MethodTooLong \u2014 arch_metadata 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/model_metadata.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eae8fb81e948730cd5e3e6c9977d72661d3c90458ac7a974bdbeeb73b5b5f0b"}},{"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":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"c14d865ea2b28c936431bd63c3fc308d56f281249f5d8578907bbe3ae39dd531"}},{"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":2361}}}],"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":795}}}],"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":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa37204abdf48a127fdf138a7fa9093db2e1f40f428b00f0f1a6945e32c46e5"}},{"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 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-paged-attn/src/metal/backend/cache.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf817ff3e7966ac22522b9f2448ad4ea8459f0672be122e171a0e47eb6435e6"}},{"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: gguf/gguf_tokenizer.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-core/src/gguf/gguf_tokenizer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40eeebe8eb643a9d5399ffe39b4bcc3f88f3216f3982d51fd37907422c45e4c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/handlers.rs: FileTooLong \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). The bar is 500 significant lines; this is 13 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":"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":2141}}}],"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":1022}}}],"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":"MethodTooLong: FullAttention.load_with: MethodTooLong \u2014 load_with 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/qwen3_5/text.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca02de13d73428c9fe7b7fc9a4ea643d5133a7be991078473abe405cc5eeaaa6"}},{"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: qwen3_vl/vision.rs: FileTooLong \u2014 506 significant 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 6 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/vision_models/qwen3_vl/vision.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0f00d5d22f1586bca384721e420f5c2b689d2738580404a1c98dc88a3b1113"}},{"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: Engine.continue_cuda_decode_batch: MethodTooLong \u2014 continue_cuda_decode_batch 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/engine/mod.rs"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"531a5322dd4449b002fbd00a481429ff8e6632323ff2af7900d3a0db17b9e67d"}},{"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":1204}}}],"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":506}}}],"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::nvfp4::launch: FunctionTooLong \u2014 mistralrs_quant::cutile::nvfp4::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/nvfp4.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea9d878b735a14591381734ce3c5fe8ea4378b34f3df989a5b59c0f1ac494e01"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistralrs_quant::try_fused_gate_up_metal: FunctionTooLong \u2014 mistralrs_quant::try_fused_gate_up_metal 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/lib.rs"},"region":{"startLine":2455}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc9d0e5db328bf88eee1cd3b5fcc92b996d6f94a7298d747aee15856813a5ca"}},{"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":"D4","level":"warning","message":{"text":"Near-duplicate member family (24 members, 30 shared lines): 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:1535-1619 | 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:189-279 | 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:274-421 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:187-283 | 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 24 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 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/gemma2.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd8cf93f4cc16922c7f77bde4f2d11648cc411d3eb73ddbca625c413e6b38ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (22 members, 23 shared lines): 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:1535-1619 | 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:189-279 | 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-310 | 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 22 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 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/models/gemma2.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab83c9f939b587b1b1add46a3b0be6f34dd025457d8a5902649fca39c8f94ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (21 members, 22 shared lines): 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:189-279 | 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/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 21 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 21 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 21 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd601f45bb07c9f1f4f1e5d830715b3f92badb21b4dc880cd97a405d5f52c2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (19 members, 22 shared lines): 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:189-279 | 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-310 | mistralrs-core/src/vision_models/voxtral/mod.rs:126-208 \u2014 These 19 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 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/gemma.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"56380df727ded9c92cdadbe813b4ef69371c8480a5c78a522241dd108ed8518e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (17 members, 38 shared lines): 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/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:189-279 | 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 17 members are variants of one another: a block of 38 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/gemma.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a574771d44ef17439ac9fe47121734428caa5d6e97046fd67916b2393d927bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (17 members, 22 shared lines): 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:189-279 | 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 17 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 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/gemma.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b25f602242cc3765442508ad16a42d598e58070a9b8e86fbfed0bc8dff3789"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (17 members, 22 shared lines): 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:189-279 | 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-310 \u2014 These 17 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 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/gemma2.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"af64834b34832381fb1e38221900c7a55de92975949f816c5f032589e71734ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (16 members, 31 shared lines): 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:1535-1619 | 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:189-279 | 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 16 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 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/glm4.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b9685fdf705f57e3c0908252151caee710114637eaf8a6749c538ebd55cd46"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (16 members, 25 shared lines): 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/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:189-279 | 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/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/gemma.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed04cb72be175a16a17153d3e3de5e46992c00e6920730f491b67b82d172afb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 30 shared lines): mistralrs-core/src/models/gemma.rs:584-675 | mistralrs-core/src/models/gemma2.rs:700-791 | mistralrs-core/src/models/glm4.rs:700-791 | mistralrs-core/src/models/hunyuan_v1_dense.rs:672-763 | mistralrs-core/src/models/mistral.rs:712-803 | mistralrs-core/src/models/phi2.rs:659-742 | mistralrs-core/src/models/phi3.rs:655-738 | mistralrs-core/src/models/qwen2.rs:714-805 | mistralrs-core/src/models/qwen3.rs:671-762 | mistralrs-core/src/models/starcoder2.rs:650-733 | mistralrs-core/src/vision_models/gemma3/text.rs:926-1017 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:672-766 | mistralrs-core/src/vision_models/phi3/mod.rs:1492-1574 \u2014 These 13 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 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":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"49f6e29700d71253929bcc63b23181734276915760be2ae1025e72411963611e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 24 shared lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1316-1351 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1608-1643 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1893-1928 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2286-2333 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2623-2657 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2964-2999 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3271-3306 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3951-3985 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4703-4739 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:730-765 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1154-1189 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2010-2045 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5164-5199 \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":1316}}}],"partialFingerprints":{"codehealthFindingId/v1":"66236c7a757a5c5e4cfd0da11db91a71d560dbbf27cc97002e20ffd4084650f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 52 shared lines): mistralrs-core/src/models/gemma.rs:584-675 | mistralrs-core/src/models/gemma2.rs:700-791 | mistralrs-core/src/models/glm4.rs:700-791 | mistralrs-core/src/models/hunyuan_v1_dense.rs:672-763 | mistralrs-core/src/models/mistral.rs:712-803 | mistralrs-core/src/models/qwen2.rs:714-805 | mistralrs-core/src/models/qwen3.rs:671-762 | mistralrs-core/src/vision_models/gemma3/text.rs:926-1017 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:672-766 | mistralrs-core/src/vision_models/muse_glimmer/text.rs:681-767 \u2014 These 10 members are variants of one another: a block of 52 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":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"202ee628c6eab84b780487b702a88fec0ad14b2633f6b83001bbaa2b798199f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 40 shared lines): mistralrs-core/src/xlora_models/gemma.rs:631-690 | mistralrs-core/src/xlora_models/gemma2.rs:686-745 | mistralrs-core/src/xlora_models/llama.rs:459-518 | mistralrs-core/src/xlora_models/mistral.rs:631-690 | mistralrs-core/src/xlora_models/mixtral.rs:761-820 | mistralrs-core/src/xlora_models/phi2.rs:597-656 | mistralrs-core/src/xlora_models/quantized_llama.rs:849-908 | mistralrs-core/src/xlora_models/quantized_phi3.rs:518-577 | mistralrs-core/src/xlora_models/starcoder2.rs:616-675 \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":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fecf948157abf15b28f1d0a444422ea3d99efb615840a827b8709fd2751b3d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 28 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:187-283 | 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 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 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":"f6ebe565ef7967d5ea775acedafffa0be4a4a33e29dd41066b8f3877ccaafcd2"}},{"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:1535-1619 | 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":"2e23b38684afe64432dd9efdaf34fb6c698bfb3bb9b71d67f05054ae51c8519c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 15 shared lines): mistralrs-core/src/models/deepseek2.rs:951-976 | mistralrs-core/src/models/deepseek3.rs:1014-1039 | mistralrs-core/src/models/glm4_moe.rs:830-854 | mistralrs-core/src/models/glm4_moe_lite.rs:967-991 | mistralrs-core/src/models/mixtral.rs:526-554 | mistralrs-core/src/models/phi2.rs:542-567 | mistralrs-core/src/models/phi3.rs:535-564 | mistralrs-core/src/models/phi3_5_moe.rs:607-636 | mistralrs-core/src/models/starcoder2.rs:527-555 \u2014 These 9 members are variants of one another: a block of 15 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":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dea875183b9653edafc42a51e5535462a0dff978332be6fa7624d3ac259602c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 27 shared lines): mistralrs-core/src/xlora_models/gemma.rs:232-298 | mistralrs-core/src/xlora_models/gemma2.rs:237-309 | mistralrs-core/src/xlora_models/llama.rs:55-115 | mistralrs-core/src/xlora_models/mistral.rs:222-298 | mistralrs-core/src/xlora_models/mixtral.rs:135-211 | mistralrs-core/src/xlora_models/phi2.rs:217-288 | mistralrs-core/src/xlora_models/starcoder2.rs:209-287 \u2014 These 7 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 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 (7 members, 21 shared lines): mistralrs-core/src/xlora_models/gemma.rs:232-298 | mistralrs-core/src/xlora_models/gemma2.rs:237-309 | mistralrs-core/src/xlora_models/mistral.rs:222-298 | mistralrs-core/src/xlora_models/mixtral.rs:135-211 | mistralrs-core/src/xlora_models/phi2.rs:217-288 | mistralrs-core/src/xlora_models/phi3.rs:113-186 | mistralrs-core/src/xlora_models/starcoder2.rs:209-287 \u2014 These 7 members are variants of one another: a block of 21 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 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":"2fd77306a594aaa88e609670aaa2f174468570bb491342f6763fab821817cbed"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 46 shared lines): mistralrs-quant/src/cutile/nvfp4_glu.rs:38-175 | mistralrs-quant/src/cutile/nvfp4_glu.rs:195-332 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:23-90 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:176-243 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:341-490 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:635-784 \u2014 These 6 members are variants of one another: a block of 46 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-quant/src/cutile/nvfp4_glu.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"158917b0e93afba0cf409e676ce644acdefb0c84fc18d98099d90b8a1c4aab6e"}},{"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:1535-1619 | 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:187-283 \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":"4d3a1c8a8da8706a16566bc939fde5e53bfe7d24905add41a9e492f598a9d429"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 37 shared lines): mistralrs-core/src/models/glm4.rs:436-561 | mistralrs-core/src/models/hunyuan_v1_dense.rs:393-523 | mistralrs-core/src/models/hunyuan_v1_moe.rs:883-1017 | mistralrs-core/src/models/mistral.rs:415-566 | mistralrs-core/src/models/qwen3.rs:400-521 | mistralrs-core/src/models/qwen3_moe.rs:577-704 \u2014 These 6 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 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":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"549b7713eeb6eb6781d1d9efef44f90a0b77427706e3182551d15e62a8034d88"}},{"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/vision_models/gemma3/text.rs:433-582 | mistralrs-core/src/vision_models/phi3/mod.rs:1210-1318 | mistralrs-core/src/vision_models/phi4/mod.rs:331-439 | 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":"48034fb1f8cbbf64cd19b48238af07d427707e8b0270d9264f18aad362852cd1"}},{"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:272-304 | mistralrs-core/src/models/mistral.rs:318-350 | mistralrs-core/src/models/qwen2.rs:349-382 | mistralrs-core/src/models/qwen3.rs:300-335 | mistralrs-core/src/models/smollm3.rs:288-320 \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:87-171 | 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":"305c34ce690bf4eaa2325058c6a61985e93789db00377bd09015e792526860f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 36 shared lines): mistralrs-core/src/models/deepseek2.rs:814-949 | mistralrs-core/src/models/deepseek3.rs:877-1012 | mistralrs-core/src/models/glm4_moe.rs:714-828 | mistralrs-core/src/models/glm4_moe_lite.rs:824-965 | mistralrs-core/src/models/mixtral.rs:405-520 \u2014 These 5 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 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/deepseek2.rs"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b2546dcf718649edd20b3c19560c513947ebfc577714988ac907622009e9ea4"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 27 shared lines): mistralrs-core/src/models/gemma.rs:347-457 | 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 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/models/gemma.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"13abc36c6c33115d75631b9cf27dd932dc51aa4c13771d49ec740101d18b44c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 27 shared lines): mistralrs-core/src/xlora_models/gemma.rs:576-617 | mistralrs-core/src/xlora_models/mistral.rs:574-617 | mistralrs-core/src/xlora_models/mixtral.rs:704-747 | mistralrs-core/src/xlora_models/phi3.rs:525-570 | mistralrs-core/src/xlora_models/starcoder2.rs:557-602 \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":"abe333b43768cc1fff3df6526f8fdd080657a619ecb6bd8991fc16631f3ec9d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 27 shared lines): mistralrs-core/src/xlora_models/gemma.rs:576-617 | mistralrs-core/src/xlora_models/mistral.rs:574-617 | mistralrs-core/src/xlora_models/mixtral.rs:704-747 | mistralrs-core/src/xlora_models/phi2.rs:543-583 | mistralrs-core/src/xlora_models/starcoder2.rs:557-602 \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":"0430cc2e395c13a6f7d6e349a74a00f38a67063b33273b82859c317e05600173"}},{"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:101-180 | 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:101-180 | 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, 22 shared lines): mistralrs-core/src/xlora_models/mistral.rs:222-298 | mistralrs-core/src/xlora_models/mixtral.rs:135-211 | mistralrs-core/src/xlora_models/phi3.rs:113-186 | mistralrs-core/src/xlora_models/quantized_phi3.rs:153-223 | mistralrs-core/src/xlora_models/starcoder2.rs:209-287 \u2014 These 5 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 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":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"4085c74e8158e12baac90f4a8655d56c1d58e9a8d1dd8c2aa8b277bb3b6e2dd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 18 shared lines): mistralrs-core/src/xlora_models/mistral.rs:574-617 | mistralrs-core/src/xlora_models/mixtral.rs:704-747 | mistralrs-core/src/xlora_models/phi2.rs:543-583 | mistralrs-core/src/xlora_models/phi3.rs:525-570 | mistralrs-core/src/xlora_models/starcoder2.rs:557-602 \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":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"391125f9710cd7e8ea4158df95f99fe42f79f86a6bec3dcfd8f1e5b13ba026b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 182 shared lines): mistralrs-core/src/vision_models/qwen3_5/mod.rs:131-430 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:116-417 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:669-999 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:114-444 \u2014 These 4 members are variants of one another: a block of 182 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":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad3da6ec47cdb497744a49efa8d3f628d1a818f9768ab92badb1ed24b17c361"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 64 shared lines): mistralrs-quant/src/blockwise_fp8/mod.rs:919-1081 | mistralrs-quant/src/pertensor_fp8/mod.rs:519-668 | mistralrs-quant/src/unquantized/mod.rs:414-600 | mistralrs-quant/src/vector_fp8/mod.rs:98-249 \u2014 These 4 members are variants of one another: a block of 64 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-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"90fab9baa24418ce09c2dac28bcf0b6086e8aabc5bbe1a9e67a210721f60ade9"}},{"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, 35 shared lines): mistralrs-cli/src/ui/handlers/api.rs:165-212 | mistralrs-cli/src/ui/handlers/api.rs:217-264 | mistralrs-cli/src/ui/handlers/api.rs:269-316 | mistralrs-cli/src/ui/handlers/api.rs:321-372 \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":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"2854618106b27ba862fcbedef0c49ee0008a9947cf073f25008b583db959bd72"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 34 shared lines): mistralrs/src/model_builder_trait.rs:626-767 | mistralrs/src/model_builder_trait.rs:773-922 | mistralrs/src/model_builder_trait.rs:928-1113 | mistralrs/src/model_builder_trait.rs:1348-1524 \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/src/model_builder_trait.rs"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"a74bc4f7971310d7f558d88682966f5160fc51048726fb74c2e840fac4d5a79e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 31 shared lines): mistralrs-core/src/embedding_models/qwen3_embedding.rs:328-421 | mistralrs-core/src/models/hunyuan_v1_dense.rs:393-523 | mistralrs-core/src/models/hunyuan_v1_moe.rs:883-1017 | mistralrs-core/src/models/qwen3.rs:400-521 \u2014 These 4 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 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/qwen3_embedding.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"9711498180fa16a2ed28723fd489acfa103aca929c8cb9ec7d87b48bb489d98e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 31 shared lines): mistralrs-core/src/models/mixtral.rs:405-520 | mistralrs-core/src/models/qwen2.rs:433-550 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:399-515 | mistralrs-core/src/vision_models/qwen2vl/text.rs:400-517 \u2014 These 4 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 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":"24ffa12cf73fadd1d79593082da7f21b4c34a448b364967c6a5dd354ae36cd97"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 30 shared lines): mistralrs-core/src/models/mixtral.rs:405-520 | mistralrs-core/src/models/qwen2.rs:433-550 | mistralrs-core/src/models/qwen3.rs:400-521 | mistralrs-core/src/models/qwen3_moe.rs:577-704 \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/models/mixtral.rs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc50e890f6e6631dd08c3895427ecce1cd15845b744bc31c7d102a9b4ec25899"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 27 shared lines): mistralrs-core/src/vision_models/qwen3_5/mod.rs:71-110 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:60-95 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:614-648 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:59-93 \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/vision_models/qwen3_5/mod.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"801ee55cd320d8bc5204d2205a90977a27322bb3eb9e54be375c4f021a251845"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 26 shared lines): mistralrs-core/src/models/mixtral.rs:405-520 | mistralrs-core/src/models/qwen2.rs:433-550 | mistralrs-core/src/vision_models/phi3/mod.rs:1210-1318 | mistralrs-core/src/vision_models/phi4/mod.rs:331-439 \u2014 These 4 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 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":"d23dd23ee366a77e1ce8e38040acf9213cccd86c4fb328653741c57480d8d61c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 24 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:327-374 | mistralrs-core/src/xlora_models/gemma2.rs:334-386 \u2014 These 4 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 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":"6cadd57648a00307322c53e2fa60d826fa2268278ee3a1a7154afe378e73939f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 24 shared lines): mistralrs-core/src/models/mixtral.rs:405-520 | mistralrs-core/src/vision_models/phi3/mod.rs:1210-1318 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:391-500 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:512-622 \u2014 These 4 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 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":"0068540d148dc6910af236639a038166e90ca29cc27aea5b2a3d9b35e4603d01"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 24 shared lines): mistralrs-quant/src/cutile/nvfp4_matmul.rs:111-166 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:264-319 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:515-612 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:809-906 \u2014 These 4 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 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/nvfp4_matmul.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"f65b28625793c27e7107e149329919d049822aadbabe196f4d494eeabf99ff72"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 22 shared lines): mistralrs-core/src/models/phi3.rs:535-564 | mistralrs-core/src/models/phi3_5_moe.rs:607-636 | mistralrs-core/src/vision_models/phi3/mod.rs:1328-1367 | mistralrs-core/src/vision_models/phi4/mod.rs:457-529 \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/models/phi3.rs"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bb3174a32aa4d0a7101fe9fbd3069018d3fc0a41792daf96e6ca3f33395834b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 19 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 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/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:858-896 | mistralrs-core/src/models/glm4_moe.rs:898-941 | mistralrs-core/src/models/glm4_moe_lite.rs:995-1036 | mistralrs-core/src/models/glm4_moe_lite.rs:1038-1092 \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":858}}}],"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:612-672 | mistralrs-core/src/xlora_models/phi2.rs:543-583 | mistralrs-core/src/xlora_models/quantized_llama.rs:775-835 | mistralrs-core/src/xlora_models/quantized_phi3.rs:441-504 \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":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c0dcacddb67e01c62e6238d9ef7b9f84a259aff1a18c8eedfb8e0446cd4aaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 17 shared lines): mistralrs-core/src/xlora_models/phi2.rs:543-583 | mistralrs-core/src/xlora_models/quantized_llama.rs:775-835 | mistralrs-core/src/xlora_models/quantized_phi3.rs:441-504 | mistralrs-core/src/xlora_models/starcoder2.rs:557-602 \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":"d5d49e28def5af6111d39031110face737a63fea32cfd791b3bc4fc1dcbff752"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 14 shared lines): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:984-1013 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1549-1578 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1678-1707 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1717-1756 \u2014 These 4 members are variants of one another: a block of 14 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/qwen2_5_vl/inputs_processor.rs"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f06d309aa6ff7b84cfb62576b8f0c414018b694d34d8c15d8f3f3fbeb1a2c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 8 shared lines): mistralrs-cli/src/commands/config.rs:38-209 | mistralrs-cli/src/commands/config.rs:211-332 | mistralrs-cli/src/commands/run/mod.rs:41-199 | mistralrs-cli/src/commands/serve.rs:44-228 \u2014 These 4 members are variants of one another: a block of 8 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/commands/config.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c68baf47f94e4b31c0dcccdc97f4e827a01a619abcaeb2ca763cf1b2513ac2"}},{"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":"1d120db68fef2ccab052936c9225f88b6e2febdf3b79cf6c24d7ce1a4fc972aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 80 shared lines): mistralrs-core/src/models/llama.rs:613-704 | mistralrs-core/src/models/smollm3.rs:632-723 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:625-719 \u2014 These 3 members are variants of one another: a block of 80 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/llama.rs"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3679f7d32af6113cc0a4bc98a8c90a9f70d21381ff20a1ad0f0ce85910f9857"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 79 shared lines): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1022-1117 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1587-1682 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1766-1878 \u2014 These 3 members are variants of one another: a block of 79 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/inputs_processor.rs"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e620cb4d39652c87a399fc392711313811dc4862acfb5ea8d8cac71656edda"}},{"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, 42 shared lines): mistralrs-core/src/ops.rs:4393-4570 | mistralrs-core/src/ops.rs:4578-4721 | mistralrs-core/src/ops.rs:4918-5147 \u2014 These 3 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 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":4393}}}],"partialFingerprints":{"codehealthFindingId/v1":"a90271d2511d71c69dd4eb03a0f4d9724669e0ac88effe5a236a045496c239df"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 39 shared lines): mistralrs-core/src/models/deepseek2.rs:1020-1073 | mistralrs-core/src/models/deepseek3.rs:1084-1138 | mistralrs-core/src/models/glm4_moe_lite.rs:1038-1092 \u2014 These 3 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 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":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeeaea0d4d0afa3be046e2129d7489a1a7a96c28f66ecb808c393253d70706b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 30 shared lines): mistralrs-quant/src/gemv/mod.rs:370-428 | mistralrs-quant/src/gemv/mod.rs:441-496 | mistralrs-quant/src/gemv/mod.rs:509-564 \u2014 These 3 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 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":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"c55a42d1e0589f83c19c23d5390829620c81aa9c5f865a70e60eeefac8327b50"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 26 shared lines): mistralrs-quant/src/gguf/fast_mmvq.rs:299-470 | mistralrs-quant/src/gguf/fast_mmvq.rs:477-677 | mistralrs-quant/src/gguf/fast_mmvq.rs:687-940 \u2014 These 3 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 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":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff4b20f53615b37df551c35ea772aa7d8308790cbde567061b03c7445df77b3e"}},{"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, 21 shared lines): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1131-1197 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1696-1762 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1892-1975 \u2014 These 3 members are variants of one another: a block of 21 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 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/inputs_processor.rs"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfed8e6245dadd13cf027e0058bbf7cd8ef1b36da7933be50302abbff82eaf37"}},{"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:66-125 | mistralrs-core/src/xlora_models/quantized_llama.rs:199-248 | mistralrs-core/src/xlora_models/quantized_phi3.rs:153-223 \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":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"772784f3afb9a14b165f7f8789c1af6007284d932765cf66e86fcd88c9521022"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (181 shared 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 variants of one another: 181 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/qwen2_5_vl/mod.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe9dd41ac44f89e06dc657ea4ad6766dfdb752f2da082440d637f09c9f045d70"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (163 shared lines): mistralrs-core/src/model_loader.rs:292-918 | mistralrs-core/src/toml_selector.rs:811-1248 \u2014 These two members are variants of one another: 163 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":"5c88aca17d176f536e70e1352667f835c324acd180cab175553a5ca9cc981b25"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (128 shared lines): mistralrs-core/src/pipeline/multimodal.rs:1928-2131 | mistralrs-core/src/pipeline/normal.rs:1765-1948 \u2014 These two members are variants of one another: 128 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":1928}}}],"partialFingerprints":{"codehealthFindingId/v1":"045f9199baca3d845a03b6474cc40bacfffe9b6f670c6cfaf41454b083b0d072"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (123 shared lines): mistralrs-core/src/vision_models/qwen3_5/text.rs:1203-1449 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:528-746 \u2014 These two members are variants of one another: 123 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":1203}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e4fb5dec48b2dedba78e687c23003e27612741210e1fa272a89957a03e07966"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (106 shared lines): mistralrs-core/src/models/llama.rs:346-469 | mistralrs-core/src/models/smollm3.rs:362-492 \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-core/src/models/llama.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ccf370dbf4309034759753f5c191a644c77a72f955fb06dd984e43281a9c24"}},{"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-614 \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":"4531cfb1caf7d0f51417574b1b87c1d8b1f903216757dc904491b9800cef4bda"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (96 shared lines): mistralrs-core/src/ops.rs:548-702 | mistralrs-core/src/ops.rs:710-842 \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/ops.rs"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd312b4b01ac8ab9c346f10088b0187e87396a6f16a3421a249e384fb2c7051e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (96 shared lines): scripts/production_soak.py:3146-3543 | scripts/production_soak.py:3867-4286 \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":"scripts/production_soak.py"},"region":{"startLine":3146}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a223c803309bb8d47f85df8ccf579578e31bd959bd300a0a3f526bace7e595"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (92 shared lines): mistralrs-cli/src/commands/run/interactive.rs:867-1049 | mistralrs-cli/src/commands/run/interactive.rs:1525-1844 \u2014 These two members are variants of one another: 92 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":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"10092af124da66c5cf57705dde2b0475dd8e35c07fd9a77a224819c6e2bec005"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (89 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: 89 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":"c0666ad66d1565f8384733c3abea34d03ed2cacdecfd1a8024bbd95ccbf9962c"}},{"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 (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 (84 shared lines): mistralrs-paged-attn/src/metal/kernels/mod.rs:368-464 | mistralrs-paged-attn/src/metal/kernels/mod.rs:502-669 \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-paged-attn/src/metal/kernels/mod.rs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"bde8738d39a917987dbe1657c2b17c1c6c8337ec027bcff22a126eec555fa657"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (82 shared lines): mistralrs-core/src/vision_models/phi3/mod.rs:533-680 | mistralrs-core/src/vision_models/phi4/image_embedding.rs:130-311 \u2014 These two members are variants of one another: 82 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":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbcab6fff0410863ad3cf8ba38fd69d67fe8a43b167c00af52f0a387aba547d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (73 shared lines): mistralrs-quant/src/cutile/fused_moe.rs:464-593 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:880-1033 \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-quant/src/cutile/fused_moe.rs"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbd12224ccb170de0379aa3e0f9f1ddaae3e5187cd4aa02241f4f72098c93855"}},{"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 (69 shared lines): mistralrs-core/src/models/phi3.rs:408-533 | mistralrs-core/src/models/phi3_5_moe.rs:479-605 \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-core/src/models/phi3.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d2053d1fa35b1481b65b3778c518f79f406470166b50f73b85cba2ac2fa4fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (64 shared lines): mistralrs-core/src/ops.rs:2000-2110 | mistralrs-core/src/ops.rs:2117-2267 \u2014 These two members are variants of one another: 64 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":2000}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d60dc6f96ac09a4c9acfd2f362e2973150432b7deec3ad3e1f329b8c3cb50e4"}},{"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-cli/src/commands/run/interactive.rs:1865-1981 | mistralrs-cli/src/commands/run/interactive.rs:1990-2108 \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-cli/src/commands/run/interactive.rs"},"region":{"startLine":1865}}}],"partialFingerprints":{"codehealthFindingId/v1":"116ee880fcbf45cb24e99e6c7d99b44625522f636ab90f32b49391f657ef09c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (55 shared lines): mistralrs-paged-attn/src/metal/kernels/mod.rs:264-333 | mistralrs-paged-attn/src/metal/kernels/mod.rs:698-773 \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-paged-attn/src/metal/kernels/mod.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"30671cd39ac30b94d595053237849a256ca1f9f8e7920908e7ff8f28db2cce95"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (54 shared lines): mistralrs-core/src/models/phi3.rs:408-533 | mistralrs-core/src/vision_models/phi3/mod.rs:1210-1318 \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-core/src/models/phi3.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"475b8851b71bb5996ec6053c6163584681f89bbe794e084dd3ec687e87f33da0"}},{"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 (53 shared lines): mistralrs-quant/src/cutile/nvfp4_gemv.rs:54-140 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:158-244 \u2014 These two members are variants of one another: 53 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":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3e148f19d0fd5db5af8e0a00d5518369261035c60a6a13fccc756d4ce9323e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (50 shared lines): mistralrs-core/src/xlora_models/mixtral.rs:358-425 | 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":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"1840a5043ea2848deae81f77137b2bc76af671db0ea3eeecbd35f30f4f4f08a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (49 shared lines): mistralrs-core/src/cuda/gdn.rs:4799-5036 | mistralrs-core/src/cuda/gdn.rs:5065-5191 \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":4799}}}],"partialFingerprints":{"codehealthFindingId/v1":"324a22f9a2f545fd465045a9d17b98d05af63880e58f476c15bed05e934e5b0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (49 shared lines): mistralrs-quant/src/blockwise_fp8/ops.rs:632-775 | mistralrs-quant/src/vector_fp8/ops.rs:323-452 \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-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"dacab37f3d9675d78f2370e8956e6f7b07b8321b62de36be24455ac5b19bc426"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (47 shared lines): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7206-7272 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7665-7747 \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":7206}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf375ac6ff7a3d2188ef0fdd3587211fd80a49796b86609712ed2d265f8a102b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (47 shared lines): mistralrs-core/src/moe/experts/mod.rs:107-188 | mistralrs-core/src/moe/experts/mod.rs:199-259 \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":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca9dcdc436524d7ec39b92d060d5bc4f1fbf887cef0fadfa6f67985fd079c0bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (44 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: 44 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":"023f9151e688c0dca4c77d51670b6dd4433fd7ed2eb2db5d29f31a79da2ece28"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (42 shared lines): mistralrs-core/src/models/granite.rs:2178-2342 | mistralrs-core/src/models/lfm2.rs:1176-1306 \u2014 These two members are variants of one another: 42 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/granite.rs"},"region":{"startLine":2178}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6da70b6e307e2ce571c9259a4797fcd299106a677ca08db2105bce7b2da0e7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (40 shared lines): mistralrs-server-core/src/anthropic.rs:1823-1912 | mistralrs-server-core/src/chat_completion.rs:1126-1225 \u2014 These two members are variants of one another: 40 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":1823}}}],"partialFingerprints":{"codehealthFindingId/v1":"a88d490df9805a428ddc26bbf410d6ab1986999410631887383f11a5eadf697d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (39 shared lines): mistralrs-quant/src/cutile/fp8_w8a16.rs:808-874 | mistralrs-quant/src/cutile/fp8_w8a8.rs:827-908 \u2014 These two members are variants of one another: 39 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":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"924ac198d4a68d87e34e4bbcde1c0ec593322b9c0ce995406e207f743c9082cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (37 shared lines): mistralrs-core/src/models/llama.rs:346-469 | mistralrs-core/src/models/mistral.rs:415-566 \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-core/src/models/llama.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"3526376c536eaaa39cb79f2c5660b01fdec20537b7d75c2d3940829fa5a302f3"}},{"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 (37 shared lines): mistralrs-quant/src/lib.rs:2460-2593 | mistralrs-quant/src/lib.rs:2603-2757 \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-quant/src/lib.rs"},"region":{"startLine":2460}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf91aad5f9d923d978cf1bb742d384157d47ca1f018509d0470f6acf47ddef9"}},{"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-core/src/layers.rs:870-933 | mistralrs-core/src/layers.rs:2203-2257 \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-core/src/layers.rs"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbfd0de6d1eaa103241b1735209ab9d7b80f132c5c8fbef964860e62c59999e3"}},{"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:2023-2129 \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 (34 shared lines): mistralrs-core/src/models/phi3.rs:408-533 | mistralrs-core/src/vision_models/phi4/mod.rs:331-439 \u2014 These two members are variants of one another: 34 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/phi3.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"a475bff6d01bd676b68e7b46f9d0c5ebd201e95223cefda659b53a64ac08b626"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (32 shared lines): mistralrs-core/src/models/phi3.rs:408-533 | mistralrs-core/src/vision_models/gemma3/text.rs:433-582 \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/phi3.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"372f09aad918f0b64c31d05be8697eb5715ba39f0a8590df4a681b83508cf569"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (32 shared lines): mistralrs-quant/src/distributed/mod.rs:549-658 | mistralrs-quant/src/distributed/mod.rs:695-807 \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":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d04f748526962318319198b584a95ae5dd27c1ea686a571c2459fc1067241e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (32 shared lines): mistralrs-core/src/models/qwen3_next.rs:631-703 | 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":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c4ce45c7f1e57578685375421834fe1b272ac6a849da6705df42a6ffa829f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (32 shared lines): mistralrs-quant/src/distributed/layers.rs:935-1021 | mistralrs-quant/src/distributed/layers.rs:1414-1505 \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/layers.rs"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"7def232bfef36b4b9b67ae95a2537b327861b7c7cc1b526a3b73dbfd5cc555a2"}},{"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 (32 shared lines): mistralrs/src/model.rs:347-416 | mistralrs/src/model.rs:434-502 \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/src/model.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"198c22370817b7d165e2d062e839d06800aed600abc93ed5b920a685e6841339"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (30 shared lines): mistralrs-quant/src/gguf/cuda.rs:646-693 | mistralrs-quant/src/gguf/cuda.rs:709-753 \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":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f29fb64be040e08daa08b7672c97fc5febe801f1900ee3e2c766a2c9ad44ccf"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (29 shared lines): mistralrs-core/src/vision_models/gemma3/text.rs:183-303 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:194-294 \u2014 These two members are variants of one another: 29 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/gemma3/text.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"12afe6ae2825a8b05ffd2ec95921f2e73c31899e1c1047cd099df03bda4a12cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (29 shared lines): mistralrs-core/src/vision_models/gemma3/text.rs:183-303 | mistralrs-core/src/vision_models/qwen2vl/text.rs:195-295 \u2014 These two members are variants of one another: 29 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/gemma3/text.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"c26852ebc4a29d1d4f65f9ec6c5fe5c7091dc47b0f259bab8e3d432abb3a9408"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (29 shared lines): mistralrs-core/src/vision_models/gemma3/text.rs:183-303 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:194-287 \u2014 These two members are variants of one another: 29 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/gemma3/text.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"2130ea6d07e006edc9506c1af874ef0159f58b12021517b64ae5db8f895fa2f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (29 shared lines): mistralrs-core/src/vision_models/gemma3/text.rs:183-303 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:300-390 \u2014 These two members are variants of one another: 29 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/gemma3/text.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2a3a227f28f3f75dbc223416155898316f503d254cf902d7215cbd1a19931f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (20 shared lines): mistralrs-core/src/cuda/gdn.rs:5512-5600 | mistralrs-core/src/cuda/gdn.rs:5750-5834 \u2014 These two members are variants of one another: 20 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":5512}}}],"partialFingerprints":{"codehealthFindingId/v1":"baea444d706fffdabdd1f663bfab278866b795c9806bc259867377114cce3059"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:393-432 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:357-396 \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/vision_models/qwen2_5_vl/vision.rs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fe3b5f1d90b6405f988e2559820273c7660a743371504c1a555fe01eadab9c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): mistralrs-pyo3/src/lib.rs:1000-1399 | mistralrs-server-core/src/mistralrs_for_server_builder.rs:1415-1451 \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":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"147683496d14e0f61ebd89f78a6f3928852a57dd9754d7dfc9c7c7ba99ce71eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): mistralrs-core/src/models/granite.rs:1452-1498 | mistralrs-core/src/models/granite.rs:1743-1785 \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":1452}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60c53dd37fcdacb06b190851c4c27f7d51107b769cc93c3329ce00a999783c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): mistralrs-core/src/vision_models/gemma3/text.rs:183-303 | mistralrs-core/src/xlora_models/starcoder2.rs:209-287 \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/gemma3/text.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"d223d72d391b94ef4c49f5c2d0886dad092389e9fc59d84f6b2b62579bb8d761"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): mistralrs-quant/src/safetensors.rs:247-265 | mistralrs-quant/src/safetensors.rs:287-322 \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":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"b423e6f8a9d0f4cb503c354604e5b49d86376e287868bfa6cfc58ad6d53800eb"}},{"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 (18 corresponding lines): mistralrs/src/messages.rs:514-531 | mistralrs/src/messages.rs:1196-1223 \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/src/messages.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee9216215589f5577a27ef4d52117637d7b0af7686ba47164274a48b63e4720"}},{"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 (21 corresponding lines): mistralrs-core/src/layers.rs:3861-3887 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:100-124 \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/layers.rs"},"region":{"startLine":3861}}}],"partialFingerprints":{"codehealthFindingId/v1":"98687ce61fc4fb7faf0d72d141b4b20f6d99b1fd20f9c19d6859fc72744afdc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (25 members, 50\u002B identical tokens): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:878-943 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3529-3630 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4248-4322 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4634-4695 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5024-5102 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:699-722 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1123-1146 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1351-1374 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1568-1591 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1775-1798 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1979-2002 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2630-2653 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2900-2922 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3206-3228 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3452-3474 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3654-3676 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3878-3900 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4096-4118 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4350-4372 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4649-4671 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4911-4933 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5133-5156 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5347-5370 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5580-5603 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5821-5844 \u2014 These 25 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 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/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3d51760ff36321380cb2b2eefb3f8a39277375e45417e5577ff2bb5d883b7b"}},{"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":"75ab8fa816a79a1cdec3c2308acdb4ddc9025426306a78f983b79534a5c8d23b"}},{"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:420-433 | mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:612-625 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1091-1104 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1457-1470 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1750-1763 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2446-2459 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3779-3792 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4119-4132 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4504-4517 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5279-5313 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8219-8239 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9406-9421 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:643-656 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:856-869 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1067-1080 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1919-1936 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2138-2151 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3396-3409 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3600-3611 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3803-3824 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4839-4857 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5077-5090 \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":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f35437037718b883b199e31b7995f8eaad663d89bd873b0a48deded730c0431"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (14 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/gemma4/inputs_processor.rs:1039-1699 | 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/lfm2_vl/inputs_processor.rs:660-789 | mistralrs-core/src/vision_models/llama4/inputs_processor.rs:406-613 | mistralrs-core/src/vision_models/minicpmo/inputs_processor.rs:311-585 | 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/qwen2_5_vl/inputs_processor.rs:366-973 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:932-1538 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1033-1667 | mistralrs-core/src/vision_models/voxtral/inputs_processor.rs:209-363 \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/vision_models/gemma3/inputs_processor.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f9b41e63bdf3cb31071ec6306c0ee325104252191817e6cd7275f7a1789d63c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (13 members, 50\u002B identical tokens): mistralrs-core/src/models/deepseek2.rs:951-976 | mistralrs-core/src/models/deepseek3.rs:1014-1039 | mistralrs-core/src/models/gemma.rs:463-489 | mistralrs-core/src/models/glm4.rs:576-603 | mistralrs-core/src/models/glm4_moe.rs:830-854 | mistralrs-core/src/models/glm4_moe_lite.rs:967-991 | 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:589-617 | mistralrs-core/src/models/mixtral.rs:526-554 | mistralrs-core/src/models/phi2.rs:542-567 | mistralrs-core/src/models/qwen3.rs:540-568 | mistralrs-core/src/models/qwen3_moe.rs:723-752 \u2014 These 13 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 13 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/deepseek2.rs"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c752412fe793c5917b2b65b971f38c1663ec7cdc5efc9e039f00db118df38c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (13 members, 50\u002B identical tokens): mistralrs-core/src/models/gemma.rs:311-323 | mistralrs-core/src/models/gpt_oss.rs:681-694 | mistralrs-core/src/models/hunyuan_v1_dense.rs:338-350 | mistralrs-core/src/models/hunyuan_v1_moe.rs:828-840 | mistralrs-core/src/models/mistral.rs:359-371 | mistralrs-core/src/models/mixtral.rs:368-381 | mistralrs-core/src/models/phi3.rs:372-384 | mistralrs-core/src/models/phi3_5_moe.rs:443-455 | mistralrs-core/src/models/qwen3.rs:344-356 | mistralrs-core/src/models/qwen3_moe.rs:521-533 | mistralrs-core/src/models/starcoder2.rs:368-380 | mistralrs-core/src/vision_models/phi3/mod.rs:463-475 | mistralrs-core/src/vision_models/phi4/mod.rs:293-305 \u2014 These 13 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 13 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"549b61300ae022cac9e29239a9c62e6df850e6c1bb2558a875a9e6e948f42897"}},{"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:1037-1263 | mistralrs-core/src/ops.rs:1279-1470 | mistralrs-core/src/ops.rs:1491-1699 | mistralrs-core/src/ops.rs:1704-1994 | mistralrs-core/src/ops.rs:4113-4179 | mistralrs-core/src/ops.rs:4264-4384 | mistralrs-core/src/ops.rs:5169-5471 | mistralrs-core/src/ops.rs:5598-5916 | mistralrs-core/src/ops.rs:5934-6234 \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":"e8386b08e3309ce13d88731a8e3b945bc495929ba33d59abf36b0d677f6fde57"}},{"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/gemma4/inputs_processor.rs:1039-1699 | 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/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/minicpmo/inputs_processor.rs:311-585 | 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/phi3/phi3_inputs_processor.rs:296-567 | 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":"7874b3f2c42dbf93129833f829823604bc47f127318e60b0bd869b7de93d6f1b"}},{"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 (8 members, 50\u002B identical tokens): mistralrs-core/src/xlora_models/gemma.rs:425-564 | mistralrs-core/src/xlora_models/gemma2.rs:460-600 | mistralrs-core/src/xlora_models/llama.rs:530-667 | mistralrs-core/src/xlora_models/mistral.rs:425-562 | mistralrs-core/src/xlora_models/mixtral.rs:555-692 | mistralrs-core/src/xlora_models/phi2.rs:402-531 | mistralrs-core/src/xlora_models/phi3.rs:392-512 | mistralrs-core/src/xlora_models/starcoder2.rs:414-545 \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":"1694e070819f9e775edb4295da07d30b7647ab6fc247f2a88c86b19a5fc1bdfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): mistralrs-quant/src/cutile/fp8_gemm.rs:290-448 | mistralrs-quant/src/cutile/fp8_w8a16.rs:503-755 | mistralrs-quant/src/cutile/fp8_w8a8.rs:514-751 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:880-1033 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:252-501 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1159-1372 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1382-1708 \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/fp8_gemm.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd68071fe38cd14f2dafcc0b70d2312339233054f528e570b0e0e4dee1d5f06"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): mistralrs-quant/src/cutile/fp8_gemm.rs:61-100 | mistralrs-quant/src/cutile/fp8_w8a16.rs:54-87 | mistralrs-quant/src/cutile/fp8_w8a16.rs:107-139 | mistralrs-quant/src/cutile/fp8_w8a16.rs:159-192 | mistralrs-quant/src/cutile/fp8_w8a16.rs:212-244 | mistralrs-quant/src/cutile/fp8_w8a8.rs:58-95 | mistralrs-quant/src/cutile/fp8_w8a8.rs:116-153 \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/fp8_gemm.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"31af1450d4cf69758075fa6855a5f8c4620406b9c1cd94b6c3934fe00ebfb62f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): mistralrs-core/src/layers.rs:835-858 | mistralrs-core/src/layers.rs:1997-2016 | mistralrs-core/src/layers.rs:2171-2194 | mistralrs-core/src/layers.rs:3031-3050 | mistralrs-core/src/layers.rs:3164-3183 | mistralrs-core/src/vision_models/gemma4/text.rs:116-144 \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/layers.rs"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8e9509e3af94b9da0917f22c9cb3920deb99f6c189baef1adc25b9f428a97f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): mistralrs-core/src/pipeline/diffusion.rs:132-255 | mistralrs-core/src/pipeline/embedding.rs:232-713 | mistralrs-core/src/pipeline/gguf.rs:1201-1419 | mistralrs-core/src/pipeline/multimodal.rs:540-1548 | mistralrs-core/src/pipeline/normal.rs:643-1482 | mistralrs-core/src/pipeline/speech.rs:247-336 \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":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eef8c7e04f137abca669fae11ebfd83500169bb19a74a4ad37d789eaac72468"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): 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 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/vision_models/llava/llava_llm/llama.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e748b5e5e52b2d79a8c223e9c1ac97f480b4ce8dcabc58a1768a7b69a246d12"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 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:450-494 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:439-483 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:1037-1081 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:466-510 \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/vision_models/qwen2_5_vl/mod.rs"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"236c094893351f16a084b45abf54817be5446f0c0dfa0609846947152968dd4f"}},{"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 (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:890-903 | mistralrs-core/src/gguf/qwen_multimodal_bindings.rs:291-307 | mistralrs-quant/src/gguf/archive.rs:1265-1281 \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":"9e0e1bd6453b96cfc3a3990e0761b810921037fe12a6da784beca0f932747987"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): mistralrs-core/src/ops.rs:2117-2267 | mistralrs-core/src/ops.rs:3862-3982 | mistralrs-core/src/ops.rs:3989-4106 | 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":2117}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f5db2f7966d0e9c911f20c7f60b10938790ada8f9f72023b048cf3fb0f0dc6f"}},{"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:2470-2501 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6220-6252 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6622-6654 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7042-7070 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7501-7529 \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":2470}}}],"partialFingerprints":{"codehealthFindingId/v1":"18bf93101a2d7e72b4ae1e72cdcc00626fe83b88cb33fa61bb9fa7e44000b2a2"}},{"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:3874-3943 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6296-6385 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6698-6787 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7112-7198 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7571-7657 \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":3874}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e7a5a18b3204ae1dc1755df7be8946d539dd05a3c24aee0c56c9e03e026fab"}},{"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-core/src/metal/gdn.rs:119-194 | mistralrs-core/src/metal/gdn.rs:229-298 | mistralrs-core/src/metal/gdn.rs:330-480 | mistralrs-core/src/metal/gdn.rs:509-573 | mistralrs-core/src/metal/ssm.rs:126-215 \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/metal/gdn.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"42429ed440d206bcfa3cb391d187323172d271e37a7a1264de8efa47e208b38e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): mistralrs-core/src/gguf/gemma3_bindings.rs:149-192 | 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":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"202e3b94551129dca57566931bb94fb796b13f010b79e59f0b463b785dd87946"}},{"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:772-804 | mistralrs-quant/src/cutile/fp8_w8a8.rs:768-823 | mistralrs-quant/src/cutile/fused_moe.rs:791-848 | 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":"10b7a25f6efa4f5670763e646334097244c577155c8208de4671da9e156f0054"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): mistralrs-quant/src/gguf/fast_mmq.rs:528-635 | mistralrs-quant/src/gguf/fast_mmq.rs:642-759 | mistralrs-quant/src/gguf/fast_mmq.rs:838-1008 | mistralrs-quant/src/gguf/fast_mmq.rs:1025-1180 | mistralrs-quant/src/gguf/fast_mmq.rs:1301-1499 \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/gguf/fast_mmq.rs"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e2406f0dfbabb6d2ae6511eade9e4ca619f1434b7fd0f12d55526cafbfb4d26"}},{"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 (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/layers.rs:1078-1183 | mistralrs-core/src/layers.rs:1190-1273 | mistralrs-core/src/layers.rs:1280-1357 | mistralrs-core/src/layers.rs:1437-1542 \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/layers.rs"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef377e11a849ca5236a53450fd83ddd3ada8eff6545e728cc9d4a0691ac4c5c0"}},{"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-791 | mistralrs-core/src/models/deepseek3.rs:842-854 | mistralrs-core/src/models/glm4_moe.rs:679-691 | mistralrs-core/src/models/glm4_moe_lite.rs:789-801 \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":"55cf345842fb8372f74f32d10abecc187f12fef4e04f5d43a89c4948a13465cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-core/src/models/granite.rs:1627-1691 | 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":1627}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8fbad93cf531981783554a219d7172e071f5ee6c71f0468a7b99ce396e5ab12"}},{"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:543-575 | 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":"394b7eb28db3d6661ae4b610ab51a3661ceb7247462d4add7e0f12a1b86ccfde"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-core/src/models/llama.rs:520-531 | mistralrs-core/src/models/smollm3.rs:539-550 | mistralrs-core/src/vision_models/llama4/text.rs:1014-1025 | 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":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"06bafd258dee88e80b5e36b3b6fa8677627567d708c37fd5dfab83d94040e01b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-core/src/pipeline/cuda_graph.rs:3437-3447 | mistralrs-core/src/pipeline/cuda_graph.rs:3455-3465 | mistralrs-core/src/pipeline/cuda_graph.rs:3474-3484 | mistralrs-core/src/pipeline/cuda_graph.rs:3493-3503 \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":3437}}}],"partialFingerprints":{"codehealthFindingId/v1":"531ae2437ddbd7f2d5f7325e0845416b6aecc2068f8090639ad859e9d1ec3524"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2884-2956 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3198-3263 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3529-3630 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4248-4322 \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/multimodal_loaders.rs"},"region":{"startLine":2884}}}],"partialFingerprints":{"codehealthFindingId/v1":"738f85f0cd14576af4ddb134e073ec563ab0c440078f5715be767d5b39e84b08"}},{"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:2782-2845 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3088-3151 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4237-4295 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4538-4594 \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":2782}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce549155edfc1d9a3d60a5ec99e60460888bba81b55d43641affdf23423bc827"}},{"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:2930-3011 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3236-3317 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4380-4461 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4679-4759 \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":2930}}}],"partialFingerprints":{"codehealthFindingId/v1":"6663bf0050284dfcd4275149240d1eb1fca17b43b1858f2f6f3751373efd9cab"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-core/src/sampler.rs:1163-1190 | mistralrs-core/src/sampler.rs:1199-1270 | mistralrs-core/src/sampler.rs:1649-1739 | mistralrs-core/src/sampler.rs:1858-1885 \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":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ca8604176757157fb0b75c96e8593792907402506a248d5ea2863a0cfa5b80"}},{"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:272-380 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:125-350 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:691-916 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:783-1017 \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":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"160956d23ce85a9d8869932b9a9f77cf443d97384de2096de8ea5149f81036a3"}},{"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:1094-1111 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:523-540 \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":"e9f4fcf8e4fee8db207c0d79dde83d5fb333a251df03cd83f5ed9be84b75d577"}},{"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/flash_attn_sinks.rs:25-122 | mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:163-278 | mistralrs-quant/src/utils/ops.rs:2229-2374 | mistralrs-quant/src/utils/ops.rs:2453-2544 \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/flash_attn_sinks.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc648b497a5f8523ac459d233043eb00f6de7cd54c32a5dd1e2b2e96e0c549a9"}},{"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:59-85 | mistralrs-quant/src/gguf/cuda.rs:102-124 | mistralrs-quant/src/gguf/fast_mmq.rs:344-368 | mistralrs-quant/src/gguf/fast_mmvq.rs:86-112 \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":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9bbf4535e19b5a66826db6599aea9f0cb4487a6aeb8cd4b7e9c6b311a1196df"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-pyo3/src/lib.rs:1407-1777 | mistralrs-pyo3/src/lib.rs:1891-1993 | mistralrs-pyo3/src/lib.rs:2368-2738 | mistralrs-pyo3/src/lib.rs:2745-2847 \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-pyo3/src/lib.rs"},"region":{"startLine":1407}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c94e6bf0df035b9cdbaccfb2ae75fb61d510a85b436a89a8126fc316bcbc96f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-quant/src/blockwise_fp8/mma.rs:134-181 | mistralrs-quant/src/blockwise_fp8/ops.rs:778-890 | mistralrs-quant/src/blockwise_fp8/ops.rs:1624-1719 | mistralrs-quant/src/cutile/nvfp4_glu.rs:421-593 \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":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e4acba54e41aaea523e5aaf3de197419e5e6df776b5e45d1727889e9f6e8a3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-quant/src/cutile/fp8_gemm.rs:157-169 | mistralrs-quant/src/cutile/fp8_w8a16.rs:336-348 | mistralrs-quant/src/cutile/fp8_w8a8.rs:292-304 | mistralrs-quant/src/cutile/mod.rs:332-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-quant/src/cutile/fp8_gemm.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"74508a112f5354e760909f3f8a62675e802b342b19a3805612863934405d6a34"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-quant/src/cutile/fused_moe.rs:59-415 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:73-448 | mistralrs-quant/src/cutile/gdn_prefill.rs:231-433 | mistralrs-quant/src/cutile/routed_lora.rs:99-489 \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/fused_moe.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aa2d051d7d453e19d32dfac8df473cb5fbc562344e86d97b0366175acaf3a63"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): mistralrs-quant/src/distributed/layers.rs:811-924 | mistralrs-quant/src/distributed/layers.rs:1300-1387 | mistralrs-quant/src/distributed/layers.rs:1966-2035 | mistralrs-quant/src/distributed/layers.rs:2131-2265 \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":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"606b0e28c174b3c3ee96024cbd9653b1a2d62ba008d862be66aff7bf0b96daf2"}},{"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/afq/ops.rs:133-220 | mistralrs-quant/src/afq/ops.rs:229-321 | mistralrs-quant/src/afq/ops.rs:352-630 | mistralrs-quant/src/afq/ops.rs:786-891 \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":"2b62c7a5c7837df1ecfd948ce2c0bacc35b408ef61e23f0bbaf5c8f0471c9f88"}},{"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":"Duplicated block (110 lines \u00D7 2): mistralrs-core/src/pipeline/mod.rs:2176-2285 | mistralrs-core/src/pipeline/mod.rs:2822-2931 \u2014 both copies are in the same file, so extract the block 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":2176}}}],"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:264-351 | mistralrs-core/src/vision_models/qwen3_5_moe/config.rs:69-156 \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/config.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"56af22a2d9f4031d9d565d774cd2e61335be1ec2041b4020c74427bcd69f2a23"}},{"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 653 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":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"a00ff0ddf3383f75ad505115bebc15b8333749210c217edf542801a529c123f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (76 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:444-519 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1052-1127 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1112-1187 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"242876e4fda5184875bb9107ac6fa7a994188b39436f3872914d1d118e322bbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201368 lines \u00D7 5): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3926-3929 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6298-6365 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6700-6767 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7114-7179 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7573-7638 \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/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":3926}}}],"partialFingerprints":{"codehealthFindingId/v1":"fac01ee5c95879ef2b8ca298bd87e651533ca93a11513d0191a65ee6379d21d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (67 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:818-884 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1383-1449 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1502-1568 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"c06490be4e95de8d957b48da61e3a878083d9ec81760b91dc9007247d7239ccc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (67 lines \u00D7 2): mistralrs-core/src/models/deepseek2.rs:414-480 | mistralrs-core/src/models/deepseek3.rs:415-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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c9e6d83bac1dc372230082be9c9f45f21c19d20374e7ea6a884ba51acdf7fc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (67 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_vl/mod.rs:904-970 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:349-415 \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 28 separate duplicated blocks between them, totalling at least 500 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/mod.rs"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff9fe4bc2b1493418b8c7f9abd688db5da4c849a17d421f8354306a1c3e433dc"}},{"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:102-166 | 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 362 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/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:1099-1163 | mistralrs-core/src/pipeline/normal.rs:1130-1194 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2576af27fa9c293acdd98172441d3ed20a5b25490b8758b1d45b135b6b3624d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (63 lines \u00D7 2): mistralrs/src/messages.rs:417-479 | mistralrs/src/messages.rs:912-974 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs/src/messages.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0b835bf592694c55fb0a047ad893c70f4ccfe76aca92a2a1329a2300c79e24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (61 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmq.rs:914-974 | mistralrs-quant/src/gguf/fast_mmq.rs:1399-1459 \u2014 both copies are in the same file, so extract the block 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":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"12aab2dc4399b2612a80d11f72532c045c5e641b660a0e941bf1b21404e64d8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (60 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:188-247 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:345-404 \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 19 separate duplicated blocks between them, totalling at least 362 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":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"54241c0a3ca1a639d797e3da012c233e493d192a38f6d8eba4113abd668fc364"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (58 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:165-222 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:731-788 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:826-883 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"45a178b5c980a506288cf68c0d7a8ef33a4b34163843976f17b9a2e3517fbed2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (57\u201358 lines \u00D7 3): mistralrs-quant/src/blockwise_fp8/mod.rs:957-1014 | mistralrs-quant/src/pertensor_fp8/mod.rs:547-603 | mistralrs-quant/src/vector_fp8/mod.rs:127-183 \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 9 separate duplicated blocks between them, totalling at least 217 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/mod.rs"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"830bb8eca5ea1d2089e3a48bb61bfd671a915eb1077eff6249743fbf48acf433"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (56\u201358 lines \u00D7 3): mistralrs-quant/src/blockwise_fp8/mod.rs:1019-1076 | mistralrs-quant/src/pertensor_fp8/mod.rs:608-663 | mistralrs-quant/src/vector_fp8/mod.rs:188-244 \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 9 separate duplicated blocks between them, totalling at least 217 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/mod.rs"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e2fd98b33f8a50f45c9102c0652e71aa4c26b266f4278b91109cf098b32bdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (58 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2932-2989 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3238-3295 \u2014 both copies are in the same file, so extract the block 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":2932}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d0c5e377fbadcb2bd77057f00847e6b4140d35c32203ba390c293e71c4b3a80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (58 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:362-419 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:478-535 \u2014 \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_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 52 separate duplicated blocks between them, totalling at least 1117 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/qwen2vl/inputs_processor.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"485a7a955d556cf96db79bc1681cdc85d6284a98eee4824c018db1ba7cc74ec7"}},{"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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf624b0bdbf24658b233b9a77e39eb8027ef55c7897e32463cf45224a4743715"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (54 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2792-2845 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3098-3151 \u2014 both copies are in the same file, so extract the block 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":2792}}}],"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."},"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 (53 lines \u00D7 4): mistralrs-core/src/vision_models/qwen3_5/mod.rs:320-372 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:305-357 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:858-910 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:303-355 \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 23 separate duplicated blocks between them, totalling at least 408 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":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"c438f6e9dca54d0f43fe41ecb1e1998d5c4ecb3804da55ed3ba829c84954583b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 7): mistralrs-core/src/xlora_models/gemma.rs:641-690 | mistralrs-core/src/xlora_models/gemma2.rs:696-745 | mistralrs-core/src/xlora_models/llama.rs:469-518 | mistralrs-core/src/xlora_models/mistral.rs:641-690 | mistralrs-core/src/xlora_models/mixtral.rs:771-820 | mistralrs-core/src/xlora_models/phi2.rs:607-656 | mistralrs-core/src/xlora_models/starcoder2.rs:626-675 \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 491 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"35bfc0dcb67fd873144e0160f2238430206f4834d08c4ad3215a9e2fabf990c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 3): mistralrs-core/src/models/llama.rs:640-689 | mistralrs-core/src/models/smollm3.rs:659-708 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:655-704 \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 50 separate duplicated blocks between them, totalling at least 696 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":640}}}],"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 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6d67e9cce2db91063dde5952bab363778e8a7716d4477e69be32fc60ddc0df"}},{"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:528-577 \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 13 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. If that is what happened, the fix is to keep one copy and have the other 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":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"078d6fa768ebe7cb8742ee22cc711c61982588d0e512d8f2a4e457666dec11e4"}},{"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 23 separate duplicated blocks between them, totalling at least 295 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/qwen2.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02ea2cd896118f04fc49335e06fd3d198b5205671bbf9de5065446466f61d3f"}},{"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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":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 43 separate duplicated blocks between them, totalling at least 573 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"f63690cf9d320b22c218e7e0b2b6873f6fa2d04086d049f5e6f9eac1ce391fbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 2): mistralrs-paged-attn/src/metal/kernels/mod.rs:403-450 | mistralrs-paged-attn/src/metal/kernels/mod.rs:546-593 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/metal/kernels/mod.rs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a411b42cabf02a657e27e571f89fbfcdc7692259899621987eb00068bbcd39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47 lines \u00D7 2): mistralrs-core/src/models/deepseek2.rs:169-215 | mistralrs-core/src/models/deepseek3.rs:170-216 \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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2fa84aab49c56a86f41cf8e3643717984b0493418fc4d3030a579afc9f6327a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45\u201346 lines \u00D7 2): mistralrs-mcp/src/client.rs:464-508 | mistralrs-mcp/src/client.rs:618-663 \u2014 both copies are in the same file, so extract the block 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/client.rs"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc6e7b1179f3fe6e19ca9015b69cdcdbc48c041eeda030e2efb7a1790a4c8eb"}},{"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 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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 (45 lines \u00D7 2): mistralrs-core/src/models/deepseek2.rs:241-285 | mistralrs-core/src/models/deepseek3.rs:242-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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"527f2372d754ad4a7ceb82ada8b80d6927549f83532e1d12bf06d9711a3e9893"}},{"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 42 separate duplicated blocks between them, totalling at least 550 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/mistral.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"d05032ccda727504f62d389a027a21030b4fffe1f4fa82e7ebb2c00919874341"}},{"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 27 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."},"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:2687-2729 | mistralrs-core/src/pipeline/normal.rs:2416-2459 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":2687}}}],"partialFingerprints":{"codehealthFindingId/v1":"395d5d611be34ba87359bc259e9658bf3b00c27e49c9e0afceed5aeb63307798"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43\u201344 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:292-335 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:449-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 19 separate duplicated blocks between them, totalling at least 362 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":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"545e129cd0d0a1b817a3f337a5c6b9938771e3abecca66e385fbc887e20abdf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:457-500 | mistralrs-core/src/vision_models/qwen2vl/text.rs:459-502 \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 43 separate duplicated blocks between them, totalling at least 650 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/text.rs"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ecb4942f313eedd218739e986530e9d8f34b5505895b3c0519c19ed99b3cc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4253-4295 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4552-4594 \u2014 both copies are in the same file, so extract the block 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":4253}}}],"partialFingerprints":{"codehealthFindingId/v1":"6406e52ffc1999dc972ae28020f11305e877b6c9a29cd6b6473562c0bb98e264"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:917-959 | mistralrs-core/src/pipeline/normal.rs:899-941 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2cdb641c2a531d57cf671968e209e6cde9319aa313e077c680724251ab51df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2013-2055 | mistralrs-core/src/pipeline/normal.rs:1844-1886 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":2013}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f1afa09f74e00423bbef45dbc959020480454be2e72d4e626b32cb75164305"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1022-1063 | mistralrs-core/src/pipeline/normal.rs:1027-1068 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbf6607837092b917142a1c56a6f4265361e8303cfaf369bdb6d9a9fa9333c41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1424-1465 | mistralrs-core/src/pipeline/normal.rs:187-228 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1424}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2898b9ab2e5be5fc3cadaaae1ab83ca14add9ee4a195486932eb9b447696db9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): mistralrs-core/src/vision_models/phi3/mod.rs:270-311 | mistralrs-core/src/vision_models/phi4/mod.rs:139-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 47 separate duplicated blocks between them, totalling at least 548 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":270}}}],"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:152-192 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:137-177 \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 23 separate duplicated blocks between them, totalling at least 408 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":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"b305755a0f6bce69cd5f9569e74b7a09e7def49500fa71fcec075c4c31fb586d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/text.rs:1257-1297 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:561-601 \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 416 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":1257}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba2786cc68733a9227355b2a3bc4946b2230f70c424455e62a1f62abe851dde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201340 lines \u00D7 10): mistralrs-core/src/models/gemma.rs:611-650 | mistralrs-core/src/models/gemma2.rs:727-766 | mistralrs-core/src/models/glm4.rs:727-766 | mistralrs-core/src/models/hunyuan_v1_dense.rs:699-738 | mistralrs-core/src/models/mistral.rs:739-778 | mistralrs-core/src/models/qwen2.rs:741-780 | mistralrs-core/src/models/qwen3.rs:698-737 | mistralrs-core/src/vision_models/gemma3/text.rs:953-992 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:702-741 | mistralrs-core/src/vision_models/muse_glimmer/text.rs:705-743 \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 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/gemma.rs"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e0463e3dcae6403ae2f196d09dff0d8b4ad2e8205a216d97fa42a71dc8be4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:679-718 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1288-1327 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1353-1392 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a2a89e975fee541097b1f33211a49840e93615f8b4f41c2949512aa33621d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): mistralrs-cli/src/commands/config.rs:170-209 | mistralrs-cli/src/commands/serve.rs:189-228 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/config.rs"},"region":{"startLine":170}}}],"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/cuda/speculative_rejection.rs"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e5494b57324c10aa2510275b73bd3aa648c5d8629ba82d54451a76fb2786ace"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): mistralrs-core/src/models/phi3.rs:684-723 | 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 48 separate duplicated blocks between them, totalling at least 605 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f89d1f20e47e2a551e21b2bb0f089c243d4442ed71dedec32aca03079d4451"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:868-907 | mistralrs-core/src/pipeline/normal.rs:850-889 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"b355f28d2fcea9b6b498583bb68e14253e4055f37ad0d45a703fa21d7b9bfa37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201340 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3/text.rs:793-832 | mistralrs-core/src/vision_models/gemma4/text.rs:2444-2473 \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 9 separate duplicated blocks between them, totalling at least 108 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":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"513c7f292b7d9ebbb399743517a57ce41321a553dee2ff89db9ec9a9b513bbca"}},{"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:513-552 \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 653 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."},"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 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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"1754a3a7afecad7d038e1d38177c474ac2ac91be29a2931b4d4fbde92e4ecacf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): mistralrs-core/src/models/phi3.rs:427-465 | 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 29 separate duplicated blocks between them, totalling at least 339 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/phi3.rs"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1c31007bf72adae07d7be2ce38e08e4b2dff671a6e9f1ceea6979ae9ee3f1f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): mistralrs-core/src/models/granite.rs:1461-1498 | mistralrs-core/src/models/granite.rs:1748-1785 \u2014 both copies are in the same file, so extract the block 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":1461}}}],"partialFingerprints":{"codehealthFindingId/v1":"dee8efa7a520c77a96bf37be27f8b9aafc55a368e1d4b7485ada22ff498e5d9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:791-828 | mistralrs-core/src/pipeline/normal.rs:775-812 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ab74f02d025a149a25a75a39c76283daa9a6e7e3bbf29e5633409367089840"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/text.rs:1352-1389 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:657-694 \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 416 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":1352}}}],"partialFingerprints":{"codehealthFindingId/v1":"604720fb382ce1da512ec7e7e65b37af318b37b83ae7bd1c7070c70fd3a09462"}},{"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-vision/src/pad.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79e43603531a04c9baa2f18e035e3b2b4b0b3fca5b353c76fd17d4a70d51120"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36\u201337 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:367-403 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:933-968 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1034-1069 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dac9854b82b0d0a7cbe13b695c06857fa775df3ce542b3b9b7eafd335ebb187"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): mistralrs-core/src/lora/loralinear.rs:37-73 | mistralrs-core/src/lora/qloralinear.rs:80-116 \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 7 separate duplicated blocks between them, totalling at least 142 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/lora/loralinear.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"18debb705e157968e161134c8b32d70b32caebc261263f96e69b7a86e28b7b9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): mistralrs-core/src/models/gemma.rs:401-437 | mistralrs-core/src/models/gemma2.rs:473-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 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/gemma.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f93e2b737b0eea1948a6dc830d031ccde04045a3ff6430f6ef18983580ec17"}},{"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 16 separate duplicated blocks between them, totalling at least 279 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":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed01a756db2676e025e5a7748964cd728db6d91165b02e9533ee1025690e447"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:254-290 | mistralrs-core/src/vision_models/qwen2vl/text.rs:255-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 43 separate duplicated blocks between them, totalling at least 650 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/text.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c54444b74f3218aac2938834c0dae824136dd4d46cf66751908d0ef7622b315"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36\u201337 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/text.rs:1986-2021 | mistralrs-core/src/vision_models/qwen3_5/text.rs:2058-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":1986}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bba5cdf96ef862e38cabe15a61ad73a589d6d5dea0e1b0be93b38bda187afee"}},{"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 24 separate duplicated blocks between them, totalling at least 385 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/gemma2.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82599afc1676edf422d3cce3bfffd6de3f036f172a7e77ac5eba56c31f82c98"}},{"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."},"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:157-192 | 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/gguf/gemma3_bindings.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c32683feea25d9d78b627c7028669676e4c791edb69c7f5c19f6a389c65be06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): mistralrs-core/src/pipeline/mod.rs:2105-2140 | mistralrs-core/src/pipeline/mod.rs:2681-2716 \u2014 both copies are in the same file, so extract the block 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":2105}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e83b2173ec5eb7a5696913ee818100bf89b0c2a106775a1d39b720122bca391"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201336 lines \u00D7 2): mistralrs-core/src/pipeline/normal.rs:1086-1120 | mistralrs-core/src/pipeline/normal.rs:1214-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/normal.rs"},"region":{"startLine":1086}}}],"partialFingerprints":{"codehealthFindingId/v1":"81cbc96ed4195af1fc13246c4deb4ba3e95306384ceb153b57ea5151f83c0b18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:519-554 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:688-723 \u2014 \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_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 52 separate duplicated blocks between them, totalling at least 1117 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/qwen2vl/inputs_processor.rs"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5948541cd4bf1df70855ddcfd06dfdef5c5e9c5acaeb03e59de4c2ebad9549d"}},{"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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb47810d73ef62b77e63042aa02263cf4020da5f2f2e9eb17a7826e07a09b93"}},{"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:121-155 \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 16 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbfe45a2e10de7ee8a8f3b60fee6b242114cc5e994179783ae6847633c9ad70b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): 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/hunyuan_v1_dense.rs\u0060 and \u0060mistralrs-core/src/models/hunyuan_v1_moe.rs\u0060 as WHOLE FILES: this scan already matched 53 separate duplicated blocks between them, totalling at least 686 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"d399eea96b07734b56932178a25d6a517bc2814133cb1ffc0e0a80272c12668b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): mistralrs-core/src/ops.rs:1519-1553 | mistralrs-core/src/ops.rs:1741-1775 \u2014 both copies are in the same file, so extract the block 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":1519}}}],"partialFingerprints":{"codehealthFindingId/v1":"c99652c99d267712d590291842a227acedd199308dd00f9a6d21616c292111c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): mistralrs-core/src/paged_attention/cache_engine.rs:282-316 | mistralrs-core/src/paged_attention/cache_engine.rs:336-370 \u2014 both copies are in the same file, so extract the block 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/cache_engine.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"50a23ae4872e0dd91647739cd49ab0558ee478b48dccb23ec8da6789d294348b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1566-1600 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1851-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1566}}}],"partialFingerprints":{"codehealthFindingId/v1":"e34e732c44179f11dfe9169bcb8485f36d667c6dd703db0d7c4698d4d5a80bca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201335 lines \u00D7 2): mistralrs-core/src/gguf/gemma3_bindings.rs:108-142 | 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":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"dea1b5ca80aceab6d816c5598ac193012d98e361192329c1aa0e8a39f96722a0"}},{"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."},"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/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 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1403-1436 \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 9 separate duplicated blocks between them, totalling at least 138 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/inputs_processor.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"0036468e646abf13d33c59becd5a35b0c49466759f47007b9693574f8f2a0280"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:527-560 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1135-1168 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1195-1228 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd300eede867ade6e9537524d955fab34357167e5666a10a2457ad97c24006b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): mistralrs/src/model_builder_trait.rs:680-713 | mistralrs/src/model_builder_trait.rs:1435-1468 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"189e5194fbd6f8c3ea6adb5dcf8acb636faf8f3d8befed528578fce43494c987"}},{"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."},"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:652-685 | mistralrs-core/src/ops.rs:799-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/ops.rs"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"374dea6677fbae4ea7d501954ad883d4368f826cbf7cf4aa924e8570973b37e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): mistralrs-core/src/pipeline/hf.rs:585-618 | mistralrs-core/src/pipeline/hf.rs:649-682 \u2014 both copies are in the same file, so extract the block 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/hf.rs"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"1171cf1a31fdde886a6a80672ca9c75f9878f9c4716ffe9680e98ad090638961"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/text.rs:1391-1424 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:696-729 \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 416 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":1391}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b84e0035d1209998dda0957a74ba128e7822202694b4b7fe176aa35a390eac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201333 lines \u00D7 4): mistralrs-core/src/models/granite.rs:1641-1672 | 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 20 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":1641}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa97b5905af6a254020326f739cb76c548a638e079d6e3fbcaa860769ba685b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 4): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2918-2950 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3225-3257 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3586-3618 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4282-4314 \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/loaders/multimodal_loaders.rs"},"region":{"startLine":2918}}}],"partialFingerprints":{"codehealthFindingId/v1":"de8723ab0032eb3004de648a15765e3633f53e1e78c74cf89be3995480e73dfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201333 lines \u00D7 4): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2984-3011 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3290-3317 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4429-4461 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4727-4759 \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/loaders/normal_loaders.rs"},"region":{"startLine":2984}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a0dc2b0d67f4141cbeab102f537565101b61a728bd3a48d40b340f5c23f936d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 4): mistralrs-core/src/vision_models/qwen3_5/mod.rs:451-483 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:440-472 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:1038-1070 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:467-499 \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 23 separate duplicated blocks between them, totalling at least 408 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":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"b44932a89a556333c52470c3c958e83d83ec03bcabec5741f0437d68cf521674"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1282-1314 | mistralrs-core/src/pipeline/normal.rs:1323-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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1282}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4cf32b43a88e5885861ca9bb19bd786528c5f5c367e61b55478348cb6fbd03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:3107-3139 | mistralrs-core/src/pipeline/normal.rs:2746-2778 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":3107}}}],"partialFingerprints":{"codehealthFindingId/v1":"5463bbb48be40a281dfe472d90e2e7f2452b26410e5cc57769b864395dfb7de3"}},{"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."},"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 10 separate duplicated blocks between them, totalling at least 157 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":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."},"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-core/src/vision_models/qwen3_vl/mod.rs:670-702 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:115-147 \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 28 separate duplicated blocks between them, totalling at least 500 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/mod.rs"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fbc7385834922839bbf94c4d010bcdc99a2bc82a6baf1f11c6a56355769ea7d"}},{"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."},"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:1570-1598 | 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:358-386 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:230-258 | 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 31 separate duplicated blocks between them, totalling at least 341 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"b52deb2be25c80e12384c982c494d2a6037dd7f823570344b89b5403f0365f71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201332 lines \u00D7 3): mistralrs-quant/src/blockwise_fp8/mod.rs:925-956 | mistralrs-quant/src/pertensor_fp8/mod.rs:521-546 | mistralrs-quant/src/vector_fp8/mod.rs:101-126 \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 9 separate duplicated blocks between them, totalling at least 217 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/mod.rs"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0214929c38a03dce1870ef5dd230b178f468125182ec60ea61a02bf84c51d55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 3): mistralrs-quant/src/gguf/fast_mmvq.rs:787-818 | mistralrs-quant/src/gguf/fast_mmvq.rs:842-873 | mistralrs-quant/src/gguf/fast_mmvq.rs:897-928 \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_mmvq.rs"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"4def84d2ae1a53a1d203d0e512bd370159609d2792d231bc81d7c842c6f90226"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 3): mistralrs-quant/src/afq/ops.rs:2050-2081 | mistralrs-quant/src/afq/ops.rs:2168-2199 | mistralrs-quant/src/afq/ops.rs:2288-2319 \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":2050}}}],"partialFingerprints":{"codehealthFindingId/v1":"d01a1163e17dc92cd5e962d773888e11549e40bb8b0f2d42096d72a8a29f6a37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): mistralrs-core/src/embedding_models/embedding_gemma.rs:404-435 | mistralrs-core/src/vision_models/gemma3/text.rs:464-495 \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 16 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"d730696ee7319faf51b83700af0a4d0d6c52592974302287c09f3bd43b4ed8dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): mistralrs-core/src/layers.rs:1606-1637 | mistralrs-core/src/layers.rs:1917-1948 \u2014 both copies are in the same file, so extract the block 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":1606}}}],"partialFingerprints":{"codehealthFindingId/v1":"c402fa4bbbbcd9511cfcc03d9765fbb584dfe6bd6be907d2cd0e97b0fb728fff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): mistralrs-core/src/model_loader.rs:690-721 | 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 10 separate duplicated blocks between them, totalling at least 156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"1259e53fca3a8f9a11fbad5d21fbc12e373c2eaccf703fefd54f43b200c572c1"}},{"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 48 separate duplicated blocks between them, totalling at least 605 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"f222f3263d93a7663f2287b2b8f8598eeb5dacfed8a2227cc94df86b1d7c206d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): mistralrs-core/src/ops.rs:1631-1662 | mistralrs-core/src/ops.rs:1894-1925 \u2014 both copies are in the same file, so extract the block 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":1631}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ca17c28c0e1385e81338283aae4ddd62450fe02e16770bc803a7e3ebfcce3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2905-2936 | mistralrs-core/src/pipeline/normal.rs:2582-2613 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":2905}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad76f5231c8d1078fdb7e668ed54472c4a2f2a31d985b93ba569eee71e4356d9"}},{"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."},"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 (32 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:258-289 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:415-446 \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 19 separate duplicated blocks between them, totalling at least 362 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":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc599a27d14c75897ae6b2ffa88994d76d20ce956beadc22cc72b0f6e1ae305"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_vl/text.rs:560-591 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:682-713 \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 653 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":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e9cd3737c650470854d2fbc321029612e7d43e2b203c9b4c14539cdabc4dc0b"}},{"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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":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:341-370 \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 27 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."},"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 (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 19 separate duplicated blocks between them, totalling at least 362 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":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad87b08e4b9df05db56620ca9428c42881b642a9fcd41723008f041d9a0b329"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): mistralrs-flash-attn/src/flash.rs:100-130 | mistralrs-flash-attn/src/flash.rs:667-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":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a195c6e98b0da5102abd547b4673fe16220ffcdba7c153be32a64fc6f78f569"}},{"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."},"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/pipeline/loaders/embedding_loaders.rs:505-534 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4340-4369 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:941-970 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2223-2252 \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 11 separate duplicated blocks between them, totalling at least 170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3d2353ff6a4be7c1775d3ddd6be76bc7b1ddfa4d71b9b7c07285228115117a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): mistralrs-core/src/lora/loralinear.rs:211-240 | mistralrs-core/src/lora/qloralinear.rs:260-289 \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 7 separate duplicated blocks between them, totalling at least 142 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"57555615eb68420b69abc631b19c26fcf4f19e4007d09e79bb2915b8699d0212"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201330 lines \u00D7 2): mistralrs-core/src/models/glm4_moe.rs:455-479 | mistralrs-core/src/models/glm4_moe_lite.rs:553-582 \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 43 separate duplicated blocks between them, totalling at least 573 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"38944bdcb1c6f65e3c8389ef1e012f15e03fa2acf194f4049acb035699fe308b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201330 lines \u00D7 2): mistralrs-core/src/models/qwen3_next.rs:482-511 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:384-410 \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 27 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."},"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 (27\u201330 lines \u00D7 2): mistralrs-core/src/moe/experts/backends.rs:896-925 | mistralrs-core/src/moe/experts/backends.rs:977-1003 \u2014 both copies are in the same file, so extract the block 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/moe/experts/backends.rs"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf558c9d9a1142f85ecacf17e2996796ba4b45663a8a476f8cb2d6d2b494bd98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201330 lines \u00D7 2): mistralrs-core/src/ops.rs:1557-1582 | mistralrs-core/src/ops.rs:1795-1824 \u2014 both copies are in the same file, so extract the block 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":1557}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c79db7385ccc6f1bc76a9612ec9dec7b240f6ca2e125a33e4d5f5ac0fa65940"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4547-4576 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4593-4622 \u2014 both copies are in the same file, so extract the block 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":4547}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8604dd3e1c5ded9efd82d9bf894ce88f8488eccc513911c098d2bdbe08c50b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 2): mistralrs-core/src/sampler.rs:1513-1542 | mistralrs-core/src/sampler.rs:1681-1709 \u2014 both copies are in the same file, so extract the block 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":1513}}}],"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 16 separate duplicated blocks between them, totalling at least 279 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":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad4a462d08e61bacdafad44adf2bf1056e64a22a608c4fa084e42d9d8029bfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201330 lines \u00D7 3): mistralrs-core/src/vision_models/muse_glimmer/mod.rs:154-156 | mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:137-166 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:160-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 5 separate duplicated blocks between them, totalling at least 65 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":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"148007ed9956eddad81491107a1e18a7c0b7ee7ba1de76a2c3fbe0ef7b23b642"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 2): mistralrs-pyo3/src/lib.rs:1181-1210 | mistralrs-server-core/src/mistralrs_for_server_builder.rs:1419-1447 \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":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ab259bf314f83f872e9500e34b9b2b219eadcec77ce2abfa974b564127896c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:164-193 | 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 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d019fc451c1c0e7fe75086a09d38ab0a18e1875993c92d53406d92166e73136"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201330 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmq.rs:981-1008 | mistralrs-quant/src/gguf/fast_mmq.rs:1151-1180 \u2014 both copies are in the same file, so extract the block 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":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"b22867977eb16ca29505c906dcce1814a9aebbb948344817c25db83607112924"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 6): 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/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":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"969fd2979b6a13a98933de2493c97159456065c4fe63410baca7fee249babc69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1089-1117 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1654-1682 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1850-1878 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d76cd2b8e2b31974f21d22729678aa8c6a484401e7ac18871feb278a832822"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3): mistralrs-quant/src/gguf/fast_mmvq.rs:568-596 | mistralrs-quant/src/gguf/fast_mmvq.rs:607-635 | mistralrs-quant/src/gguf/fast_mmvq.rs:646-674 \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_mmvq.rs"},"region":{"startLine":568}}}],"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/model_metadata.rs:385-413 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:236-264 \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/model_metadata.rs"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"930f25766301dd66e39cb87890685fd141ea2a7913a6245b7f9b9ec65dc4eea6"}},{"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 33 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"e148fc025f75120e458460721d5f50f3e575797171aa6b7e91488ca48ae66519"}},{"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 27 separate duplicated blocks between them, totalling at least 313 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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_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:218-246 | mistralrs-core/src/paged_attention/cache_engine.rs:321-348 \u2014 both copies are in the same file, so extract the block 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/cache_engine.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1aa57854881e68a6bcd06cbcc11c6eb2fe1de90f0e1765a9a9c5984b66cd32f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): mistralrs-core/src/paged_attention/cache_engine.rs:398-426 | mistralrs-core/src/paged_attention/cache_engine.rs:436-464 \u2014 both copies are in the same file, so extract the block 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/cache_engine.rs"},"region":{"startLine":398}}}],"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:1248-1276 | mistralrs-core/src/paged_attention/layers/paged_attention.rs:1365-1393 \u2014 both copies are in the same file, so extract the block 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":1248}}}],"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:1106-1118 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2783-2811 \u2014 both copies are in the same file, so extract the block 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":1106}}}],"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:7231-7256 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7690-7718 \u2014 both copies are in the same file, so extract the block 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":7231}}}],"partialFingerprints":{"codehealthFindingId/v1":"f985954711eda111783e09b088782144ccd1631817105f4ae13eb3cfc3e3140c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:683-711 | mistralrs-core/src/pipeline/normal.rs:696-724 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"716e94e36424b9ee064aa2f0e863b2abd8052cbe4ecf4892ec0d4f2c5be2e681"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:967-995 | mistralrs-core/src/pipeline/normal.rs:949-977 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"4defbddfdb1464bb92730a49c3991f9fa5366676004e8524d702415f13128052"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1339-1367 | mistralrs-core/src/pipeline/normal.rs:1361-1389 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1339}}}],"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/cuda/backend/flashinfer.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0a57a425ae2905a518203f077ae50b450b3319146bc84a99d40c6f9d050a042"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): mistralrs-quant/src/lib.rs:2817-2845 | mistralrs-quant/src/lib.rs:2883-2911 \u2014 both copies are in the same file, so extract the block 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/lib.rs"},"region":{"startLine":2817}}}],"partialFingerprints":{"codehealthFindingId/v1":"c292bac834b66f798e28c7f1cfb0292c90a08372c55a323412613c51585c4d12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201328 lines \u00D7 16): 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:230-257 | 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/gemma2.rs\u0060 and \u0060mistralrs-core/src/models/gpt_oss.rs\u0060 as WHOLE FILES: this scan already matched 18 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/models/gemma2.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"4443ce9821502c3feda39ff4cb9406f056a7b74b523fce0abbd7d81546ef0a8c"}},{"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 7 separate duplicated blocks between them, totalling at least 113 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":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd6ab447bbe55d1ce49249b29704ecca86ac0f3e96b8f98a0c5c22eef948d01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 4): mistralrs-core/src/models/deepseek2.rs:887-914 | mistralrs-core/src/models/deepseek3.rs:950-977 | mistralrs-core/src/models/glm4_moe.rs:786-813 | mistralrs-core/src/models/glm4_moe_lite.rs:897-924 \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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f90e4234c2bda6d0edc206f583735665091ebc3e696aec43cef08b2668caa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1044-1071 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1609-1636 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1796-1823 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":1044}}}],"partialFingerprints":{"codehealthFindingId/v1":"684a45574815b41803d9ecc085b46058b4cd7099a0dcbaff0c7ae9a6a5326438"}},{"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."},"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 (27\u201328 lines \u00D7 2): mistralrs/src/model_builder_trait.rs:247-274 | mistralrs/src/model_builder_trait.rs:590-616 \u2014 both copies are in the same file, so extract the block 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":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc26b278fc05a9e96917733cab8bc18cc8b3c8b7d17cddb48c1b54ee7065bde"}},{"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 43 separate duplicated blocks between them, totalling at least 573 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"a297419ab9bcfe3af64ef1fa219feb95ea90dd62c32bcd0d4b495f838f68f78d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 2): mistralrs-core/src/models/qwen3_next.rs:1082-1109 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:847-873 \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 27 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"4770cd287bc161d5738378a385040350d1b740467dfddeb6b2c2b4f64f232c87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): mistralrs-core/src/moe/experts/mod.rs:139-166 | mistralrs-core/src/moe/experts/mod.rs:213-240 \u2014 both copies are in the same file, so extract the block 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/moe/experts/mod.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfae969fef584e9a81cd2c3c05f616170157d616f340c20da5356ad883121c22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201328 lines \u00D7 2): mistralrs-core/src/ops.rs:1073-1100 | mistralrs-core/src/ops.rs:1304-1329 \u2014 both copies are in the same file, so extract the block 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":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"f065711f2c189b20e57b1046d8bea7e680b4786c8914d288f66e511225ee3d8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:702-729 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3494-3521 \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 13 separate duplicated blocks between them, totalling at least 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/embedding_loaders.rs"},"region":{"startLine":702}}}],"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 47 separate duplicated blocks between them, totalling at least 994 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/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/qwen2vl/inputs_processor.rs:273-300 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:392-419 \u2014 \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_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 52 separate duplicated blocks between them, totalling at least 1117 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/qwen2vl/inputs_processor.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"998fdc687fe0b9368be99d51572b94475eb8e786a53311c1e0addc8878f25040"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/mod.rs:403-430 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:390-417 \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 23 separate duplicated blocks between them, totalling at least 408 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":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"3148325dec81ea97574014d0f008d5681e85517c823110768549b291c750cd73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_vl/text.rs:517-544 | 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 653 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":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"e52016eef8edcc85b2965a1dce85f91903ba1b2dc76ed824e18f03405d21a256"}},{"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."},"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-paged-attn/src/metal/kernels/mod.rs:79-106 | mistralrs-quant/src/metal_kernels/mod.rs:87-114 \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 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/metal/kernels/mod.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"081dc94db504a2efc89695eba06cb95b89d2a283aab4ba2a236f43f39cd20737"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:388-415 | 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 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ebf66a3781fb148d07636fe8a202199a5229ee4b420a84a6a5ebd8a0f7ee2f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201327 lines \u00D7 17): mistralrs-core/src/models/gemma.rs:215-240 | mistralrs-core/src/models/gemma2.rs:262-288 | mistralrs-core/src/models/gpt_oss.rs:292-317 | mistralrs-core/src/models/hunyuan_v1_dense.rs:238-263 | mistralrs-core/src/models/hunyuan_v1_moe.rs:424-449 | mistralrs-core/src/models/lfm2.rs:532-556 | mistralrs-core/src/models/llama.rs:123-148 | mistralrs-core/src/models/mistral.rs:263-288 | mistralrs-core/src/models/mixtral.rs:199-224 | mistralrs-core/src/models/phi2.rs:311-336 | mistralrs-core/src/models/qwen2.rs:293-318 | mistralrs-core/src/models/qwen3.rs:245-270 | mistralrs-core/src/models/qwen3_moe.rs:251-276 | mistralrs-core/src/models/qwen3_next.rs:332-356 | mistralrs-core/src/models/smollm3.rs:140-165 | mistralrs-core/src/models/starcoder2.rs:275-300 | mistralrs-core/src/vision_models/voxtral/mod.rs:175-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 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/gemma.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf871b1bb6eb3b890ff654bca98d65390154c16e876a6f394df772232482e20"}},{"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:103-128 | 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 7 separate duplicated blocks between them, totalling at least 113 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":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:500-526 | mistralrs-core/src/xlora_models/mistral.rs:466-492 | mistralrs-core/src/xlora_models/mixtral.rs:597-623 | mistralrs-core/src/xlora_models/phi3.rs:425-451 \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 491 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e919ec7d61f23a39a09e79288894f34655b0bff75cd562bd2d328653f38bc58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3): mistralrs-core/src/models/qwen3_next.rs:1138-1164 | mistralrs-core/src/vision_models/qwen3_5/text.rs:2674-2700 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:931-957 \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 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"98631b2e582c8f9a54005d369ee7100d375fd6ef1b73d0826be1b16bdb88387b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3): mistralrs-core/src/pipeline/embedding.rs:426-452 | mistralrs-core/src/pipeline/multimodal.rs:949-975 | mistralrs-core/src/pipeline/normal.rs:931-957 \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 11 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c99cbf5cf88e05f28c00e00a3bb60d5fea2b9da5f77246910c26257b327abb"}},{"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 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"4342abbd07e9cb576cd2d2cd15f787a9f96cff56b2d1914154841a62e47d7761"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:562-588 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1170-1196 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1234-1260 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"904b664f5045fa6d7028c501e7a806ead715f9f4425f46149ee0092f3229c39b"}},{"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs/src/gguf_lora_model.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3e72affd23e414b6384377b9c13ee9832cec83bcdebc6d7ea9aef83e004e117"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): mistralrs-core/src/models/llama.rs:430-456 | mistralrs-core/src/models/smollm3.rs:453-479 \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 50 separate duplicated blocks between them, totalling at least 696 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"4086aaa865ec5d5aa83aeba38237d754ac715b50652a189f02fcf715d34c016e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:747-773 | mistralrs-core/src/pipeline/normal.rs:737-762 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"651769b9a69189f6a4a9731a27f0a3bfaf844838a2b9b3324019c1aafad92ff2"}},{"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 16 separate duplicated blocks between them, totalling at least 279 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":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9db0195755e76a33481f12c50dc0768c39066f6aa27b71cf3a901b47968c7a0"}},{"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."},"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 (27 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:397-423 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:361-387 \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 18 separate duplicated blocks between them, totalling at least 176 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":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde24e8cff919138c42b69de3a8afce6172cbcc82c028458cbdb845718c57cae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): mistralrs-core/src/xlora_models/classifier.rs:82-108 | mistralrs-core/src/xlora_models/classifier.rs:145-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":82}}}],"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:339-365 \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 491 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":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:401-425 | 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/xlora_models/mixtral.rs"},"region":{"startLine":401}}}],"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 (26 lines \u00D7 9): mistralrs-core/src/xlora_models/gemma.rs:632-657 | mistralrs-core/src/xlora_models/gemma2.rs:687-712 | mistralrs-core/src/xlora_models/llama.rs:460-485 | mistralrs-core/src/xlora_models/mistral.rs:632-657 | mistralrs-core/src/xlora_models/mixtral.rs:762-787 | mistralrs-core/src/xlora_models/phi2.rs:598-623 | mistralrs-core/src/xlora_models/quantized_llama.rs:850-875 | mistralrs-core/src/xlora_models/quantized_phi3.rs:519-544 | mistralrs-core/src/xlora_models/starcoder2.rs:617-642 \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 491 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"425aeeb0090a74053167e534ca8f2991b09fe3a7766f48ac9e9248892533fa0a"}},{"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."},"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:1101-1126 | mistralrs-core/src/layers.rs:1191-1216 \u2014 both copies are in the same file, so extract the block 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":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2c589185d00c6635a8180ac839ceac774f5f5d58b506cef2b919646616fdd6"}},{"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 48 separate duplicated blocks between them, totalling at least 605 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f1ffb2d7de5da1c3436553e0c0a298167a2745a67f62fdaa86be46b34432653"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1208-1233 | mistralrs-core/src/pipeline/normal.rs:1263-1288 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1208}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ab012aa1fcf8611157506f84b4388a5cc411408c2868a382454d227084fe8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1931-1956 | mistralrs-core/src/pipeline/normal.rs:1767-1790 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1931}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe82a5d73d6b861b1aa15ce9ef95ebeeaa2dfb814264e6efc2796cc73671a12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2498-2523 | mistralrs-core/src/pipeline/normal.rs:2173-2198 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":2498}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f2d312f7193afabd95db675a8ffaf9c83e2beadef6d6762b1a11b2f8dd96562"}},{"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 16 separate duplicated blocks between them, totalling at least 279 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 (24\u201326 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:345-370 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:316-339 \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 20 separate duplicated blocks between them, totalling at least 316 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/llava/llava_next_inputs_processor.rs"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0da42794eea986dba66e8bb80b8132d1e5f2f5e18ff1b1957c3f124cc3f4f15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1148-1173 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1713-1738 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"e88552f2aeb77c459958f9789729feef92451062bd2e0d3b7cf74fefca36b560"}},{"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."},"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 (25\u201326 lines \u00D7 2): mistralrs-quant/src/safetensors.rs:654-679 | mistralrs-quant/src/safetensors.rs:731-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/safetensors.rs"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc67060dd2501f76d673bea988faae64554007edad1b71a945c5272f7b6b583a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): mistralrs-quant/src/safetensors.rs:696-721 | mistralrs-quant/src/safetensors.rs:763-788 \u2014 both copies are in the same file, so extract the block 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":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"27486ebfb1f27dc39a04333e1fa47a2359ac96a1981400ff1193bb2416a4c511"}},{"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 491 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 (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 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":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/inputs_processor.rs:405-429 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:970-994 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1071-1095 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"34080ef91907808ce709580adc5559ef0e1b656ccacf9d4474515c17caa6f73c"}},{"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 43 separate duplicated blocks between them, totalling at least 650 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/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:1003-1027 | mistralrs-cli/src/commands/run/interactive.rs:1789-1813 \u2014 both copies are in the same file, so extract the block 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":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e3146c20d87c96f622c7095476f8767bafa54c68a7809f7f5247eb949dd1581"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201325 lines \u00D7 2): mistralrs-cli/src/commands/run/mod.rs:59-79 | mistralrs-cli/src/commands/serve.rs:65-89 \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 5 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/run/mod.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f43573ce2b575967c4706939a0cb5d9929b5f33975048c27ddedf51ab4782c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): mistralrs-code-exec/src/lib.rs:339-363 | 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 6 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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-code-exec/src/lib.rs"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"4841d2377a32738ffdc216d62432d65b1d7a125f4a4c66bbb4de9a2db4b3751a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): mistralrs-core/src/models/qwen3.rs:478-502 | mistralrs-core/src/models/qwen3_moe.rs:661-685 \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 59 separate duplicated blocks between them, totalling at least 760 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/qwen3.rs"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"f162a4c91b44c0a9e0e95c0697bcba1c0cb09dc9af9c1581ea23faaff31432eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): mistralrs-core/src/pipeline/inputs_processor.rs:2671-2695 | mistralrs-core/src/pipeline/inputs_processor.rs:2715-2739 \u2014 both copies are in the same file, so extract the block 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":2671}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f117259923b7870966a00352240df4230f828fe9ed071944eb7d50e57d8367e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2547-2571 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3876-3900 \u2014 both copies are in the same file, so extract the block 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":2547}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d1a440a4f994e78674a067223ba6691344f48b0a19a2c161329303248198a10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1968-1992 | mistralrs-core/src/pipeline/normal.rs:1809-1833 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1968}}}],"partialFingerprints":{"codehealthFindingId/v1":"110f333de31ead97b7c5e05b68faab03a62d4c608c1149a214b3bc836eebb60e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2313-2337 | mistralrs-core/src/pipeline/normal.rs:2055-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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":2313}}}],"partialFingerprints":{"codehealthFindingId/v1":"1edfff57480e79f02b2b165188b3e3e9f99c69e9cbc8df9e9d847e2b2b6a365e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): mistralrs-core/src/sampler.rs:1166-1190 | mistralrs-core/src/sampler.rs:1246-1270 \u2014 both copies are in the same file, so extract the block 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":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f54f58b21e4079675b8cbc898a8cbbd8c2c1ccb97aea3dd39eb945ca581b397"}},{"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 16 separate duplicated blocks between them, totalling at least 279 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":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"f851a244dabaa65fe19a835026c2b408bbe0b9a75d8b66355d21884cc88c0620"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:754-778 | mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:975-999 \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 7 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":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 47 separate duplicated blocks between them, totalling at least 994 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/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/qwen2vl/inputs_processor.rs:608-632 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:543-567 \u2014 \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_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 52 separate duplicated blocks between them, totalling at least 1117 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/qwen2vl/inputs_processor.rs"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a68c3327a3bec03bc068a0fc1d979cd443f2020319f22115b388a817ac9cca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_vl/mod.rs:975-999 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:420-444 \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 28 separate duplicated blocks between them, totalling at least 500 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/mod.rs"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf4812cf231f3096ccb77dcbab5960396df10af12376854a23bffbb11a483b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_vl/text.rs:462-486 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:584-608 \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 653 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":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"a219fdbd48f1629f699dbc1dd7dbfd6262dd853b4bb9fd8b298253fa6f09a04b"}},{"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/xlora_models/classifier.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"90fd74d8da9135527b790e69532996799d3d200e4912487be6f55435f8a746d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): mistralrs-pyo3/src/lib.rs:2041-2065 | mistralrs-pyo3/src/lib.rs:2107-2131 \u2014 both copies are in the same file, so extract the block 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-pyo3/src/lib.rs"},"region":{"startLine":2041}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb770909cd4eb7bd56e7be26948fcd94a8abf0fd1176afec2fd88790ccdcccdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:2721-2745 | mistralrs-quant/src/distributed/layers.rs:2886-2910 \u2014 both copies are in the same file, so extract the block 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":2721}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a0459c6cca585bbe36aa9b8102f16233e426acc4db2c3c8ae957a78cc1d6ab"}},{"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."},"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 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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 (22\u201324 lines \u00D7 4): mistralrs-core/src/xlora_models/mistral.rs:270-291 | mistralrs-core/src/xlora_models/mixtral.rs:183-204 | mistralrs-core/src/xlora_models/phi3.rs:158-179 | mistralrs-core/src/xlora_models/starcoder2.rs:257-280 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/xlora_models/mistral.rs"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d0482d2bcd45df10eaf4ad9b750bc335dcc228250d5dc5b6170195f21e9fbf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): mistralrs-core/src/models/deepseek2.rs:849-872 | mistralrs-core/src/models/deepseek3.rs:912-935 | mistralrs-core/src/models/glm4_moe_lite.rs:859-882 \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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"695ac8daae29ab40e24f71e8f68e37b2f9b223893a1f00fa554feee7c542d156"}},{"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 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":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 7 separate duplicated blocks between them, totalling at least 142 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/lora/loralinear.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c57f6a2d16b8ccb6300d3efcf0c68db52d28233c249a42d8924ef195873d93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): mistralrs-core/src/models/hunyuan_v1_dense.rs:431-454 | mistralrs-core/src/models/hunyuan_v1_moe.rs:925-948 \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 53 separate duplicated blocks between them, totalling at least 686 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"1564774e232213806fdee32efde1424c6eb2c8de00e74eee49252deddb62987a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): mistralrs-core/src/models/hunyuan_v1_dense.rs:487-510 | mistralrs-core/src/models/hunyuan_v1_moe.rs:981-1004 \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 53 separate duplicated blocks between them, totalling at least 686 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"8de61b168a9155124f704d278a60c0932ee584eb6fa2ac37edfa84d971259c5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1397-1420 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2680-2703 \u2014 both copies are in the same file, so extract the block 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":1397}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca10cb84f14d607d615d793a99e9f4b335dc5065166de8e7fc5e2ae6784c019"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 2): mistralrs-core/src/pipeline/sampling.rs:1415-1436 | mistralrs-core/src/pipeline/sampling.rs:1494-1517 \u2014 both copies are in the same file, so extract the block 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/sampling.rs"},"region":{"startLine":1415}}}],"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:212-235 | mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:595-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-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e215d4edb681c4be2fb86a4c41240716a68ecc78f8cca89b5f6e29c05659b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): mistralrs-paged-attn/src/metal/kernels/mod.rs:310-333 | mistralrs-paged-attn/src/metal/kernels/mod.rs:750-773 \u2014 both copies are in the same file, so extract the block 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":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"f129230ab3832f68ae40f2c583f20c4d1184c818616f6cdc0eb5ea7211a84ebc"}},{"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/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/qwen3_vl/inputs_processor.rs:1396-1418 | 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."},"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 4): mistralrs-core/src/models/deepseek2.rs:822-844 | mistralrs-core/src/models/deepseek3.rs:885-907 | mistralrs-core/src/models/glm4_moe.rs:722-744 | mistralrs-core/src/models/glm4_moe_lite.rs:832-854 \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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"64117154e84aef21a041841cfecf26a864335a7e2f675d166bcdda13d6f837c6"}},{"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:335-357 | mistralrs-core/src/xlora_models/mistral.rs:322-344 | mistralrs-core/src/xlora_models/starcoder2.rs:311-333 \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 491 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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:526-548 | mistralrs-cli/src/commands/run/interactive.rs:1018-1040 | mistralrs-cli/src/commands/run/interactive.rs:1804-1826 \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-cli/src/commands/run/interactive.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"e05fe8a5f86f9acbc58e526be57882e2f907004161ed08ea33b1ad615827004a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 3): 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/glm4_moe.rs\u0060 and \u0060mistralrs-core/src/models/hunyuan_v1_dense.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 247 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"397b778f0b0a6d09fd0cdd66124c98f789675e21bca762e9a3c73c9609537470"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): mistralrs-core/src/pipeline/embedding.rs:402-424 | mistralrs-core/src/pipeline/multimodal.rs:925-947 | mistralrs-core/src/pipeline/normal.rs:907-929 \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 11 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a8e942218408a86b9d0095bfedefc42167f75ff2a8018a4e9390b995f2aea4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:363-385 | mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:349-371 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:318-340 \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 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"734390520313484e9f82cf8e3c05872bfbc9df7dbafa9c97a614a94f77af8043"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): mistralrs/src/model_builder_trait.rs:470-492 | mistralrs/src/model_builder_trait.rs:544-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b8a83078ef367278335d0a06a6b39f91b4c35f7c9ab6e4cade4afb3c1c912c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): mistralrs/src/model_builder_trait.rs:627-649 | mistralrs/src/model_builder_trait.rs:1349-1371 \u2014 both copies are in the same file, so extract the block 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":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d8a7e3d6cb8ac2b4b7d2d79f4ad3ceb2d83de8443e25d0aeed949fbae7dba8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): mistralrs/src/model_builder_trait.rs:1148-1170 | mistralrs/src/model_builder_trait.rs:1215-1237 \u2014 both copies are in the same file, so extract the block 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":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"e86c3e21ffe4faad55c5bbf13079c623183c271341ed2e5dbe970234cc633e9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): mistralrs-core/src/lib.rs:1421-1443 | mistralrs-core/src/lib.rs:1477-1499 \u2014 both copies are in the same file, so extract the block 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/lib.rs"},"region":{"startLine":1421}}}],"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 7 separate duplicated blocks between them, totalling at least 142 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/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:5437-5459 | mistralrs-core/src/ops.rs:5874-5896 \u2014 both copies are in the same file, so extract the block 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":5437}}}],"partialFingerprints":{"codehealthFindingId/v1":"8699e865273be8b383303fbafbb63764cd0d9d00fdbce3b4f27fd8d95af2100b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): mistralrs-core/src/pipeline/inputs_processor.rs:2728-2750 | mistralrs-core/src/pipeline/inputs_processor.rs:2777-2799 \u2014 both copies are in the same file, so extract the block 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":2728}}}],"partialFingerprints":{"codehealthFindingId/v1":"144f76ae04bf5d5dc4c731c593933c9c76a5f1fca24b49e5950a641a882e09fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:910-932 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3559-3581 \u2014 both copies are in the same file, so extract the block 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":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d2ba67cb66d924cd4c50daa22f8ddf88a46b2b798fc094a2b95e74338fd7387"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:3058-3080 | mistralrs-core/src/pipeline/normal.rs:2697-2719 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":3058}}}],"partialFingerprints":{"codehealthFindingId/v1":"5751d091a2dadd1bb6b267a1449fc474ae120a3ee17fc5f1bcfea9142cfadf46"}},{"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."},"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."},"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/qwen3_vl/inputs_processor.rs:976-998 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1292-1314 \u2014 both copies are in the same file, so extract the block 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/inputs_processor.rs"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"f568b44e42e992dcaedb2b405c21067ea9b1f15e2ed27e7d1bde67aa8c66f67c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201323 lines \u00D7 2): mistralrs-paged-attn/src/metal/kernels/mod.rs:375-393 | mistralrs-paged-attn/src/metal/kernels/mod.rs:512-534 \u2014 both copies are in the same file, so extract the block 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":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c570867ebe49a1a826339e07e42bec24940ce9f648bcf3e439fda37281ea6b9"}},{"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."},"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."},"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_mmq.rs:417-439 | mistralrs-quant/src/gguf/fast_mmq.rs:497-519 \u2014 both copies are in the same file, so extract the block 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":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d208567b0e81b4b136c33bb6bfe2ac2443deff561adae0b09de4807d3cd6b66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmvq.rs:386-408 | mistralrs-quant/src/gguf/fast_mmvq.rs:591-613 \u2014 both copies are in the same file, so extract the block 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":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"a917afecbf976f82b78c626c21efd01e035f5ee34ea34018e88dc295f5802d86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmvq.rs:424-446 | mistralrs-quant/src/gguf/fast_mmvq.rs:630-652 \u2014 both copies are in the same file, so extract the block 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":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8660e9150c12310cd08654ec6f33e73bf7f4865aef5cacdaedebcf5b191459e"}},{"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:1589-1610 | 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:249-269 \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 31 separate duplicated blocks between them, totalling at least 341 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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.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:689-710 | mistralrs/src/model_builder_trait.rs:839-860 | mistralrs/src/model_builder_trait.rs:1000-1021 | mistralrs/src/model_builder_trait.rs:1444-1465 \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/src/model_builder_trait.rs"},"region":{"startLine":689}}}],"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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8137a62804476fb271417fa1fa9263c0245e0c0a04252d8c4dfe1cd21cb11a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): mistralrs-core/src/pipeline/inputs_processor.rs:2676-2697 | mistralrs-core/src/pipeline/inputs_processor.rs:2720-2741 | mistralrs-core/src/pipeline/inputs_processor.rs:2769-2790 \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/pipeline/inputs_processor.rs"},"region":{"startLine":2676}}}],"partialFingerprints":{"codehealthFindingId/v1":"011e193d691654d75e50df756016a7b95b1db57c4465c145ef21da64d65cf760"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-cli/src/commands/run/interactive.rs:1184-1205 | mistralrs-cli/src/commands/run/interactive.rs:1269-1290 \u2014 both copies are in the same file, so extract the block 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":1184}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c0e69d1cb211ddbfcf577281a1005ca95f21a5306215310641fc77e63c8329"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-core/src/model_loader.rs:821-842 | mistralrs-core/src/model_loader.rs:854-875 \u2014 both copies are in the same file, so extract the block 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/model_loader.rs"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a9de71dccbc10e6753d7432a529072c0d7aafd2bf5b7e067d08ce3ee3a13b54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-core/src/models/llama.rs:381-402 | mistralrs-core/src/models/smollm3.rs:397-418 \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 50 separate duplicated blocks between them, totalling at least 696 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":381}}}],"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 29 separate duplicated blocks between them, totalling at least 339 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/phi3.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a8316244290ee3979445de71308f0801e38954a0feb84595c4548a35761a4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): mistralrs-core/src/ops.rs:626-647 | mistralrs-core/src/ops.rs:782-802 \u2014 both copies are in the same file, so extract the block 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":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"05787ee96479535e19c806639d075bc5967daaefc82ea74f8d8a9ff486bc02b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-core/src/ops.rs:3961-3982 | mistralrs-core/src/ops.rs:4085-4106 \u2014 both copies are in the same file, so extract the block 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":3961}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72e0028767d6ac23e0f3222a594d950eca2d2d988b084ac0aadd92d3edb292c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-core/src/ops.rs:5214-5235 | mistralrs-core/src/ops.rs:5649-5670 \u2014 both copies are in the same file, so extract the block 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":5214}}}],"partialFingerprints":{"codehealthFindingId/v1":"80800ae77b6cfc1cbd9ea98b7489560687a5f915f305f70a911b36718f745a6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9258-9279 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6346-6367 \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 32 separate duplicated blocks between them, totalling at least 426 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":9258}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd3edaa827a52a9e15167c9c3e2d089b9c1810e5e3368106a4d35712a3f5880"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2808-2829 | mistralrs-core/src/pipeline/normal.rs:2536-2557 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":2808}}}],"partialFingerprints":{"codehealthFindingId/v1":"87f2fb53a07e0a0457862838e1d1402cb3fb0bc89a7a6683e0be378e30a39d5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:339-360 | mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:485-506 \u2014 both copies are in the same file, so extract the block 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":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"623847ac4609d2d5556d0bc56d0f996ac666a0cf9c13415a33ffb6755af27ca2"}},{"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."},"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/xlora_models/quantized_llama.rs:418-439 | mistralrs-core/src/xlora_models/quantized_llama.rs:720-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/xlora_models/quantized_llama.rs"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e12c70285dd65d5eea34c5871be7b6e077a1a0993db42ed6f063ed791a8204"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mistralrs-paged-attn/src/metal/backend/paged_attention.rs:173-194 | mistralrs-paged-attn/src/metal/backend/paged_attention.rs:448-469 \u2014 both copies are in the same file, so extract the block 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/backend/paged_attention.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"619c5e9fa4885495dd267a460928863981876c46aa3dc40d9813bb8fb0282023"}},{"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."},"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 (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."},"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:513-534 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:954-975 \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 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc542aa997fdffe5aa2be13620fe056c88d11f60e21217b674ea202886ba4a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 8): mistralrs-core/src/vision_models/qwen3_5/mod.rs:228-248 | mistralrs-core/src/vision_models/qwen3_5/mod.rs:289-309 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:213-233 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:274-294 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:751-771 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:826-846 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:196-216 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:271-291 \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 23 separate duplicated blocks between them, totalling at least 408 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":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"b669a0c2cf1fedfdb5662956840c849568816026147fb89135c0d15642d031b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 6): mistralrs-core/src/models/glm4.rs:499-519 | mistralrs-core/src/models/hunyuan_v1_dense.rs:468-488 | mistralrs-core/src/models/hunyuan_v1_moe.rs:962-982 | mistralrs-core/src/models/mistral.rs:509-529 | mistralrs-core/src/models/mixtral.rs:463-483 | mistralrs-core/src/models/qwen3.rs:459-479 \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 40 separate duplicated blocks between them, totalling at least 462 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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.rs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d7e7071903c1bed1290e9a1e75a485d6d3faca6a8d452da27ddcec4090ada9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 6): 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:474-494 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:463-483 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:1061-1081 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:490-510 \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 19 separate duplicated blocks between them, totalling at least 362 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":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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":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:242-262 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:152-172 \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 11 separate duplicated blocks between them, totalling at least 170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa5a7c1ca8ee4e711a45e07225e6c4c840910fafa397a1f5456885210e48564"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 3): mistralrs-core/src/xlora_models/mistral.rs:447-466 | mistralrs-core/src/xlora_models/mixtral.rs:577-597 | mistralrs-core/src/xlora_models/starcoder2.rs:436-455 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/xlora_models/mistral.rs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"38f9af14a625baeea432af24c4c0ef51bcdfee5d33c9b67229c321d8b0c28e8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 3): mistralrs-pyo3/src/util.rs:221-241 | mistralrs-pyo3/src/util.rs:276-295 | mistralrs-pyo3/src/util.rs:336-355 \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-pyo3/src/util.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"0800525917ac1b20d95ce940368333a6859819cf5de29b2fa388d8bd3a032ba5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mistralrs-cli/src/commands/run/interactive.rs:315-335 | mistralrs-cli/src/commands/run/interactive.rs:498-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a73ee8fbaae072f7647d10cb63760efe8e2ca6037ad85b9a88b5aa0e9e1e5c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mistralrs-cli/src/commands/config.rs:110-130 | mistralrs-cli/src/commands/config.rs:278-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-cli/src/commands/config.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"84acf8103dff623023fe6a23fa048266d59ffd9ac4a9225d38a989af4d846472"}},{"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."},"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:523-543 | mistralrs-core/src/vision_models/gemma3/text.rs:844-864 \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 16 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7311770583c19b7974ee734ac8ede9fcc9c3518ff9578074b23e652c9b404e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mistralrs-core/src/layers.rs:1082-1102 | mistralrs-core/src/layers.rs:1441-1461 \u2014 both copies are in the same file, so extract the block 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":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad09f59fb813a6fa3c1d028b15326388ae0a1a5f536844aea9cfd5028beaf4d"}},{"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 43 separate duplicated blocks between them, totalling at least 573 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"0018fb4014b29e2cf12dc048b12f0bf50ee30bb2c1b1c4c01f9f13c9ab7ee2cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mistralrs-core/src/ops.rs:1498-1518 | mistralrs-core/src/ops.rs:1720-1740 \u2014 both copies are in the same file, so extract the block 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":1498}}}],"partialFingerprints":{"codehealthFindingId/v1":"066b7047099e93b4cd0197dcedc042dc08955195f521425267e893e84f3e4a28"}},{"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."},"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:4640-4660 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5029-5049 \u2014 both copies are in the same file, so extract the block 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":4640}}}],"partialFingerprints":{"codehealthFindingId/v1":"93cd0a49489eb9abbec86c1547c1b8e08fa7704035bbd38bd814d3d0a7020b29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6183-6203 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6548-6568 \u2014 both copies are in the same file, so extract the block 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":6183}}}],"partialFingerprints":{"codehealthFindingId/v1":"d638e62e7a07c4a2e0734377eb8298e12a7aa63cd0c1a85b9bb62d5437e172da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6985-7005 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7403-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":6985}}}],"partialFingerprints":{"codehealthFindingId/v1":"064e805b2c32c2bc525e15e7d1ea7e86f6aeefb3e2dccf4c4e0c252d4f50e7cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:543-563 | mistralrs-core/src/pipeline/normal.rs:645-665 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35f429191548d44007989644b6cfd7bb00afa0003fe31e3e8af52c2e0eea7a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:778-798 | mistralrs-core/src/pipeline/multimodal.rs:842-862 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/multimodal.rs"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"094f693aa762e26c6e9e2240e9b0b897477e23be939b0587b4127373137aa721"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1370-1390 | mistralrs-core/src/pipeline/normal.rs:1392-1412 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1370}}}],"partialFingerprints":{"codehealthFindingId/v1":"39ede7ec049dfe9ad351b82bd735425d5e124d5c34f2cca055762e354677d356"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mistralrs-core/src/speculative/dflash.rs:1892-1912 | mistralrs-core/src/speculative/dflash.rs:1985-2005 \u2014 both copies are in the same file, so extract the block 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":1892}}}],"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."},"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."},"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 (21 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:279-299 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:585-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"64394482a8d0ee18eeabee6df904a788d724f8974473963c7e14facf7657f509"}},{"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 (21 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1177-1197 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1742-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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"b179a96c9b50781bcf80b31c5c0350c2be456b86bd34174f47839a251e6cda2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:356-376 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:512-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 19 separate duplicated blocks between them, totalling at least 362 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":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"20361a3a473eac1efb53376811a94dc52cfd2ac157c8a9488b37afded5367314"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:845-865 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1193-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9dc5a30520307bd629b828bc32631c7ed0a5a941b8dfe171cc49aa2fbefd99a"}},{"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/vision_models/qwen3_5/mod.rs:378-398 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:365-385 \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 23 separate duplicated blocks between them, totalling at least 408 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":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"273efc9bfe00dce6f8f85227de981f5595277a878b6f7cd71b14cf34e96eeb71"}},{"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:315-335 \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 302 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/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."},"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."},"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 (20\u201321 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:60-80 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:74-93 \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 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a99154a23b0fbe330f3f97e63f663137da928258cc639140fb08fca4eba45a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:868-888 | mistralrs-quant/src/distributed/layers.rs:1330-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda912dcf4b13dcaa3bda638ea53a634daa3ab2ebf0d950c843affbc94c0ba0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 6): mistralrs-core/src/models/deepseek2.rs:981-1000 | mistralrs-core/src/models/deepseek2.rs:1021-1040 | mistralrs-core/src/models/deepseek3.rs:1044-1063 | mistralrs-core/src/models/deepseek3.rs:1085-1104 | mistralrs-core/src/models/glm4_moe_lite.rs:996-1015 | mistralrs-core/src/models/glm4_moe_lite.rs:1039-1058 \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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f74c3c400e7941bb2ee14c67e3d56f35e89d0aafdf0e58f54212291182b3ff9"}},{"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 42 separate duplicated blocks between them, totalling at least 550 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/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:182-201 | mistralrs-cli/src/ui/handlers/api.rs:234-253 | mistralrs-cli/src/ui/handlers/api.rs:286-305 | mistralrs-cli/src/ui/handlers/api.rs:338-357 \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-cli/src/ui/handlers/api.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"7904c47698ad7e8433e7f1037499b2706f7ff69228467ceb47ca1fd6976dc925"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 4): mistralrs-core/src/embedding_models/embedding_gemma.rs:294-313 | mistralrs-core/src/models/gemma2.rs:339-358 | mistralrs-core/src/vision_models/gemma3/text.rs:348-367 | mistralrs-core/src/xlora_models/gemma2.rs:360-379 \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 10 separate duplicated blocks between them, totalling at least 156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"c07618fdd373b4b39c7835a4f4404a3d9820cbd800fa585b46ddfb92638e036c"}},{"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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 (19\u201320 lines \u00D7 4): mistralrs-core/src/pipeline/multimodal.rs:1091-1109 | mistralrs-core/src/pipeline/multimodal.rs:1199-1218 | mistralrs-core/src/pipeline/normal.rs:1122-1140 | mistralrs-core/src/pipeline/normal.rs:1254-1273 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82e7e65cd60146a15d296a3118e44ddf90dd838b07dce6120d830c4858755d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201320 lines \u00D7 4): mistralrs-quant/src/blockwise_fp8/mod.rs:926-945 | mistralrs-quant/src/pertensor_fp8/mod.rs:521-535 | mistralrs-quant/src/unquantized/mod.rs:415-434 | mistralrs-quant/src/vector_fp8/mod.rs:101-115 \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 9 separate duplicated blocks between them, totalling at least 217 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/mod.rs"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c1fc0a679c3e1b84a0cd1408675cf10ceab03144537e94e72f9104a3d655179"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): mistralrs/src/model_builder_trait.rs:1157-1176 | mistralrs/src/model_builder_trait.rs:1224-1243 | mistralrs/src/model_builder_trait.rs:1322-1341 \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/model_builder_trait.rs"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2574f668d3b0ffa21e89bb72c0bb02bd7379a2b19040545c79a9e26e4701f72"}},{"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 48 separate duplicated blocks between them, totalling at least 605 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a90fac2b69af61395bbed942c1cf883903c8a09e3e66bf14f8a6b13e32821e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): mistralrs-core/src/pipeline/embedding.rs:620-639 | mistralrs-core/src/pipeline/multimodal.rs:1356-1375 | mistralrs-core/src/pipeline/normal.rs:1378-1397 \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 11 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1503b5241520bb0ec1e224998f0a350bdf3bcf5c81cc933059eaa21a5968c6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:92-111 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:193-212 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:140-159 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"55dbe3e3b8e5d9e9963db8fe7a6ca59d3982e7343d5da66a210fa13a6ac51f76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): mistralrs-quant/src/gguf/fast_mmvq.rs:372-391 | mistralrs-quant/src/gguf/fast_mmvq.rs:410-429 | mistralrs-quant/src/gguf/fast_mmvq.rs:448-467 \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_mmvq.rs"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c67f32ee44fcbe8107ba19ce6e51c7d5bcfcfabbc08ac2b19c39b723152043"}},{"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 (19\u201320 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:3828-3846 | mistralrs-core/src/cuda/gdn.rs:4285-4304 \u2014 both copies are in the same file, so extract the block 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":3828}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e77f1e43e076b65f70bbe0385fb9e1fce3ecd6713ea937f044ae1b3648305f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:4978-4997 | mistralrs-core/src/cuda/gdn.rs:5154-5173 \u2014 both copies are in the same file, so extract the block 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":4978}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b9419e6189b59629a71e94cab10c07b60d6a144604d1410a596260f1336c9b7"}},{"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 (20 lines \u00D7 2): mistralrs-core/src/layers.rs:3862-3881 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:101-120 \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/layers.rs"},"region":{"startLine":3862}}}],"partialFingerprints":{"codehealthFindingId/v1":"96cab9b9ecfcef532d1d4ffdc277377e8857a6f74c4ee42167130d4840e8ce93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): mistralrs-core/src/layers.rs:3936-3955 | mistralrs-core/src/layers.rs:3964-3981 \u2014 both copies are in the same file, so extract the block 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":3936}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb3b0b458c615c26ac60258380b2f36973556a9eb2e059f4a517de0831366c4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): mistralrs-core/src/models/gemma.rs:364-383 | mistralrs-core/src/models/gemma2.rs:436-455 \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 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/gemma.rs"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d2aa3cee3af46b95185b5ba55d90e9d6be96dd059811d486068181710c8e77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): mistralrs-core/src/models/phi3.rs:500-518 | mistralrs-core/src/vision_models/phi3/mod.rs:1281-1300 \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 48 separate duplicated blocks between them, totalling at least 605 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef549227139f37ef9ae6ea0800cea022979cd2eeaaa2dcd693ffc1cc2cdd18e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): mistralrs-core/src/models/qwen3_moe.rs:766-783 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:730-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 27 separate duplicated blocks between them, totalling at least 313 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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_moe.rs"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"799185064f0c4c3f9ad4aa29376d47b2223b16c3182996bd1f8b7056007bca6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): mistralrs-core/src/ops.rs:5280-5299 | mistralrs-core/src/ops.rs:5703-5722 \u2014 both copies are in the same file, so extract the block 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":5280}}}],"partialFingerprints":{"codehealthFindingId/v1":"5765b189b5be6be929862e96edfe0d7bba505bbc24affb820e35cc0b8c89b825"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2175-2194 | mistralrs-core/src/pipeline/normal.rs:1972-1990 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":2175}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f559986e5747facc5b766f9c9bbad35babed4ae8ab00fd6729ef1424e69e71c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): mistralrs-core/src/pipeline/normal.rs:763-782 | mistralrs-core/src/pipeline/normal.rs:827-846 \u2014 both copies are in the same file, so extract the block 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/normal.rs"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc21337dcd995706fcb739484e5d39e50babf44295d76e950560c468bfe9849"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): mistralrs-core/src/speculative/driver.rs:189-208 | mistralrs-core/src/speculative/driver.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/speculative/driver.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfde3876a0f249a66324e8cf94081bda53e3422cacc7f1721818981bbe96cf08"}},{"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."},"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 (20 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/mod.rs:487-506 | mistralrs-core/src/vision_models/gemma4/mod.rs:800-819 \u2014 both copies are in the same file, so extract the block 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":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc8f6cb1ba088ceba8916224270ba53bbfd5fc4db730a8f38426a9e6c931b99"}},{"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."},"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 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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:592-611 | mistralrs-core/src/vision_models/phi3/mod.rs:624-643 \u2014 both copies are in the same file, so extract the block 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/mod.rs"},"region":{"startLine":592}}}],"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."},"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 (19\u201320 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:428-446 | mistralrs-core/src/vision_models/qwen2vl/text.rs:429-448 \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 43 separate duplicated blocks between them, totalling at least 650 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/text.rs"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"85fd1b8e90762f119503fc440e4fe79cea072ca7cdc6e5528c59e840837a8bc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:302-321 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:421-440 \u2014 \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_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 52 separate duplicated blocks between them, totalling at least 1117 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/qwen2vl/inputs_processor.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"06e87e52b839bba3267ee8f8dd7fd0957d9b99fb87c44a68090531819720afc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): mistralrs-core/src/xlora_models/mistral.rs:579-598 | mistralrs-core/src/xlora_models/mixtral.rs:709-728 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/xlora_models/mistral.rs"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a40d99a01af9d74fb840eff9fd0d79ca85df98c019bcac40ed3a663f7be455"}},{"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."},"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:809-827 | mistralrs-quant/src/cutile/fp8_w8a8.rs:828-847 \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 21 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":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"10bd647a881190b37344d0d6da2b00f155db0eeb317723b391f2cbd670a18115"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmq.rs:346-365 | mistralrs-quant/src/gguf/fast_mmvq.rs:88-107 \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 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-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4465f6ad4e15412a0b1a6c745c9866a56bff75cb8640917bfff6949b0309911"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 11): mistralrs-core/src/models/gemma.rs:636-653 | mistralrs-core/src/models/gemma2.rs:752-769 | mistralrs-core/src/models/glm4.rs:752-769 | mistralrs-core/src/models/hunyuan_v1_dense.rs:724-741 | mistralrs-core/src/models/mistral.rs:764-781 | mistralrs-core/src/models/phi3.rs:699-717 | mistralrs-core/src/models/qwen2.rs:766-783 | mistralrs-core/src/models/qwen3.rs:723-740 | mistralrs-core/src/vision_models/gemma3/text.rs:978-995 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:727-744 | 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 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/gemma.rs"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"de4d778c1f2a04d8bf6d28e35f62b6963820f95b751283c0e9421ea8e50d9f26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 5): mistralrs-core/src/models/granite.rs:1958-1975 | mistralrs-core/src/models/llama.rs:359-376 | mistralrs-core/src/models/qwen3_next.rs:752-770 | mistralrs-core/src/models/smollm3.rs:375-392 | 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 20 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":1958}}}],"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/hqq/hqq_op.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa0769f49cfb6bbc7db4d1fc1bce99b59a0dc8f92ed734790551226d9da954c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201319 lines \u00D7 3): mistralrs-cli/src/commands/bench.rs:119-133 | mistralrs-cli/src/commands/run/mod.rs:55-69 | mistralrs-cli/src/commands/serve.rs:61-79 \u2014 before extracting anything, compare \u0060mistralrs-cli/src/commands/bench.rs\u0060 and \u0060mistralrs-cli/src/commands/run/mod.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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"3380f344271bc9fdeea9dc92c7bb4b0d9decb7af6dfdc864efd97d10239b96f2"}},{"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:474-491 | mistralrs-core/src/vision_models/gemma3n/text.rs:1398-1416 \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 16 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"29450110244266b49c464c27cac86f7a91aafb8e67dc8881f714bc6fc218abb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): mistralrs-core/src/layers.rs:2323-2341 | mistralrs-core/src/layers.rs:2421-2439 | mistralrs-core/src/layers.rs:2468-2486 \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":2323}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9a28272cf022743cd57bd5783312c73885fae0bdeaa147ccfe3b0cf9c342cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): mistralrs-core/src/model_loader.rs:530-548 | mistralrs-core/src/toml_selector.rs:875-893 | mistralrs-core/src/toml_selector.rs:922-940 \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 10 separate duplicated blocks between them, totalling at least 156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbd1e60daa262b83baf3e88df0ecee0668862730f7162deb8db44ddd7da9c9d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): mistralrs-core/src/model_loader.rs:732-750 | mistralrs-core/src/model_loader.rs:766-784 | 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 10 separate duplicated blocks between them, totalling at least 156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"dab368e50471aa0ca6e36d624b2b7d3472027d4f68acabf91723308518eb0b4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): mistralrs-core/src/models/qwen3_next.rs:900-918 | mistralrs-core/src/vision_models/qwen3_5/text.rs:1380-1398 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:685-703 \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 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d0801c8e74a54a6b1eec6becd6abfe37f4b872d7f1801add9e37bdaa321a8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): mistralrs-core/src/pipeline/embedding.rs:202-220 | mistralrs-core/src/pipeline/multimodal.rs:510-528 | mistralrs-core/src/pipeline/normal.rs:613-631 \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 11 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aef3c07cab694371865fec8c3d0678a9abe894f57e91c2f76a15244943a47fb"}},{"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."},"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/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 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"8905de869b8b4ae46776c94e4e8336ca2f0df697a17a9d2aabe0e581ae2ee65b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:604-622 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1212-1230 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1274-1292 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e34275637baf2132423b6f641e25f62daea82cd4869586df1115d16ec10cc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): mistralrs-core/src/vision_models/qwen3_5/mod.rs:395-413 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:382-400 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:412-430 \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 23 separate duplicated blocks between them, totalling at least 408 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":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"3600ebc4362b060aafeb7eda57a3482fcc16df9ba2febd4428dee73c7589b54a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs/src/anymoe.rs:118-136 | mistralrs/src/model_builder_trait.rs:939-957 \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/src/anymoe.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"7486dd1d6f3e28cbf619eee00858b96d049dbc6b3137c2f9fe60bd6f3581f619"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): mistralrs/src/model_builder_trait.rs:1127-1145 | mistralrs/src/model_builder_trait.rs:1194-1211 \u2014 both copies are in the same file, so extract the block 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":1127}}}],"partialFingerprints":{"codehealthFindingId/v1":"caaefbbf8d7683dea8ba0161b1d689a009d8e55cef1b8c159ba14e5d541a7dea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-cli/src/commands/run/interactive.rs:886-904 | mistralrs-cli/src/commands/run/interactive.rs:1566-1584 \u2014 both copies are in the same file, so extract the block 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":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cff31421acf049fc3b7139429217edce13ee7ef5a384110ef84d48501d68238"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-cli/src/commands/run/interactive.rs:931-949 | mistralrs-cli/src/commands/run/interactive.rs:1611-1629 \u2014 both copies are in the same file, so extract the block 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":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"50cffdb91d0b1747820695d14b49abb643c9e45e3ea5a8bc9dfa12faff2ecc83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-cli/src/commands/run/mod.rs:101-119 | mistralrs-cli/src/commands/serve.rs:112-130 \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 5 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/run/mod.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b813bee268dbf7d144f3d67b78fb4070ac54f45d1c9923818a9db0c556ecdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:964-982 | mistralrs-core/src/cuda/gdn.rs:1210-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-core/src/cuda/gdn.rs"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4084b14e8768d17a80f787add4d6515014850a9ee3abafbed5196bda3b299f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:3403-3421 | mistralrs-core/src/cuda/gdn.rs:3952-3970 \u2014 both copies are in the same file, so extract the block 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":3403}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb42f886910c48885483077f9050c2599af0f5a081dbabef6d6693b29b178c95"}},{"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 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/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:1275-1293 \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 27 separate duplicated blocks between them, totalling at least 291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/mixtral.rs"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b262f8c3883f14c13c4a87b4a6985352eac0b14be6a6148571953e4ccad7a53"}},{"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 48 separate duplicated blocks between them, totalling at least 605 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":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:320-338 \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 27 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."},"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:1672-1690 | mistralrs-core/src/ops.rs:1943-1961 \u2014 both copies are in the same file, so extract the block 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":1672}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3afeed0e9d2f52e755e9b50192ee9a3458da574f4cd1fbd4577edfc770316f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/ops.rs:4697-4715 | mistralrs-core/src/ops.rs:5121-5139 \u2014 both copies are in the same file, so extract the block 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":4697}}}],"partialFingerprints":{"codehealthFindingId/v1":"967249c7834ec9893cdc51bea3e0c8242c527faf0dff856eb47787830e562893"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/ops.rs:5381-5399 | mistralrs-core/src/ops.rs:5817-5835 \u2014 both copies are in the same file, so extract the block 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":5381}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e58dc62ccccbc8b25da9841926886d945849c61e445039f785d7c364d3244f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/pipeline/embedding.rs:303-321 | mistralrs-core/src/pipeline/embedding.rs:327-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a478dc5a64506b11417ac934b62a5aa8460a5caced9da48f130b3cf9f4eb58f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/pipeline/inputs_processor.rs:2614-2632 | mistralrs-core/src/pipeline/inputs_processor.rs:2763-2781 \u2014 both copies are in the same file, so extract the block 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":2614}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb4b636cde2cfd0fe657ac9df71b60f0a6cd0e630994ee46c4b76c2e89ed9442"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:714-732 | mistralrs-core/src/pipeline/normal.rs:1007-1025 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aaa790461b4384b40156d7a99986defbf4047c80337eedb1260942c62dcbf0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1708-1726 | mistralrs-core/src/pipeline/normal.rs:1637-1655 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1708}}}],"partialFingerprints":{"codehealthFindingId/v1":"055ea3c873f9f5d2f560fa52fe3f3627e00f30ce87e2bc5414a216f5a7f9ce05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:3082-3100 | mistralrs-core/src/pipeline/normal.rs:2721-2739 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":3082}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d14bb213d5d64973cbf3afc752f07624f833bc771ab6e5e058a7fe7be906cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/prefix_cacher.rs:411-429 | mistralrs-core/src/prefix_cacher.rs:439-457 \u2014 both copies are in the same file, so extract the block 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/prefix_cacher.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b64106e9387af88d38f56203934380600c7cab3993b9ce6b5c5aa9d8d9410e"}},{"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."},"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 16 separate duplicated blocks between them, totalling at least 279 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":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a69221037339eb3137040e15558e33ae65bd1f296308f91fd93bad700e75d58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs:779-797 | mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:1000-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 7 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":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"2092603d27ed88be87d9d1b72807323dc5063b2e075eeeaadf6afe5668b6e7a7"}},{"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 20 separate duplicated blocks between them, totalling at least 316 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/llava/llava_next_inputs_processor.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"153a86d104659face0a008b2b476dbb9290f549d3d6aed8a11711cb3f6994222"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/vision_models/phi3/mod.rs:1257-1275 | mistralrs-core/src/vision_models/phi4/mod.rs:372-390 \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 47 separate duplicated blocks between them, totalling at least 548 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":1257}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef7eb548b7401290e951f27f7eb325cf940aa9b907a4182e3432b35a0960810"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:538-556 | mistralrs-core/src/vision_models/qwen2vl/text.rs:540-558 \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 43 separate duplicated blocks between them, totalling at least 650 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/text.rs"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"277329cbd67cd26ff04890dbc6a3b34b82ef9a6ea092e38cbd00f94b220cb867"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/mod.rs:132-150 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:117-135 \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 23 separate duplicated blocks between them, totalling at least 408 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":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"734ee1bc8c1f4d99a1d89be8c615be437be5caf53de336ed6a97880349b04502"}},{"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/cuda/backend/mla.rs"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"77eb58e935ba166921f3145ac576099160a8066b4cd4d3fe356b471a9be7a47b"}},{"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cublaslt/matmul.rs"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc09961c543097f38232647411c5ae728bb7a60c01cd6482df01cdbc3d96726"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:562-580 | mistralrs-quant/src/cutile/fp8_w8a8.rs:603-621 \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 21 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":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d13b0d8d6939b12ab11089c269d7912b2e8b2f0922cf11af9ed7631fbf8603"}},{"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."},"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 (18\u201319 lines \u00D7 2): mistralrs-quant/src/afq/ops.rs:874-891 | mistralrs-quant/src/afq/ops.rs:1000-1018 \u2014 both copies are in the same file, so extract the block 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":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1cc0debdd84e8d650c0f8ab87ceb8028b46ced28e7d608bd0a16acaebf3d05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-quant/src/mxfp4/ops.rs:503-521 | mistralrs-quant/src/mxfp4/ops.rs:590-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/mxfp4/ops.rs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae8c1bec53430da9e52632c3410ee155051fc6e0f5958b7e566a444285868c65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 15): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:523-540 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1334-1351 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2640-2657 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2982-2999 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3289-3306 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3968-3985 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4358-4375 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4722-4739 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:748-765 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:959-976 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1172-1189 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2028-2045 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2241-2258 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4143-4160 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5182-5199 \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 11 separate duplicated blocks between them, totalling at least 170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":523}}}],"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 491 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 3): mistralrs-core/src/models/gemma.rs:418-435 | 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 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/gemma.rs"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45cd5aee78654587a573c7301f0756b6c758617bb066abf44ea79e721fcd0df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): mistralrs-core/src/models/glm4.rs:531-548 | mistralrs-core/src/models/qwen3.rs:491-508 | mistralrs-core/src/models/qwen3_moe.rs:674-691 \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 50 separate duplicated blocks between them, totalling at least 588 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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.rs"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa2065960d227a9a3d8ab924592f8f4a45f094ec320cee678d7a5ff9444cabe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): mistralrs-core/src/models/phi2.rs:675-692 | mistralrs-core/src/models/starcoder2.rs:666-683 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:688-705 \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 28 separate duplicated blocks between them, totalling at least 312 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/phi2.rs"},"region":{"startLine":675}}}],"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:7236-7250 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7695-7712 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5882-5888 \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 32 separate duplicated blocks between them, totalling at least 426 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":7236}}}],"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."},"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 7 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":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."},"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/vision_models/qwen2_5_vl/inputs_processor.rs:985-1002 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1550-1567 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1679-1696 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"4193d77e04771c9fbbc0a17464f8a12667c58017d5dbdbff487d63a3cdcc0ad1"}},{"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 491 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":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 36 separate duplicated blocks between them, totalling at least 524 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":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:533-550 | mistralrs-core/src/xlora_models/mistral.rs:499-516 \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 491 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/cuda/backend/mla.rs"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"0916e1a1ad70164d911276dbcbb87b7a78d26ef5aaa7993a9c642d689af9ab27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 3): mistralrs-pyo3/src/util.rs:203-219 | mistralrs-pyo3/src/util.rs:257-274 | mistralrs-pyo3/src/util.rs:317-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-pyo3/src/util.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e328030786e7c8d3a1040178eeb6025eb4cccb48d6b79f2f48d83a20f7c1cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201318 lines \u00D7 3): mistralrs-quant/src/afq/ops.rs:2424-2436 | mistralrs-quant/src/afq/ops.rs:2788-2800 | mistralrs-quant/src/afq/ops.rs:3379-3396 \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":2424}}}],"partialFingerprints":{"codehealthFindingId/v1":"0140bb2ffd376c35800637f7259ef9eabf2183c8f914448aaadbb749ced0e417"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs/src/model_builder_trait.rs:433-450 | mistralrs/src/model_builder_trait.rs:506-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs/src/model_builder_trait.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f21866f040f42060da73a1fce80c978542275dd6539c0c8d24242c56920b2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-cli/src/commands/run/interactive.rs:1900-1917 | mistralrs-cli/src/commands/run/interactive.rs:2025-2042 \u2014 both copies are in the same file, so extract the block 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":1900}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2ff71504153cde6df412ec9a64dca5fc9277a173c1c45fc7d077757e0ed7e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-cli/src/commands/config.rs:57-74 | mistralrs-cli/src/commands/config.rs:229-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/config.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa73bc558514b5017a1b511601ec00aa97515abedf58ebaf2e793d17d2729c83"}},{"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."},"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/cuda/gdn.rs:1918-1935 | mistralrs-core/src/cuda/gdn.rs:5770-5787 \u2014 both copies are in the same file, so extract the block 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":1918}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd8525577db38872978074c41b83f20d35a0578f2b405f6439ee9357c64108e1"}},{"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:428-445 \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 362 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/qwen3_embedding.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"631a6d05311c7e714afaf1b995b5c9e29196a84ec50f8442d73b8685e8646bd8"}},{"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 53 separate duplicated blocks between them, totalling at least 686 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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:404-421 | mistralrs-core/src/models/smollm3.rs:420-436 \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 50 separate duplicated blocks between them, totalling at least 696 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce0d10ba42b27ade99ebf31e2b2641ef64fadf592f357d5aa75fdc73f23ed87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/models/llama.rs:493-510 | mistralrs-core/src/models/smollm3.rs:512-529 \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 50 separate duplicated blocks between them, totalling at least 696 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"3862940f800252b0984000d50b1f48e87007641dd219216d4269a0f168021944"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/models/mistral.rs:534-551 | 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 42 separate duplicated blocks between them, totalling at least 550 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/mistral.rs"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aff763d51afa03054f4256a3b76d55994a45d1172c312f03f2ea07c9e8097d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): 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/qwen3_moe.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 313 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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_moe.rs"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"f737bbeabdcd4e5f5209770638204362435fd5b46abb12be2057f028a4d60346"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): mistralrs-core/src/models/qwen3_next.rs:676-692 | 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"011f5f24ac486e64c5bb3da1d81f5c74c628b0f6b2c3e2cb7d21b03183b3f0e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): mistralrs-core/src/moe/experts/backends.rs:1409-1426 | mistralrs-core/src/moe/experts/backends.rs:1581-1597 \u2014 both copies are in the same file, so extract the block 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/moe/experts/backends.rs"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"5666ec5edd776b3aa5732f63d67e221c8e7826a342073f97d70ac4c255ba7dc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/pipeline/inputs_processor.rs:2183-2200 | mistralrs-core/src/pipeline/inputs_processor.rs:2219-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/inputs_processor.rs"},"region":{"startLine":2183}}}],"partialFingerprints":{"codehealthFindingId/v1":"683297878034df93fa0467c44d148760941e7c19b05a47215135e55e0152ead8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1626-1643 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1911-1928 \u2014 both copies are in the same file, so extract the block 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":1626}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b988831596e2f9f75885f9167873b029045243f350b49ea725b647e38995b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1892-1909 | mistralrs-core/src/pipeline/normal.rs:2214-2231 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1892}}}],"partialFingerprints":{"codehealthFindingId/v1":"5508fd11108721ad04e081b2522b48e96fd68167e2f760d00da811798ffc12e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2066-2083 | mistralrs-core/src/pipeline/normal.rs:1896-1913 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":2066}}}],"partialFingerprints":{"codehealthFindingId/v1":"769badee235f1b7e9c11ff7cba07cea7f0519e90c0b92b87eb32121921fc2a6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2101-2118 | mistralrs-core/src/pipeline/normal.rs:1924-1941 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":2101}}}],"partialFingerprints":{"codehealthFindingId/v1":"905a44dbb1aeb49d13277f512e5f4caf419cb352f8ddd91ed533c9d9bf08d7ad"}},{"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."},"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 16 separate duplicated blocks between them, totalling at least 279 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":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 8 separate duplicated blocks between them, totalling at least 121 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":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 8 separate duplicated blocks between them, totalling at least 121 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":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."},"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/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 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"5189fbbce8d7ae9c1f3480f1fff6120749399302fb926d0ccc20942d92402f99"}},{"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 10 separate duplicated blocks between them, totalling at least 157 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 263 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":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 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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:1105-1122 \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_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 3 separate duplicated blocks between them, totalling at least 50 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/phi3_inputs_processor.rs"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9019a585d368f9de179f0ecca74b4a30f7a8c8425eddba10f27bbd8b65de18c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:247-264 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:813-830 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"286355ce2dcb84724d9b03361edd24c502c3c13e9177f8f9173ce700bfeca6db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:215-232 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:162-179 \u2014 \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_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 52 separate duplicated blocks between them, totalling at least 1117 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/qwen2vl/inputs_processor.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"8348a7ac76d867e236493c75304846717fe85f62f95b9989e4bcfd0e12e28c15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:327-344 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:443-460 \u2014 \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_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 52 separate duplicated blocks between them, totalling at least 1117 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/qwen2vl/inputs_processor.rs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd201e875697be4ebca91c44ee1db0268ebbd6e3745476a08c029988796ae94"}},{"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:368-385 \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 414 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"816dcd404275c35a3bfc9156685f39042636e5a9dca1f1d7c16c825a9e8f42d1"}},{"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:217-234 \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 439 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/mistral.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"4701fe199c12b4d53ad365ad58c8e65c9a02c14307003ff5d340efea6f355981"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-core/src/xlora_models/quantized_llama.rs:398-415 | mistralrs-core/src/xlora_models/quantized_llama.rs:700-717 \u2014 both copies are in the same file, so extract the block 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":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b87697ce2cdffada3c32c3d082183a99d0e121764703f33bcc3592240fcb08f"}},{"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:442-459 \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 13 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. If that is what happened, the fix is to keep one copy and have the other 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":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a59198334d1bfff065e7bcb2c7868611718ed9d818a7082e31f7ca33bc063dd"}},{"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."},"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-paged-attn/src/cuda/backend/paged_attention.rs:248-265 | mistralrs-paged-attn/src/metal/backend/paged_attention.rs:121-138 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"283baa4aad40345ba7bd592a6a9c3a1f2e988c298340f85d93686724889d81d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:102-119 | mistralrs-paged-attn/src/metal/backend/gather_kv.rs:59-76 \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 4 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dcc8f30e078e39c6f1447acbbbb8815280013f10dc6ff8157e288ee341f0e13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmvq.rs:353-370 | mistralrs-quant/src/gguf/fast_mmvq.rs:557-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"61501c82d722e5eb444a91ccb08ea5c4bf5ad99a08ed5d450b707f37e657f899"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-server-core/src/anthropic.rs:1846-1863 | mistralrs-server-core/src/chat_completion.rs:1146-1163 \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 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-server-core/src/anthropic.rs"},"region":{"startLine":1846}}}],"partialFingerprints":{"codehealthFindingId/v1":"8131d9cfcaae7197329428781bc3e6411af193f8e4a4f8fea7ca4eda0ce9eb17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): mistralrs-server-core/src/embeddings.rs:282-299 | mistralrs-server-core/src/embeddings.rs:331-348 \u2014 both copies are in the same file, so extract the block 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/embeddings.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb1dbbdc1cbff895c6c88ff0fd021a32ebcd79ab5667abc39c1f0252dae01dd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 22): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:880-896 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3531-3547 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:702-718 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1126-1142 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1354-1370 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1571-1587 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1778-1794 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1982-1998 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2633-2649 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2902-2918 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3208-3224 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3454-3470 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3656-3672 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3880-3896 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4098-4114 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4352-4368 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4651-4667 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4913-4929 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5136-5152 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5350-5366 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5583-5599 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5824-5840 \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 32 separate duplicated blocks between them, totalling at least 426 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"757d3d01f6557d201555f4136759335fe020e060e5cfd8eb3c38a9c39d4de6cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 17): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:521-537 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1332-1348 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1624-1640 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1909-1925 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2638-2654 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2980-2996 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3287-3303 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3966-3982 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4356-4372 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4720-4736 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:746-762 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:957-973 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1170-1186 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2026-2042 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2239-2255 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4141-4157 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5180-5196 \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 11 separate duplicated blocks between them, totalling at least 170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"f618b74f90cc5597e511116fae0f1b430d86b20a11326c0d1a981cd5d91cb126"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 14): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1329-1345 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1621-1637 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1906-1922 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2310-2326 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2635-2651 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2977-2993 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3284-3300 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3963-3979 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4717-4733 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:743-759 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1167-1183 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2023-2039 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4138-4154 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5177-5193 \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 32 separate duplicated blocks between them, totalling at least 426 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1329}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aec13e94ee01708005f1b5424433a15cd651f358544a4eb32b95ed3b89b561b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 13): mistralrs-core/src/models/gemma.rs:586-602 | mistralrs-core/src/models/gemma2.rs:702-718 | mistralrs-core/src/models/glm4.rs:702-718 | mistralrs-core/src/models/hunyuan_v1_dense.rs:674-690 | mistralrs-core/src/models/mistral.rs:714-730 | mistralrs-core/src/models/phi2.rs:661-677 | mistralrs-core/src/models/phi3.rs:657-673 | mistralrs-core/src/models/qwen2.rs:716-732 | mistralrs-core/src/models/qwen3.rs:673-689 | mistralrs-core/src/models/starcoder2.rs:652-668 | mistralrs-core/src/vision_models/gemma3/text.rs:928-944 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:674-690 | 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 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/gemma.rs"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"4512912f6588743e63fa9243490ae05f5332f62305466ae2416b9f862ddb4695"}},{"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:277-293 | mistralrs-core/src/models/mistral.rs:323-339 | mistralrs-core/src/models/qwen2.rs:355-371 | mistralrs-core/src/models/qwen3.rs:308-324 | mistralrs-core/src/models/smollm3.rs:293-309 \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."},"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/cuda/backend/mla.rs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d2be00e34cf63bcf6332ff3ba6f415133fc270853985acfc730d2936b550218"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 6): mistralrs-quant/src/afq/ops.rs:2623-2639 | mistralrs-quant/src/afq/ops.rs:2771-2787 | mistralrs-quant/src/afq/ops.rs:2919-2935 | mistralrs-quant/src/afq/ops.rs:3182-3198 | mistralrs-quant/src/afq/ops.rs:3362-3378 | mistralrs-quant/src/afq/ops.rs:3545-3561 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":2623}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f26865bf155b3513d3d8652b5161aec1a375fbb96f1573069243b210138c395"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 5): mistralrs-core/src/models/deepseek2.rs:824-838 | mistralrs-core/src/models/deepseek3.rs:887-901 | mistralrs-core/src/models/glm4_moe.rs:724-738 | mistralrs-core/src/models/glm4_moe_lite.rs:834-848 | mistralrs-core/src/vision_models/mllama/text.rs:766-782 \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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bcd89294f9f6117d275120ae449bd30547ebc28f7e662baf211357c86512bd1"}},{"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:378-394 | 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 25 separate duplicated blocks between them, totalling at least 307 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/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:2820-2835 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3126-3141 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4267-4283 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4566-4582 \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/loaders/normal_loaders.rs"},"region":{"startLine":2820}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b520db7efd960784cba80e3300cb9df745c35351db0637517bb0fddfb1dd57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): mistralrs-core/src/pipeline/multimodal.rs:3047-3063 | mistralrs-core/src/pipeline/multimodal.rs:3096-3112 | mistralrs-core/src/pipeline/normal.rs:2686-2702 | mistralrs-core/src/pipeline/normal.rs:2735-2751 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":3047}}}],"partialFingerprints":{"codehealthFindingId/v1":"87bad32e0a3fa2e2f2254231c0b32e396bbdcf470aeb37d9bb08009fcd480dd2"}},{"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 19 separate duplicated blocks between them, totalling at least 362 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":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e3b7b5c8e90311570521e8a114a54c4004bfe980525168d1b3b58d2ad3c029"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 4): mistralrs-core/src/vision_models/qwen3_5/mod.rs:401-417 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:388-404 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:973-988 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:418-433 \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 23 separate duplicated blocks between them, totalling at least 408 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":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea117ce43895a1ce00ec820c78c76f8ac539b615dd3f9d18e120031d330d9c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): mistralrs/src/messages.rs:611-627 | mistralrs/src/messages.rs:645-661 | mistralrs/src/messages.rs:680-696 \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":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"de109da303153af402a9f596f8fed72c2227a11ae889a77df80114a7c8e8cb0e"}},{"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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c09770d226129a4b1f4d8b967be8041c4e1885017b65afa59e4b595578ce16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): mistralrs-core/src/models/llama.rs:441-457 | mistralrs-core/src/models/smollm3.rs:464-480 | 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 50 separate duplicated blocks between them, totalling at least 696 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bbe25daf8b3bb3c2303be1afff71cb5cd7155ba45a9e3a350659553b335c9c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): mistralrs-core/src/models/llama.rs:615-631 | mistralrs-core/src/models/smollm3.rs:634-650 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:627-643 \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 50 separate duplicated blocks between them, totalling at least 696 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"74cfb7442e119ae0908d18f7efce062533030872ff63929700c1ff70bd1d37d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): mistralrs-core/src/models/qwen2.rs:393-409 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:352-368 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:473-489 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/qwen2.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_vl/text.rs\u0060 as WHOLE FILES: this scan already matched 13 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/qwen2.rs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"6909d1fd9fe808c3a499469afcd57f88a38fbda578694dd86b9cbe9ed1934bb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): mistralrs-core/src/ops.rs:123-139 | mistralrs-core/src/ops.rs:161-177 | mistralrs-core/src/ops.rs:199-215 \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":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"4125cb66d02261766ded0b4aa8c286fedfcbf8d844e9b583d3e33f48704d8456"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:964-980 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3651-3667 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1821-1837 \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 32 separate duplicated blocks between them, totalling at least 426 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"c52680a8d652dc876cc04d8c63598593ac4abbda07fabec6b1f39c3a9140e186"}},{"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."},"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/qwen2_5_vl/inputs_processor.rs:237-253 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:803-819 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:898-914 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb461a9c14519c360b9142636cab88f26536a76d630dbe2564d33748007f8db4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:256-272 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:822-838 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:920-936 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"7990eff5b2884ad803815274edba308698084fbcc48f792dcb19342f2593c614"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:334-350 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:900-916 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1001-1017 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb81ed74ebb1a7b039d38560e233ebb035061784f77bd428acb674145c119585"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:643-659 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1251-1267 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1317-1333 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0f1908f3af17317e42ee67aa1c5d7f69b5fc5fdcd441851d03531c7e853f95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:779-794 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1344-1359 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1457-1473 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ee958f49bffd67704942da92a41a68eae4761388359f889bc8f80e46f84668"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:79-95 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:632-648 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:77-93 \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 16 separate duplicated blocks between them, totalling at least 249 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_moe/mod.rs"},"region":{"startLine":79}}}],"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:560-576 | mistralrs-core/src/xlora_models/starcoder2.rs:508-523 \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 491 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"3def3ab5daff8203c7770c4bfa0e845b477119f6034baf985119f9daa2e372bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): mistralrs-quant/src/distributed/mod.rs:561-577 | mistralrs-quant/src/distributed/mod.rs:592-608 | mistralrs-quant/src/distributed/mod.rs:623-639 \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/distributed/mod.rs"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"d70139e4f010af194734b63fdfc49d1b50c9ee72a70775187e53ea3361455ea5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): mistralrs-quant/src/distributed/mod.rs:710-726 | mistralrs-quant/src/distributed/mod.rs:741-757 | mistralrs-quant/src/distributed/mod.rs:772-788 \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/distributed/mod.rs"},"region":{"startLine":710}}}],"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."},"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."},"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."},"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:461-477 \u2014 both copies are in the same file, so extract the block 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":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"884d69563b75f4ed736f2765d614f498650b8a8b6ec1575a1afed42e3c02a305"}},{"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 23 separate duplicated blocks between them, totalling at least 253 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":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:820-836 | mistralrs-core/src/models/phi3.rs:490-505 \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 17 separate duplicated blocks between them, totalling at least 166 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"085ed6846a099b0fbdec4af7d9bed0b4717495b23b6465cda39cd061905ceafe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201317 lines \u00D7 2): mistralrs-core/src/models/granite.rs:1099-1110 | mistralrs-core/src/models/granite.rs:1133-1149 \u2014 both copies are in the same file, so extract the block 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":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0a4931c48aebba52b897e87dc1a7994348581523a1022b1403d412e7ecffb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/models/granite.rs:2243-2259 | 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":2243}}}],"partialFingerprints":{"codehealthFindingId/v1":"00bc9347f8b822653fa2122b6069f94791fcb504eef02fad3e21a816016fe0e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): mistralrs-core/src/moe/experts/backends.rs:942-958 | mistralrs-core/src/moe/experts/backends.rs:1021-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/moe/experts/backends.rs"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"b737b2716bfe1ee70f9b0eec23df22048252f18d21d0bb95fdade9ab24f18ab8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201317 lines \u00D7 2): mistralrs-core/src/moe/experts/backends.rs:1385-1396 | mistralrs-core/src/moe/experts/backends.rs:1483-1499 \u2014 both copies are in the same file, so extract the block 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/moe/experts/backends.rs"},"region":{"startLine":1385}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ede3c4be8fc92d7f625857b213b9f18ce112890d0c65647a5be6670ae53a2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/ops.rs:5411-5427 | mistralrs-core/src/ops.rs:6174-6190 \u2014 both copies are in the same file, so extract the block 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":5411}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a0bfa3eb24b11ea044de1a5adbce4df346eb28f83769c5f75c2934eaf2904e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/pipeline/ggml.rs:566-582 | mistralrs-core/src/pipeline/gguf.rs:1549-1565 \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 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"eae0bcafaefe8aa2a68e79271a5d38cf9a4ee9f39f3ad54e61bb3fb5b9b6fc39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3806-3822 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3841-3857 \u2014 both copies are in the same file, so extract the block 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":3806}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3ce7415ff6669919a421b6338b2a973c1f7da997e60c6724f89c890dd9a792"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:488-504 | mistralrs-core/src/pipeline/normal.rs:591-607 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"4504e6f28430dade46532b6206f06b8a064c6ff35dedd9394ef2a51ff05957cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:830-846 | mistralrs-core/src/pipeline/normal.rs:814-830 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"76516da00d96ba9cb1664817a6947367be8805cb29a5ca9acca6b4e3b0789cd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1607-1623 | mistralrs-core/src/pipeline/normal.rs:1538-1554 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1607}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a8cd9db846f20650cf40692416a2003e4a4ecc465e9af06a676bc8f521e68b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1649-1665 | mistralrs-core/src/pipeline/normal.rs:1579-1595 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1649}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02cf133fbf13dd190846f0937611437afd6ee521c72b437bc70371e2680f9e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/tools/state.rs:277-293 | mistralrs-core/src/tools/state.rs:325-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/tools/state.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"13721d3c84d06c701311fa3ea76772b4f55934de22832c131c3629f0ff2ab16b"}},{"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 16 separate duplicated blocks between them, totalling at least 279 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":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:1715-1730 | mistralrs-core/src/vision_models/gemma4/text.rs:2038-2054 \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 8 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/gemma3n/text.rs"},"region":{"startLine":1715}}}],"partialFingerprints":{"codehealthFindingId/v1":"795e2da751bacc66faaa2b762f67fd4e2d788c59cb50faf30f6681b56f18432e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:221-237 | mistralrs-core/src/vision_models/qwen2vl/text.rs:222-238 \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 43 separate duplicated blocks between them, totalling at least 650 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/text.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"c95401a485a66493e380bd2b985e1ee75d94b2eb4a14afcae41d6c6c9e13e6cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:179-195 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:150-166 \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 18 separate duplicated blocks between them, totalling at least 176 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":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"4701f00ff78db1301537682b9a11882047c696b4029503a0ca5aebdf9a7a9947"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:249-265 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:368-384 \u2014 \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_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 52 separate duplicated blocks between them, totalling at least 1117 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/qwen2vl/inputs_processor.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6cb0c480d8537d0cfd56a69bc90e297c689fb61071ca7dd8d23170c3d812e60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/mod.rs:524-540 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:520-536 \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 23 separate duplicated blocks between them, totalling at least 408 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":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3420f3bd900c3823c2a177bc7672efc2b145f92295ac3b9cfa7680df1a5c49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/text.rs:2643-2659 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:904-920 \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 416 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":2643}}}],"partialFingerprints":{"codehealthFindingId/v1":"86451d07504622165cfb192228ca1bcf0f22ef376616a5281e124b64e08a973e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_vl/mod.rs:708-724 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:153-169 \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 28 separate duplicated blocks between them, totalling at least 500 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/mod.rs"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca8986e6c5d649b45c51f19d13ea262ecc7bddc7ebb6993dadd6097bcd9c0a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_vl/mod.rs:728-744 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:173-189 \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 28 separate duplicated blocks between them, totalling at least 500 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/mod.rs"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"816e138982e0a5bb168d4f0efba142d40ffc63b18bc06bfb76877f256a6dadb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_vl/mod.rs:784-800 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:229-245 \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 28 separate duplicated blocks between them, totalling at least 500 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/mod.rs"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3a7260abdfa6fdd69e490b9d24317e656b7a8f6a809b67623db8cff751f98ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_vl/mod.rs:803-819 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:248-264 \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 28 separate duplicated blocks between them, totalling at least 500 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/mod.rs"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2e3f3c41e3baf592addad6f2acef2aef795d166551b3581e63c05ccff4b464"}},{"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 491 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":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:477-492 \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 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."},"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:527-543 | mistralrs-core/src/xlora_models/mixtral.rs:657-673 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/xlora_models/mistral.rs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"82f1c39cdb1a773ec74f1f04b45a2922ec10a53f953fb680d58226c94f62ce2a"}},{"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:400-416 \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 13 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. If that is what happened, the fix is to keep one copy and have the other 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":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:475-489 \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 13 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. If that is what happened, the fix is to keep one copy and have the other 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 (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-paged-attn/src/cuda/backend/paged_attention.rs:275-291 | mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:630-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c64eed0e07abff66d5c0cc29459def92ba56f21b5017c760881fab653ef352e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:336-351 | mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:388-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f8dc7fb258c318016822dfdbfbdd92bd52b6573c1073c1448208e0c16e93cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:467-483 | mistralrs-paged-attn/src/metal/backend/paged_attention.rs:364-380 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a30375a0561cbba2a1be0648fa9fcb644cfc289d5f037f9a89180eebfa0994"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-paged-attn/src/metal/backend/paged_attention.rs:148-164 | mistralrs-paged-attn/src/metal/backend/paged_attention.rs:503-519 \u2014 both copies are in the same file, so extract the block 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/backend/paged_attention.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"42dd2bf3a9ee197d4010f8011fe598cb9345eaf3bbfae0b784a252e9c8e99867"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-paged-attn/src/metal/kernels/mod.rs:267-283 | mistralrs-paged-attn/src/metal/kernels/mod.rs:701-717 \u2014 both copies are in the same file, so extract the block 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":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc1018c5b8bf3ee08e7a70e64f72a4ca77675c3e24258b1a063e60c12e1f314c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:490-506 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:935-950 \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 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"811aad5d72ee3887c5ead1c69b38884eb439cea25b18863f4702b5df26827d54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:826-842 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:742-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 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c3754fae603fc093015a5952e57ed99d3da973379c66ecae594cf7188d41ff1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:1989-2005 | mistralrs-quant/src/distributed/layers.rs:2205-2221 \u2014 both copies are in the same file, so extract the block 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":1989}}}],"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."},"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 (13\u201316 lines \u00D7 26): 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:1581-1593 | 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:238-253 | 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:369-381 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:241-253 | 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/gemma2.rs\u0060 and \u0060mistralrs-core/src/models/glm4.rs\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 247 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/gemma2.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"039ec108c2d1041227b40e08198529aebd65482a6b351d28a98eac9a1b92c421"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 18): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:520-535 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1331-1346 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1623-1638 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1908-1923 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2312-2327 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2637-2652 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2979-2994 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3286-3301 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3965-3980 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4355-4370 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4719-4734 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:745-760 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:956-971 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1169-1184 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2025-2040 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2238-2253 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4140-4155 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5179-5194 \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 11 separate duplicated blocks between them, totalling at least 170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b27900de91c76a3eea9b182f42e47b8993922bfe8be942d8110cbc3c99654b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 8): mistralrs-core/src/xlora_models/gemma.rs:649-664 | mistralrs-core/src/xlora_models/gemma2.rs:704-719 | mistralrs-core/src/xlora_models/llama.rs:477-492 | mistralrs-core/src/xlora_models/mistral.rs:649-664 | mistralrs-core/src/xlora_models/mixtral.rs:779-794 | mistralrs-core/src/xlora_models/phi2.rs:615-630 | mistralrs-core/src/xlora_models/phi3.rs:605-619 | mistralrs-core/src/xlora_models/starcoder2.rs:634-649 \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 491 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"c92481c86256ca80a876072639ac2f72b4a2a7bd1b69902479d45a7a76db3f5c"}},{"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:1599-1614 | 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:390-404 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:259-273 \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 31 separate duplicated blocks between them, totalling at least 341 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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.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:494-508 | mistralrs-core/src/xlora_models/mistral.rs:460-474 | mistralrs-core/src/xlora_models/mixtral.rs:590-605 | mistralrs-core/src/xlora_models/phi2.rs:442-456 | mistralrs-core/src/xlora_models/phi3.rs:419-433 | mistralrs-core/src/xlora_models/starcoder2.rs:449-463 \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 491 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":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."},"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 (16 lines \u00D7 6): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:188-203 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:478-493 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:754-769 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1086-1101 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:849-864 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1146-1161 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f5cdfa189dfe75a1832d703f47d76eca833c796d55ebf40eaeb7705ae8944a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 6): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:205-220 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:495-510 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:771-786 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1103-1118 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:866-881 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1163-1178 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"c00bae98c2687cc8efdc41334c5d3752d8e627fe19d179e326c8a67577314ab7"}},{"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:461-476 | mistralrs-core/src/xlora_models/mistral.rs:426-441 | mistralrs-core/src/xlora_models/mixtral.rs:556-571 | mistralrs-core/src/xlora_models/phi3.rs:393-408 | mistralrs-core/src/xlora_models/starcoder2.rs:415-430 \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 491 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 21 separate duplicated blocks between them, totalling at least 203 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e22e24f0421e82df3e18aab3c1082dd186963d9dffeb8bdb73100409d386612"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): mistralrs-core/src/models/gemma.rs:349-364 | 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 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/gemma.rs"},"region":{"startLine":349}}}],"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:165-180 | 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 41 separate duplicated blocks between them, totalling at least 528 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/qwen2.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"211cdf8f732676ff7ccb9e7082a5b1a14ce5612da1c773d7bf1cefed18eedda4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 4): mistralrs-core/src/models/qwen3_moe.rs:366-381 | mistralrs-core/src/models/qwen3_next.rs:413-427 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:317-331 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:105-120 \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 25 separate duplicated blocks between them, totalling at least 307 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/qwen3_moe.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd1e6339cfbb56b782d773f52c468e80127c4f94f3431b000bbb73feb34b78c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 4): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6237-6252 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6639-6654 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7057-7070 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7516-7529 \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/loaders/multimodal_loaders.rs"},"region":{"startLine":6237}}}],"partialFingerprints":{"codehealthFindingId/v1":"45233268560148977ee34c9859395f2a84679e27e16b84a95c4edbbea8d22185"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): mistralrs-core/src/pipeline/multimodal.rs:1111-1126 | mistralrs-core/src/pipeline/multimodal.rs:1220-1235 | mistralrs-core/src/pipeline/normal.rs:1142-1157 | mistralrs-core/src/pipeline/normal.rs:1275-1290 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1111}}}],"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:191-206 | mistralrs-core/src/vision_models/qwen3_5/mod.rs:254-268 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:176-191 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:239-253 \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 23 separate duplicated blocks between them, totalling at least 408 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":191}}}],"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:701-716 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:778-792 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:146-161 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:223-237 \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 28 separate duplicated blocks between them, totalling at least 500 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/mod.rs"},"region":{"startLine":701}}}],"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:718-733 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:794-808 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:163-178 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:239-253 \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 28 separate duplicated blocks between them, totalling at least 500 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/mod.rs"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee33684a91489ce38e8604260865d3120521fa31df9e22beba88d2f2cc9d0c6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): mistralrs-core/src/xlora_models/gemma2.rs:615-630 | mistralrs-core/src/xlora_models/phi2.rs:545-560 | mistralrs-core/src/xlora_models/phi3.rs:527-542 | mistralrs-core/src/xlora_models/starcoder2.rs:560-575 \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 297 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/gemma2.rs"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f3d2ec2fe225c89c53e1910a97caaab735005e56d1613fdcc3fbf308611282"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): mistralrs/src/model_builder_trait.rs:670-685 | mistralrs/src/model_builder_trait.rs:818-833 | mistralrs/src/model_builder_trait.rs:1425-1440 \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/model_builder_trait.rs"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e5fd02c2ec68ed743beb819302014b582c86c1072b45345bb965706671fe57e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): mistralrs-core/src/embedding_models/qwen3_embedding.rs:478-492 | mistralrs-core/src/models/qwen3.rs:582-596 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:608-623 \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 362 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/qwen3_embedding.rs"},"region":{"startLine":478}}}],"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."},"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 48 separate duplicated blocks between them, totalling at least 605 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"d27472a92f7fc265bba265fc88207947b91c74c128c83c481414b200c22fa65e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): mistralrs-core/src/models/phi3.rs:482-497 | mistralrs-core/src/vision_models/phi3/mod.rs:1263-1278 | mistralrs-core/src/vision_models/phi4/mod.rs:378-393 \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 48 separate duplicated blocks between them, totalling at least 605 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5e88a62d1400b6acd11fb11f56ffccfaa6d394d8d31daa54569dd5d2dd7d6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): mistralrs-core/src/ops.rs:5409-5424 | mistralrs-core/src/ops.rs:5846-5861 | mistralrs-core/src/ops.rs:6172-6187 \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":5409}}}],"partialFingerprints":{"codehealthFindingId/v1":"013f85e1438bf58bba36d9a7af1baedc0d6aea7296b70696bf5338b0a25392e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): mistralrs-core/src/pipeline/embedding.rs:454-469 | mistralrs-core/src/pipeline/multimodal.rs:985-1000 | mistralrs-core/src/pipeline/normal.rs:967-982 \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 11 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa8fb9e032c6fce6e5dd5399b7f6e73699825bcd8adcbfa518472a9a964faf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:298-313 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:864-879 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:961-976 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3736e5a844e186f1429d23f6b8eebae29ef9efffc265cd77c9f231186e24925"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:886-901 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1451-1466 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1570-1585 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"65fb8ace4a5634bbe95f11de973cb5de6989d503e1eec5dfbde8b53912547438"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:211-226 | 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 19 separate duplicated blocks between them, totalling at least 218 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_moe/text.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"baa56e282c7915967127ad84e73966a6a237bdb2643e72070c3502025e1d4d79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): mistralrs-core/src/xlora_models/mistral.rs:527-542 | mistralrs-core/src/xlora_models/mixtral.rs:657-672 | mistralrs-core/src/xlora_models/starcoder2.rs:510-525 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/xlora_models/mistral.rs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f6f3fa8e910daada2b9e87bc618e1f4bebe5253c6d577e6ec41db11a8827a9"}},{"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:397-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 13 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. If that is what happened, the fix is to keep one copy and have the other 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":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee206f01d3e47aefe60f3a0970845f8fb9b2cfccdd6cffda497042bca336e00b"}},{"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."},"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 2): mistralrs/src/agent.rs:253-268 | mistralrs/src/agent.rs:329-344 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs/src/agent.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7587c7b28bd9c8443185a658f905a58c7854f59361ade8cf7bdf4c574067e13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-cli/src/commands/run/interactive.rs:962-977 | mistralrs-cli/src/commands/run/interactive.rs:1748-1763 \u2014 both copies are in the same file, so extract the block 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":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b9122b6ffc18c989808142d7b909317f2eb1cd1f371110c162e9e58a6a8056"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-cli/src/commands/run/interactive.rs:1946-1961 | mistralrs-cli/src/commands/run/interactive.rs:2068-2083 \u2014 both copies are in the same file, so extract the block 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":1946}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd69cc5e171d4c8624093cb047b2b9b81e8ab9ece0bfd38d459d30ccfbd22c2d"}},{"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."},"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/models/gpt_oss.rs:906-921 | mistralrs-core/src/vision_models/muse_glimmer/text.rs:584-598 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/gpt_oss.rs"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b7e6d4758ffdfe1b234daf1da5588551a6fbc821cc3f64243ea065cb2c9fdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/ops.rs:1610-1625 | mistralrs-core/src/ops.rs:1862-1877 \u2014 both copies are in the same file, so extract the block 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":1610}}}],"partialFingerprints":{"codehealthFindingId/v1":"d815039fe03b83c42f3c1c0a866af44e2ccd969315050297c5b577abb5e447d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): mistralrs-core/src/ops.rs:2020-2033 | mistralrs-core/src/ops.rs:2151-2166 \u2014 both copies are in the same file, so extract the block 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":2020}}}],"partialFingerprints":{"codehealthFindingId/v1":"e08f21bec0593a8c07140bd008469b5ffa4b3271306f30d6595c2e04c5cc7ed1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/ops.rs:5364-5379 | mistralrs-core/src/ops.rs:5800-5815 \u2014 both copies are in the same file, so extract the block 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":5364}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2a76767b526cdd49b711e6012ca06116c44761cb8b043c64e176f1bc751c4ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/pipeline/embedding.rs:474-489 | mistralrs-core/src/pipeline/multimodal.rs:1005-1020 \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 11 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"431d02552b848a715c795afde75f549b0ae8ddf04d89e405a17a1490cfe9b90f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/pipeline/inputs_processor.rs:2156-2171 | mistralrs-core/src/pipeline/inputs_processor.rs:2245-2260 \u2014 both copies are in the same file, so extract the block 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":2156}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d9ba640a8c8121125893aa26b6152cec7c5510db7ee22aee3f34d8f7de8e03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1495-1510 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1531-1546 \u2014 both copies are in the same file, so extract the block 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":1495}}}],"partialFingerprints":{"codehealthFindingId/v1":"36dc839b08a5d517fc0988575752de8600f613895310dbbeaee780518f5b3543"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2115-2130 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2153-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":2115}}}],"partialFingerprints":{"codehealthFindingId/v1":"580ce158dd609bd50006de98bd9ac308f63b9c24dccf9b96891e3f4ec8f1a22a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6443-6458 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6867-6882 \u2014 both copies are in the same file, so extract the block 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":6443}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2cbbbc80fd4ee269003bda72f0aea2d7e664ccfcacf2a2a4407e89a0734d7ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8620-8635 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9637-9652 \u2014 both copies are in the same file, so extract the block 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":8620}}}],"partialFingerprints":{"codehealthFindingId/v1":"87488f5111969af34e8f36e80f80df46356623b2270389aaa56be94774c62e97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): mistralrs-core/src/pipeline/mod.rs:2143-2158 | mistralrs-core/src/pipeline/mod.rs:2788-2801 \u2014 both copies are in the same file, so extract the block 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":2143}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8c1767d6716f5039e347ba19dbf47127a4b9cefad0a581ff317b285b895921"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1728-1743 | mistralrs-core/src/pipeline/normal.rs:1657-1672 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1728}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a229bc685d4a25b7d547ea7acc8d6672028e2af2384d06a375437807d927c8"}},{"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."},"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:301-316 | mistralrs-core/src/utils/gguf_metadata.rs:350-365 \u2014 both copies are in the same file, so extract the block 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/gguf_metadata.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"27c4c25a543789566be949bce0a812eb73083ed06b4221d2d95a4afb0ed3d602"}},{"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 38 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":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"341926d51c16ad4f8dee26be59d8e297f117016d91c356ed10d351b8acb91b4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/mod.rs:509-524 | mistralrs-core/src/vision_models/gemma4/mod.rs:822-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/gemma4/mod.rs"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"691fa24ee7f462e471e23e1c4f677d225086e2bd44543602747c3fd6601e4824"}},{"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."},"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 20 separate duplicated blocks between them, totalling at least 316 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/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:632-647 \u2014 both copies are in the same file, so extract the block 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/mllama/text.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"87e55540cc2b92e93760bc4584097f4bb4b3c70d8c6a2f152fbd8d22e712b19b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/vision_models/phi3/mod.rs:562-577 | mistralrs-core/src/vision_models/phi4/image_embedding.rs:184-199 \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 8 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6cbc080c1e608b02aeb5cafac689c9ed42de94899f5cda7110687fc993838f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/vision_models/phi3/mod.rs:1334-1349 | mistralrs-core/src/vision_models/phi4/mod.rs:496-511 \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 47 separate duplicated blocks between them, totalling at least 548 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":1334}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d3db708c43f80714292454f70ff893e5086adcc73202b558a43ffe4169efb9"}},{"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 19 separate duplicated blocks between them, totalling at least 362 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":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 43 separate duplicated blocks between them, totalling at least 650 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/text.rs"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6657500734c888a692ed7281c9daea26beedabca1b21b21ae3149795827fe3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:638-653 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:578-593 \u2014 \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_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 52 separate duplicated blocks between them, totalling at least 1117 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/qwen2vl/inputs_processor.rs"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"6687dd5e1ca3d4c632f25e9d220e805384fa07829fedb03e5c28476a01130747"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/xlora_models/quantized_llama.rs:319-334 | mistralrs-core/src/xlora_models/quantized_llama.rs:570-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":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a37314b2566d89e783882a4e62403f9e3d4ad15e87163424cbfabbfeff4d0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/metal/gdn.rs:414-429 | mistralrs-core/src/metal/gdn.rs:452-467 \u2014 both copies are in the same file, so extract the block 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":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f868bd1be953c683d64c24201094a836bd50618e34c7b8ed08908b7753d168"}},{"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."},"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 (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."},"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."},"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."},"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/metal/kernels/mod.rs:447-462 | mistralrs-paged-attn/src/metal/kernels/mod.rs:651-666 \u2014 both copies are in the same file, so extract the block 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":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"1825fd28b9a817f01cf6524d267e9e600620bfe427ad041d45b1ab3a5175b9cb"}},{"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/cuda/backend/mla.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c348e10c301a903b5ae14510eb1c7eefaea27c94754044388b5223a2f82ba1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201316 lines \u00D7 2): mistralrs-pyo3/src/util.rs:390-401 | mistralrs-server-core/src/video.rs:129-144 \u2014 before extracting anything, compare \u0060mistralrs-pyo3/src/util.rs\u0060 and \u0060mistralrs-server-core/src/video.rs\u0060 as WHOLE FILES: this scan already matched 3 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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-pyo3/src/util.rs"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"88412ca4b35499bd3ab45b4ada12cd44b49d4a22044ba852e0aae67214a842bf"}},{"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 5 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. If that is what happened, the fix is to keep one copy and have the other 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":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."},"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."},"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/distributed/layers.rs:847-862 | mistralrs-quant/src/distributed/layers.rs:1309-1324 \u2014 both copies are in the same file, so extract the block 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":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"0866b4e0d594f9d80a1ef3125e85af4afe420b4989e9e0f72a89e9677629271a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-quant/src/gguf/cuda.rs:1409-1424 | mistralrs-quant/src/gguf/cuda.rs:1604-1619 \u2014 both copies are in the same file, so extract the block 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/cuda.rs"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c2d5174b7e63298fa43ec2501259a83c532e2ebef7905c6739d42f82e0e2276"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 2): mistralrs-quant/src/lib.rs:2149-2164 | mistralrs-quant/src/lib.rs:2368-2380 \u2014 both copies are in the same file, so extract the block 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/lib.rs"},"region":{"startLine":2149}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b6945647056b0d76908c7c3d871438a29d2d110c9fa7c1db61225d640ddf29"}},{"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."},"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 (13\u201316 lines \u00D7 2): mistralrs-server-core/src/mistralrs_for_server_builder.rs:901-916 | mistralrs-server-core/src/mistralrs_for_server_builder.rs:1120-1132 \u2014 both copies are in the same file, so extract the block 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":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"df4ac26d616bda287acbedc2f7851588c5ff01d2ca2130573d0b7c94bddbfb9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): mistralrs-server-core/src/responses.rs:2371-2386 | mistralrs-server-core/src/responses.rs:2447-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/responses.rs"},"region":{"startLine":2371}}}],"partialFingerprints":{"codehealthFindingId/v1":"a63990313dd69b3bbc1956abae21078ffe50a81bce1ec128f23974897f3c820d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-server-core/src/video.rs:238-253 | mistralrs-server-core/src/video.rs:262-277 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/video.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4cc0dd401d2cc6b9d00bd2975ff4990c3464d18edd5e76db5aef6fc45241556"}},{"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:261-273 | 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 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/gemma.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f48786e466d2aa773a0ac1f1f3f4ab31b6dad0529638a8ddca632ca2ac1ece"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 17): 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:232-246 | 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/gemma2.rs\u0060 and \u0060mistralrs-core/src/models/gpt_oss.rs\u0060 as WHOLE FILES: this scan already matched 18 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/models/gemma2.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bcf6da82b425f884b1be4b87ff90f3ad8b8733043959f46c629ed3fa288f468"}},{"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:1575-1586 | 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:363-374 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:235-246 | 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 31 separate duplicated blocks between them, totalling at least 341 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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.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."},"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 10): mistralrs-core/src/models/glm4.rs:578-591 | mistralrs-core/src/models/mistral.rs:591-605 | mistralrs-core/src/models/mixtral.rs:528-542 | mistralrs-core/src/models/phi3.rs:537-551 | mistralrs-core/src/models/phi3_5_moe.rs:609-623 | mistralrs-core/src/models/qwen3.rs:542-556 | mistralrs-core/src/models/qwen3_moe.rs:725-739 | mistralrs-core/src/models/starcoder2.rs:530-543 | mistralrs-core/src/vision_models/phi3/mod.rs:1341-1354 | mistralrs-core/src/vision_models/phi4/mod.rs:503-516 \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 41 separate duplicated blocks between them, totalling at least 484 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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.rs"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1293c8a22eade59e97eb459212251fd37fa271cdcec0e688ffaec4ebd4d96d7"}},{"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/cuda/backend/mla.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ec08a3595a1332f13a086b8e699b6a298d8839d08d36d87f60ef73d32d91967"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 8): mistralrs-core/src/xlora_models/gemma.rs:664-678 | mistralrs-core/src/xlora_models/gemma2.rs:719-733 | mistralrs-core/src/xlora_models/llama.rs:492-506 | mistralrs-core/src/xlora_models/mistral.rs:664-678 | mistralrs-core/src/xlora_models/mixtral.rs:794-808 | mistralrs-core/src/xlora_models/phi2.rs:630-644 | mistralrs-core/src/xlora_models/phi3.rs:621-634 | mistralrs-core/src/xlora_models/starcoder2.rs:649-663 \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 491 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"29aafb2dfce62d4ae42aeeb392d0d43cb4512a5b19779647ba6f2795324922cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 6): mistralrs-core/src/embedding_models/qwen3_embedding.rs:353-367 | mistralrs-core/src/models/mixtral.rs:429-443 | mistralrs-core/src/models/qwen2.rs:458-472 | mistralrs-core/src/models/qwen3.rs:424-438 | mistralrs-core/src/models/qwen3_moe.rs:601-615 | mistralrs-core/src/models/starcoder2.rs:427-441 \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 7 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"210676ae210f9a486bee1a0d5604c1e1f681fccd855c7515960e0497dcda3530"}},{"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 28 separate duplicated blocks between them, totalling at least 289 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"21bafac879636ba05a9d7435dbd7cec964e7b31f336fe8e115b870473cf155ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 6): mistralrs-core/src/models/glm4.rs:513-527 | mistralrs-core/src/models/hunyuan_v1_dense.rs:482-496 | mistralrs-core/src/models/hunyuan_v1_moe.rs:976-990 | mistralrs-core/src/models/mistral.rs:523-537 | mistralrs-core/src/models/qwen3.rs:473-487 | mistralrs-core/src/models/qwen3_moe.rs:656-670 \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 40 separate duplicated blocks between them, totalling at least 462 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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.rs"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"87f939624c3f4be881a8ddddd14af8d9f446720c19c61260b1f7ce6e6b8238a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 6): mistralrs-paged-attn/src/metal/kernels/mod.rs:290-304 | mistralrs-paged-attn/src/metal/kernels/mod.rs:408-422 | mistralrs-paged-attn/src/metal/kernels/mod.rs:433-447 | mistralrs-paged-attn/src/metal/kernels/mod.rs:551-565 | mistralrs-paged-attn/src/metal/kernels/mod.rs:576-590 | mistralrs-paged-attn/src/metal/kernels/mod.rs:725-738 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/metal/kernels/mod.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ec630acf9814ad931dd36e34c6e2c8f79d6136ec266cb739e74411acdf0a98"}},{"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:88-101 | 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 7 separate duplicated blocks between them, totalling at least 113 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":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"500ae5d4b321a0feffd475737669e322b2279fe5db94679a124087a6e5a77f18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): mistralrs-core/src/pipeline/multimodal.rs:1116-1130 | mistralrs-core/src/pipeline/multimodal.rs:1166-1180 | mistralrs-core/src/pipeline/normal.rs:1147-1161 | mistralrs-core/src/pipeline/normal.rs:1197-1211 | mistralrs-core/src/pipeline/normal.rs:1280-1294 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1116}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3eefbc11acef5294e4fa13cb5be8b2257fbb7934e9d50113c0c5737f21ba67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): 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 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1180-1194 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eca62cacae64bcb9e1c342f499656082d765821d06129cdbf91e7af95b8441b"}},{"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:440-454 | mistralrs-core/src/models/hunyuan_v1_moe.rs:934-948 | mistralrs-core/src/models/qwen3.rs:431-445 \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 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb596c817d91c589e9f0b2d4484951d3a6dac6899a7f34f7c7be3bee67bc3b6d"}},{"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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee9633971b2911b1c4d42939e49be7c51c47dbc536f24e23b301db413036e8f"}},{"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 28 separate duplicated blocks between them, totalling at least 314 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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.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:1277-1292 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:464-478 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:586-600 \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 27 separate duplicated blocks between them, totalling at least 291 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/mixtral.rs"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1da9eff9d47dfd00cb96dcd61f9af71c5903c02a8d2f390a3f23be973f57b60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6371-6385 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6773-6787 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7184-7198 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7643-7657 \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/loaders/multimodal_loaders.rs"},"region":{"startLine":6371}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b8fb28bb89c16091138f1921532b72f18836c73367828193e06440789ff28d7"}},{"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 5 separate duplicated blocks between them, totalling at least 76 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/inputs_processor.rs"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d47ad6e43e5661872934465bd6e59ae0c73779c81dd93fd727c430289b6614c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): mistralrs-core/src/vision_models/qwen3_5/mod.rs:73-87 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:63-77 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:616-630 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:61-75 \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 23 separate duplicated blocks between them, totalling at least 408 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":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c08a7bf0fd112201d2c15432104b696462ee47894c5461f796505f28b4f9ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 4): mistralrs-core/src/vision_models/qwen3_5/mod.rs:208-222 | mistralrs-core/src/vision_models/qwen3_5/mod.rs:270-283 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:193-207 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:255-268 \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 23 separate duplicated blocks between them, totalling at least 408 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":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a98d835917752df8ba84c32ede0b617353fca99b745f37c445dd398e2f664f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): mistralrs-core/src/vision_models/qwen3_5/text.rs:1363-1377 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:668-682 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:459-473 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:581-595 \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 416 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":1363}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc38ecdb4cdb24466d3542381c2e08600a999447c7bca4a03cf92367ae93708"}},{"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:375-388 | mistralrs-core/src/xlora_models/mixtral.rs:502-516 | mistralrs-core/src/xlora_models/starcoder2.rs:364-377 \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 36 separate duplicated blocks between them, totalling at least 524 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":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:337-351 | mistralrs-core/src/xlora_models/mixtral.rs:464-478 | mistralrs-core/src/xlora_models/phi3.rs:302-316 \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 273 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/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:526-540 | mistralrs-core/src/xlora_models/mixtral.rs:656-670 | mistralrs-core/src/xlora_models/phi2.rs:496-510 | mistralrs-core/src/xlora_models/phi3.rs:476-490 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/xlora_models/mistral.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f7915e7391eb1172c998c132de8c020a02bfa00e381a62ed2cb4e7584a724de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): mistralrs/src/model.rs:281-295 | mistralrs/src/model.rs:350-364 | mistralrs/src/model.rs:437-451 \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/model.rs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c29859f3383d066867bdaa104f4977daa26f29147f6e891827080498410acc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 3): 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/glm4_moe.rs\u0060 and \u0060mistralrs-core/src/models/hunyuan_v1_dense.rs\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 247 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c846e871c16b5466ad04555e103a2276343c6441e19e6866268c812660309d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): mistralrs-core/src/models/mistral.rs:537-551 | 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 42 separate duplicated blocks between them, totalling at least 550 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/mistral.rs"},"region":{"startLine":537}}}],"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:410-424 | mistralrs-core/src/models/qwen2.rs:435-449 \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 30 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."},"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 48 separate duplicated blocks between them, totalling at least 605 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc699a95dc984a761bca5d137bb3d97569ef18e3349cbb0b2469289782e6df56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): mistralrs-core/src/models/phi3.rs:505-519 | mistralrs-core/src/models/phi3_5_moe.rs:576-590 | mistralrs-core/src/vision_models/phi3/mod.rs:1286-1301 \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 29 separate duplicated blocks between them, totalling at least 339 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/phi3.rs"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"08cc50c051555cac4f21b95866cf5c5992af3903dc605cd002b78d0c8afac4c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 3): mistralrs-core/src/models/quantized_llama.rs:73-85 | mistralrs-core/src/xlora_models/quantized_llama.rs:214-226 | mistralrs-core/src/xlora_models/quantized_phi3.rs:167-181 \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 5 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-core/src/models/quantized_llama.rs"},"region":{"startLine":73}}}],"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:367-381 | mistralrs-core/src/pipeline/normal.rs:447-461 \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 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"971dd0a7e0774797b358a6d6fd3514a4673acee85e0c85b4725abed132f1f45d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1168-1182 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2861-2875 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3175-3189 \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/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1168}}}],"partialFingerprints":{"codehealthFindingId/v1":"32dbc4340087ff6b45cdbbb9927d610104f1098ab6cf8f3c2477580f509b6c74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 3): mistralrs-core/src/sampler.rs:1170-1184 | mistralrs-core/src/sampler.rs:1250-1264 | mistralrs-core/src/sampler.rs:1867-1879 \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":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"d54d6a2ff16179e8c69eeccc3a5e65fd5045967cf43e4ce1c4b77f6d280a89b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): mistralrs-core/src/utils/gguf_metadata.rs:285-299 | mistralrs-core/src/utils/gguf_metadata.rs:318-332 | mistralrs-core/src/utils/gguf_metadata.rs:334-348 \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/utils/gguf_metadata.rs"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"377cfbf6cae863218876c113ef0ae446321147a621a789e4a397208c768ec80d"}},{"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 38 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/qwen2_5_vl/inputs_processor.rs:38-52 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:586-600 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:755-769 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f82231d90702a6d100615b4813171c2cdf1f257bfe398aa1b09206f0c31ced"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:797-811 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1362-1376 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1476-1490 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"86654d6c642827d3bdaacb6f2726c78df51d8683a0b912c1b2e8ab0cef24821e"}},{"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 18 separate duplicated blocks between them, totalling at least 176 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":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."},"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."},"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/gemv/mod.rs:414-428 | mistralrs-quant/src/gemv/mod.rs:482-496 | mistralrs-quant/src/gemv/mod.rs:550-564 \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":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da486c01653851b7add4aaee19c6f9390c82cd3649e7494a76032e57a5fb94d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): mistralrs-quant/src/gguf/fast_mmq.rs:882-896 | mistralrs-quant/src/gguf/fast_mmq.rs:1090-1104 | mistralrs-quant/src/gguf/fast_mmq.rs:1365-1379 \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":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab70c7402f59eb447e0cfb5926973a11a5e18fe93bc83867f47ea04653f48609"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-cli/src/commands/config.rs:89-103 | mistralrs-cli/src/commands/config.rs:261-275 \u2014 both copies are in the same file, so extract the block 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/config.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d06e80285650ff9f3511ab6719c66ff9a2f1510bc64e6dcd684edcb3d2dbdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:4560-4574 | mistralrs-core/src/cuda/gdn.rs:4809-4823 \u2014 both copies are in the same file, so extract the block 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":4560}}}],"partialFingerprints":{"codehealthFindingId/v1":"022726f124b8e399f453a20cceecbf40b2e152341933ecd74aeb53b4d556c6a3"}},{"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 (14\u201315 lines \u00D7 2): mistralrs-core/src/kv_cache/mod.rs:1267-1281 | mistralrs-core/src/kv_cache/mod.rs:1330-1343 \u2014 both copies are in the same file, so extract the block 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/mod.rs"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0504ebe330061bad2387161b2e646e5c0b753a8a6c828c69cfe9f3a7095b04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/model_loader.rs:838-852 | 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 10 separate duplicated blocks between them, totalling at least 156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b04703628b738683db802fa47d60a1dce208e13fc1caa303a919d79d8da0418"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): mistralrs-core/src/models/deepseek2.rs:1006-1018 | mistralrs-core/src/models/deepseek3.rs:1068-1082 \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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1006}}}],"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:391-405 \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 30 separate duplicated blocks between them, totalling at least 362 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/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:1046-1060 | mistralrs-core/src/models/granite.rs:1217-1231 \u2014 both copies are in the same file, so extract the block 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":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7f08e6b317e62eee8043f47a5cc1d32121ee889e7efc5a2689275decd071157"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/models/granite.rs:2136-2150 | mistralrs-core/src/models/qwen3_next.rs:931-945 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":2136}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da15c544d2f929b1af480ad8f6d83ff4c2b2017abf7c774b344fc7f9c194b7f"}},{"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:367-381 \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 126 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/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 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."},"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:2077-2091 | mistralrs-core/src/ops.rs:2234-2248 \u2014 both copies are in the same file, so extract the block 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":2077}}}],"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."},"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:2894-2908 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3208-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":2894}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f6f1a92d3d344c3bde82546e623c764e2ce571c60c2c995c5d3c075f4bd373"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:915-929 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2197-2211 \u2014 both copies are in the same file, so extract the block 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":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d7f1b92d27957ded7e0182dc9a733b83763a2cd211c39aeea5607a7a038d6b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4769-4783 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6376-6390 \u2014 both copies are in the same file, so extract the block 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":4769}}}],"partialFingerprints":{"codehealthFindingId/v1":"637fbcba937ae1c3db25217188d1e7349d904491ab7b80a1ac671062ed86d967"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1393-1407 | mistralrs-core/src/pipeline/normal.rs:1415-1429 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1393}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0066d67f31ffba48689e4b65d4523fdf60db210a252e70a69fcc5900314629"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1573-1587 | mistralrs-core/src/pipeline/normal.rs:1504-1518 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1573}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd22cabb1a34d5ddf81f2490b123ddb9be279eab733bea3a52039fac31980979"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): mistralrs-core/src/pipeline/paths.rs:172-186 | mistralrs-core/src/pipeline/paths.rs:245-258 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/paths.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ebad1db71bf6e0e27b83d4742e0443dd46d78d0eac85489afecb8b6b9300890"}},{"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 16 separate duplicated blocks between them, totalling at least 279 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":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:1364-1378 | mistralrs-core/src/vision_models/gemma3n/text.rs:1388-1402 \u2014 both copies are in the same file, so extract the block 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/text.rs"},"region":{"startLine":1364}}}],"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."},"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/qwen3_vl/inputs_processor.rs:1653-1667 \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/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:584-598 | mistralrs-core/src/vision_models/gemma4/text.rs:617-631 \u2014 both copies are in the same file, so extract the block 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":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"0680e836cb2887fd2ce609918982e75af20954b6f6cfdb61aaedee8faede4a54"}},{"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."},"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."},"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."},"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."},"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/vision_models/llava/llava_inputs_processor.rs:242-256 | mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs:508-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."},"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 (15 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:278-292 | mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:515-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":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9de5ce5276724511a8d1c8aad7552dbb7d29a0793d959fe0369490c8256956d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:560-574 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:729-743 \u2014 \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_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 52 separate duplicated blocks between them, totalling at least 1117 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/qwen2vl/inputs_processor.rs"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b60c708798405e8359fb638c94339118e9db1e5708d5276879803b2c1f39f65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/text.rs:2135-2149 | mistralrs-core/src/vision_models/qwen3_5/text.rs:2161-2175 \u2014 both copies are in the same file, so extract the block 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_5/text.rs"},"region":{"startLine":2135}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7cd33a1009bcd32029640cde25b64ed3d965beeeb48fd44edfcb29549edc14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/xlora_models/mistral.rs:379-393 | mistralrs-core/src/xlora_models/phi3.rs:346-360 \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 439 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/mistral.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c1d27e2d680bf79bccd1c06fe342fda8cd5e1a53be51e14f5329570d5800e8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/xlora_models/quantized_llama.rs:300-314 | mistralrs-core/src/xlora_models/quantized_llama.rs:551-565 \u2014 both copies are in the same file, so extract the block 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 (15 lines \u00D7 2): mistralrs-core/src/metal/gdn.rs:180-194 | mistralrs-core/src/metal/gdn.rs:284-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-core/src/metal/gdn.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"d115e183bf304b87bf1a6c5539151d989263ea98b3cf881b1277c32f3a49494b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/metal/gdn.rs:375-389 | mistralrs-core/src/metal/gdn.rs:461-475 \u2014 both copies are in the same file, so extract the block 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":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"105135480504cbb8fbebbafde5dfc916387cdc37e64573f9d978918a4c5e5566"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-core/src/engine/add_request.rs:1056-1070 | mistralrs-core/src/engine/add_request.rs:1093-1107 \u2014 both copies are in the same file, so extract the block 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":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f88200ee48d60d03046a763cfde82d8058898a5bd37dbf5712aebdaeee8eb7c"}},{"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."},"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 (13\u201315 lines \u00D7 2): mistralrs-paged-attn/src/metal/backend/gather_kv.rs:95-107 | mistralrs-paged-attn/src/metal/backend/paged_attention.rs:428-442 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/metal/backend/gather_kv.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"97edbf2dde8dea7010172251b1818717eaf011059460017acd62c246c91f493e"}},{"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:28-42 \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 4 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"59000bcc1fbfbcf6a940236d3631bca6cc4fd4bc8399af8cba92e1edd5133bcf"}},{"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."},"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 (15 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a8.rs:70-84 | mistralrs-quant/src/cutile/fp8_w8a8.rs:128-142 \u2014 both copies are in the same file, so extract the block 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/fp8_w8a8.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"196a58680088544dc383786d11efcef7710c20516697a02388e3685e40fa1de4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:536-550 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:977-989 \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 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"b52a925c9ee8947551558912af1d27efe7c562c35087ce27e09e2a8faef4f511"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-quant/src/cutile/mod.rs:75-89 | mistralrs-quant/src/gguf/fast_mmq.rs:289-303 \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/cutile/mod.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01000da7f2ce5c267756961c5a58d96aa17d86c24e6dc99d03dc0b7757bf75b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_gemv.rs:302-316 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1432-1446 \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 8 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/nvfp4_gemv.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83288d0e2162af7954187e70e4aa7c0ff0bd30f4f17b7fd68303b3602fc63c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmq.rs:596-610 | mistralrs-quant/src/gguf/fast_mmq.rs:704-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd869daf9b76b4b765dc58b2e8eeda008d7cf5582b3d607d547c5395134067b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-quant/src/hqq/mod.rs:184-198 | mistralrs-quant/src/hqq/mod.rs:269-283 \u2014 both copies are in the same file, so extract the block 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/hqq/mod.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"7802cbb45a4da7f8a225b75f78ba1ce3734ed31bf060c2c53ce37f1c82aa2d14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-quant/src/hqq/mod.rs:361-375 | mistralrs-quant/src/hqq/mod.rs:510-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/hqq/mod.rs"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"af10c555989c3a7e3ef44862af82f68c79431cbf4975f532ee8391f3fb1a8433"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-quant/src/lib.rs:2464-2478 | mistralrs-quant/src/lib.rs:2607-2621 \u2014 both copies are in the same file, so extract the block 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/lib.rs"},"region":{"startLine":2464}}}],"partialFingerprints":{"codehealthFindingId/v1":"9756a9ac85db05ce0368fb92f36d5c8f97ff520187c7a4331b9f4e1c0badd50b"}},{"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."},"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:1880-1894 | mistralrs-server-core/src/chat_completion.rs:1186-1200 \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 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-server-core/src/anthropic.rs"},"region":{"startLine":1880}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee6edd446bc6a381d768ae9699a8bbf57ab5092d1ebbb5e1ab97b21fbce53f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 12): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:739-752 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1361-1374 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1654-1667 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1939-1952 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2667-2680 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3995-4008 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1431-1444 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2056-2069 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2474-2487 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3531-3544 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4170-4183 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5007-5020 \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 11 separate duplicated blocks between them, totalling at least 170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf11f7c613982c767213f57e9909407bdcc0e3de317801c66100eb6e83edc8e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 10): mistralrs-core/src/models/glm4.rs:580-593 | mistralrs-core/src/models/mistral.rs:593-607 | mistralrs-core/src/models/mixtral.rs:530-544 | mistralrs-core/src/models/phi3.rs:539-553 | mistralrs-core/src/models/phi3_5_moe.rs:611-625 | mistralrs-core/src/models/qwen2.rs:584-597 | mistralrs-core/src/models/qwen3.rs:544-558 | mistralrs-core/src/models/qwen3_moe.rs:727-741 | mistralrs-core/src/models/starcoder2.rs:532-545 | mistralrs-core/src/vision_models/phi3/mod.rs:1343-1356 \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 41 separate duplicated blocks between them, totalling at least 484 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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.rs"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"7efb002ad274bcdf7dee00efe91430602f9d34911ea5433103f54c8c902a694a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 9): mistralrs-core/src/xlora_models/gemma.rs:659-672 | mistralrs-core/src/xlora_models/gemma2.rs:714-727 | mistralrs-core/src/xlora_models/llama.rs:487-500 | mistralrs-core/src/xlora_models/mistral.rs:659-672 | mistralrs-core/src/xlora_models/mixtral.rs:789-802 | mistralrs-core/src/xlora_models/phi2.rs:625-638 | mistralrs-core/src/xlora_models/quantized_llama.rs:877-890 | mistralrs-core/src/xlora_models/quantized_phi3.rs:546-559 | mistralrs-core/src/xlora_models/starcoder2.rs:644-657 \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 491 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":659}}}],"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:339-352 | mistralrs-core/src/xlora_models/mixtral.rs:466-479 | mistralrs-core/src/xlora_models/phi3.rs:304-317 \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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":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:551-564 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2344-2357 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3009-3022 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3316-3329 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6080-6093 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1199-1212 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2268-2281 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5209-5222 \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 11 separate duplicated blocks between them, totalling at least 170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ede7f1af9b4bbee3916a2a71bca96fbe64b4f48ca1d0dc531dcb3707d969399"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6): mistralrs-core/src/pipeline/multimodal.rs:1091-1104 | mistralrs-core/src/pipeline/multimodal.rs:1148-1161 | mistralrs-core/src/pipeline/multimodal.rs:1200-1213 | mistralrs-core/src/pipeline/normal.rs:1122-1135 | mistralrs-core/src/pipeline/normal.rs:1179-1192 | mistralrs-core/src/pipeline/normal.rs:1255-1268 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1091}}}],"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:477-490 | mistralrs-core/src/models/hunyuan_v1_dense.rs:446-459 | mistralrs-core/src/models/hunyuan_v1_moe.rs:940-953 | mistralrs-core/src/models/qwen3.rs:437-450 \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 134 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ede696952129f1855ec7365d0b68caf8b60d07881f44abdb894238cb6f88a81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 5): mistralrs-core/src/embedding_models/qwen3_embedding.rs:476-488 | mistralrs-core/src/models/qwen3.rs:580-592 | mistralrs-core/src/models/qwen3_moe.rs:764-776 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:606-619 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:728-741 \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 362 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/qwen3_embedding.rs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e4e106e333a377e3902f042063ae845b05aaf665ccc022b32bcb59fce11e24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): mistralrs-core/src/models/deepseek2.rs:887-900 | mistralrs-core/src/models/deepseek3.rs:950-963 | mistralrs-core/src/models/glm4_moe.rs:786-799 | mistralrs-core/src/models/glm4_moe_lite.rs:897-910 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:566-579 \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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef81f394cada8a87428fe6ffc8c59721dfef3ec50976c7163a7543beea5b323"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:990-1003 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4751-4764 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:775-788 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1848-1861 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2714-2727 \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 32 separate duplicated blocks between them, totalling at least 426 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"318cbac9b093bd54a41a19bcef8bbd5c2ac2681bca8026b3ca6917ec4f70f9e8"}},{"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:525-538 | mistralrs-core/src/xlora_models/mistral.rs:491-504 | mistralrs-core/src/xlora_models/mixtral.rs:622-635 | mistralrs-core/src/xlora_models/starcoder2.rs:479-492 \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 491 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b296dab95e5d33164aa9b9ea8d6a1d5c44fd31eb49677a1a4cd700c227b2e1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): mistralrs-core/src/xlora_models/gemma.rs:604-617 | mistralrs-core/src/xlora_models/mistral.rs:604-617 | mistralrs-core/src/xlora_models/mixtral.rs:734-747 | mistralrs-core/src/xlora_models/phi3.rs:557-570 | mistralrs-core/src/xlora_models/starcoder2.rs:589-602 \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 36 separate duplicated blocks between them, totalling at least 524 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"920137d35b356ebc8be5b6dc4fdcede14a4feb7487c53ef63868604a28bfb6eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 5): mistralrs-core/src/xlora_models/mistral.rs:276-289 | mistralrs-core/src/xlora_models/mixtral.rs:189-202 | mistralrs-core/src/xlora_models/phi3.rs:164-177 | mistralrs-core/src/xlora_models/quantized_phi3.rs:201-213 | mistralrs-core/src/xlora_models/starcoder2.rs:263-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/xlora_models/mistral.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa2c5370b607e01967408b73c3439e2610cd1e0544587f970883d69b9bbe231e"}},{"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:448-461 | 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 43 separate duplicated blocks between them, totalling at least 514 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/mixtral.rs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d852d43dcca05f82e3cc2b4b6f41088162a8d4c02754a2f822d16600d07a38"}},{"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 36 separate duplicated blocks between them, totalling at least 524 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d531e96cfb231d2b9096451d75dd29db5569aa59f07f2d60e18170e6805d459"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): mistralrs-quant/src/distributed/layers.rs:883-896 | mistralrs-quant/src/distributed/layers.rs:1345-1358 | mistralrs-quant/src/distributed/layers.rs:2000-2013 | mistralrs-quant/src/distributed/layers.rs:2216-2229 \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/distributed/layers.rs"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a46c7484b2510e30aa535d0f57ae9c0f7d0f332c9ddbf40b24564d7afbe4cdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): mistralrs-core/src/cuda/gdn.rs:4974-4987 | mistralrs-core/src/cuda/gdn.rs:5150-5163 | mistralrs-core/src/cuda/gdn.rs:5420-5433 \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":4974}}}],"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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a9e5b64f962b3612f279e185c559b68ca9e5a6b9922a4160069f1a00d2aa755"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): mistralrs-core/src/models/gemma.rs:405-418 | mistralrs-core/src/models/gemma2.rs:477-490 | mistralrs-core/src/vision_models/gemma3/text.rs:518-531 \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 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/gemma.rs"},"region":{"startLine":405}}}],"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:155-168 | 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 56 separate duplicated blocks between them, totalling at least 680 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"c317673aba2962dadc01b2c71b01841a08e934e338af09cb672a23d45ac68e24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): mistralrs-core/src/pipeline/gguf.rs:671-684 | mistralrs-core/src/pipeline/gguf.rs:760-772 | mistralrs-core/src/pipeline/gguf.rs:880-892 \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/pipeline/gguf.rs"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fd80b212914b6123c7d36edec2f56c106bb3fbb36f2191d2bc72c99c30bdb36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3021-3034 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3327-3340 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4471-4484 \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/pipeline/loaders/normal_loaders.rs"},"region":{"startLine":3021}}}],"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:1107-1120 \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 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":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:868-881 | mistralrs-quant/src/lora/dynamic/moe_cuda.rs:891-904 | mistralrs-quant/src/lora/dynamic/moe_cuda.rs:914-927 \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/lora/dynamic/moe_cuda.rs"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e15f96ba09d9f49ed9080e06929917efe0a50bcd65d04076f4d8cc6e270999"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): mistralrs-quant/src/mxfp4/ops.rs:464-476 | mistralrs-quant/src/mxfp4/ops.rs:481-494 | mistralrs-quant/src/mxfp4/ops.rs:499-512 \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/ops.rs"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"151cf6da1b46043251c4b0f88914b925f16a930c7fe11a75dc8adba5cce9baa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): mistralrs-quant/src/mxfp4/ops.rs:551-563 | mistralrs-quant/src/mxfp4/ops.rs:568-581 | mistralrs-quant/src/mxfp4/ops.rs:586-599 \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/ops.rs"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"247e02b2cf588f69b8a3ee57d685ecdd80a03ef965b8c771cacdf6c9b89f032b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs/src/model_builder_trait.rs:784-797 | mistralrs/src/model_builder_trait.rs:1373-1386 \u2014 both copies are in the same file, so extract the block 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":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"100c509565ce469a4e61091c6626fd48262c8df6e38c4222e48bdb3b37818f51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:927-940 | mistralrs-core/src/cuda/gdn.rs:1053-1066 \u2014 both copies are in the same file, so extract the block 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":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dcaab67af9c8dc70518eced7b8708fa821fbd85af75f50abfb446ce95354a88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:4812-4825 | mistralrs-core/src/cuda/gdn.rs:5069-5082 \u2014 both copies are in the same file, so extract the block 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":4812}}}],"partialFingerprints":{"codehealthFindingId/v1":"b12dde2abb8ec2369454b91d028fbeab1a0e2382b7afb3cfbfb599b678156c54"}},{"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."},"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 (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:562-575 | 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 10 separate duplicated blocks between them, totalling at least 156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"921e5fff213ee2ccec5319a64fa623c3926c148cba5a29a3ee8f9128725c2a20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/models/granite.rs:1287-1300 | mistralrs-core/src/models/granite.rs:1309-1322 \u2014 both copies are in the same file, so extract the block 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":1287}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5533b32f15a83d12d7efe4c7d8244bcebc734cb268374655ae828bd2009ba17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/models/phi2.rs:215-228 | mistralrs-core/src/xlora_models/phi2.rs:179-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 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/phi2.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e85776384655fab85a7399ee7ae7672193c5cec99b1049261ca34bd6b9a742"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/models/phi2.rs:453-466 | mistralrs-core/src/xlora_models/phi2.rs:426-439 \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 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/phi2.rs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aaca5a05e84fca86778f6516853eda9b8c8e32206d3f358b80e4ff0f20572fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): mistralrs-core/src/models/quantized_llama.rs:346-359 | 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 5 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-core/src/models/quantized_llama.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b92c343b2522f1424a79e37688ac5c7f5b8b89f33f5a00f6d16ae75a8e5e6f"}},{"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:332-345 \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 65 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/starcoder2.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9e6937f1543bacf63ec1e4cb80f6d2ad5b496b27d5109401e3adc8ec85f655"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/ops.rs:3063-3076 | mistralrs-core/src/ops.rs:3522-3535 \u2014 both copies are in the same file, so extract the block 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":3063}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee63cced1b189b6862aead668b524a5d65e3a47f78defe5872083c2bb0cda7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1640-1653 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5447-5460 \u2014 both copies are in the same file, so extract the block 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":1640}}}],"partialFingerprints":{"codehealthFindingId/v1":"5767f48262315b6c13fbe1df90c54900c884cd05949662f4aff07b5b049425c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3734-3747 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3972-3985 \u2014 both copies are in the same file, so extract the block 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":3734}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3343d8f0e0ddfa8014bd4c2720f409897f810218e0f48f2ae0a0022a97ae742"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): mistralrs-core/src/sampler.rs:1230-1242 | mistralrs-core/src/sampler.rs:1938-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/sampler.rs"},"region":{"startLine":1230}}}],"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:144-157 | 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 12 separate duplicated blocks between them, totalling at least 154 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":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cfbebaa56d62a9c0d8e2f3a903e3ea7792e6ee7dec248cf896dbc44fb772186"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/text.rs:1790-1803 | mistralrs-core/src/vision_models/gemma3n/text.rs:1896-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/gemma3n/text.rs"},"region":{"startLine":1790}}}],"partialFingerprints":{"codehealthFindingId/v1":"63eee78c65e1797b41b0f9d396a43e3efa6515b40d901f2ef204664bd500be37"}},{"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."},"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/phi3/mod.rs:612-625 | 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 8 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc762fa1e976e6faf006f4869126a7c5cf7f98aa1592c614562bbee3f1e9b179"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/vision_models/phi3/mod.rs:1169-1182 | 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 8 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c856716bce159a357a221400f928328815585ade4d2bf553700186c0cae6dc"}},{"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."},"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/qwen2_5_vl/mod.rs:337-350 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:493-506 \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 19 separate duplicated blocks between them, totalling at least 362 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":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b91cda776ced04dc955fb965831c9cec92c6a3aa9ea2d5d35853bc2b65b122e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:196-209 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:167-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 18 separate duplicated blocks between them, totalling at least 176 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":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec0ea7f1bdbf41f65951eca76818cab8eb6dee4fe567ba250bb8442652e4d022"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): mistralrs-core/src/engine/add_request.rs:696-707 | mistralrs-core/src/engine/add_request.rs:712-725 \u2014 both copies are in the same file, so extract the block 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":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"7af5750e29bf9d73450a4e9d96c37e48e3d53f6b9335a49cbc057754977f45ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:109-122 | mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:265-278 \u2014 both copies are in the same file, so extract the block 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/flash_attn_sinks.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"e59795e799899c5a5e0d8d32c06438db44d4749d93a01f8acd0a1a910bbc296d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:120-133 | mistralrs-paged-attn/src/metal/backend/gather_kv.rs:77-90 \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 4 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6738fd3c0d5802c2d5229b7b1ac67d9adc884f0caf8ab6c915a777abd03ea92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-quant/src/afq/mod.rs:458-471 | mistralrs-quant/src/afq/mod.rs:504-517 \u2014 both copies are in the same file, so extract the block 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/mod.rs"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"003babd2a435b537549e8c2ebbd8ed8e8974865db46d9f8583bd045e420383ce"}},{"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."},"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."},"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 (14 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_glu.rs:48-61 | mistralrs-quant/src/cutile/nvfp4_glu.rs:205-218 \u2014 both copies are in the same file, so extract the block 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_glu.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2ac7dddbdbc23c4e21e21f0de07c422160b16487eec852636b72b344512cac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_glu.rs:475-488 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1033-1046 \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 10 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. If that is what happened, the fix is to keep one copy and have the other 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":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"733e7a83afd01b62917b96e167dc9dbe024b14ffce51e04345b85acc8107b4a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201314 lines \u00D7 4): mistralrs-quant/src/cutile/nvfp4_matmul.rs:360-361 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:444-457 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:654-655 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:738-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/nvfp4_matmul.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c5e933bac63d9d4710fcb2daa51902d02a5b1822f476d7dabc17095b0149ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:910-921 | mistralrs-quant/src/distributed/layers.rs:1005-1018 \u2014 both copies are in the same file, so extract the block 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":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"be57281c4f19dbaef016cf4a843666ed5d07f777118ef59eb9a4e186776a8bef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:969-982 | mistralrs-quant/src/distributed/layers.rs:1458-1470 \u2014 both copies are in the same file, so extract the block 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":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"d629157eebac319ba2f6e9d62b6bad05f4c5de30cca3aaf0a4dd0bed95dbeb69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:1371-1384 | mistralrs-quant/src/distributed/layers.rs:1491-1502 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":1371}}}],"partialFingerprints":{"codehealthFindingId/v1":"e18c07f190ecb76be146a52792e778cb89ab3b2c9d8e05b9b26a736134bbba06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmvq.rs:564-577 | mistralrs-quant/src/gguf/fast_mmvq.rs:783-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"f028bc81f0e06250b2ca5a393fa586d26b82e22401b15336af32748f6755155e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmvq.rs:603-616 | mistralrs-quant/src/gguf/fast_mmvq.rs:838-851 \u2014 both copies are in the same file, so extract the block 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":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3709eb525fb956b278b28e8ed490b55f7e9c2ac6ed04180f6ec94d4193ea79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmvq.rs:642-655 | mistralrs-quant/src/gguf/fast_mmvq.rs:893-906 \u2014 both copies are in the same file, so extract the block 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":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"359be66caffe9a963be6ef75db83c86e443e5035df2c8f549e3ffd4234dcee6f"}},{"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:337-350 \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/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."},"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/afq/ops.rs:1633-1646 | mistralrs-quant/src/afq/ops.rs:1698-1711 \u2014 both copies are in the same file, so extract the block 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":1633}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b6424c14d78c0582d8a493e6e1939b08bfe9ec86a927422069630e1ad0fad8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 23): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4264-4276 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4645-4657 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5034-5046 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:708-720 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1132-1144 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1360-1372 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1577-1589 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1784-1796 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1988-2000 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2639-2651 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2908-2920 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3214-3226 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3460-3472 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3662-3674 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3886-3898 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4104-4116 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4358-4370 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4657-4669 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4919-4931 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5142-5154 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5356-5368 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5589-5601 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5830-5842 \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 32 separate duplicated blocks between them, totalling at least 426 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":4264}}}],"partialFingerprints":{"codehealthFindingId/v1":"75cc663072c07a6b7c267aa5ee483145cc8926515c894f8edb82de46674a175e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 14): mistralrs-core/src/models/gemma.rs:663-675 | mistralrs-core/src/models/gemma2.rs:779-791 | mistralrs-core/src/models/glm4.rs:779-791 | mistralrs-core/src/models/hunyuan_v1_dense.rs:751-763 | mistralrs-core/src/models/mistral.rs:791-803 | mistralrs-core/src/models/phi2.rs:730-742 | mistralrs-core/src/models/phi3.rs:726-738 | mistralrs-core/src/models/qwen2.rs:793-805 | mistralrs-core/src/models/qwen3.rs:750-762 | mistralrs-core/src/models/starcoder2.rs:721-733 | mistralrs-core/src/vision_models/gemma3/text.rs:1005-1017 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:754-766 | mistralrs-core/src/vision_models/muse_glimmer/text.rs:755-767 | mistralrs-core/src/vision_models/phi3/mod.rs:1562-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 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/gemma.rs"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d5309f2e9053e6cb1bf737404869dcdcf2df431b379218380e8974bd47ae068"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 11): mistralrs-core/src/models/deepseek2.rs:864-876 | mistralrs-core/src/models/deepseek3.rs:927-939 | mistralrs-core/src/models/gemma.rs:380-391 | mistralrs-core/src/models/gemma2.rs:452-463 | mistralrs-core/src/models/glm4_moe.rs:763-775 | mistralrs-core/src/models/glm4_moe_lite.rs:874-886 | mistralrs-core/src/models/mistral.rs:490-499 | mistralrs-core/src/models/mixtral.rs:442-453 | mistralrs-core/src/models/phi2.rs:469-480 | mistralrs-core/src/models/phi3.rs:458-469 | 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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc1857809968861bc18802b543e613d5ab3924cae9c865618b14933cb3ffc628"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 11): mistralrs-core/src/models/glm4.rs:438-450 | mistralrs-core/src/models/granite.rs:1947-1959 | mistralrs-core/src/models/hunyuan_v1_dense.rs:411-423 | mistralrs-core/src/models/hunyuan_v1_moe.rs:905-917 | mistralrs-core/src/models/lfm2.rs:1018-1030 | mistralrs-core/src/models/llama.rs:348-360 | mistralrs-core/src/models/mistral.rs:417-429 | mistralrs-core/src/models/qwen3.rs:402-414 | mistralrs-core/src/models/qwen3_moe.rs:579-591 | mistralrs-core/src/models/smollm3.rs:364-376 | mistralrs-core/src/vision_models/llama4/text.rs:796-808 \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 253 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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.rs"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbbf82490fbd2aecf388952d9f14182a08bc02e25c5b32015dac3b7e98b5191e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 11): mistralrs-core/src/models/glm4.rs:583-594 | mistralrs-core/src/models/mistral.rs:596-608 | mistralrs-core/src/models/mixtral.rs:533-545 | mistralrs-core/src/models/phi3.rs:542-554 | mistralrs-core/src/models/phi3_5_moe.rs:614-626 | mistralrs-core/src/models/qwen2.rs:587-598 | mistralrs-core/src/models/qwen3.rs:547-559 | mistralrs-core/src/models/qwen3_moe.rs:730-742 | mistralrs-core/src/models/starcoder2.rs:535-546 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:551-563 | mistralrs-core/src/vision_models/phi3/mod.rs:1346-1357 \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 41 separate duplicated blocks between them, totalling at least 484 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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.rs"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2bda2d854fb26f8903324f7ad47d47efce57ba0fc755609bf327dab664b3c74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 10): mistralrs-core/src/models/glm4.rs:510-522 | mistralrs-core/src/models/hunyuan_v1_dense.rs:479-491 | mistralrs-core/src/models/hunyuan_v1_moe.rs:973-985 | mistralrs-core/src/models/mistral.rs:520-532 | mistralrs-core/src/models/mixtral.rs:474-486 | mistralrs-core/src/models/qwen2.rs:506-518 | mistralrs-core/src/models/qwen3.rs:470-482 | mistralrs-core/src/models/qwen3_moe.rs:653-665 | mistralrs-core/src/vision_models/phi3/mod.rs:1269-1281 | mistralrs-core/src/vision_models/phi4/mod.rs:384-396 \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 40 separate duplicated blocks between them, totalling at least 462 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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.rs"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"36aaa71db5f02a30b48654040e35032a282c08c7a2fee5245d9c4e1509642bce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 10): 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:349-361 | mistralrs-core/src/xlora_models/mixtral.rs:476-488 | mistralrs-core/src/xlora_models/phi3.rs:314-326 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gpt_oss.rs\u0060 and \u0060mistralrs-core/src/models/hunyuan_v1_moe.rs\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 292 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d1999eca6e80fbb89a83c50c1c87d937fce7c4db523421505d05e4551711af7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 9): mistralrs-core/src/models/gemma.rs:401-413 | mistralrs-core/src/models/gemma2.rs:473-485 | mistralrs-core/src/models/glm4.rs:499-511 | mistralrs-core/src/models/hunyuan_v1_dense.rs:468-480 | mistralrs-core/src/models/hunyuan_v1_moe.rs:962-974 | mistralrs-core/src/models/mistral.rs:509-521 | mistralrs-core/src/models/mixtral.rs:463-475 | mistralrs-core/src/models/qwen3.rs:459-471 | 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 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/gemma.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"121575b83ae873384f98046f1246006bf2e18447b9e04adc16809eb5fec6a5c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 8): 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/glm4_moe.rs:834-845 | mistralrs-core/src/models/glm4_moe_lite.rs:971-982 | mistralrs-core/src/models/llama.rs:496-508 | mistralrs-core/src/models/phi2.rs:546-558 | mistralrs-core/src/models/smollm3.rs:515-527 \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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":955}}}],"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 23 separate duplicated blocks between them, totalling at least 253 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":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:511-522 | mistralrs-core/src/vision_models/gemma3/text.rs:530-542 | mistralrs-core/src/vision_models/gemma3n/text.rs:1469-1481 | 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: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 43 separate duplicated blocks between them, totalling at least 514 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/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:323-335 | 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 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":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:156-169 | 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:156-168 \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 23 separate duplicated blocks between them, totalling at least 247 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":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:615-627 | mistralrs-core/src/xlora_models/mistral.rs:575-587 | mistralrs-core/src/xlora_models/mixtral.rs:705-717 | mistralrs-core/src/xlora_models/phi2.rs:545-557 | mistralrs-core/src/xlora_models/phi3.rs:527-539 | mistralrs-core/src/xlora_models/starcoder2.rs:560-572 \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 491 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dca45b57820ef944b0a2e2e002cef029cd5b66ff65c7b45b5a53bd040e8bbde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): mistralrs-core/src/pipeline/multimodal.rs:1115-1127 | mistralrs-core/src/pipeline/multimodal.rs:1165-1177 | mistralrs-core/src/pipeline/multimodal.rs:1224-1236 | mistralrs-core/src/pipeline/normal.rs:1146-1158 | mistralrs-core/src/pipeline/normal.rs:1196-1208 | mistralrs-core/src/pipeline/normal.rs:1279-1291 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ffb60aa053e19a5cdbfacd95c10591e719aa7c71ef9a89a94fe62b9db51b102"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 6): mistralrs-quant/src/cutile/nvfp4_glu.rs:162-174 | mistralrs-quant/src/cutile/nvfp4_glu.rs:319-331 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:77-89 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:230-242 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:442-453 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:736-747 \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 10 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. If that is what happened, the fix is to keep one copy and have the other 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":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9d2f18a9a286dbd083411f26bb5187b62ddffed26c08a1f8d57de35afe4663"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1202-1214 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6309-6321 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6711-6723 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7125-7137 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7584-7596 \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/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"792f8220c3951f62c14c1e0faebf49f5eb449badd6b45da6d785512ea946e980"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 5): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2521-2533 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6272-6284 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6674-6686 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7089-7100 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7548-7559 \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/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":2521}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8ee2bad60f47dd4c86dafa2a568772f134d7cc88cfd40dae8e74b14386d327"}},{"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:523-535 | mistralrs-core/src/xlora_models/mixtral.rs:653-665 | mistralrs-core/src/xlora_models/phi2.rs:493-505 | mistralrs-core/src/xlora_models/phi3.rs:473-485 \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 273 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/llama.rs"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"891af54df9bc8cd0b31ef8eb8adf34354c9ffe6eeefc836ef1b9880eea1bb082"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): mistralrs-paged-attn/src/cuda/backend/fa3.rs:495-507 | mistralrs-quant/src/cutile/gdn_prefill.rs:706-718 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:326-338 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1198-1210 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1456-1468 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/cuda/backend/fa3.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"c87afa45c3bf4154d2359d439073db05efc94430a9e12ba364f025761c62e662"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 4): mistralrs/src/model_builder_trait.rs:676-687 | mistralrs/src/model_builder_trait.rs:824-836 | mistralrs/src/model_builder_trait.rs:1271-1281 | mistralrs/src/model_builder_trait.rs:1431-1442 \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/src/model_builder_trait.rs"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"781f846ff38e903c61a9651ab8ab4a3bcd3cf6b2dd1d38af6cdbda581dccb0df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): mistralrs-core/src/distributed.rs:206-218 | mistralrs-core/src/distributed.rs:252-264 | mistralrs-core/src/distributed.rs:292-304 | mistralrs-core/src/distributed.rs:332-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/distributed.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b15c4554001301dbcabcf7c4ef485d48a9abbeed8f7f7eaa5737db28c519349"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): mistralrs-core/src/models/gemma.rs:417-429 | 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 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/gemma.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"e135540fdb35ef8ba6ba36cd899b2a8abad6e03cab9550d7b702fa531e9f9eff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): mistralrs-core/src/models/glm4_moe.rs:880-892 | mistralrs-core/src/models/glm4_moe.rs:925-937 | mistralrs-core/src/models/glm4_moe_lite.rs:1014-1026 | mistralrs-core/src/models/glm4_moe_lite.rs:1057-1069 \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 43 separate duplicated blocks between them, totalling at least 573 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"715f8a27334a09be448b0d789e0ffa7b45142d14692503cc59e10b120422ea19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): mistralrs-core/src/vision_models/phi3/mod.rs:607-619 | mistralrs-core/src/vision_models/phi3/mod.rs:639-651 | mistralrs-core/src/vision_models/phi4/image_embedding.rs:229-241 | mistralrs-core/src/vision_models/phi4/image_embedding.rs:261-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 8 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"644deecc1ce7857999921cff53fd73fb05edd18859fb061f2083b2d1c27f68d2"}},{"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:287-298 | mistralrs-core/src/xlora_models/mixtral.rs:200-211 | mistralrs-core/src/xlora_models/phi3.rs:175-186 \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 36 separate duplicated blocks between them, totalling at least 524 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c1905677b3cf248d2c83ff605229f167f663a29ee2d50bf285c3c01dd3c4df3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): mistralrs-quant/src/hqq/mod.rs:155-167 | mistralrs-quant/src/hqq/mod.rs:238-250 | mistralrs-quant/src/hqq/mod.rs:332-344 | mistralrs-quant/src/hqq/mod.rs:481-493 \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/hqq/mod.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb151c03a688ef4382c54d2d7cf351fc0ae824fa90989a065e7dbb4962a2d0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): mistralrs-cli/src/commands/run/interactive.rs:1780-1792 | mistralrs-cli/src/commands/run/interactive.rs:1946-1958 | mistralrs-cli/src/commands/run/interactive.rs:2068-2080 \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-cli/src/commands/run/interactive.rs"},"region":{"startLine":1780}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc5c79ada08d1b20aead2c6d07e9035c6aaa07fcad108ea12881b40738cbd51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): mistralrs-core/src/embedding_models/embedding_gemma.rs:536-548 | mistralrs-core/src/models/gemma2.rs:608-620 | mistralrs-core/src/vision_models/gemma3/text.rs:857-869 \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 10 separate duplicated blocks between them, totalling at least 156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e0cceee77abf3443a47db2cff1b6447c4a47e6f9229580ce37753eeca32a216"}},{"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:259-271 \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 33 separate duplicated blocks between them, totalling at least 375 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"39349eecbd82606c838e23e10f6d7319494d218e118364901b6ddc9cad5897f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): mistralrs-core/src/models/llama.rs:692-704 | mistralrs-core/src/models/smollm3.rs:711-723 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:707-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 50 separate duplicated blocks between them, totalling at least 696 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"73aa25d03766681ff167053c903609321004fd41dc4d1b939daa8bebcbaf3ff1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): mistralrs-core/src/moe/experts/backends.rs:944-956 | mistralrs-core/src/moe/experts/backends.rs:1023-1035 | mistralrs-quant/src/moe/cutlass.rs:157-169 \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":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"31675f5f4c612239b752041510c748a4d836fa1c6d134bad7feac27ef15cde5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): mistralrs-core/src/pipeline/cuda_graph.rs:3195-3207 | mistralrs-core/src/pipeline/cuda_graph.rs:3240-3252 | mistralrs-core/src/pipeline/cuda_graph.rs:3285-3297 \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/pipeline/cuda_graph.rs"},"region":{"startLine":3195}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a8fe63afbf9e96ca025dd6ed3aa5e29aeeeaf0daa85be86ab4ec6b67bc8e13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1472-1484 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1765-1777 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4519-4531 \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/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1472}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b57410c33f5df37034ef173b15cf20a903db4f69830b310a800b4bbe659bc92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4397-4409 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:987-999 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5919-5931 \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 32 separate duplicated blocks between them, totalling at least 426 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":4397}}}],"partialFingerprints":{"codehealthFindingId/v1":"369b4bbb5cc75b13588ab2762431b2980ec9a5958fedd6d9935c78ec6fbf081c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): mistralrs-core/src/sampler.rs:961-972 | mistralrs-core/src/sampler.rs:1510-1522 | mistralrs-core/src/sampler.rs:1678-1689 \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":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0949b43e81dcc3cd04469810592b71ab097041d0ecb2c4b89759c03ae237791"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): mistralrs-core/src/sampler.rs:1174-1186 | mistralrs-core/src/sampler.rs:1254-1266 | mistralrs-core/src/sampler.rs:1724-1735 \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":1174}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad6a8b814eb1037d77864ebf139bf95edaa1b1e5499280c1a2cae2e9c5ac3f2"}},{"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 20 separate duplicated blocks between them, totalling at least 316 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/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/qwen2_5_vl/inputs_processor.rs:129-141 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:695-707 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:787-799 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ab9fab50aae8b0826850760b35d7bc5c184401abec394eaf022e6b81ede6e3"}},{"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."},"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 (12\u201313 lines \u00D7 3): mistralrs-paged-attn/src/metal/kernels/mod.rs:442-454 | mistralrs-paged-attn/src/metal/kernels/mod.rs:585-597 | mistralrs-paged-attn/src/metal/kernels/mod.rs:647-658 \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-paged-attn/src/metal/kernels/mod.rs"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ed01516cbdcd70ad66e4186cd3a4922b7f5568bcaef24ca554c81498300ad6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): mistralrs-quant/src/safetensors.rs:613-625 | mistralrs-quant/src/safetensors.rs:663-675 | mistralrs-quant/src/safetensors.rs:739-751 \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/safetensors.rs"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc60fa0d3d4160c6881d9afcba61f15209fdb887b2ef42e468104c5e73aa5e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs/src/auto_model.rs:111-123 | mistralrs/src/text_model.rs:143-155 \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/src/auto_model.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab04c3a722b47744286ebab1b30df9de0184c8769a33af2c126020e1dc19f3a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs/src/messages.rs:519-531 | mistralrs/src/messages.rs:1210-1222 \u2014 both copies are in the same file, so extract the block 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/messages.rs"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"3827ceef571d57757f519560f0c0f4c1f21df54cbf284673c64c841c73fda41d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs/src/model.rs:647-659 | mistralrs/src/model.rs:724-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs/src/model.rs"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"23fd164600a25dc52d7231e7f3c7b628a18c4b03e5715c4af3e3b3a1472a9a88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): mistralrs-cli/src/commands/run/interactive.rs:2039-2050 | mistralrs/src/model.rs:698-710 \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/run/interactive.rs"},"region":{"startLine":2039}}}],"partialFingerprints":{"codehealthFindingId/v1":"2246d95983d0bce536ecee2fcf491ec935f3871fb42e6e9057cb553121048a63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs/src/model_builder_trait.rs:1100-1112 | mistralrs/src/model_builder_trait.rs:1511-1523 \u2014 both copies are in the same file, so extract the block 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":1100}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf2dc7e2eeb93c4514e4016851f086f1b76e5ccb11a34b5a6a0923cf55bed31"}},{"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."},"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:1886-1898 | mistralrs-cli/src/commands/run/interactive.rs:2011-2023 \u2014 both copies are in the same file, so extract the block 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":1886}}}],"partialFingerprints":{"codehealthFindingId/v1":"a17e650fb17ed96bbc567e2bd263b40eb113bd787a3f5d7470f46d4fd7d35aa2"}},{"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:426-438 \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/quantize.rs:200-212 | mistralrs-cli/src/commands/serve.rs:1111-1123 \u2014 before extracting anything, compare \u0060mistralrs-cli/src/commands/quantize.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 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/quantize.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6c9fb486da1ea814a68445338a2077f07b363a3859e0b30631c741d14c85d2d"}},{"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."},"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/cuda/gdn.rs:2289-2301 | mistralrs-core/src/cuda/gdn.rs:2548-2560 \u2014 both copies are in the same file, so extract the block 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":2289}}}],"partialFingerprints":{"codehealthFindingId/v1":"a63a3df6b7fb26be23b5b610663d15c4889b73c77c1c3a47f3e86e5a28613298"}},{"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 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/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:159-171 \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 16 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8b22f19f372cecbb7fc927da4dfdcaa29426b649782f96fe83eb0ab5e5b0627"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/gguf/normal_config.rs:1357-1369 | mistralrs-core/src/gguf/normal_config.rs:2173-2185 \u2014 both copies are in the same file, so extract the block 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":1357}}}],"partialFingerprints":{"codehealthFindingId/v1":"272e8fd3a1604fce7422dd9ef0903b7da517ab3570b46f426aae0c2bb2ef8cbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): mistralrs-core/src/gguf/normal_config.rs:1631-1642 | mistralrs-core/src/gguf/normal_config.rs:1701-1713 \u2014 both copies are in the same file, so extract the block 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":1631}}}],"partialFingerprints":{"codehealthFindingId/v1":"94cb0efaf0326ed50903060bfe06f5288156c51065e3f81a1d7e2281ef2092ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/kv_cache/mod.rs:1200-1212 | mistralrs-core/src/kv_cache/mod.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/kv_cache/mod.rs"},"region":{"startLine":1200}}}],"partialFingerprints":{"codehealthFindingId/v1":"40768803a0befd6b101ec1bd5237e533ec3735a91218eceabb89474d889438b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/layers.rs:995-1007 | mistralrs-core/src/layers.rs:2273-2285 \u2014 both copies are in the same file, so extract the block 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":995}}}],"partialFingerprints":{"codehealthFindingId/v1":"f43cfd8127d214c23b09288be3fef8667fea03f9c8b2750c357000f60f7f4a0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/layers.rs:1151-1163 | mistralrs-core/src/layers.rs:1241-1253 \u2014 both copies are in the same file, so extract the block 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":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d69595cf211c1b6891a06ef7d0f8dc5fe45e0be4d65a193d8e7af0b7bb29577"}},{"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 7 separate duplicated blocks between them, totalling at least 142 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/lora/loralinear.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"53509c343682dc8ffa4a8778891c24a0a4640e9c95d053f24fe49cc944ba0bbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/model_loader.rs:752-764 | 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 10 separate duplicated blocks between them, totalling at least 156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"2076158f077730f1b6c3936b61dc6723968e353cfd59a5ec377e462fc04244a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/models/gemma2.rs:579-591 | mistralrs-core/src/vision_models/gemma3/text.rs:751-763 \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 30 separate duplicated blocks between them, totalling at least 362 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/gemma2.rs"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f8129241fe2c78cefd3d50916454fc37ab4aedb9e26823452e3158f51054bbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/models/glm4_moe.rs:866-878 | mistralrs-core/src/models/glm4_moe.rs:906-918 \u2014 both copies are in the same file, so extract the block 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":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"792498515f5bd1a0729a98d1f8f13fe492d49e98811f497af1f5d0a2ca65ec9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/models/quantized_llama.rs:142-154 | mistralrs-core/src/xlora_models/quantized_llama.rs:275-287 \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 5 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-core/src/models/quantized_llama.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"a967209c1d26059f0162ce47c3a22cb6cfa79e546e64f031137b71fbfe276990"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/ops.rs:1590-1602 | mistralrs-core/src/ops.rs:1832-1844 \u2014 both copies are in the same file, so extract the block 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":1590}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea68f751c8b4598bac153b459a810813314603452e0fbf12788275df1dd6fd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/ops.rs:5337-5349 | mistralrs-core/src/ops.rs:5770-5782 \u2014 both copies are in the same file, so extract the block 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":5337}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdd88cd5646f3ec8e26d68c45ec98e5a3d7e2ea3a3cfadfff461b5c76cb86705"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/pipeline/amoe.rs:76-88 | mistralrs-core/src/pipeline/amoe.rs:118-130 \u2014 both copies are in the same file, so extract the block 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/amoe.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"54ee4a3b31e0bf8c45b78f16b713faa3cff78b4f028aba6c2c5a3299bad87e3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): mistralrs-core/src/pipeline/inputs_processor.rs:1263-1274 | mistralrs-core/src/pipeline/inputs_processor.rs:1301-1313 \u2014 both copies are in the same file, so extract the block 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":1263}}}],"partialFingerprints":{"codehealthFindingId/v1":"77fcb0aa888ddb38a9b22da342e34752797ed4ac9ae4a19614a01116b209f585"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:481-493 | mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:670-682 \u2014 both copies are in the same file, so extract the block 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/embedding_loaders.rs"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"370fccab3a4ab6300dc0e5362a927b3fc870d2b54478bbc7665ec68f111cd309"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:817-829 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:849-861 \u2014 both copies are in the same file, so extract the block 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":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"108dec2d506c4ad64637493528d2cc6d4709822fee392fb4b459b50c8282f72f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6397-6409 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6802-6814 \u2014 both copies are in the same file, so extract the block 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":6397}}}],"partialFingerprints":{"codehealthFindingId/v1":"af2967f5dd11d730e0eb376e04e826e4fb97871d85b367adda60ea46466dab62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1691-1703 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2525-2537 \u2014 both copies are in the same file, so extract the block 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":1691}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b0ed323abb82ee3d04daf9e02340c5aaae34f7c0c63993948c8e8ff2b7d454"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): mistralrs-core/src/pipeline/mod.rs:2078-2088 | mistralrs-core/src/pipeline/mod.rs:2659-2671 \u2014 both copies are in the same file, so extract the block 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":2078}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd1ab706c5b33858033258569aafe7b3e2d22de8459b44c62c3c3b3cd5301176"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1694-1706 | mistralrs-core/src/pipeline/normal.rs:1623-1635 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1694}}}],"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/prompt_chunks.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0002a97a4189bc71f7773b060fefeb4562de6769e7f025ffb7ae12f1e219ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): mistralrs-core/src/sampler.rs:1486-1498 | mistralrs-core/src/sampler.rs:1656-1667 \u2014 both copies are in the same file, so extract the block 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":"ed30857a6dfd23a62d2fcc8017c04619476eab3b671949a0cbcf6f4cc95e5811"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/speculative/proposer.rs:472-484 | mistralrs-core/src/vision_models/gemma4/mtp.rs:289-301 \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/speculative/proposer.rs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"48eb2fdac60b540e6edfadb4b2150f4d8f325256aab0313a35733028b86ea20d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/speculative/verifier.rs:968-980 | mistralrs-core/src/speculative/verifier.rs:1377-1389 \u2014 both copies are in the same file, so extract the block 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/verifier.rs"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"5924bc9ab2623df14038cde8206c19d083f9853ae00f7edf44a5ea2948a60400"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): mistralrs-core/src/utils/gguf_metadata.rs:388-399 | mistralrs-core/src/utils/gguf_metadata.rs:613-625 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/utils/gguf_metadata.rs"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"d98f0ad6de4f096442d66b83374007ab5e87788462560b189793fed56ec849d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/utils/memory_usage.rs:159-171 | mistralrs-core/src/utils/memory_usage.rs:191-203 \u2014 both copies are in the same file, so extract the block 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":159}}}],"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."},"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/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."},"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 (12\u201313 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/text.rs:1539-1550 | mistralrs-core/src/vision_models/gemma4/text.rs:1828-1840 \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 8 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/gemma3n/text.rs"},"region":{"startLine":1539}}}],"partialFingerprints":{"codehealthFindingId/v1":"a566cba2b4b210344d0f9d4d460c5570e6e22d954c9039bbb4e8238a0b5e1a7f"}},{"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."},"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 7 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":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 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8c0f591a961b4437b78e26dad85bc578997c0813992e49b822721cc12fd94e5"}},{"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."},"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 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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 20 separate duplicated blocks between them, totalling at least 316 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/llava/llava_next_inputs_processor.rs"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c19259a25845ec46b27447e6537d680be4cef1f703571e5a0e2828d3fb3cbc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): mistralrs-core/src/vision_models/phi4/mod.rs:508-519 | mistralrs-core/src/vision_models/voxtral/mod.rs:885-897 \u2014 \u0060mistralrs-core/src/vision_models/phi4/mod.rs\u0060 and \u0060mistralrs-core/src/vision_models/voxtral/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 7 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/phi4/mod.rs"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a3ebb0ad3fd2e63a906b8ddbeb9a917ea0c81cb569d3d26d25d7fe5a847167e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/config.rs:379-391 | mistralrs-core/src/vision_models/qwen3_5_moe/config.rs:189-201 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/qwen3_5/config.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"714b2bb824fd89ddb55c681ec12fe015d1731af62904e1a5dd2bc533905bc342"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/speculative.rs:302-313 | mistralrs-core/src/vision_models/qwen3_5/speculative.rs:978-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/qwen3_5/speculative.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"235adc9c1044ac5ff570ce7c3dc31f296a4d5b7346e715fa4124d78ef1d62176"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/text.rs:2282-2294 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:764-776 \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 416 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":2282}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8a28d4a724847ead7e28246c22ee97afb753df895a783e856d7fe16df140d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/xlora_models/gemma2.rs:650-662 | mistralrs-core/src/xlora_models/phi2.rs:569-581 \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 297 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/gemma2.rs"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"244f5499b626dfd0b60a5b4798c7d79b20f96932781d43384f0802aedc19d0dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/xlora_models/mixtral.rs:387-399 | 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":387}}}],"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."},"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 (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/engine/add_request.rs:1072-1084 | mistralrs-core/src/engine/add_request.rs:1109-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/add_request.rs"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d4ff74d700163eef31a92f33347bfb92117e2633832d5b82c548c1f9721db5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:701-713 | mistralrs-quant/src/vector_fp8/ops.rs:383-395 \u2014 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs\u0060 and \u0060mistralrs-quant/src/vector_fp8/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 4 separate duplicated blocks between them, totalling at least 49 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"25bbe2a9e78d02748fa20a3b376b8317cdc06e49893b2852a1358832635c81b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/ops.rs:723-735 | mistralrs-quant/src/vector_fp8/ops.rs:400-412 \u2014 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs\u0060 and \u0060mistralrs-quant/src/vector_fp8/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 4 separate duplicated blocks between them, totalling at least 49 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"311f367133a54c9c196d1a09adaffcbabd8c3303fa1a3473ffe0d047934f1b89"}},{"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 (13 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:65-77 | mistralrs-quant/src/cutile/fp8_w8a16.rs:118-130 \u2014 both copies are in the same file, so extract the block 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/fp8_w8a16.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f51f4fb0e0ff844e0ab9367dee0411c63a018ea9c55449e8d24b746da366ec7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:170-182 | mistralrs-quant/src/cutile/fp8_w8a16.rs:223-235 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"87f8131ae8b885611a3da707627212ad721adea2c45a0afbddb5a9845566fa36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:82-94 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:95-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 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"07f5be52b4ec14a9ac68dd2265bbdc30931987defdf20c25793ccf01d2c65f85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:581-593 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:1022-1033 \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 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"54cb53d483a77d4b22f8db85bdd736b78d692d908d92ebca6370c906b0122032"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_matmul.rs:562-574 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:856-868 \u2014 both copies are in the same file, so extract the block 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":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"3425ee65160eacb3303fd3b824a08dd000343ebb84d8907b93f685c42936bfd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_matmul.rs:1280-1292 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1624-1636 \u2014 both copies are in the same file, so extract the block 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":1280}}}],"partialFingerprints":{"codehealthFindingId/v1":"50a50b1d65f3ef618429c62b834c426653439065c83da1e65dd683294c305fd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_gemv.rs:338-350 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1496-1507 \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 8 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/nvfp4_gemv.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7860758c4f34c5c17cadeb8d0cd55c6278fb2fa5fff893a9f86c8b001cbcfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:1223-1235 | mistralrs-quant/src/distributed/layers.rs:1873-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":1223}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7334264161bf3740be38815389862d1dbd891053130f42540a9abbd84de245e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-quant/src/hqq/mod.rs:221-233 | mistralrs-quant/src/hqq/mod.rs:309-321 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/hqq/mod.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"187b87c6a880cdfc1c7250c2c2cd17e29eedbd3b449b23c8eb8a0115719f6c97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 2): mistralrs-quant/src/unquantized/mod.rs:169-181 | mistralrs-quant/src/unquantized/mod.rs:218-226 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/unquantized/mod.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5a4535c42df4650b87eb839798aa51aa6c39594c8449aa1eb87694477845cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-quant/src/afq/ops.rs:201-213 | mistralrs-quant/src/afq/ops.rs:591-603 \u2014 both copies are in the same file, so extract the block 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":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5094e29f5f5b13e3dfa6e0cfc17946889c9a2f4fe0379e89b3085fafbddeb68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-quant/src/afq/ops.rs:454-466 | mistralrs-quant/src/afq/ops.rs:555-567 \u2014 both copies are in the same file, so extract the block 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":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca0dda66160f9535cdb4a75be8a5f96834c17d3a711886d79e16fc9076a5fa57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-server-core/src/mistralrs_for_server_builder.rs:820-832 | mistralrs-server-core/src/mistralrs_for_server_builder.rs:993-1005 \u2014 both copies are in the same file, so extract the block 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":820}}}],"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:979-991 | mistralrs-server-core/src/mistralrs_for_server_builder.rs:1199-1211 \u2014 both copies are in the same file, so extract the block 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":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"b57fb29d4c804c52a2115f7c332bce8003b0190179a47bb9d668e40bb67d1cbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-server-core/src/mistralrs_for_server_builder.rs:1093-1105 | mistralrs-server-core/src/mistralrs_for_server_builder.rs:1267-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/mistralrs_for_server_builder.rs"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ab978efe6285519c582df5da249f49a9a9c8e8014abb9797b341f9dee1b593"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 27): 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:1581-1592 | 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:238-252 | 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:369-380 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:241-252 | 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/gemma2.rs\u0060 and \u0060mistralrs-core/src/models/glm4.rs\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 247 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/gemma2.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"7114abbf0fc6a4c7252a91fddb7d36509d61f01b5f2d11fbeebfd4d747116596"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 21): 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/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:228-239 | 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/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.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/gemma.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"13dc12871853faab5aaa127e9ec3e98b6b577b8da984049b94df5da70c1df67f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 17): 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:224-234 | 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:246-255 | 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/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gpt_oss.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"82342b9a30825281a68c78f21c18e5b775b34a3af4dcd50815ede1d029198e21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 13): mistralrs-core/src/models/deepseek2.rs:828-839 | mistralrs-core/src/models/deepseek3.rs:891-902 | mistralrs-core/src/models/glm4_moe.rs:728-739 | mistralrs-core/src/models/glm4_moe_lite.rs:838-849 | mistralrs-core/src/models/mixtral.rs:480-491 | mistralrs-core/src/models/qwen2.rs:512-523 | mistralrs-core/src/vision_models/gemma3/text.rs:531-543 | mistralrs-core/src/vision_models/gemma3n/text.rs:1470-1482 | mistralrs-core/src/vision_models/mllama/text.rs:771-783 | mistralrs-core/src/vision_models/phi3/mod.rs:1275-1286 | mistralrs-core/src/vision_models/phi4/mod.rs:390-401 | 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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ffea12641f06262d56b08b183c5725e1bf5b829cbf614350ebcaa563e27462a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 12): mistralrs-core/src/models/glm4.rs:586-595 | 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:599-609 | mistralrs-core/src/models/mixtral.rs:536-546 | mistralrs-core/src/models/phi3.rs:545-556 | mistralrs-core/src/models/phi3_5_moe.rs:617-628 | mistralrs-core/src/models/qwen3.rs:550-560 | mistralrs-core/src/models/qwen3_moe.rs:733-743 | mistralrs-core/src/models/starcoder2.rs:538-548 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:555-564 | mistralrs-core/src/vision_models/phi3/mod.rs:1349-1359 \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 40 separate duplicated blocks between them, totalling at least 462 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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.rs"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd65a3b1ee4ac297dc8f381c3084df8c60709c02d0b681fd1153a72de63f0ff3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 9): mistralrs-core/src/embedding_models/qwen3_embedding.rs:352-363 | mistralrs-core/src/models/mixtral.rs:428-439 | mistralrs-core/src/models/qwen2.rs:457-468 | mistralrs-core/src/models/qwen3.rs:423-434 | mistralrs-core/src/models/qwen3_moe.rs:600-611 | mistralrs-core/src/models/starcoder2.rs:426-437 | mistralrs-core/src/xlora_models/mistral.rs:446-457 | mistralrs-core/src/xlora_models/mixtral.rs:576-587 | mistralrs-core/src/xlora_models/starcoder2.rs:435-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 7 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d5c6519119a1da391f276da539f6ce77544ef7ff080d5c66660178452cb6cd7"}},{"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:341-352 | mistralrs-core/src/xlora_models/mixtral.rs:468-479 | mistralrs-core/src/xlora_models/phi3.rs:306-317 \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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"602bfce7e6fcb4520c5bef89a942baf4556838eac8c5371d0279a4468d233314"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 9): mistralrs-core/src/models/deepseek2.rs:954-966 | mistralrs-core/src/models/deepseek3.rs:1017-1029 | mistralrs-core/src/models/gemma.rs:467-479 | mistralrs-core/src/models/glm4_moe.rs:833-844 | mistralrs-core/src/models/glm4_moe_lite.rs:970-981 | mistralrs-core/src/models/llama.rs:495-507 | mistralrs-core/src/models/phi2.rs:545-557 | mistralrs-core/src/models/qwen2.rs:572-583 | 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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":954}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4207fc42a571209cf9a8fa76aa834af4762a1bd79cdfd569b6c70d1ca63192"}},{"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:284-295 | mistralrs-core/src/models/mistral.rs:330-341 | mistralrs-core/src/models/qwen2.rs:362-373 | mistralrs-core/src/models/qwen3.rs:315-326 | mistralrs-core/src/models/smollm3.rs:300-311 \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 134 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"50f4cf55ef634c0f5da9ce2c12bcf0252f6d56c887c3ec67d16eca444c548d86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): mistralrs-core/src/embedding_models/embedding_gemma.rs:290-301 | mistralrs-core/src/models/gemma.rs:284-295 | mistralrs-core/src/models/gemma2.rs:335-346 | mistralrs-core/src/vision_models/gemma3/text.rs:344-355 | mistralrs-core/src/xlora_models/gemma.rs:343-354 | mistralrs-core/src/xlora_models/gemma2.rs:356-367 \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 7 separate duplicated blocks between them, totalling at least 113 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":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc4c3d2dffc70d112fb3aa527634af242326a0b3f5d0cdb140bddb7bd61acc3"}},{"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:109-120 | 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 362 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/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/pipeline/loaders/multimodal_loaders.rs:2525-2536 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3854-3865 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6276-6287 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6678-6689 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7092-7103 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7551-7562 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":2525}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed14c8785e93c9e1ff3e57ad288b18302f2e103f81a721d35b3dab9740878962"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): 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 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:891-902 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1188-1199 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"265e08dd91d6ae4eca83b407d79fdf0d8549dbd87caab95529ff13ef699e0c64"}},{"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:111-122 | 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 134 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"508e3dcc1c9c1b94f4354dfad3a4ddba4592e9cc9b35f3661c433424e2dfb42d"}},{"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:133-144 | 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 134 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":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:153-164 | 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 362 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/qwen3_embedding.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"c044cabb3be4578848d5e1ad1497b5f5f2eb68530ce1427f47284246559ebda3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 5): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3931-3939 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6369-6380 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6771-6782 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7182-7193 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7641-7652 \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/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":3931}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a4f30451e3ab8fbff803e948697e1e9521093a062fcb6a8a762265bdfd9401d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): mistralrs-core/src/xlora_models/gemma.rs:599-610 | mistralrs-core/src/xlora_models/mistral.rs:599-610 | mistralrs-core/src/xlora_models/mixtral.rs:729-740 | mistralrs-core/src/xlora_models/phi2.rs:565-576 | mistralrs-core/src/xlora_models/starcoder2.rs:584-595 \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 36 separate duplicated blocks between them, totalling at least 524 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b18ebfd8a39a51fb12be35f86d582087bd659f6c1d56cce96ad4a9026e0c237"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): mistralrs/src/model_builder_trait.rs:741-752 | mistralrs/src/model_builder_trait.rs:896-907 | mistralrs/src/model_builder_trait.rs:1087-1098 | mistralrs/src/model_builder_trait.rs:1498-1509 \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/src/model_builder_trait.rs"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"608ec49f6c70f8000175413231084aaf7b9a81bb26d4b85caf99bae40473b525"}},{"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:359-369 | 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 7 separate duplicated blocks between them, totalling at least 113 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":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"b208cd42ba3ae933649dc35172f20ae1380d7bb3c6741cedc18cc2ee32a70345"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): mistralrs-core/src/model_loader.rs:739-750 | mistralrs-core/src/model_loader.rs:773-784 | 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 10 separate duplicated blocks between them, totalling at least 156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"e923b9135716618a042b36a3ea24196d115e939e090258d22b798e9f2c84ecfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): mistralrs-core/src/models/deepseek2.rs:780-791 | mistralrs-core/src/models/deepseek3.rs:843-854 | mistralrs-core/src/models/glm4_moe.rs:680-691 | mistralrs-core/src/models/glm4_moe_lite.rs:790-801 \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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd2665e0cd1bbf20c9c30a67d7316ad0087de805e214771751e0671efa05e55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): mistralrs-core/src/models/gemma.rs:366-377 | mistralrs-core/src/models/gemma2.rs:438-449 | mistralrs-core/src/xlora_models/gemma.rs:445-456 | mistralrs-core/src/xlora_models/gemma2.rs:480-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 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/gemma.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"8069c6cd66e3a880b3edc51ccb96e1c93ae4a045dfb593ab0596bf302a29b94f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): mistralrs-core/src/models/granite.rs:1541-1552 | mistralrs-core/src/models/llama.rs:81-92 | mistralrs-core/src/models/smollm3.rs:96-107 | mistralrs-core/src/xlora_models/llama.rs:77-88 \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 20 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":1541}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed83c2e4433359a6123b46b857ee722da313b88d553781c1a6e1f2e4f806971"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): mistralrs-core/src/models/phi3.rs:149-160 | mistralrs-core/src/vision_models/phi3/mod.rs:241-252 | mistralrs-core/src/vision_models/phi4/mod.rs:110-121 | mistralrs-core/src/xlora_models/phi3.rs:124-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 48 separate duplicated blocks between them, totalling at least 605 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ac30014f52afc36fbe254cb88ed412e8c126b856de5f2e834ae9199322104b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): mistralrs-core/src/vision_models/qwen3_5/mod.rs:93-104 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:82-93 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:635-646 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:80-91 \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 23 separate duplicated blocks between them, totalling at least 408 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":93}}}],"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:379-390 | mistralrs-core/src/xlora_models/phi3.rs:345-357 | mistralrs-core/src/xlora_models/starcoder2.rs:368-379 \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 36 separate duplicated blocks between them, totalling at least 524 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bdd2b454b1c2130ee59a9fcde5ef1f267b1bdd0f9d07004e9c6adcd4cac78e4"}},{"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."},"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 (12 lines \u00D7 4): mistralrs-quant/src/cutile/nvfp4_matmul.rs:151-162 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:304-315 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:567-578 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:861-872 \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/nvfp4_matmul.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"4caad8a9690594c7e2ca761881f023aedfed314ee6c7e9d706bfea2189431a2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): mistralrs-quant/src/hqq/hqq_op.rs:156-167 | mistralrs-quant/src/hqq/hqq_op.rs:269-280 | mistralrs-quant/src/hqq/hqq_op.rs:386-397 | mistralrs-quant/src/hqq/hqq_op.rs:505-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/hqq/hqq_op.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c88e0f06ce967acbc66ccc90ac67f808f8f1ee9db535a606daf5adf3673e26d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): mistralrs/src/model_builder_trait.rs:756-767 | mistralrs/src/model_builder_trait.rs:1102-1113 | mistralrs/src/model_builder_trait.rs:1513-1524 \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/model_builder_trait.rs"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c4ee2e6fcdbf96c37761c0a22a4143414b3818d62c6f1000f2f6343a6545258"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): mistralrs-core/src/layers.rs:1116-1127 | mistralrs-core/src/layers.rs:1206-1217 | mistralrs-core/src/layers.rs:1475-1486 \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":1116}}}],"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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"71c92f15eda3ce2d6e8e43dea5e25a67dd77d98156912383dee64760306737fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): mistralrs-core/src/models/granite.rs:1484-1495 | mistralrs-core/src/models/granite.rs:1771-1782 | 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":1484}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdea917e530be768a55f8d19726b792a97ddf6a922b907c8cc64828d1659d605"}},{"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 50 separate duplicated blocks between them, totalling at least 696 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"3808a3135ff7a566cf4996cdf1f6475961f33472ddc2d2c1e6fa56a40d515d10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): mistralrs-core/src/models/qwen3_next.rs:920-931 | mistralrs-core/src/vision_models/qwen3_5/text.rs:1400-1411 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:705-716 \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 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"41aead807d5d35ec588d3ed936bdddd37780d3f45501390aa92879944ec9ab09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): mistralrs-core/src/ops.rs:5170-5181 | mistralrs-core/src/ops.rs:5599-5610 | mistralrs-core/src/ops.rs:5935-5946 \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":5170}}}],"partialFingerprints":{"codehealthFindingId/v1":"87a875ac4bc79349e1867086f5a56eac404dc425433a82e47805b6b742390398"}},{"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."},"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/llava/llava_llm/mistral.rs:340-351 | mistralrs-core/src/vision_models/mllama/text.rs:280-291 | mistralrs-core/src/vision_models/mllama/text.rs:640-651 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eade9690ae79a4b48359a6bceeb9969950dc8d05b2b0a0a1f18c4ed3d33685c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1023-1034 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1588-1599 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1767-1778 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"103926963f3c295e3506c5d6a0c41b50d30c7eba204f715d5c2842ef9fa70a90"}},{"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:596-607 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:919-929 \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 10 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3be480ce8736e0f396d2580c83a60cc6cbdb0d813c4359e9ccb50305f59038"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 3): mistralrs-quant/src/distributed/layers.rs:868-879 | mistralrs-quant/src/distributed/layers.rs:1330-1341 | mistralrs-quant/src/distributed/layers.rs:2204-2212 \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/distributed/layers.rs"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc374d9a17c56f4202832a72d86f2f6c59f10176a4eb3632feb56c863362f01"}},{"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/moe/cuda.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"811ea768558d1f9f0cb27266ca5abcd73a468928913646c66ec8ce352eec99ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): mistralrs-quant/src/afq/ops.rs:2374-2384 | mistralrs-quant/src/afq/ops.rs:2494-2504 | mistralrs-quant/src/afq/ops.rs:3022-3033 \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":2374}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d23763273c7ef96e2b01bd58114f86835ca1b07977b3129e20ac2f3c108825"}},{"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."},"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-cli/src/commands/quantize.rs:223-234 | mistralrs-cli/src/commands/serve.rs:1134-1145 \u2014 before extracting anything, compare \u0060mistralrs-cli/src/commands/quantize.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 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/quantize.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd75aae8c66eab0e1409bf4db750acd6d12b822573a39b2a1db466d5cf6bcd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-cli/src/commands/quantize.rs:655-666 | mistralrs-cli/src/commands/quantize.rs:690-701 \u2014 both copies are in the same file, so extract the block 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":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac6a97dd73673fe87e4876a4f9c4443d298dfe0cd2bcc8f7676a84550fb64aea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): mistralrs-cli/src/commands/config.rs:128-138 | mistralrs-cli/src/commands/serve.rs:144-155 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/config.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"37074ca42127501d6bd5aa4d2b8898b00e931a8d3676e4fc0e83651d60925042"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): mistralrs-code-exec/src/lib.rs:312-323 | mistralrs-code-exec/src/shell.rs:336-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 6 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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-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/attention/backends/cpu/full.rs:655-666 | mistralrs-core/src/attention/backends/cpu/single_q.rs:339-350 \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/attention/backends/cpu/full.rs"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f0cacaaa2f9f917bd5eb81323d55ba4e5550819735e0106b1d7b3b85daf36c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:4672-4683 | mistralrs-core/src/cuda/gdn.rs:4708-4719 \u2014 both copies are in the same file, so extract the block 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":4672}}}],"partialFingerprints":{"codehealthFindingId/v1":"b179ab80d6fc5cd20ad2c9cc0c08350a7ac1a55846a31023c3446bf3d839e169"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/kv_cache/hybrid_cache.rs:1624-1635 | mistralrs-core/src/kv_cache/hybrid_cache.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/kv_cache/hybrid_cache.rs"},"region":{"startLine":1624}}}],"partialFingerprints":{"codehealthFindingId/v1":"6321d81b306213bfbd53f6d85cd66ce7f10233c69cbbc8e614fb28f167220928"}},{"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."},"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 (12 lines \u00D7 2): mistralrs-core/src/layers.rs:847-858 | mistralrs-core/src/layers.rs:2183-2194 \u2014 both copies are in the same file, so extract the block 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":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea80dd1b3ef7ab817916ce6c48f21a480ea5c6066f6068bbfe6ac266e78c0c29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/model_loader.rs:891-902 | 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 10 separate duplicated blocks between them, totalling at least 156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":891}}}],"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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff4a3ba03ef1455f2d52e5f0d961f5a55ac2038f643ada8c20ef3c35daee730"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/models/glm4.rs:459-470 | mistralrs-core/src/models/glm4_moe.rs:748-759 \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 31 separate duplicated blocks between them, totalling at least 341 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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.rs"},"region":{"startLine":459}}}],"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 195 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa0716232e7da90e2d98a03b7d010e9d679b13bb2d0ded877794845cf9bafe36"}},{"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:400-411 \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 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":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:266-277 | mistralrs-core/src/paged_attention/cache_engine.rs:422-433 \u2014 both copies are in the same file, so extract the block 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/cache_engine.rs"},"region":{"startLine":266}}}],"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:1038-1049 | mistralrs-core/src/paged_attention/layers/paged_attention.rs:1633-1644 \u2014 both copies are in the same file, so extract the block 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":1038}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02385b09bd2eb7463da3a0af4b45d8c53220b520ed1e42eeab222ebf3e0d281"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/pipeline/hf.rs:744-755 | mistralrs-core/src/pipeline/hf.rs:772-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/hf.rs"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"055e1fce39db55812ddccabc37bbf5531e7bc68dfb005d6000f5e8b0c3dd0b14"}},{"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."},"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:694-705 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5077-5095 \u2014 both copies are in the same file, so extract the block 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":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0c9ed912c165ef8a6f0621f132d8125da378ebb6d0bd747b5beaf98b7bfb98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4973-4984 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4997-5008 \u2014 both copies are in the same file, so extract the block 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":4973}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd30e872827bbdeb2aac13949f6d2535298f72f129c4f0fe197598c98ca69a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7879-7890 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7894-7905 \u2014 both copies are in the same file, so extract the block 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":7879}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a8b41123beed525d027f0cc6d75aff8b68020136e52770b565d63640cd3fd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8925-8936 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6139-6150 \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 32 separate duplicated blocks between them, totalling at least 426 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":8925}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee9b51f479cd13e8da6ba8418514a6052327b1ea910332701bdf874b9a8b18a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3688-3699 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3914-3925 \u2014 both copies are in the same file, so extract the block 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":3688}}}],"partialFingerprints":{"codehealthFindingId/v1":"543663b017ef03ce5fb7a78b1d81927ca883f245b5799e914acbbcc55cf9b6fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:669-680 | mistralrs-core/src/pipeline/normal.rs:682-693 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"47eb696cdb3f4368a37c064f21e79203f4bf80eaf316686c8c55b89ee93c5f54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1079-1089 | mistralrs-core/src/pipeline/multimodal.rs:1183-1194 \u2014 both copies are in the same file, so extract the block 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/multimodal.rs"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ebc3b1ef70ce1002568b37ee5c595aa0f4da4db4e0adda19cb08c842ff5f14f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2564-2575 | mistralrs-core/src/pipeline/normal.rs:2336-2347 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":2564}}}],"partialFingerprints":{"codehealthFindingId/v1":"2659942aa1dbaa3f2b20d419682e6fafe4e57bc8dde6a67c07b913c33211138f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/response.rs:461-472 | mistralrs-core/src/response.rs:479-490 \u2014 both copies are in the same file, so extract the block 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/response.rs"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b55b0fa7e16795c2011567507631a7d060dab2461f0a2244fbaa6e5eb4304f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/speculative/dflash.rs:2061-2072 | mistralrs-core/src/speculative/dflash.rs:2100-2111 \u2014 both copies are in the same file, so extract the block 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":2061}}}],"partialFingerprints":{"codehealthFindingId/v1":"d85fcaed114f7d4f12d9eacabea083ffda44e71d176d765237d48776563255a6"}},{"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."},"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:462-473 | mistralrs-core/src/utils/gguf_metadata.rs:483-494 \u2014 both copies are in the same file, so extract the block 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/gguf_metadata.rs"},"region":{"startLine":462}}}],"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:328-339 | 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 12 separate duplicated blocks between them, totalling at least 154 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":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"b15b8387b8e9d2859fa76bf47f93b197c9dd1c2804c9e57c85169bcb9f4acafd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/audio.rs:712-727 | mistralrs-core/src/vision_models/gemma4/audio.rs:738-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 16 separate duplicated blocks between them, totalling at least 279 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":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"88961b69417ad326041090783c526ada95527c1b61fe33c635f6600caaa2827a"}},{"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 16 separate duplicated blocks between them, totalling at least 279 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":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c52618f9e8372fe436b3ba120251b86d1b7367f7f54dc1bf2cd7fb0e023fad"}},{"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 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/gemma3n/inputs_processor.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"032e97f59d308410654761554ede72d060eb1ce09ad9461dea0a44bfb4676ae6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/mod.rs:383-393 | mistralrs-core/src/vision_models/gemma4/mod.rs:695-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/vision_models/gemma4/mod.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8219f973acb50a9d9e35d91c175cd528a54abfe708d0f2b62786932a6c61aef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:136-147 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:124-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 20 separate duplicated blocks between them, totalling at least 316 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/llava/llava_next_inputs_processor.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5d490eb07b9be4c618622eca46ba954cbb8d62d1997299d9038d273794682a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:191-202 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:147-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 20 separate duplicated blocks between them, totalling at least 316 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/llava/llava_next_inputs_processor.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2d5739f4bbd37661dbe1eb20f68f1a87caf28bf1b514e3f19975940e01390a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/vision_models/phi3/mod.rs:579-590 | mistralrs-core/src/vision_models/phi4/image_embedding.rs:201-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 8 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fad1eb223150c603ad3f0e2f8fdccb5c227a07cdae63a07c887a5b0ade9a071"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/vision_models/phi3/mod.rs:1240-1251 | mistralrs-core/src/vision_models/phi4/mod.rs:355-366 \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 47 separate duplicated blocks between them, totalling at least 548 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":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0aeb8406577a6ad29a29985ecd8af9b0df151889f84c2380a5948290d1dbf25"}},{"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/xlora_models/classifier.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49bf2b6ea99f3991c6f82443c35b28de948659e79738a4e4184395dc6320999"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/xlora_models/mixtral.rs:372-383 | 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/xlora_models/mixtral.rs"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4253d520d5fe6736cd4b4d4f20a7f46d3e327cf182d1f6a290dc18e369ffcc3"}},{"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."},"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 (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."},"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 (12 lines \u00D7 2): mistralrs-pyo3/src/util.rs:404-415 | mistralrs-server-core/src/video.rs:149-160 \u2014 before extracting anything, compare \u0060mistralrs-pyo3/src/util.rs\u0060 and \u0060mistralrs-server-core/src/video.rs\u0060 as WHOLE FILES: this scan already matched 3 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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-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/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:680-691 | mistralrs-quant/src/vector_fp8/ops.rs:367-378 \u2014 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs\u0060 and \u0060mistralrs-quant/src/vector_fp8/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 4 separate duplicated blocks between them, totalling at least 49 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b40d514552bf27aa42c3652c183ff9ae453f80ec1442f84d2c5b1dac1f6bc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:606-617 | mistralrs-quant/src/cutile/fp8_w8a8.rs:658-669 \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 21 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":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc21c523357da53f5b34b03e90092847a3de9d61250c8a466377544b7c36ab0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_matmul.rs:1175-1186 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1426-1437 \u2014 both copies are in the same file, so extract the block 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":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6065b45508aa95fa42b4069629a1655aa0dcbf38081446e532b02c658a3cd41"}},{"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."},"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:992-1003 | mistralrs-quant/src/distributed/layers.rs:1480-1491 \u2014 both copies are in the same file, so extract the block 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":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"8175d0fe7a28fe59d513b9b3c42a0ad86f20471de832a11388e5a3d79e484b43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:2018-2028 | mistralrs-quant/src/distributed/layers.rs:2248-2259 \u2014 both copies are in the same file, so extract the block 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":2018}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d54cf9611b853d21a4ccd2c024b36f03e31463a731b54aa483bb4c8c97ff5df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-quant/src/distributed/mod.rs:554-565 | mistralrs-quant/src/distributed/mod.rs:703-714 \u2014 both copies are in the same file, so extract the block 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":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"256bb25b736c80ad4b408ae2929094ddd5379c20a0e3a8faa8fc8655a990d149"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-quant/src/lib.rs:2580-2591 | mistralrs-quant/src/lib.rs:2726-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/lib.rs"},"region":{"startLine":2580}}}],"partialFingerprints":{"codehealthFindingId/v1":"145bb4237ad03b0cbec81e2c1127aa2d31048d4b1669c6505479756a1c35579a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-quant/src/safetensors.rs:35-46 | mistralrs-quant/src/safetensors.rs:66-77 \u2014 both copies are in the same file, so extract the block 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":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e2c727101a5a580dc398080a851d165539e281b2c880f14b4d9c600e6e30dc"}},{"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."},"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 (12 lines \u00D7 2): mistralrs-quant/src/afq/ops.rs:141-152 | mistralrs-quant/src/afq/ops.rs:392-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc573ee9c2764e4c0e5b69d4624961b5cee6139a4e409f9e5d718a1ca49e278"}},{"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:411-422 \u2014 both copies are in the same file, so extract the block 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":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"542f582f33b3afd18980167facecf556f6305125ae1660a4867201bb0ef30443"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 30): 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:1607-1615 | 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:267-275 | 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:298-306 | 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:397-405 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:266-274 | 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/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.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/gemma.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"111c38a3ff20376d607d719244b546818f220821215b299d8bf3a018f82ad5dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 24): mistralrs-core/src/embedding_models/qwen3_embedding.rs:255-264 | mistralrs-core/src/models/gpt_oss.rs:657-667 | mistralrs-core/src/models/granite.rs:1482-1491 | mistralrs-core/src/models/granite.rs:1769-1778 | 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:290-299 | 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:321-330 | mistralrs-core/src/models/qwen3_moe.rs:498-507 | mistralrs-core/src/models/smollm3.rs:306-315 | 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:346-355 | 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:347-356 | mistralrs-core/src/xlora_models/mixtral.rs:474-483 | mistralrs-core/src/xlora_models/phi3.rs:312-321 \u2014 before extracting anything, compare \u0060mistralrs-core/src/embedding_models/qwen3_embedding.rs\u0060 and \u0060mistralrs-core/src/models/gpt_oss.rs\u0060 as WHOLE FILES: this scan already matched 5 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-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 12): mistralrs-core/src/models/glm4.rs:437-447 | mistralrs-core/src/models/granite.rs:1946-1956 | mistralrs-core/src/models/hunyuan_v1_dense.rs:410-420 | mistralrs-core/src/models/hunyuan_v1_moe.rs:904-914 | mistralrs-core/src/models/lfm2.rs:1017-1027 | mistralrs-core/src/models/llama.rs:347-357 | mistralrs-core/src/models/mistral.rs:416-426 | mistralrs-core/src/models/qwen3.rs:401-411 | mistralrs-core/src/models/qwen3_moe.rs:578-588 | mistralrs-core/src/models/smollm3.rs:363-373 | mistralrs-core/src/vision_models/llama4/text.rs:795-805 | mistralrs-core/src/vision_models/mllama/text.rs:750-760 \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 253 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f7b94c81949f2a6d559132784eb8432f1a9eaaccb6b42c1c54552acbe397f19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 11): mistralrs-core/src/models/gemma.rs:313-323 | mistralrs-core/src/models/hunyuan_v1_dense.rs:340-350 | mistralrs-core/src/models/hunyuan_v1_moe.rs:830-840 | mistralrs-core/src/models/mistral.rs:361-371 | mistralrs-core/src/models/phi3.rs:374-384 | mistralrs-core/src/models/phi3_5_moe.rs:445-455 | mistralrs-core/src/models/qwen3.rs:346-356 | mistralrs-core/src/models/qwen3_moe.rs:523-533 | mistralrs-core/src/models/starcoder2.rs:370-380 | mistralrs-core/src/vision_models/phi3/mod.rs:465-475 | mistralrs-core/src/vision_models/phi4/mod.rs:295-305 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/hunyuan_v1_dense.rs\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 353 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b8da030c84abc0c43826dff81194772e654a8fa82f99c18ab8d79bae7f19491"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 11): mistralrs-core/src/models/glm4.rs:510-520 | mistralrs-core/src/models/hunyuan_v1_dense.rs:479-489 | mistralrs-core/src/models/hunyuan_v1_moe.rs:973-983 | mistralrs-core/src/models/mistral.rs:520-530 | mistralrs-core/src/models/mixtral.rs:474-484 | mistralrs-core/src/models/phi3.rs:487-498 | mistralrs-core/src/models/qwen2.rs:506-516 | mistralrs-core/src/models/qwen3.rs:470-480 | mistralrs-core/src/models/qwen3_moe.rs:653-663 | mistralrs-core/src/vision_models/phi3/mod.rs:1268-1279 | mistralrs-core/src/vision_models/phi4/mod.rs:383-394 \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 40 separate duplicated blocks between them, totalling at least 462 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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.rs"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"30f2f42692caf811ff20e7158d0540ed1869598a62a95cb9fd19f3a205221177"}},{"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:342-352 | mistralrs-core/src/xlora_models/mixtral.rs:469-479 | mistralrs-core/src/xlora_models/phi3.rs:307-317 \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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"be7f3bfa8381236d7ab3a016a0a9e03438b4c817ab3d9fff42a2d2f470715ab6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 9): mistralrs-core/src/models/gemma.rs:348-358 | 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:409-418 | mistralrs-core/src/models/phi3_5_moe.rs:480-489 | mistralrs-core/src/models/qwen2.rs:434-443 | mistralrs-core/src/models/starcoder2.rs:405-414 | mistralrs-core/src/vision_models/gemma3/text.rs:434-444 \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 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/gemma.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4515c5ea14da2d806e6ee80a92f6e186c276732638b940bb1e698dc8178659f"}},{"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:455-465 | mistralrs-core/src/models/glm4_moe.rs:744-754 | mistralrs-core/src/models/hunyuan_v1_dense.rs:428-438 | mistralrs-core/src/models/hunyuan_v1_moe.rs:922-932 | mistralrs-core/src/models/qwen3.rs:419-429 | mistralrs-core/src/models/qwen3_moe.rs:596-606 \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 134 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89a3c02e0cb588b25e125c6e2d26e55401e9a1458fe31f713ba8a7c0940bc3d"}},{"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:111-121 | 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 134 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8be88977a9f3d90eef80569b1f809e62d929aaa1ecc183956d3dbac598967c5"}},{"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:332-342 | 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 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/gemma.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"44bcd802465ea48b7ffd17721ecddf6994a1a11e4dd4c46b00cbd1ecb77d182f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 5): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2484-2494 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6234-6244 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6636-6646 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7055-7063 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7514-7522 \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/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":2484}}}],"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:519-529 | mistralrs-core/src/xlora_models/mistral.rs:485-495 | mistralrs-core/src/xlora_models/mixtral.rs:616-626 | 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 491 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f7dafada9e927f8b42360c7d57f1c097b4967fd4c65bb36870e0ac8f8467224"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): mistralrs-quant/src/cutile/fused_moe.rs:82-92 | mistralrs-quant/src/cutile/fused_moe.rs:123-133 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:95-105 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:134-144 | mistralrs-quant/src/cutile/gdn_prefill.rs:265-275 \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 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cc92971e9cb75c2118b51a213af45526314c76c19a1c11d18c796febc5e3ec7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): mistralrs-cli/src/commands/run/interactive.rs:888-898 | mistralrs-cli/src/commands/run/interactive.rs:1568-1578 | mistralrs-cli/src/commands/run/interactive.rs:1875-1885 | mistralrs-cli/src/commands/run/interactive.rs:1998-2008 \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-cli/src/commands/run/interactive.rs"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"43cf62ae36b718bce22a2e73597e447a433700ca6359e25360f7ef3ef8538eae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): mistralrs-core/src/embedding_models/embedding_gemma.rs:427-438 | mistralrs-core/src/vision_models/gemma3/text.rs:487-498 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:424-434 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:545-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 16 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"84486d5fb6f76c29238ec727553daf92e62204e2c9f861960f91b2266261a182"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): mistralrs-core/src/layers.rs:894-904 | mistralrs-core/src/layers.rs:911-921 | mistralrs-core/src/layers.rs:2217-2227 | mistralrs-core/src/layers.rs:2234-2244 \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/layers.rs"},"region":{"startLine":894}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c82990ed45200233e17627b4109a7f045d049b3859c56fed8b5c63eaaa2ce70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4396-4406 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7758-7768 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:986-996 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5918-5928 \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 32 separate duplicated blocks between them, totalling at least 426 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":4396}}}],"partialFingerprints":{"codehealthFindingId/v1":"378a11e8f46867192ba057817db22b84a0ec19ffff14638e872befb09bcf2062"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): mistralrs-core/src/vision_models/phi3/mod.rs:595-605 | mistralrs-core/src/vision_models/phi3/mod.rs:627-637 | mistralrs-core/src/vision_models/phi4/image_embedding.rs:217-227 | mistralrs-core/src/vision_models/phi4/image_embedding.rs:249-259 \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 8 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd753ba5199e784278afd0613816edc90196e176c09f6c0faf83b9a3d45d483"}},{"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 19 separate duplicated blocks between them, totalling at least 362 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":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:735-745 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:810-820 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:180-190 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:255-265 \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 28 separate duplicated blocks between them, totalling at least 500 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/mod.rs"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13c3c336b33e7c24a9b782a29b1a217acd4c56fb941efc1ce1926bb3036ed75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): mistralrs-core/src/xlora_models/gemma2.rs:650-660 | mistralrs-core/src/xlora_models/phi2.rs:569-579 | mistralrs-core/src/xlora_models/quantized_llama.rs:805-815 | mistralrs-core/src/xlora_models/quantized_phi3.rs:477-487 \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 297 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/gemma2.rs"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1e03c2ba2f8f6991b4ffd4fd7f8bb4b7aad6c3132708c08eaa584b3e7887df1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): mistralrs-quant/src/blockwise_fp8/mod.rs:1009-1019 | mistralrs-quant/src/pertensor_fp8/mod.rs:598-608 | mistralrs-quant/src/unquantized/mod.rs:532-542 | mistralrs-quant/src/vector_fp8/mod.rs:178-188 \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 9 separate duplicated blocks between them, totalling at least 217 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/mod.rs"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"c829372a9c99b9ef2eb8fffea48ca37df1635e3d9cee09737db8e43ec523d4fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): mistralrs-quant/src/blockwise_fp8/mod.rs:1071-1081 | mistralrs-quant/src/pertensor_fp8/mod.rs:658-668 | mistralrs-quant/src/unquantized/mod.rs:590-600 | mistralrs-quant/src/vector_fp8/mod.rs:239-249 \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 9 separate duplicated blocks between them, totalling at least 217 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/mod.rs"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5bd1098b4e6d8359818c19da844871f7a69add23ef3c4b07fefaee27fb5c17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): mistralrs-quant/src/cutile/fp8_gemm.rs:159-169 | mistralrs-quant/src/cutile/fp8_w8a16.rs:338-348 | mistralrs-quant/src/cutile/fp8_w8a8.rs:294-304 | mistralrs-quant/src/cutile/mod.rs:334-344 \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 6 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. If that is what happened, the fix is to keep one copy and have the other 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":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d4c296da1c0d8cd04e964d1dcda1447194711f712d0a72a9f4de5d5b7aa7dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): mistralrs-quant/src/cutile/nvfp4_gemv.rs:318-328 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1190-1200 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1234-1244 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1448-1458 \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 8 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/nvfp4_gemv.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eba0d633e97fcf69fb267cae6fdd8f4e77ea81f16a1931d1ddb0ca801ae6fb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-core/src/cuda/gdn.rs:907-917 | mistralrs-core/src/cuda/gdn.rs:1031-1041 | mistralrs-core/src/cuda/gdn.rs:1142-1152 \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":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d68d159846e392c9f3c6e6522d1b05f43b87fd4c5002a929c73ebc4ef6d0534"}},{"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."},"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 (11 lines \u00D7 3): mistralrs-core/src/layers.rs:1136-1146 | mistralrs-core/src/layers.rs:1226-1236 | mistralrs-core/src/layers.rs:1495-1505 \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":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"186550b14ed2c5ad585546fddebf17428ab8f511b0ef6f8ceb4243a5f8036d74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-core/src/models/deepseek2.rs:1054-1064 | mistralrs-core/src/models/deepseek3.rs:1119-1129 | mistralrs-core/src/models/glm4_moe_lite.rs:1073-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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2be9c40819dacc552729a64fd1eb11e8052bd52276f97597f886b73af607ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): mistralrs-core/src/models/llama.rs:500-510 | mistralrs-core/src/models/smollm3.rs:519-529 | 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 50 separate duplicated blocks between them, totalling at least 696 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":500}}}],"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 48 separate duplicated blocks between them, totalling at least 605 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8c8ec465f687b17ee9b41cb3d0964d6eca7f731b8c940f2a982f940260e515"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-core/src/ops.rs:194-204 | mistralrs-core/src/ops.rs:517-527 | mistralrs-core/src/ops.rs:641-651 \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":194}}}],"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:829-839 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3468-3478 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4202-4211 \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/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"06bce2ac900ff20c9b891dd800ea1958dc66dff4efe965a2ace9591e01b79636"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1139-1149 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2832-2842 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3146-3156 \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/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a9ce3697e51799ac2e18bbe4d4dc650e19f9c8a906392747bfcd7db1eb69bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7219-7229 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7678-7688 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5863-5873 \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 32 separate duplicated blocks between them, totalling at least 426 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":7219}}}],"partialFingerprints":{"codehealthFindingId/v1":"f26f6098ee2ea7a952f786d02bc14555df377cf8134caaa24800d867d669b7fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-core/src/vision_models/gemma3/text.rs:452-462 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:407-417 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:528-538 \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 13 separate duplicated blocks between them, totalling at least 114 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":452}}}],"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."},"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/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 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"a68e6882675000509c98a1b274f2eecbbf03b2dc38060871afd93a30d9d46559"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-core/src/vision_models/muse_glimmer/mod.rs:143-153 | mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:126-136 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:149-159 \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 5 separate duplicated blocks between them, totalling at least 65 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":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"29272dca8ae71f036e56399b4abaecf2f6140f9ba57074b93945eaac17bc38d4"}},{"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 (11 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1132-1142 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1697-1707 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1893-1903 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b32a3cf0a5e0915d1b4a9356e6c0de3082db209c0cc7d331b6dfd1b0500c54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-core/src/vision_models/qwen3_5/text.rs:1242-1252 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:399-409 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:520-530 \u2014 \u0060mistralrs-core/src/vision_models/qwen3_5/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 14 separate duplicated blocks between them, totalling at least 175 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":1242}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2b16f7123217c7b2c86ebe64d4e3057fd77a05a9732a42b087ee7d46efb18e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 3): mistralrs-paged-attn/src/metal/kernels/mod.rs:269-279 | mistralrs-paged-attn/src/metal/kernels/mod.rs:627-635 | mistralrs-paged-attn/src/metal/kernels/mod.rs:703-713 \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-paged-attn/src/metal/kernels/mod.rs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"e57f34223c890549793100401f43817bbcf83cf66d9fee4de27f8b73c05ee9a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-quant/src/cutile/fp8_gemm.rs:145-155 | mistralrs-quant/src/cutile/fp8_w8a16.rs:324-334 | mistralrs-quant/src/cutile/fp8_w8a8.rs:280-290 \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 6 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. If that is what happened, the fix is to keep one copy and have the other 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":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac44085ff7bf08c4b46d58bbf8fdf26efa2f5d96762fb104b5aa7ca5a173f6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-quant/src/hqq/mod.rs:264-274 | mistralrs-quant/src/hqq/mod.rs:358-368 | mistralrs-quant/src/hqq/mod.rs:507-517 \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/hqq/mod.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"a183d16a21a44befe5dca9c81f2d48686c7799cd0742a9b1bdfa1d796e717752"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 3): mistralrs-quant/src/afq/ops.rs:2349-2357 | mistralrs-quant/src/afq/ops.rs:2473-2483 | mistralrs-quant/src/afq/ops.rs:2995-3005 \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":2349}}}],"partialFingerprints":{"codehealthFindingId/v1":"938a21d1b629bef6aa37a314e9b311601c13471db73636e012d6fee3883c884e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-quant/src/afq/ops.rs:2387-2397 | mistralrs-quant/src/afq/ops.rs:2413-2423 | mistralrs-quant/src/afq/ops.rs:2439-2449 \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":2387}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d7eee1f65df94fde6f6f594e492d6c6764fe763272dfa0b1a4549bd154be17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201311 lines \u00D7 4): mistralrs-quant/src/afq/ops.rs:2400-2410 | mistralrs-quant/src/afq/ops.rs:2642-2652 | mistralrs-quant/src/afq/ops.rs:3199-3201 | mistralrs-quant/src/afq/ops.rs:3203-3213 \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/afq/ops.rs"},"region":{"startLine":2400}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f1e98a0b866305fe3760847b08d17a6683446e4f07d42d9f2d97be35676c88"}},{"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."},"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."},"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 (9\u201311 lines \u00D7 2): mistralrs/src/model_builder_trait.rs:452-462 | mistralrs/src/model_builder_trait.rs:1424-1432 \u2014 both copies are in the same file, so extract the block 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":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"66b8f8e9a03527d700a6cbc3e3daacceb8fbb060bdfc866e2a370be03b359b63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-cli/src/args/mod.rs:849-859 | mistralrs-cli/src/args/mod.rs:922-932 \u2014 both copies are in the same file, so extract the block 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/args/mod.rs"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17aa1183db0ad177d51d0c5f4cf440ce112a044ec0021c7fa541c1a5e40a765"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-cli/src/commands/run/mod.rs:123-133 | mistralrs-cli/src/commands/serve.rs:136-146 \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 5 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/run/mod.rs"},"region":{"startLine":123}}}],"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 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/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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/distributed.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe35e55ffe8ab951b1084e124d9273297db1b699134b07f76c080080b0c7088"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): mistralrs-core/src/engine/mod.rs:1983-1993 | mistralrs-core/src/engine/mod.rs:2094-2102 \u2014 both copies are in the same file, so extract the block 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/mod.rs"},"region":{"startLine":1983}}}],"partialFingerprints":{"codehealthFindingId/v1":"af39bf8ee65885751fbe845ccd1c271af3f1ab9385a75ffe39fe6e6402ffdc4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/gdn/backend.rs:870-880 | mistralrs-core/src/gdn/backend.rs:992-1002 \u2014 both copies are in the same file, so extract the block 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":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22b9f039537c2be350761d6ab3d585a6e4a2ca1dbd2200bd413824fed53e919"}},{"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:251-260 \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 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-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:233-243 | mistralrs-core/src/gguf/normal_config.rs:294-304 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/gguf/normal_config.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d8d4225790974047c8424f6d935b57f93c8729a639c27596f85e637486798e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): mistralrs-core/src/kv_cache/mod.rs:1257-1265 | 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/kv_cache/mod.rs"},"region":{"startLine":1257}}}],"partialFingerprints":{"codehealthFindingId/v1":"7247aecfae4be3ba0dd9ba2ebb5b70401579ceeb85d7aeaff7282d5441758784"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/kv_cache/mod.rs:1450-1460 | mistralrs-core/src/kv_cache/mod.rs:1550-1560 \u2014 both copies are in the same file, so extract the block 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/mod.rs"},"region":{"startLine":1450}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb9cb1539499c5e22875c436598d9fbcc781dc0567522dafcf14041860fbe233"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201311 lines \u00D7 4): mistralrs-core/src/layers.rs:905-907 | mistralrs-core/src/layers.rs:924-933 | mistralrs-core/src/layers.rs:2228-2230 | mistralrs-core/src/layers.rs:2247-2257 \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/layers.rs"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f13a9793ddc0d635f1de591db4cc1ef23ee1da99ac50aae997973cbc33d51de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/model_loader.rs:480-490 | mistralrs-core/src/toml_selector.rs:1189-1199 \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 10 separate duplicated blocks between them, totalling at least 156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ae9e376b5a71fc948a91872872ea92543ef5b74f868b888e4ad0879b318df7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/models/deepseek2.rs:939-949 | mistralrs-core/src/models/deepseek3.rs:1002-1012 \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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"73035ce18b88f1ca26d979acd68a7e20f20cfc6374b2c0ef7a8a87acd98d6bbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): mistralrs-core/src/models/gemma2.rs:561-571 | mistralrs-core/src/models/qwen2.rs:590-599 \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 35 separate duplicated blocks between them, totalling at least 413 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/gemma2.rs"},"region":{"startLine":561}}}],"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:1010-1019 \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."},"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:736-746 | mistralrs-core/src/models/granite.rs:1972-1982 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/glm4_moe.rs"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5d959efbf8a4f103f38ad6fa4007804c5ac700390106f898d66f43e8d8e52ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/models/granite.rs:1412-1422 | mistralrs-core/src/models/granite.rs:1433-1443 \u2014 both copies are in the same file, so extract the block 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":1412}}}],"partialFingerprints":{"codehealthFindingId/v1":"10ec8fc8b4cfdef589f2c4e7bc89a54d8a59486dec7cd15bda58a75ba25b62ad"}},{"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 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."},"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:422-431 | mistralrs-core/src/vision_models/gemma3/text.rs:448-458 \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 18 separate duplicated blocks between them, totalling at least 170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":422}}}],"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:194-203 \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 27 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."},"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:611-616 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:438-448 \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 27 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"52afedffd23b27a0986b8352d09f9ecab39b774ee6088a8f0c26abf225ff8b0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/ops.rs:926-936 | mistralrs-core/src/ops.rs:1008-1018 \u2014 both copies are in the same file, so extract the block 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":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"98297c2513da2eacc43cdded8f3e3b40686fec0d5ac4266a42e831961caa46b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/ops.rs:1058-1068 | mistralrs-core/src/ops.rs:1293-1303 \u2014 both copies are in the same file, so extract the block 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":1058}}}],"partialFingerprints":{"codehealthFindingId/v1":"34f15d73e19f2d964c7bb1863df78b965a4b1dd92c6c9e8f26a12b42527b1fcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/ops.rs:5316-5326 | mistralrs-core/src/ops.rs:5746-5756 \u2014 both copies are in the same file, so extract the block 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":5316}}}],"partialFingerprints":{"codehealthFindingId/v1":"b70aeaf2b9f7bc9022a225a1489e24eaa685805e3345c76079be6c597c4afe74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/pipeline/diffusion.rs:171-181 | mistralrs-core/src/pipeline/speech.rs:273-283 \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/pipeline/diffusion.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb298c0a8345785da0b9e58233d2d50a3325641afbf78fd68889b52190efc993"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1129-1139 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1158-1168 \u2014 both copies are in the same file, so extract the block 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":1129}}}],"partialFingerprints":{"codehealthFindingId/v1":"da7bc5cfafa5da89138f78ae4fa7a1c7e473e88a88d1e2dcaddf5cba8155a298"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2822-2832 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2851-2861 \u2014 both copies are in the same file, so extract the block 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":2822}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b52f45b2da4281e658a1303616cd125cc265dcc92f6c91ea4adc11f6a3df68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3136-3146 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3165-3175 \u2014 both copies are in the same file, so extract the block 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":3136}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b89bab3f64eb4a6c6adaac893c13b7cec21e003b9c7cc379b1965b3f99e0505"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:855-865 | mistralrs-core/src/pipeline/normal.rs:839-848 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"34c4cefda119ea04f4096ca6760c536927e1942d9d67c2e5d0a73925adf5b3d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1002-1012 | mistralrs-core/src/pipeline/normal.rs:984-994 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d563f90666c093601d658c5909302c72d43b2de57d4899d53e697a99c8e367"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2534-2544 | mistralrs-core/src/pipeline/normal.rs:2256-2266 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":2534}}}],"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/prompt_chunks.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9f4a99d0706da5752295f8aa1336bbe126844888686a9bca8b164a5b4483f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/prefix_cacher.rs:759-769 | mistralrs-core/src/prefix_cacher.rs:771-781 \u2014 both copies are in the same file, so extract the block 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/prefix_cacher.rs"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaafeeda6ff456ea1160ba27ffbf33886113ee1333a95432f1ff1694bf9aa385"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): mistralrs-core/src/speculative/dflash.rs:3335-3345 | mistralrs-core/src/speculative/dflash.rs:3557-3566 \u2014 both copies are in the same file, so extract the block 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":3335}}}],"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."},"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:980-990 \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/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/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."},"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 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":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 263 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/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/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."},"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:1211-1221 | mistralrs-core/src/vision_models/phi4/mod.rs:332-342 \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 47 separate duplicated blocks between them, totalling at least 548 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":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cdc003a2931c6091e5ae3cca30c1fc75b60a072ba2a8af1d9ea1c418352fcad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:505-515 | mistralrs-core/src/vision_models/qwen2vl/text.rs:507-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 43 separate duplicated blocks between them, totalling at least 650 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/text.rs"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffaba29101faf8d057d826cb1892771c037a8cbd166c1ca9a6d0d47c96d09abb"}},{"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 18 separate duplicated blocks between them, totalling at least 176 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":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:505-515 | mistralrs-core/src/vision_models/qwen3_5/text.rs:522-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"21924c3de980fa40a24624641280c2973e4d1c60765fd63c4bdf0e77b3568b75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_vl/text.rs:490-500 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:612-622 \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 653 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":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c88f7646c6d70f38d25ed20d7b048e37a13d4d7618c71072891b2762642467"}},{"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 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."},"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."},"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 (10\u201311 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:72-82 | mistralrs-quant/src/gguf/cuda.rs:113-122 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"8863d2bb3e6baec10651af83e7acef638bd63a6faad187a80c5c0b6061d0b894"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): mistralrs-paged-attn/src/metal/backend/paged_attention.rs:253-262 | mistralrs-paged-attn/src/metal/backend/paged_attention.rs:311-321 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/metal/backend/paged_attention.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"242e2ef17a8587198b0cc426a8aaa15f3fd3bf73b71fac9e8001ded64747f264"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-pyo3/src/util.rs:560-570 | mistralrs-server-core/src/video.rs:385-395 \u2014 before extracting anything, compare \u0060mistralrs-pyo3/src/util.rs\u0060 and \u0060mistralrs-server-core/src/video.rs\u0060 as WHOLE FILES: this scan already matched 3 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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-pyo3/src/util.rs"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb4b17eca1525972772885240b7d7948d13e42c63527ad2c855131a6ca7a6740"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): mistralrs-quant/src/afq/mod.rs:251-261 | mistralrs-quant/src/gguf/mod.rs:503-512 \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/afq/mod.rs"},"region":{"startLine":251}}}],"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."},"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:754-764 | mistralrs-quant/src/vector_fp8/ops.rs:428-438 \u2014 \u0060mistralrs-quant/src/blockwise_fp8/ops.rs\u0060 and \u0060mistralrs-quant/src/vector_fp8/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 4 separate duplicated blocks between them, totalling at least 49 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"b35777dde163246999d4f7facda10e561ed6d21b970f901506c242cb873aadf5"}},{"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:405-415 \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 6 separate duplicated blocks between them, totalling at least 49 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b98b0f0f66ebbe7717d0bab950e6684a839754972774e0bc0155729dae870a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:660-670 | mistralrs-quant/src/cutile/fp8_w8a16.rs:716-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/fp8_w8a16.rs"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"f67f3df13b8080431234f1a847341a13546684be53ba2c4f84fb1f04c09246c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201311 lines \u00D7 4): mistralrs-quant/src/cutile/fused_moe.rs:99-100 | mistralrs-quant/src/cutile/fused_moe.rs:106-116 | 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 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1ba8b4dc00dd6d665f80cc39252db4a28e5074c84fd0f3d7a90ef74fa07efac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-quant/src/cutile/gdn_prefill.rs:353-363 | mistralrs-quant/src/cutile/gdn_prefill.rs:409-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/gdn_prefill.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa740c0674afb8f18598215b3dd4fa631ffc3ecd44afed406774e005308f714"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_matmul.rs:363-373 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:657-667 \u2014 both copies are in the same file, so extract the block 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":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed7da1a8bd874f56750336ed50d25a4f6993d26488767609c3ad0e064e463b57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-quant/src/hqq/mod.rs:830-840 | mistralrs-quant/src/hqq/mod.rs:876-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/hqq/mod.rs"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"e204f5bf378a4cbc878008748937b82188367aaefd43247540a1f2df8f6f805c"}},{"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."},"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/pertensor_fp8/mod.rs:250-260 | mistralrs-quant/src/pertensor_fp8/mod.rs:302-312 \u2014 both copies are in the same file, so extract the block 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":250}}}],"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."},"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 (11 lines \u00D7 2): mistralrs-quant/src/safetensors.rs:250-260 | mistralrs-quant/src/safetensors.rs:293-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-quant/src/safetensors.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"782e64eaea8818fa3b8befa778f38ebf3f89d24ba9f2af9f9e3dd8a94e7c996e"}},{"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:397-407 \u2014 both copies are in the same file, so extract the block 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":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdeb401fcfa08d291cb09efd0e48aa5194d65cf7a2f06c5ab3aba8368ef87a03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_gemv.rs:64-74 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:168-178 \u2014 both copies are in the same file, so extract the block 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_gemv.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5bffd56efae217786e0fc3f37baff67415f8d31051de20d70ef07e1838303f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_gemv.rs:447-457 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:466-476 \u2014 both copies are in the same file, so extract the block 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_gemv.rs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e40ec8d2a5e33c050ce425bcba7dae0df94e2d008af522c33dafe27accfef5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 32): 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/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:1480-1489 | mistralrs-core/src/models/granite.rs:1767-1776 | 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:288-297 | 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:319-328 | mistralrs-core/src/models/qwen3_moe.rs:496-505 | mistralrs-core/src/models/smollm3.rs:304-313 | mistralrs-core/src/vision_models/gemma4/text.rs:1007-1016 | 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:344-353 | mistralrs-core/src/vision_models/mllama/text.rs:284-293 | mistralrs-core/src/vision_models/mllama/text.rs:644-653 | 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:345-354 | mistralrs-core/src/xlora_models/mixtral.rs:472-481 | mistralrs-core/src/xlora_models/phi3.rs:310-319 \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":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"daea8444089474877e821677f1d6e0083e7cb6d6cd1738fca49957051aff91e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 30): 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:1570-1579 | 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/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:227-236 | 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:248-257 | 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:358-367 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:230-239 | 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/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.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/gemma.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eaa43e31d5b774294e925cd5cb7480c4433adafb78fb3000995cd5001bcc312"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 21): 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:1569-1578 | 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:226-235 | 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:247-256 | 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/gemma.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 253 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"a454108fd8c0e7203b081d6a69cdb59d80b31dedecc0a3335283421efb258618"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 16): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:422-433 | mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:614-625 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1093-1104 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1459-1470 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1752-1763 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2448-2459 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3781-3792 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4121-4132 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4506-4517 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:645-656 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:858-869 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1069-1080 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2140-2151 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3398-3409 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3602-3611 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5079-5090 \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 11 separate duplicated blocks between them, totalling at least 170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"af11a9582bf993f268f7078be76b1ebd449f3511911216d983a16e6b199bab94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 13): mistralrs-core/src/models/glm4.rs:513-522 | mistralrs-core/src/models/hunyuan_v1_dense.rs:482-491 | mistralrs-core/src/models/hunyuan_v1_moe.rs:976-985 | mistralrs-core/src/models/mistral.rs:523-532 | mistralrs-core/src/models/mixtral.rs:477-486 | mistralrs-core/src/models/qwen2.rs:509-518 | mistralrs-core/src/models/qwen3.rs:473-482 | mistralrs-core/src/models/qwen3_moe.rs:656-665 | mistralrs-core/src/vision_models/gemma3/text.rs:528-538 | mistralrs-core/src/vision_models/phi3/mod.rs:1272-1281 | mistralrs-core/src/vision_models/phi4/mod.rs:387-396 | 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/glm4.rs\u0060 and \u0060mistralrs-core/src/models/hunyuan_v1_dense.rs\u0060 as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 462 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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.rs"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"9228bc586da7312d5b23a20e67bd5a608036b372abb6c87c82ab4d19ca997da5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 12): 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:455-464 | mistralrs-core/src/models/glm4_moe.rs:767-776 | mistralrs-core/src/models/glm4_moe_lite.rs:878-887 | mistralrs-core/src/models/mistral.rs:491-500 | mistralrs-core/src/models/mixtral.rs:445-454 | mistralrs-core/src/models/phi2.rs:472-481 | mistralrs-core/src/models/phi3.rs:461-470 | mistralrs-core/src/models/phi3_5_moe.rs:529-538 | mistralrs-core/src/models/starcoder2.rs:443-452 \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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce1a9718c9da2a741d849c92c918a983acee958fdcfd2aa33512489d79cab69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 11): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1326-1335 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1618-1627 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1903-1912 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2307-2316 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2974-2983 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3281-3290 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4714-4723 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:740-749 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1164-1173 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3694-3703 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5174-5183 \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 32 separate duplicated blocks between them, totalling at least 426 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1326}}}],"partialFingerprints":{"codehealthFindingId/v1":"76e6bb1e43a1e218d9689515cd65f29898b2c62815e566d09e09565e24382302"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 9): mistralrs-core/src/embedding_models/embedding_gemma.rs:431-440 | mistralrs-core/src/vision_models/gemma3/text.rs:491-500 | mistralrs-core/src/vision_models/gemma4/text.rs:1672-1681 | 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:437-446 | mistralrs-core/src/vision_models/qwen2vl/text.rs:439-448 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:427-436 | 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/vision_models/gemma3/text.rs\u0060 as WHOLE FILES: this scan already matched 16 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5259fa36d75a3a0d97bfaf27afb21bb89f26d528dc8fe0404fac4d16080b93b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 9): 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:561-570 | mistralrs-quant/src/cutile/fp8_w8a8.rs:592-601 | mistralrs-quant/src/cutile/fp8_w8a8.rs:602-611 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:924-933 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:324-333 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1196-1205 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1454-1463 \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 6 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. If that is what happened, the fix is to keep one copy and have the other 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 8): mistralrs-core/src/embedding_models/embedding_gemma.rs:430-439 | mistralrs-core/src/models/qwen3_next.rs:819-828 | mistralrs-core/src/vision_models/gemma3/text.rs:490-499 | mistralrs-core/src/vision_models/gemma4/text.rs:1671-1680 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:449-458 | 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:547-556 \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 16 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d31aa4973688f2f1b9e30e9803b683202f69421c077584a9f8e65049e4924ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 7): 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/phi2.rs:550-559 \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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b9eaf43fea513597c8f88f62261f69a98eb3d06dabc1b51bca929c576aec30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): mistralrs-core/src/pipeline/multimodal.rs:1091-1100 | mistralrs-core/src/pipeline/multimodal.rs:1148-1157 | mistralrs-core/src/pipeline/multimodal.rs:1200-1209 | mistralrs-core/src/pipeline/normal.rs:1069-1078 | mistralrs-core/src/pipeline/normal.rs:1122-1131 | mistralrs-core/src/pipeline/normal.rs:1179-1188 | mistralrs-core/src/pipeline/normal.rs:1255-1264 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"26f4d22b731364335d142f85f8133e2e5a76e748a2b23f1c373b1b30d01b9c64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): mistralrs-core/src/xlora_models/gemma.rs:603-613 | mistralrs-core/src/xlora_models/mistral.rs:603-613 | mistralrs-core/src/xlora_models/mixtral.rs:733-743 | mistralrs-core/src/xlora_models/phi2.rs:569-578 | mistralrs-core/src/xlora_models/quantized_llama.rs:805-814 | mistralrs-core/src/xlora_models/quantized_phi3.rs:477-486 | mistralrs-core/src/xlora_models/starcoder2.rs:588-598 \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 36 separate duplicated blocks between them, totalling at least 524 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed1f57c9cdd3f116dd31434597a2bd58fdbd6129dbbc4f42df29eb5a0e4bfabc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:699-708 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2632-2641 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3960-3969 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2020-2029 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3491-3500 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4135-4144 \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 11 separate duplicated blocks between them, totalling at least 170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc642eeeb7b2f861191ceff0b12a6b0e8b2b29b626d4c8fefe97917a85950bf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): mistralrs-core/src/embedding_models/embedding_gemma.rs:535-544 | mistralrs-core/src/models/gemma2.rs:607-616 | mistralrs-core/src/vision_models/gemma3/text.rs:856-865 | mistralrs-core/src/vision_models/gemma3n/text.rs:1952-1961 | mistralrs-core/src/vision_models/gemma4/text.rs:2594-2603 \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 10 separate duplicated blocks between them, totalling at least 156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":535}}}],"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:446-455 | mistralrs-core/src/xlora_models/mistral.rs:592-600 | mistralrs-core/src/xlora_models/mixtral.rs:722-730 | mistralrs-core/src/xlora_models/phi3.rs:543-552 | mistralrs-core/src/xlora_models/starcoder2.rs:576-585 \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 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05879af14359ad2fcfbf3f6b976b56aed80328552dea05068c275029cee8006"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 5): mistralrs-core/src/models/deepseek2.rs:815-824 | mistralrs-core/src/models/deepseek3.rs:878-887 | mistralrs-core/src/models/glm4_moe.rs:715-724 | mistralrs-core/src/models/glm4_moe_lite.rs:825-834 | mistralrs-core/src/models/gpt_oss.rs:721-729 \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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"95cef71524f4ef1e87e07f2457841ede665ce1eed07924ad18f359a870562554"}},{"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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"681c9d499e14b5fcedbee865f645468addc15afbebfc59eb1ee1e5f63466bd70"}},{"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 29 separate duplicated blocks between them, totalling at least 339 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/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:5294-5303 | mistralrs-core/src/ops.rs:5506-5515 | mistralrs-core/src/ops.rs:5717-5726 | mistralrs-core/src/ops.rs:6035-6044 \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":5294}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aae4cba724c05451a52893a133af0275de5a66808625d8981bc0563a6278299"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1147-1156 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1176-1185 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1712-1721 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1741-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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":1147}}}],"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:1102-1111 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:531-540 \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 19 separate duplicated blocks between them, totalling at least 362 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":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b64d2212125425970dec693cdf577898f961b6b6042aaa10128344f01c3e1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): mistralrs-quant/src/blockwise_fp8/mod.rs:953-962 | mistralrs-quant/src/pertensor_fp8/mod.rs:543-552 | mistralrs-quant/src/unquantized/mod.rs:442-451 | mistralrs-quant/src/vector_fp8/mod.rs:123-132 \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 9 separate duplicated blocks between them, totalling at least 217 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/mod.rs"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c9e13b9428c8abcb1ed1f1108801e1b22c6e6a1ba4977e6591a942ff4d3128"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): mistralrs-quant/src/blockwise_fp8/mod.rs:1027-1036 | mistralrs-quant/src/pertensor_fp8/mod.rs:615-624 | mistralrs-quant/src/unquantized/mod.rs:550-559 | mistralrs-quant/src/vector_fp8/mod.rs:195-204 \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 9 separate duplicated blocks between them, totalling at least 217 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/mod.rs"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b635aa8b8e056e5aba7d588f738880ae19452ab79f9ea1be7e059a7bdac3b14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): mistralrs-quant/src/cutile/fused_moe.rs:270-279 | mistralrs-quant/src/cutile/fused_moe.rs:281-290 | mistralrs-quant/src/cutile/fused_moe.rs:292-301 | mistralrs-quant/src/cutile/fused_moe.rs:303-312 \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":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be0c493921e606cfbb75e4478de094539c71a9ffa408f07ad49cf54ad2eb73d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): mistralrs-quant/src/cutile/fused_moe.rs:315-324 | mistralrs-quant/src/cutile/fused_moe.rs:326-335 | mistralrs-quant/src/cutile/fused_moe.rs:337-346 | mistralrs-quant/src/cutile/fused_moe.rs:348-357 \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":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"f56a1becb0f3ce967205f6f3dd3c13c6e1e7445950ce45a21d9bf11a38575ac4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): mistralrs-quant/src/distributed/layers.rs:871-880 | mistralrs-quant/src/distributed/layers.rs:1333-1342 | mistralrs-quant/src/distributed/layers.rs:1988-1997 | mistralrs-quant/src/distributed/layers.rs:2204-2213 \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/distributed/layers.rs"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ee9038cea4f5c44cbed7afe52b9ce884dcb5c2593ce46732092e7b33947756"}},{"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."},"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:509-518 | mistralrs-quant/src/mxfp4/ops.rs:596-605 \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/mxfp4/ops.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"38594e2f690ad22459d60775445d09203f987ad823f1ae7cd07ae8cb88aa88c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-core/src/cuda/gdn.rs:1647-1656 | mistralrs-core/src/cuda/gdn.rs:5513-5522 | mistralrs-core/src/cuda/gdn.rs:5751-5760 \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":1647}}}],"partialFingerprints":{"codehealthFindingId/v1":"31401bde47fdc41a43058b97ba022b13255fd946350735ac0818192b60ccd984"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-core/src/layers.rs:1174-1183 | mistralrs-core/src/layers.rs:1264-1273 | mistralrs-core/src/layers.rs:1533-1542 \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":1174}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aca57bc8823fb04af271e6fe95401d86b68ff63a8d40a90552121cac7111937"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-core/src/layers.rs:3041-3050 | mistralrs-core/src/layers.rs:3174-3183 | mistralrs-core/src/vision_models/gemma4/text.rs:132-144 \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/layers.rs"},"region":{"startLine":3041}}}],"partialFingerprints":{"codehealthFindingId/v1":"72735d5da3aa8967732d6594e35fcbc17391648b0d3b573c3665e3903cf91403"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): mistralrs-core/src/models/granite.rs:1412-1420 | mistralrs-core/src/models/granite.rs:1433-1441 | mistralrs-core/src/models/granite.rs:1719-1728 \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":1412}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b9cd502c5c9a6921d3ff218c64629d435d9c9d94c6b12778b41b81a96105fff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-core/src/ops.rs:5462-5471 | mistralrs-core/src/ops.rs:5907-5916 | mistralrs-core/src/ops.rs:6225-6234 \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":5462}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b2045831689e6b0487360b446e8230f1df626e2f1388269304bc10baded1f88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-core/src/pipeline/embedding.rs:268-277 | mistralrs-core/src/pipeline/multimodal.rs:686-696 | mistralrs-core/src/pipeline/normal.rs:699-709 \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 11 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"61b0c1694aaedf78dc17ed121c67a87fd722b3aa2077264c47169ac536992317"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-core/src/pipeline/embedding.rs:542-551 | mistralrs-core/src/pipeline/multimodal.rs:1040-1049 | mistralrs-core/src/pipeline/normal.rs:1045-1054 \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 11 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"211dbb595e0c536645b58547f3aa1ade9771763e12015163327a3d620e8a1b5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-core/src/pipeline/ggml.rs:566-575 | mistralrs-core/src/pipeline/gguf.rs:1538-1547 | mistralrs-core/src/pipeline/gguf.rs:1549-1558 \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 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":566}}}],"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 9 separate duplicated blocks between them, totalling at least 138 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/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."},"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/llama4/vision.rs:202-211 | mistralrs-core/src/vision_models/mllama/text.rs:567-576 | 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."},"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 (10 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:914-923 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1479-1488 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1601-1610 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e06ccbdf5a273e10825a91020a184af892e152e0698558fdbec51d8da82df38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1076-1085 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1641-1650 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1839-1848 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"7350f536eaafd219166c90ab1f0dbdd899646212cf93c2ac987ce8df9a12619a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:802-810 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:570-579 | 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 19 separate duplicated blocks between them, totalling at least 218 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_moe/text.rs"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2982fd36d822bf599c6309bd2189674c716893c74f523af528c889101a6a5e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-core/src/metal/gdn.rs:416-425 | mistralrs-core/src/metal/gdn.rs:454-463 | mistralrs-core/src/metal/ssm.rs:187-196 \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 7 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. If that is what happened, the fix is to keep one copy and have the other 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":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"40880eb2248c35fda6827e03aac897205c3f2aac742307494389bce71eec7f99"}},{"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."},"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."},"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-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."},"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:2092-2101 \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 5 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. If that is what happened, the fix is to keep one copy and have the other 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":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec21e4038d61a4fbcb4c5116d80f38c169b80eb3194ad448f3f20794a0344cfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-quant/src/cutile/routed_lora.rs:166-175 | mistralrs-quant/src/cutile/routed_lora.rs:194-203 | mistralrs-quant/src/cutile/routed_lora.rs:217-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/routed_lora.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d35bd225fb996ce83268095378b9c5f35bed2e0c6d1316d4bfd2f6559abe39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-quant/src/gemv/mod.rs:381-390 | mistralrs-quant/src/gemv/mod.rs:450-459 | mistralrs-quant/src/gemv/mod.rs:518-527 \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":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6fbd2e8d03bad3531744a45ae94138a3a7cbfc90d45378020d89198ec73ba5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-quant/src/gguf/fast_mmvq.rs:339-348 | mistralrs-quant/src/gguf/fast_mmvq.rs:540-549 | mistralrs-quant/src/gguf/fast_mmvq.rs:755-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"6676437b945501ccd3231972701d115aece498eabec2cf09893067369fa09978"}},{"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."},"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 (9\u201310 lines \u00D7 2): mistralrs/src/anymoe.rs:141-150 | mistralrs/src/model_builder_trait.rs:964-972 \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/src/anymoe.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9583dcb7516a8f4b5ebecdaf5a6223d5113a45585c545447367dad5c956dd53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): mistralrs/src/model.rs:401-409 | mistralrs/src/model.rs:485-494 \u2014 both copies are in the same file, so extract the block 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.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"32186583fcaf1dd46977bea271001f8f5c9fb769d41fb08f9041890c02fa0251"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs/src/model_builder_trait.rs:1252-1261 | mistralrs/src/model_builder_trait.rs:1388-1397 \u2014 both copies are in the same file, so extract the block 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":1252}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8aa8cf1accd4656c0333cb46c8bc1c6dc33507e32c27b1a50861e8a386e1021"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-cli/src/commands/quantize.rs:558-567 | mistralrs-cli/src/commands/quantize.rs:605-614 \u2014 both copies are in the same file, so extract the block 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":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6422fd3007cd593c4a053c3f656ee7ab33f56c87033792e44680d2670a3156"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-code-exec/src/lib.rs:459-468 | mistralrs-code-exec/src/shell.rs:255-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 6 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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-code-exec/src/lib.rs"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"45bda92c78db1d7368ee56a5d22d64e67fd857f2cf32e2fc53142314fe695bda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:4006-4015 | mistralrs-core/src/cuda/gdn.rs:4388-4397 \u2014 both copies are in the same file, so extract the block 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":4006}}}],"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 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/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/engine/agentic_loop.rs:534-543 | mistralrs-core/src/engine/agentic_loop.rs:734-743 \u2014 both copies are in the same file, so extract the block 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/agentic_loop.rs"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a18168c9f9da0c6a80f4192c31baa413b8cb57c2cbcde2a9e12813b16225e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/gguf/normal_config.rs:1329-1338 | mistralrs-core/src/gguf/normal_config.rs:1375-1384 \u2014 both copies are in the same file, so extract the block 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":1329}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1fb4f6dc900684b9624133a0327443c6bd6aaeb88e713c4041d4c9cb6a69191"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/kv_cache/hybrid_cache.rs:2024-2033 | mistralrs-core/src/kv_cache/hybrid_cache.rs:3979-3988 \u2014 both copies are in the same file, so extract the block 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":2024}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb115121ad0acb54514974420d59a413a4609d057530835ada1e41f2b0ec12a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/models/gpt_oss.rs:838-847 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5674-5683 \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/models/gpt_oss.rs"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"6355db2a6efabac8ea457fc8530365f2a3d9f7e8119f645a1bccfed1feb80586"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/models/llama.rs:251-260 | mistralrs-core/src/models/smollm3.rs:267-276 \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 50 separate duplicated blocks between them, totalling at least 696 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0d8ad3856c08a32c9c3eeb0c8ac8de5d3b109ca628a2cc96ce8db88d0adda86"}},{"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."},"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/moe/experts/backends.rs:790-799 | mistralrs-core/src/moe/experts/backends.rs:837-846 \u2014 both copies are in the same file, so extract the block 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/moe/experts/backends.rs"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"18eb59bd9f3cf2028f2f3f69f57d8b6514cf7c89028dcb69334894e59d430fa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/moe/experts/mod.rs:109-118 | mistralrs-core/src/moe/experts/mod.rs:200-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-core/src/moe/experts/mod.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"22450b76ce8d4ff0881ba71942f8c978cbf2d975d59d347f46a8fc4b81290d46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/ops.rs:3889-3898 | mistralrs-core/src/ops.rs:4016-4025 \u2014 both copies are in the same file, so extract the block 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":3889}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6802cacf962178df084ced43affeca2e9dcb6c3cff0663eb0273cc35e23d39d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/ops.rs:4510-4519 | mistralrs-core/src/ops.rs:5069-5078 \u2014 both copies are in the same file, so extract the block 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":4510}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d3f3959acf3ed909dfa1f2dffa7fd04115bef0e5eefa638053c91c5cef1af0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/ops.rs:4528-4537 | mistralrs-core/src/ops.rs:4675-4684 \u2014 both copies are in the same file, so extract the block 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":4528}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed4a9ebc7b438f2fcb64122d20d5eb2060f29ad6d6940e06c0c55396e4c50b66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/ops.rs:5612-5621 | mistralrs-core/src/ops.rs:5951-5960 \u2014 both copies are in the same file, so extract the block 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":5612}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca978d759a98e3a29acc9e82470ff9579d2f2e662d7f33749a63ed90fe14b76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/paged_attention/cache_engine.rs:271-280 | mistralrs-core/src/paged_attention/cache_engine.rs:325-334 \u2014 both copies are in the same file, so extract the block 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/cache_engine.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"979660e5377b5affbd3e5683efe2f3d4f6b35cfcac6c2e6517322a8758fb32c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/paged_attention/layers/paged_attention.rs:571-580 | mistralrs-core/src/paged_attention/layers/paged_attention.rs:610-619 \u2014 both copies are in the same file, so extract the block 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":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"cffdac667dcec11fe39bad48dea6025381dbfb9f4f4fe5b67064f312d44810b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): mistralrs-core/src/pipeline/chat_template.rs:610-619 | mistralrs-core/src/pipeline/chat_template.rs:643-651 \u2014 both copies are in the same file, so extract the block 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/chat_template.rs"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"28cea74fcb6a35226566e6ae839590ae36d78f88796f4e84880fbd06d47c25a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:953-961 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1809-1818 \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 32 separate duplicated blocks between them, totalling at least 426 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac1d27680856f456851d3facc2d77462be0be33c814ac007971500483580f71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7208-7217 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7667-7676 \u2014 both copies are in the same file, so extract the block 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":7208}}}],"partialFingerprints":{"codehealthFindingId/v1":"20e079dfd9fc410c8cda6577c49fb489ce9068dbd82309f4fb8a27e56bd48493"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/speculative/dflash.rs:2652-2661 | mistralrs-core/src/speculative/dflash.rs:3531-3540 \u2014 both copies are in the same file, so extract the block 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":2652}}}],"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."},"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 (7\u201310 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."},"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 (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 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/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:1830-1839 | mistralrs-core/src/vision_models/gemma4/text.rs:2336-2345 \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 8 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/gemma3n/text.rs"},"region":{"startLine":1830}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf37ef316ac7422b42d8b575be1ac751ebb5b66273d7e61aef2ddb8e6bd5f11e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/text.rs:1841-1850 | mistralrs-core/src/vision_models/gemma4/text.rs:2347-2356 \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 8 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/gemma3n/text.rs"},"region":{"startLine":1841}}}],"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 (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 10 separate duplicated blocks between them, totalling at least 157 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":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:543-552 \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":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"f886f020d6f47627f9c6e3aee62a0259b8f9ab5bbcec96b7744d63237da0d2c0"}},{"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."},"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 (9\u201310 lines \u00D7 2): mistralrs-core/src/vision_models/phi4/audio_embedding.rs:316-324 | mistralrs-core/src/vision_models/phi4/image_embedding.rs:806-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":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff99baf9983d2d40d4dd914eb4caeba0d8a7b155393e7eda5a6a3c262300da0"}},{"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."},"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 43 separate duplicated blocks between them, totalling at least 650 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/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/text.rs:220-229 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:153-162 \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 416 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":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"d18ad10bb23c84593acfb0a0e20570fd0ec471c516c2347f78d29a66cda23b47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/text.rs:1472-1481 | mistralrs-core/src/vision_models/qwen3_5/text.rs:1501-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-core/src/vision_models/qwen3_5/text.rs"},"region":{"startLine":1472}}}],"partialFingerprints":{"codehealthFindingId/v1":"b690dd6d3f670fa9ab206d5650593a79d29a3a3b5b3114ac589e9ef4642204c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/text.rs:2390-2399 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:798-807 \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 416 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":2390}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9995606875a2b690500389a05afed2d8d67897968b51ba068d39cbcebcdcb1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1908-1917 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1954-1963 \u2014 both copies are in the same file, so extract the block 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/inputs_processor.rs"},"region":{"startLine":1908}}}],"partialFingerprints":{"codehealthFindingId/v1":"143030b108efc58d4ba53064d896885feb2fc93c5362ca2f67098f3fd8b986e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/xlora_models/mixtral.rs:683-692 | mistralrs-core/src/xlora_models/starcoder2.rs:536-545 \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 32 separate duplicated blocks between them, totalling at least 456 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":683}}}],"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:235-244 \u2014 both copies are in the same file, so extract the block 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/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/mod.rs:147-156 | 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/afq/mod.rs"},"region":{"startLine":147}}}],"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."},"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."},"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."},"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 (10 lines \u00D7 2): mistralrs-quant/src/cublaslt/matmul.rs:494-503 | mistralrs-quant/src/cublaslt/matmul.rs:591-600 \u2014 both copies are in the same file, so extract the block 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":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e642e5f054eb64cf7e461f6418b375ab0da9a3fb45701baad34431a2b44efb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:424-433 | mistralrs-quant/src/cutile/fp8_w8a8.rs:368-377 \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 21 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":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f48e77bd8413edb430c36f2d8d875f15a57a3faf688373627037dcf1cc25eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:647-656 | mistralrs-quant/src/cutile/fp8_w8a8.rs:694-703 \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 21 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":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"87db28b913ffdfa3d75c9755d3f200df20b9cd95ca2b5799299719867dfdcf98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:703-712 | mistralrs-quant/src/cutile/fp8_w8a8.rs:725-734 \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 21 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":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3603d6a4ed52cf9917b8ca747034315423dd1b638e3f242fef52af7072d74c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:746-755 | mistralrs-quant/src/cutile/fp8_w8a8.rs:742-751 \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 21 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":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a3058f566dae554b9cfa083d3511422f5caf73d6f37a75057449046ae8c134"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:271-280 | mistralrs-quant/src/cutile/fused_moe.rs:316-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"0188a7900c84cf4f4ad18da74f11d01d36f4599edb480ae5ec762a03bc04e994"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:282-291 | mistralrs-quant/src/cutile/fused_moe.rs:327-336 \u2014 both copies are in the same file, so extract the block 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/fused_moe.rs"},"region":{"startLine":282}}}],"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."},"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."},"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 (10 lines \u00D7 2): mistralrs-quant/src/cutile/gdn_prefill.rs:196-205 | mistralrs-quant/src/cutile/gdn_prefill.rs:366-375 \u2014 both copies are in the same file, so extract the block 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":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0cc21b5fcc521da88769943ad47311418174d571b81d16fa033a0322ea0295c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:1616-1625 | mistralrs-quant/src/distributed/layers.rs:2103-2112 \u2014 both copies are in the same file, so extract the block 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":1616}}}],"partialFingerprints":{"codehealthFindingId/v1":"9765f83f31ba0bb65fb9ddc1e0549f5e4ff997f2f22caebc4d893dbdd9d71875"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/distributed/mod.rs:587-596 | mistralrs-quant/src/distributed/mod.rs:736-745 \u2014 both copies are in the same file, so extract the block 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":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"f493ebeb31e0e82f3ea0b8672e17ee7b8ebafd42b7594778b82770113f46c053"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/distributed/mod.rs:618-627 | mistralrs-quant/src/distributed/mod.rs:767-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/distributed/mod.rs"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f0a298225350be466448ad757907efaff72c6914d23cfd9db37b0cc01b6163"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/lib.rs:2514-2523 | mistralrs-quant/src/lib.rs:2654-2663 \u2014 both copies are in the same file, so extract the block 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/lib.rs"},"region":{"startLine":2514}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0770b9a290f7f46baba6fff601938f62988c219f0f853747745ed5b34f34e3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/safetensors.rs:544-553 | mistralrs-quant/src/safetensors.rs:558-567 \u2014 both copies are in the same file, so extract the block 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":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df83a1a81347e31d5b414172924c1aec63013504c68767e14bfbce6061d4401"}},{"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:290-299 \u2014 both copies are in the same file, so extract the block 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":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff49fb7622b1220201a4a7c3ae64205628bc4a61f579003d8fd4b4a108164275"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_gemv.rs:104-113 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:208-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/nvfp4_gemv.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"49853df58d42812cf16804848b9ee1482626b24a016dee59c1743fbeb3bc697d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-server-core/src/chat_completion.rs:1200-1209 | mistralrs-server-core/src/completions.rs:343-352 \u2014 before extracting anything, compare \u0060mistralrs-server-core/src/chat_completion.rs\u0060 and \u0060mistralrs-server-core/src/completions.rs\u0060 as WHOLE FILES: this scan already matched 4 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/chat_completion.rs"},"region":{"startLine":1200}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a10ee9c846d6c5278b067a960c9c061e0730c0eaeb18a4ba4fdda14e71b450"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 22): mistralrs-core/src/embedding_models/embedding_gemma.rs:432-440 | mistralrs-core/src/models/deepseek2.rs:869-877 | mistralrs-core/src/models/deepseek3.rs:932-940 | mistralrs-core/src/models/gemma.rs:384-392 | mistralrs-core/src/models/gemma2.rs:456-464 | mistralrs-core/src/models/glm4_moe.rs:768-776 | mistralrs-core/src/models/glm4_moe_lite.rs:879-887 | mistralrs-core/src/models/llama.rs:413-421 | mistralrs-core/src/models/mistral.rs:492-500 | mistralrs-core/src/models/mixtral.rs:446-454 | mistralrs-core/src/models/phi2.rs:473-481 | mistralrs-core/src/models/phi3.rs:462-470 | mistralrs-core/src/models/phi3_5_moe.rs:530-538 | mistralrs-core/src/models/starcoder2.rs:444-452 | mistralrs-core/src/vision_models/gemma3/text.rs:492-500 | mistralrs-core/src/vision_models/gemma4/text.rs:1673-1681 | mistralrs-core/src/vision_models/phi3/mod.rs:1243-1251 | mistralrs-core/src/vision_models/phi4/mod.rs:358-366 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:438-446 | mistralrs-core/src/vision_models/qwen2vl/text.rs:440-448 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:428-436 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:549-557 \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 7 separate duplicated blocks between them, totalling at least 113 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":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"82178736c5f8d566d7850a969a2243a5e966f21012ae5c02f0b2ef655f7e19a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20139 lines \u00D7 21): mistralrs-core/src/models/deepseek2.rs:962-969 | mistralrs-core/src/models/deepseek3.rs:1025-1032 | mistralrs-core/src/models/gemma.rs:475-482 | mistralrs-core/src/models/glm4.rs:589-596 | mistralrs-core/src/models/glm4_moe.rs:840-847 | mistralrs-core/src/models/glm4_moe_lite.rs:977-984 | mistralrs-core/src/models/granite.rs:2254-2262 | 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:603-610 | mistralrs-core/src/models/mixtral.rs:540-547 | mistralrs-core/src/models/phi2.rs:553-560 | mistralrs-core/src/models/phi3.rs:549-557 | mistralrs-core/src/models/phi3_5_moe.rs:621-629 | mistralrs-core/src/models/qwen3.rs:554-561 | mistralrs-core/src/models/qwen3_moe.rs:737-744 | mistralrs-core/src/models/qwen3_next.rs:1047-1055 | mistralrs-core/src/models/starcoder2.rs:541-549 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:558-565 | mistralrs-core/src/vision_models/phi3/mod.rs:1352-1360 | mistralrs-core/src/vision_models/phi4/mod.rs:522-524 \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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d162c17cf0f937d08586c161b011d6fdb288f4883638c3ee5fa6ba7f2137bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 16): mistralrs-core/src/models/gemma.rs:589-597 | mistralrs-core/src/models/gemma2.rs:705-713 | mistralrs-core/src/models/glm4.rs:705-713 | mistralrs-core/src/models/hunyuan_v1_dense.rs:677-685 | mistralrs-core/src/models/llama.rs:618-626 | mistralrs-core/src/models/mistral.rs:717-725 | mistralrs-core/src/models/phi2.rs:664-672 | mistralrs-core/src/models/phi3.rs:660-668 | mistralrs-core/src/models/qwen2.rs:719-727 | mistralrs-core/src/models/qwen3.rs:676-684 | mistralrs-core/src/models/smollm3.rs:637-645 | mistralrs-core/src/models/starcoder2.rs:655-663 | mistralrs-core/src/vision_models/gemma3/text.rs:931-939 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:630-638 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:677-685 | 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 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/gemma.rs"},"region":{"startLine":589}}}],"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:365-373 | mistralrs-core/src/models/gemma2.rs:437-445 | mistralrs-core/src/models/glm4.rs:458-466 | mistralrs-core/src/models/glm4_moe.rs:747-755 | mistralrs-core/src/models/mixtral.rs:427-435 | mistralrs-core/src/models/qwen2.rs:456-464 | mistralrs-core/src/models/qwen3.rs:422-430 | mistralrs-core/src/models/qwen3_moe.rs:599-607 | mistralrs-core/src/models/starcoder2.rs:425-433 | mistralrs-core/src/xlora_models/gemma.rs:444-452 | mistralrs-core/src/xlora_models/gemma2.rs:479-487 | mistralrs-core/src/xlora_models/mistral.rs:445-453 | mistralrs-core/src/xlora_models/mixtral.rs:575-583 | mistralrs-core/src/xlora_models/starcoder2.rs:434-442 \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 134 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aeafc2b8a49b49f9427cbd801be7eaa0c6e9deeda44922e63f73b650b6aa416"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 12): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1321-1329 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1613-1621 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1898-1906 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2302-2310 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2969-2977 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3276-3284 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4709-4717 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5118-5126 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:735-743 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1159-1167 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1387-1395 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5169-5177 \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 32 separate duplicated blocks between them, totalling at least 426 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1321}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd0b7f9bebb4b133f298fdeeb2345fbc9ed30f39085874dd54ffde98a9dd889b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 11): mistralrs-core/src/models/glm4.rs:447-455 | mistralrs-core/src/models/granite.rs:1956-1964 | mistralrs-core/src/models/hunyuan_v1_dense.rs:420-428 | mistralrs-core/src/models/hunyuan_v1_moe.rs:914-922 | mistralrs-core/src/models/llama.rs:357-365 | mistralrs-core/src/models/mistral.rs:426-434 | mistralrs-core/src/models/qwen3.rs:411-419 | mistralrs-core/src/models/qwen3_moe.rs:588-596 | mistralrs-core/src/models/qwen3_next.rs:750-758 | mistralrs-core/src/models/smollm3.rs:373-381 | mistralrs-core/src/vision_models/llama4/text.rs:805-813 \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 253 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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.rs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef4c6c84e0568cdfd7aaf4bc62cca30bb4feafc6151793117deac69bb8840161"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 10): mistralrs-core/src/layers.rs:1150-1158 | mistralrs-core/src/layers.rs:1173-1181 | mistralrs-core/src/layers.rs:1240-1248 | mistralrs-core/src/layers.rs:1263-1271 | mistralrs-core/src/layers.rs:1340-1348 | mistralrs-core/src/layers.rs:1509-1517 | mistralrs-core/src/layers.rs:1532-1540 | mistralrs-core/src/layers.rs:2337-2345 | mistralrs-core/src/layers.rs:2435-2443 | mistralrs-core/src/layers.rs:2482-2490 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/layers.rs"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e0e41a9eb9433f8889973972cf537dc01678c4cffcb569fd424e9777da60b8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 10): mistralrs-core/src/models/deepseek2.rs:958-967 | mistralrs-core/src/models/deepseek3.rs:1021-1030 | mistralrs-core/src/models/gemma.rs:471-480 | mistralrs-core/src/models/glm4_moe.rs:837-845 | mistralrs-core/src/models/glm4_moe_lite.rs:974-982 | mistralrs-core/src/models/granite.rs:2250-2259 | mistralrs-core/src/models/llama.rs:499-508 | mistralrs-core/src/models/phi2.rs:549-558 | mistralrs-core/src/models/smollm3.rs:518-527 | 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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f53717ad4c2b712556f537ed9c44c0bfd5fd1d82bf08f066cb7f2ba06ba0f20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 9): mistralrs-core/src/models/deepseek2.rs:818-826 | mistralrs-core/src/models/deepseek3.rs:881-889 | mistralrs-core/src/models/glm4_moe.rs:718-726 | mistralrs-core/src/models/glm4_moe_lite.rs:828-836 | mistralrs-core/src/models/gpt_oss.rs:723-731 | mistralrs-core/src/models/mixtral.rs:415-423 | mistralrs-core/src/models/phi3.rs:418-426 | mistralrs-core/src/models/qwen2.rs:443-451 | mistralrs-core/src/vision_models/gemma3n/text.rs:1335-1342 \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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c09247a38d2d4bd23f7f2301115c1874a3ea1f5e68bcdcc3290f2f860aaed9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 9): mistralrs-core/src/xlora_models/gemma.rs:268-276 | mistralrs-core/src/xlora_models/gemma2.rs:273-281 | mistralrs-core/src/xlora_models/llama.rs:91-99 | mistralrs-core/src/xlora_models/mistral.rs:258-266 | mistralrs-core/src/xlora_models/mixtral.rs:171-179 | mistralrs-core/src/xlora_models/phi2.rs:261-269 | mistralrs-core/src/xlora_models/phi3.rs:146-154 | mistralrs-core/src/xlora_models/quantized_phi3.rs:184-192 | mistralrs-core/src/xlora_models/starcoder2.rs:245-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 491 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4a7f9e2eb45d469f049b50814f9b5a938abb2681357b62f5db38580afcdf1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8): mistralrs-core/src/vision_models/qwen3_5/mod.rs:218-226 | mistralrs-core/src/vision_models/qwen3_5/mod.rs:279-287 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:203-211 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:264-272 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:741-749 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:816-824 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:186-194 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:261-269 \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 23 separate duplicated blocks between them, totalling at least 408 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":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b28449f0c5b46b9f3ce71b16c9a49821f67dcbad58fe9d39b67b8d7e837482a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7): 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:599-607 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:921-929 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:321-329 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1193-1201 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1451-1459 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/cuda/backend/fa3.rs"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"e88473f70deb79ad94b0d5aa4791b896a58039974a3495c5913dfcac60105a60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7): 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:594-602 | mistralrs-quant/src/cutile/gdn_prefill.rs:706-714 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:326-334 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1198-1206 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1456-1464 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/cuda/backend/fa3.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a1eed09133e7796ca14735721b7da76085f2145381bb8f127e107c754366b4"}},{"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:363-371 | mistralrs-core/src/models/gemma2.rs:435-443 | mistralrs-core/src/vision_models/gemma3/text.rs:453-462 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:408-417 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:529-538 \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 7 separate duplicated blocks between them, totalling at least 113 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":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e337c4f48c629eded8616d9702d62214bc1b7585c37d547c6d5b7a0e78f4a38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): mistralrs-core/src/embedding_models/qwen3_embedding.rs:371-379 | mistralrs-core/src/models/glm4.rs:482-490 | mistralrs-core/src/models/hunyuan_v1_dense.rs:451-459 | mistralrs-core/src/models/hunyuan_v1_moe.rs:945-953 | mistralrs-core/src/models/qwen2.rs:477-485 | mistralrs-core/src/models/qwen3.rs:442-450 \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 134 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a35f516a449c5043a38550a7200831f2a740290f394d0387208bb9be4730dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1359-1367 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1652-1660 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1937-1945 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4749-4757 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6443-6451 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6867-6875 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs"},"region":{"startLine":1359}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d2765909dae806091b0048a64336a4d531786b3d569151f20ff9ae851f69d54"}},{"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/xlora_models/classifier.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aaaf5983ef1bd2b9e58a4875e594f3ffbd8e2f71e48bfe08710524eed422f4b"}},{"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:477-484 | mistralrs-core/src/xlora_models/mistral.rs:443-450 | mistralrs-core/src/xlora_models/mixtral.rs:573-580 | mistralrs-core/src/xlora_models/phi2.rs:424-432 | mistralrs-core/src/xlora_models/phi3.rs:409-416 \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 491 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":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:622-630 | mistralrs-core/src/xlora_models/phi2.rs:552-560 | mistralrs-core/src/xlora_models/phi3.rs:534-542 | mistralrs-core/src/xlora_models/quantized_llama.rs:784-790 | mistralrs-core/src/xlora_models/quantized_phi3.rs:450-458 | mistralrs-core/src/xlora_models/starcoder2.rs:567-575 \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 297 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/gemma2.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd231f1ce4f78c5a066e23a0988c4013aa49001d25b55ae4098e87d1bbcd752"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): mistralrs-quant/src/cutile/fp8_w8a16.rs:67-75 | mistralrs-quant/src/cutile/fp8_w8a16.rs:120-128 | mistralrs-quant/src/cutile/fp8_w8a16.rs:172-180 | mistralrs-quant/src/cutile/fp8_w8a16.rs:225-233 | mistralrs-quant/src/cutile/fp8_w8a8.rs:72-80 | mistralrs-quant/src/cutile/fp8_w8a8.rs:130-138 \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 21 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":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b477c6a964d8a267fa1c2bcfc476e1727461593b009b119cb31f32e25745859"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): mistralrs-quant/src/cutile/nvfp4_glu.rs:147-155 | mistralrs-quant/src/cutile/nvfp4_glu.rs:304-312 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:62-70 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:215-223 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:426-434 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:720-728 \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 10 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. If that is what happened, the fix is to keep one copy and have the other 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":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2194bb29b5ca4e87f4ed2ff28f78d6a85117e537157b073d7d75616f484f419"}},{"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:553-561 | mistralrs-core/src/models/mistral.rs:558-566 | mistralrs-core/src/models/qwen3.rs:513-521 | mistralrs-core/src/models/qwen3_moe.rs:696-704 \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 134 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"b514e64f45dfd7d1c7f316898aaa847d3a654e99e8c3b5b53fe1f05050a005be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): mistralrs-core/src/models/llama.rs:383-391 | mistralrs-core/src/models/mistral.rs:437-445 | mistralrs-core/src/models/phi3.rs:429-437 | mistralrs-core/src/models/phi3_5_moe.rs:497-505 | mistralrs-core/src/models/smollm3.rs:399-407 \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 27 separate duplicated blocks between them, totalling at least 340 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"405e020a36ad3ce59d1bdde1430ccb5facdb028e9f92da30fbfbde7b0c3dad41"}},{"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."},"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:209-217 | 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 43 separate duplicated blocks between them, totalling at least 650 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/text.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"956c02e790b390d9a6f54f30d8c6779017b3a5717474512f6e42313039be1444"}},{"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:2064-2071 | mistralrs-quant/src/blockwise_fp8/ops.rs:2073-2081 \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 5 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. If that is what happened, the fix is to keep one copy and have the other 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":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"32929d4643fbe0adff9176b89602afcee80472fad0d34c5b676a7f0e2319e4ff"}},{"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:172-180 | mistralrs-cli/src/ui/handlers/api.rs:224-232 | mistralrs-cli/src/ui/handlers/api.rs:276-284 | mistralrs-cli/src/ui/handlers/api.rs:328-336 \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-cli/src/ui/handlers/api.rs"},"region":{"startLine":172}}}],"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:3627-3635 \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/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:209-217 | 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 10 separate duplicated blocks between them, totalling at least 110 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":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 50 separate duplicated blocks between them, totalling at least 696 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"e138b54d43f924b9e7202ce6f74a8f44fa58bab6b8ce3aaa2a26cbc94e778dc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): mistralrs-core/src/ops.rs:4312-4320 | mistralrs-core/src/ops.rs:5299-5307 | mistralrs-core/src/ops.rs:5727-5735 | mistralrs-core/src/ops.rs:6075-6083 \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":4312}}}],"partialFingerprints":{"codehealthFindingId/v1":"87391cd1b5e0e978bdd0bc24e58cfb174e36b04771065d9dd93312ae864507dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2342-2350 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3007-3015 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3314-3322 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7756-7764 \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/loaders/multimodal_loaders.rs"},"region":{"startLine":2342}}}],"partialFingerprints":{"codehealthFindingId/v1":"d44c5156006f648a4fb1f37d7f687eb26082b963c85c643b48f511c82c7cede8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 4): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:993-1000 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1558-1565 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1687-1694 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1729-1737 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"950b94948e7cc008a4769d8f007fb8c30dbe946e4872da7c7fd52441b759bbc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): mistralrs-core/src/vision_models/qwen3_5/mod.rs:311-319 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:296-304 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:849-857 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:294-302 \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 23 separate duplicated blocks between them, totalling at least 408 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":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc40aa75929072166ecc5395a3b28941897370f811d62c4efafb99710eb115e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): mistralrs-core/src/vision_models/qwen3_5/text.rs:1244-1252 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:533-541 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:401-409 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:522-530 \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 416 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":1244}}}],"partialFingerprints":{"codehealthFindingId/v1":"5935d715080e38fc28c5c9a76567dfee5cdc60b810860d2d0bf0976877194d23"}},{"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:254-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-quant/src/blockwise_fp8/deepgemm.rs"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33e3da0e85859e8f3b899f259fb65227317f16fb0f9c2f721813bf563c8bfa8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): mistralrs-quant/src/cutile/fused_moe.rs:123-131 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:134-142 | mistralrs-quant/src/cutile/gdn_prefill.rs:265-273 | 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 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"252db74ace08ba37c885af8a9a3ce8db12a53442011538847808fb8ed18dd771"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): mistralrs-quant/src/cutile/nvfp4_glu.rs:86-94 | mistralrs-quant/src/cutile/nvfp4_glu.rs:243-251 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:380-388 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:674-682 \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 10 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. If that is what happened, the fix is to keep one copy and have the other 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":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"043c8b5948a8b3006a623e89f1247b2c9e6c6ec5dc53c3df83559fbf38cbc738"}},{"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."},"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 (8\u20139 lines \u00D7 3): mistralrs/src/model.rs:964-971 | mistralrs/src/model.rs:1073-1081 | mistralrs/src/model.rs:1106-1113 \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/model.rs"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a66da276f7a6e6c45796309df5548d65003613bfee38043d0ecbc745352bfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 3): mistralrs-code-exec/src/lib.rs:462-469 | mistralrs-code-exec/src/shell.rs:198-206 | mistralrs-code-exec/src/shell.rs:259-265 \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 6 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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-code-exec/src/lib.rs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"75076cb4697020e8ed57bee8d94f2a31474f86f04afd364ef0360fc578973b2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): mistralrs-core/src/lib.rs:2485-2493 | mistralrs-core/src/lib.rs:2548-2556 | mistralrs-core/src/lib.rs:2565-2573 \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/lib.rs"},"region":{"startLine":2485}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b083c9ec8209910434b22ca7afd85f694c5253941cf54e050518848f3ce5e7a"}},{"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/ops.rs:1153-1161 | mistralrs-core/src/ops.rs:1372-1380 | mistralrs-core/src/ops.rs:2959-2966 \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":1153}}}],"partialFingerprints":{"codehealthFindingId/v1":"869f6bea9939548de698b277750a2e0fca7445dffb4a4fba89cdf1b65b1beb61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): mistralrs-core/src/paged_attention/cache_engine.rs:222-231 | mistralrs-core/src/paged_attention/cache_engine.rs:271-279 | mistralrs-core/src/paged_attention/cache_engine.rs:325-333 \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/paged_attention/cache_engine.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c127eabfc747e163836fc295a53f34b7162ce65e6a6f05a71980454f6cb88e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6823-6831 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7719-7727 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4960-4968 \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 32 separate duplicated blocks between them, totalling at least 426 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":6823}}}],"partialFingerprints":{"codehealthFindingId/v1":"a76edb73e67d2ef8506938fef000af3ef851e91730e99cb478168d8d86a26aaf"}},{"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:346-354 \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 18 separate duplicated blocks between them, totalling at least 176 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":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c2e72783cf600b5498560120a3a34d1575669ff1d8aa01f2c3a7f58b5e9ed13"}},{"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:926-934 | mistralrs-quant/src/cutile/gdn_prefill.rs:716-724 \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 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc9996f6b00a0399657b9b2fd80bd0acef52669ecd700c962b9f1c6b9a544010"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): mistralrs-quant/src/cutile/fused_moe.rs:376-384 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:372-380 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:410-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 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d022def80ac30f190b8ab53321118b3110876061cd36c8d5f5c51b3c88c4b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): mistralrs-quant/src/hqq/mod.rs:183-191 | mistralrs-quant/src/hqq/mod.rs:268-276 | mistralrs-quant/src/hqq/mod.rs:438-446 \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/hqq/mod.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e5a3d0fdbd1bbd267b6248e1d79df86aaf9340af11bd7708241ac8efd635673"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): mistralrs-quant/src/hqq/mod.rs:465-473 | mistralrs-quant/src/hqq/mod.rs:529-537 | mistralrs-quant/src/hqq/mod.rs:552-560 \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/hqq/mod.rs"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca43e210f741725adbdcaf7cd18c614a84934a91699425e2b4e6d5747793aab"}},{"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."},"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 (9 lines \u00D7 3): mistralrs-quant/src/afq/ops.rs:2359-2367 | mistralrs-quant/src/afq/ops.rs:2481-2489 | mistralrs-quant/src/afq/ops.rs:3007-3015 \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":2359}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eaeba1f6151286d739a1856f3c9b9774b7a3d5724ed69aeb72794cb9d3b83a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-cli/src/commands/serve.rs:738-746 | mistralrs-cli/src/commands/serve.rs:770-778 \u2014 both copies are in the same file, so extract the block 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/serve.rs"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"185d8a507e7a0e034460c9c1994516e5f120ade68f47a8e1fb72989b9f12f374"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:1069-1077 | mistralrs-core/src/cuda/gdn.rs:1182-1191 \u2014 both copies are in the same file, so extract the block 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":1069}}}],"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."},"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/lib.rs:848-856 | mistralrs-core/src/lib.rs:896-904 \u2014 both copies are in the same file, so extract the block 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/lib.rs"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcac4f8e0d252deea9a22e003350345fb75d5f47e65873fbce5e71338bc646cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/model_loader.rs:350-358 | mistralrs-core/src/toml_selector.rs:846-854 \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 10 separate duplicated blocks between them, totalling at least 156 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"092939d21bfeb9d337a748cd1b141f1136005935a21d898112903dd2d273175b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): mistralrs-core/src/models/gemma2.rs:573-580 | mistralrs-core/src/models/qwen2.rs:601-609 \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 35 separate duplicated blocks between them, totalling at least 413 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/gemma2.rs"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f1636c363d295042572d14e57af8e33d2bf5dddd617cbd64e1d04a277fd5c14"}},{"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 31 separate duplicated blocks between them, totalling at least 341 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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.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."},"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/hunyuan_v1_dense.rs:515-523 | mistralrs-core/src/models/hunyuan_v1_moe.rs:1009-1017 \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 53 separate duplicated blocks between them, totalling at least 686 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"a919c13d52a26c85d07d6b19d4e855bd95a960b6a53086eb759df4ba1d00734e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/models/llama.rs:461-469 | mistralrs-core/src/models/smollm3.rs:484-492 \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 50 separate duplicated blocks between them, totalling at least 696 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"c883c064cfbb24b282e1ed34f44dc3719a14c571df820e4d6344a52475cd5fb8"}},{"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 40 separate duplicated blocks between them, totalling at least 470 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/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/qwen3_next.rs:695-703 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:474-482 \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 27 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed1a59a72057e3f94f282aeddfe15d2a44498025d2d4b860477794003c3b7ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/moe/experts/mod.rs:180-188 | mistralrs-core/src/moe/experts/mod.rs:251-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/moe/experts/mod.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0593bd7e0515f9d03f0bc7f314abeead57bd327f1d3dedb8e1783bfdeaaf4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/ops.rs:2093-2101 | mistralrs-core/src/ops.rs:2250-2258 \u2014 both copies are in the same file, so extract the block 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":2093}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72571c3e97feaa2f989e0c1862f2492a6dd504e9b56c5030ba826d51f56bb95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/ops.rs:2763-2771 | mistralrs-core/src/ops.rs:2806-2814 \u2014 both copies are in the same file, so extract the block 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":2763}}}],"partialFingerprints":{"codehealthFindingId/v1":"658d1c4919e29e912e59c222edb469d7e8b1f3293c829befa6a5c0cf7100e512"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/ops.rs:4483-4491 | mistralrs-core/src/ops.rs:5031-5039 \u2014 both copies are in the same file, so extract the block 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":4483}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccb6d3e2d7d7ff4dda3204e21700236bf6f0c738023ac525b05d656a76afd25e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/paged_attention/scheduler.rs:1027-1035 | mistralrs-core/src/paged_attention/scheduler.rs:1063-1071 \u2014 both copies are in the same file, so extract the block 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":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8cbfd78a6f12f1a92d19fa7ec3a3d9ec480d3e6798cb4ddeabdc98e55708e23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): mistralrs-core/src/pipeline/auto.rs:174-180 | mistralrs-core/src/pipeline/auto.rs:190-198 \u2014 both copies are in the same file, so extract the block 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/auto.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b58ca854e7b5883522cfbfd610d5edb1219c351d22ad807ea1ded3c80b7d7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/pipeline/embedding.rs:249-257 | mistralrs-core/src/pipeline/normal.rs:679-687 \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 150 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/embedding.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf5ad96f0ba7f4d6372cca10a4a5d1f303b22a9eda26f72bd8a847d6c4332d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/pipeline/gguf.rs:1342-1350 | mistralrs-core/src/pipeline/normal.rs:1323-1331 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/gguf.rs"},"region":{"startLine":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"49858d276aa42a55d64a41a44693e99bbf74b2738074d9a69bc82bc80e4b868f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1859-1867 | mistralrs-core/src/pipeline/normal.rs:2271-2279 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1859}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca0b22f1346fd6c40064acce2c2c923a405837ef17cc89df7ace8ba666e65ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1915-1923 | mistralrs-core/src/pipeline/normal.rs:2237-2245 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1915}}}],"partialFingerprints":{"codehealthFindingId/v1":"c94fc5803c9e7e84dd8dbe606c4f1ecaa4928961529369b925e1ba5efbbf62ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2346-2354 | mistralrs-core/src/pipeline/normal.rs:2082-2090 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":2346}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea2dc306d67649598de34a9a19d16c9cce6d4275ad682156ce187777ed29614"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/sampler.rs:415-423 | mistralrs-core/src/sampler.rs:501-509 \u2014 both copies are in the same file, so extract the block 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":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1ba8dbfc3054110a0ec62d965f71113146e0123a95cd043c4b267af580ca4e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/sampler.rs:1752-1760 | mistralrs-core/src/sampler.rs:1923-1931 \u2014 both copies are in the same file, so extract the block 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":1752}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ab053ff15e09ae9f015cbca63b561d3fa94cdf76caf8f1d5de3283d93bf7e7"}},{"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."},"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/vision_models/gemma3n/audio.rs:862-870 | mistralrs-core/src/vision_models/gemma4/audio.rs:353-361 \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 16 separate duplicated blocks between them, totalling at least 279 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 16 separate duplicated blocks between them, totalling at least 279 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":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."},"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."},"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:574-582 | mistralrs-core/src/vision_models/gemma4/text.rs:607-615 \u2014 both copies are in the same file, so extract the block 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":574}}}],"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 (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/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."},"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 20 separate duplicated blocks between them, totalling at least 316 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/llava/llava_next_inputs_processor.rs"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ef142ba454df574f20d27fea1be6bcea024ce2e3329181ffcfbff84f085dd6"}},{"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."},"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_vl/mod.rs:178-186 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:287-295 \u2014 both copies are in the same file, so extract the block 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":178}}}],"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."},"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:464-472 \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 13 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. If that is what happened, the fix is to keep one copy and have the other 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":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"377c0140ce577f96ceeded713b831162752060bfbf781cc6dd48b7c822beff4a"}},{"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/attention/backends/cpu/avx.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c6a51fbaa465514ac05852708f66adee9934bfba77b4fef3a50de6d419a9b67"}},{"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."},"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/metal/gdn.rs:121-129 | mistralrs-core/src/metal/gdn.rs:231-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/metal/gdn.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a370c5b448889cb393fa84b11c3047e3d4bce2c6106e5185c58ef09040f7b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/metal/gdn.rs:137-145 | mistralrs-core/src/metal/gdn.rs:251-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/metal/gdn.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb22b0e0242d5590572d76380dc7ee6fd105866b1c746bdbf268e16d0ec6a04c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/metal/gdn.rs:331-339 | mistralrs-core/src/metal/gdn.rs:511-519 \u2014 both copies are in the same file, so extract the block 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":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4bb4cfdf0aad4b7538e95fa9bb5784d523cff483740f1ad908805e2c70f63fc"}},{"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."},"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/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."},"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/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."},"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-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/cuda/backend/flashinfer.rs"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c72cdf87c67f72a3207926e65e69e93c362f72f8b3bd1f58c7c572d6b977e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-pyo3/src/lib.rs:2236-2244 | mistralrs-pyo3/src/lib.rs:2268-2276 \u2014 both copies are in the same file, so extract the block 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-pyo3/src/lib.rs"},"region":{"startLine":2236}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d61f47be85bbd5e5eb9ae583f799baa0adc53d00fd1bb73ce918635c721b30d"}},{"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-pyo3/src/util.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef325349ca6a43a2cb0676d492bbd458505894d9019b6272d79ffa48ac1bfb03"}},{"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:422-430 \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 6 separate duplicated blocks between them, totalling at least 49 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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:1887-1895 | mistralrs-quant/src/blockwise_fp8/ops.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1887}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c7362985c8c85bcbf01648c1c292cd9b17320a143918f5df3e382ff49f04e0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/cublaslt/matmul.rs:507-515 | mistralrs-quant/src/cublaslt/matmul.rs:604-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cublaslt/matmul.rs"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"695372fc520df74a370c9b3912ebbca4485ada042ba5a2f286b27614af13d77a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/cutile/mod.rs:74-82 | mistralrs-quant/src/moe/mod.rs:52-60 \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/cutile/mod.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"10eb5fecd8bc5a2afb253cf1cc1f53201ce41594825987353b458bba3bcc285e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_glu.rs:76-84 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:379-387 \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 10 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. If that is what happened, the fix is to keep one copy and have the other 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":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"39659214dfa9a1aeb8abbd84db812b178e3bbc9623ff71672eb28df529a5e270"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_glu.rs:233-241 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:673-681 \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 10 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. If that is what happened, the fix is to keep one copy and have the other 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":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aff199687c7903db31d380dd787ceddaab65af55f6d284ec4584240e113ad7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_matmul.rs:585-593 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:879-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/nvfp4_matmul.rs"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"861cf8cc9e31562f6a84e77b8fb8e9a9b20ad327bb9b9f703ac69cbc96b2dd83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:898-906 | mistralrs-quant/src/distributed/layers.rs:1360-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/distributed/layers.rs"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ba5ba75ecfdb6b52a2078a0a974a7c85347554a50dca9523186503d05ff330"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:1034-1042 | mistralrs-quant/src/distributed/layers.rs:1119-1127 \u2014 both copies are in the same file, so extract the block 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":1034}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ab835c45d6ad13925e8f91fb78d26f2738bee5534c7c8ce8571d64a07bc48fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/hqq/mod.rs:376-384 | mistralrs-quant/src/hqq/mod.rs:391-399 \u2014 both copies are in the same file, so extract the block 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/hqq/mod.rs"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9f1443d00accf82dd2045ccc8325e2440d3bb031e1ce678da5f1c22ac55872c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/lib.rs:912-920 | mistralrs-quant/src/lib.rs:927-935 \u2014 both copies are in the same file, so extract the block 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/lib.rs"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4ac17a31748d1eb25b7b2a355054b2f293a29629fafa6ec370bce8b3e400d77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/lib.rs:2163-2171 | mistralrs-quant/src/lib.rs:2268-2276 \u2014 both copies are in the same file, so extract the block 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/lib.rs"},"region":{"startLine":2163}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfc3f441ccc48650cfed7c906b82ac95792c03a1290df5f79b97ec442c1e514"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/lib.rs:2193-2201 | mistralrs-quant/src/lib.rs:2281-2289 \u2014 both copies are in the same file, so extract the block 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/lib.rs"},"region":{"startLine":2193}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cbda77b45c344424d84c50750a3653b89a8e32672dd6b693fe2c33c11053948"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/lib.rs:2190-2198 | mistralrs-quant/src/lib.rs:2392-2400 \u2014 both copies are in the same file, so extract the block 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/lib.rs"},"region":{"startLine":2190}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51dda1d29b2070315bfecb17b7b52af29ac07df72a115c31394d449881419fb"}},{"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."},"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-quant/src/mxfp4/metal_ops.rs:11-19 | mistralrs-quant/src/mxfp4/metal_ops.rs:181-189 \u2014 both copies are in the same file, so extract the block 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-server-core/src/chat_completion.rs:407-415 | mistralrs-server-core/src/responses.rs:1238-1246 \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-server-core/src/chat_completion.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"724cd5f3e16ea810ffa945a6d234c6e0f564eaf9ec5f4419936c5fb4f3e93a7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-server-core/src/responses.rs:1509-1517 | mistralrs-server-core/src/responses.rs:1583-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/responses.rs"},"region":{"startLine":1509}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c5d31c9578084b66540b782139ba3224c9162a7e8daf2fdf0a1e797982bc31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 36): mistralrs-core/src/models/gemma.rs:177-184 | mistralrs-core/src/models/gemma2.rs:218-225 | mistralrs-core/src/models/glm4.rs:220-227 | mistralrs-core/src/models/glm4_moe.rs:282-289 | mistralrs-core/src/models/gpt_oss.rs:258-265 | mistralrs-core/src/models/hunyuan_v1_dense.rs:201-208 | mistralrs-core/src/models/hunyuan_v1_moe.rs:384-391 | mistralrs-core/src/models/lfm2.rs:490-497 | mistralrs-core/src/models/mistral.rs:216-223 | mistralrs-core/src/models/mixtral.rs:161-168 | mistralrs-core/src/models/phi2.rs:273-280 | mistralrs-core/src/models/phi3.rs:161-168 | mistralrs-core/src/models/phi3_5_moe.rs:188-195 | mistralrs-core/src/models/qwen2.rs:250-257 | mistralrs-core/src/models/qwen3.rs:199-206 | mistralrs-core/src/models/qwen3_moe.rs:205-212 | mistralrs-core/src/models/qwen3_next.rs:288-295 | mistralrs-core/src/models/starcoder2.rs:237-244 | mistralrs-core/src/vision_models/gemma3/text.rs:193-200 | mistralrs-core/src/vision_models/mllama/text.rs:172-179 | mistralrs-core/src/vision_models/phi3/mod.rs:253-260 | mistralrs-core/src/vision_models/phi4/mod.rs:122-129 | mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:211-218 | mistralrs-core/src/vision_models/qwen2vl/text.rs:212-219 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:201-208 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:204-211 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:310-317 | mistralrs-core/src/vision_models/voxtral/encoder.rs:91-98 | mistralrs-core/src/vision_models/voxtral/mod.rs:137-144 | mistralrs-core/src/xlora_models/gemma.rs:258-265 | mistralrs-core/src/xlora_models/gemma2.rs:263-270 | mistralrs-core/src/xlora_models/mistral.rs:248-255 | mistralrs-core/src/xlora_models/mixtral.rs:161-168 | mistralrs-core/src/xlora_models/phi2.rs:251-258 | mistralrs-core/src/xlora_models/phi3.rs:136-143 | mistralrs-core/src/xlora_models/starcoder2.rs:235-242 \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 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/gemma.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e057925c5c06c967648c3740cdf3180e2955040eae83c96510d7188867c622"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 31): 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:1608-1615 | 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:268-275 | 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:299-306 | 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:398-405 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:267-274 | 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/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.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/gemma.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e269507e94d6866f99a6ff39ed12adbb9657a37b8c7429a2568e939537294d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 22): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:421-430 | mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:613-622 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1092-1101 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1458-1467 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1751-1760 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2447-2456 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3780-3789 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4120-4129 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4505-4514 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5280-5289 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8221-8228 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9407-9414 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:644-653 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:857-866 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1068-1077 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1920-1929 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2139-2148 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3397-3406 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3601-3608 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3804-3813 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:4840-4849 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5078-5087 \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 11 separate duplicated blocks between them, totalling at least 170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e2d49985e37b667b5f2509d694d57c100c02074cb8f5a0cac0dc486182a6e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 15): mistralrs-core/src/models/deepseek2.rs:817-824 | mistralrs-core/src/models/deepseek3.rs:880-887 | mistralrs-core/src/models/glm4.rs:444-451 | mistralrs-core/src/models/glm4_moe.rs:717-724 | mistralrs-core/src/models/glm4_moe_lite.rs:827-834 | mistralrs-core/src/models/gpt_oss.rs:722-729 | mistralrs-core/src/models/granite.rs:1953-1960 | mistralrs-core/src/models/hunyuan_v1_dense.rs:417-424 | mistralrs-core/src/models/hunyuan_v1_moe.rs:911-918 | mistralrs-core/src/models/llama.rs:354-361 | mistralrs-core/src/models/mistral.rs:423-430 | mistralrs-core/src/models/qwen3.rs:408-415 | mistralrs-core/src/models/qwen3_moe.rs:585-592 | mistralrs-core/src/models/smollm3.rs:370-377 | 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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a0e941afbdf26dfc61df75212a6f8469846af38863fa456ad5fe5af1e773963"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 14): mistralrs-core/src/models/deepseek2.rs:821-828 | mistralrs-core/src/models/deepseek3.rs:884-891 | mistralrs-core/src/models/glm4_moe.rs:721-728 | mistralrs-core/src/models/glm4_moe_lite.rs:831-838 | mistralrs-core/src/models/mixtral.rs:418-425 | mistralrs-core/src/models/phi3.rs:421-428 | mistralrs-core/src/models/qwen2.rs:446-453 | mistralrs-core/src/vision_models/gemma3/text.rs:447-454 | mistralrs-core/src/vision_models/gemma3n/text.rs:1337-1344 | mistralrs-core/src/vision_models/muse_glimmer/text.rs:441-448 | mistralrs-core/src/vision_models/phi3/mod.rs:1216-1223 | mistralrs-core/src/vision_models/phi4/mod.rs:337-344 | 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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f8f677ea7630eb23c7707a0c7449484b4d453e62a5c9f359391265f417b4e19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 12): 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/phi3.rs:373-380 | mistralrs-core/src/models/phi3_5_moe.rs:444-451 | mistralrs-core/src/models/qwen3.rs:345-352 | mistralrs-core/src/models/qwen3_moe.rs:522-529 | mistralrs-core/src/models/starcoder2.rs:369-376 | 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/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gpt_oss.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf3a5067ed58f9e7598604449b8f9f2776c1502ff219aab4b010e16a1dccfaee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 12): mistralrs-core/src/models/gemma.rs:501-509 | mistralrs-core/src/models/mistral.rs:629-637 | mistralrs-core/src/models/mixtral.rs:566-574 | mistralrs-core/src/models/phi3.rs:576-584 | mistralrs-core/src/models/qwen2.rs:631-639 | mistralrs-core/src/models/starcoder2.rs:567-575 | mistralrs-core/src/vision_models/llama4/vision.rs:352-360 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:582-589 | 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:568-576 | mistralrs-core/src/vision_models/qwen2vl/text.rs:570-578 \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 34 separate duplicated blocks between them, totalling at least 383 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":501}}}],"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:458-465 | mistralrs-core/src/models/glm4_moe.rs:747-754 | mistralrs-core/src/models/hunyuan_v1_dense.rs:431-438 | mistralrs-core/src/models/hunyuan_v1_moe.rs:925-932 | mistralrs-core/src/models/qwen3.rs:422-429 | mistralrs-core/src/models/qwen3_moe.rs:599-606 | mistralrs-core/src/xlora_models/gemma.rs:444-451 | mistralrs-core/src/xlora_models/gemma2.rs:479-486 | mistralrs-core/src/xlora_models/mistral.rs:445-452 | mistralrs-core/src/xlora_models/mixtral.rs:575-582 \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 134 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"097a5b67e1718e02c294e87901738bb3045954d1b2c471e8dae7f2a30140fe62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 9): mistralrs-core/src/models/deepseek2.rs:952-958 | mistralrs-core/src/models/deepseek3.rs:1015-1021 | mistralrs-core/src/models/glm4_moe.rs:831-837 | mistralrs-core/src/models/glm4_moe_lite.rs:968-974 | mistralrs-core/src/models/mixtral.rs:527-533 | mistralrs-core/src/models/phi2.rs:543-549 | mistralrs-core/src/models/phi3.rs:536-542 | mistralrs-core/src/models/phi3_5_moe.rs:608-614 | mistralrs-core/src/models/starcoder2.rs:528-535 \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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":952}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc6904b574cc8411a1553089b9177400541f828a012bafb77960314ef445530"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 8): mistralrs-core/src/vision_models/phi3/mod.rs:1231-1238 | mistralrs-core/src/vision_models/phi4/mod.rs:346-353 | mistralrs-core/src/xlora_models/gemma.rs:443-450 | mistralrs-core/src/xlora_models/gemma2.rs:478-485 | mistralrs-core/src/xlora_models/mistral.rs:444-451 | mistralrs-core/src/xlora_models/mixtral.rs:574-581 | mistralrs-core/src/xlora_models/phi2.rs:425-433 | mistralrs-core/src/xlora_models/phi3.rs:410-417 \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 47 separate duplicated blocks between them, totalling at least 548 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":1231}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebf30022e21b8dd94dac446b606ceac1c91860d3c8c25237afcd2114945a035e"}},{"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:454-462 | 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:433-440 \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 43 separate duplicated blocks between them, totalling at least 514 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/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:1887-1894 | mistralrs-quant/src/blockwise_fp8/ops.rs:1896-1903 \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 5 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. If that is what happened, the fix is to keep one copy and have the other 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":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"e582ca60318a96a18afbac93c2f44498cc87378367b2742982672fc1d1879857"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): mistralrs-core/src/models/gpt_oss.rs:518-526 | mistralrs-core/src/models/lfm2.rs:331-338 | mistralrs-core/src/models/qwen3_moe.rs:404-411 | mistralrs-core/src/models/qwen3_next.rs:475-482 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:377-384 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:143-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 8 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"255dfbf2d77704422642388e146fa0a396afc1405145ae92772d1c5fca1cae38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:511-518 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4346-4353 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:947-954 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2229-2236 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2671-2678 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5622-5629 \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 11 separate duplicated blocks between them, totalling at least 170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":511}}}],"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:531-538 | mistralrs-core/src/xlora_models/mistral.rs:497-504 | mistralrs-core/src/xlora_models/mixtral.rs:628-635 | mistralrs-core/src/xlora_models/phi2.rs:479-486 | mistralrs-core/src/xlora_models/starcoder2.rs:485-492 \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 491 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"af97425812dc16a9eb9809c538f895ee0c086b233d55d22e8cecdc10d69cf038"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): mistralrs-cli/src/commands/config.rs:109-116 | mistralrs-cli/src/commands/config.rs:277-284 | mistralrs-cli/src/commands/run/mod.rs:114-121 | mistralrs-cli/src/commands/serve.rs:125-132 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/config.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"204a227986f3aa18af52d08f3e8750c31fca7f9abdd8f33250a973b1cb0f94e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 4): mistralrs-core/src/engine/mod.rs:1967-1974 | mistralrs-core/src/engine/mod.rs:2042-2049 | mistralrs-core/src/engine/mod.rs:2061-2068 | mistralrs-core/src/engine/mod.rs:2087-2092 \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/engine/mod.rs"},"region":{"startLine":1967}}}],"partialFingerprints":{"codehealthFindingId/v1":"32269efbda1b69c5c4011d5cca68d7717d15762ea7111ec162357cb409b5df1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): mistralrs-core/src/models/deepseek2.rs:674-682 | mistralrs-core/src/models/deepseek3.rs:737-745 | mistralrs-core/src/models/glm4_moe.rs:575-582 | mistralrs-core/src/models/glm4_moe_lite.rs:683-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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f4fcfb4ab9c6fb88803c85f82358d772492691e5de057394731050337aa6497"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): mistralrs-core/src/models/gemma2.rs:566-572 | mistralrs-core/src/models/gpt_oss.rs:916-923 | mistralrs-core/src/models/qwen2.rs:594-600 | mistralrs-core/src/vision_models/muse_glimmer/text.rs:593-600 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma2.rs\u0060 and \u0060mistralrs-core/src/models/gpt_oss.rs\u0060 as WHOLE FILES: this scan already matched 18 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/models/gemma2.rs"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa779fb9986a2cf7b5fe015adb6dcd62485177e75272cf7f33804dd14826df1"}},{"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:923-931 | mistralrs-core/src/vision_models/qwen3_5/text.rs:1403-1411 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:708-716 \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 14 separate duplicated blocks between them, totalling at least 141 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"e43b67e01286699c60df485820e99222aa38cd33a7ba83b4ec3831f8c065e22f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): mistralrs-core/src/models/phi3.rs:425-432 | mistralrs-core/src/vision_models/gemma3/text.rs:451-459 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:406-414 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:527-535 \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 18 separate duplicated blocks between them, totalling at least 170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"1def8b6f6b6a067335c5081da0421689c33224f4c51a51483d064a0ff07fac4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): 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 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1211-1218 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"56d6c19befa89830d1748e79b6b82930e3854d51af087b17b2b665667900534b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): mistralrs-core/src/vision_models/qwen3_5/mod.rs:187-194 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:172-179 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:697-704 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:142-149 \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 23 separate duplicated blocks between them, totalling at least 408 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":187}}}],"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:250-257 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:235-242 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:774-781 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:219-226 \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 23 separate duplicated blocks between them, totalling at least 408 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":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"df9a5ec338ef34f135f2b610980b2d3114c4fb65c60291a2dfe41a8f6d619b88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): mistralrs-pyo3/src/lib.rs:1408-1415 | mistralrs-pyo3/src/lib.rs:1892-1899 | mistralrs-pyo3/src/lib.rs:2369-2376 | mistralrs-pyo3/src/lib.rs:2746-2753 \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-pyo3/src/lib.rs"},"region":{"startLine":1408}}}],"partialFingerprints":{"codehealthFindingId/v1":"64f0915c38ac23ad5b43f17e448f606d72a9bb4ccdc6cc0cce56068adcdbccef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 4): mistralrs-quant/src/blockwise_fp8/mod.rs:414-419 | mistralrs-quant/src/mxfp4/mod.rs:111-116 | mistralrs-quant/src/mxfp4/mod.rs:133-140 | mistralrs-quant/src/mxfp4/mod.rs:716-721 \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/mod.rs"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"22eb44b35dc89a854f66e6b0a8e4f85e95221dfd32b259bfcfaf69f7dd6b282a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): mistralrs-quant/src/cutile/nvfp4_glu.rs:51-58 | mistralrs-quant/src/cutile/nvfp4_glu.rs:208-215 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:364-371 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:658-665 \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 10 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. If that is what happened, the fix is to keep one copy and have the other 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":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc8ed9223f65b83a81f6c57682081d9a7195bf890b3638b62cfa5415bc4364bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): mistralrs-quant/src/hqq/mod.rs:170-177 | mistralrs-quant/src/hqq/mod.rs:254-261 | mistralrs-quant/src/hqq/mod.rs:348-355 | mistralrs-quant/src/hqq/mod.rs:497-504 \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/hqq/mod.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd7aff835d9724cc902f9e409299d128b72343de2798260e8a39660b9a778b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): mistralrs-server-core/src/chat_completion.rs:1359-1366 | mistralrs-server-core/src/completions.rs:457-464 | mistralrs-server-core/src/image_generation.rs:186-193 | mistralrs-server-core/src/speech_generation.rs:238-245 \u2014 before extracting anything, compare \u0060mistralrs-server-core/src/chat_completion.rs\u0060 and \u0060mistralrs-server-core/src/completions.rs\u0060 as WHOLE FILES: this scan already matched 4 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/chat_completion.rs"},"region":{"startLine":1359}}}],"partialFingerprints":{"codehealthFindingId/v1":"af0f66e7469d378bbc29976c1d7b141f32f59b53c890d36f90811b2697a6a69d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs/src/model.rs:319-326 | mistralrs/src/model.rs:388-395 | mistralrs/src/model.rs:475-482 \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/model.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"231a151fe5f0b6159f9fdd1a76331b60fccccf438bc161e986d9dddab5ecd346"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-cli/src/args/mod.rs:429-436 | 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/args/mod.rs"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c6f355c928f05fd36782f48ed3f31087f2f8ac3de6ad7039b6cbb866669ded"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-core/src/models/deepseek2.rs:1066-1073 | mistralrs-core/src/models/deepseek3.rs:1131-1138 | mistralrs-core/src/models/glm4_moe_lite.rs:1085-1092 \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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d386dc922904620272e5f45e9d51110b8333b35bd4b49997492c886ea97795c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-core/src/models/gemma2.rs:573-580 | mistralrs-core/src/models/qwen2.rs:601-608 | mistralrs-core/src/vision_models/gemma3/text.rs:744-751 \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 35 separate duplicated blocks between them, totalling at least 413 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/gemma2.rs"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"e45510870de59da9b3e97b3387513bb72c1a62d10bca3ea72b6b2c520202defd"}},{"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:791-799 | 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 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."},"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/ops.rs:4486-4493 | mistralrs-core/src/ops.rs:4649-4656 | mistralrs-core/src/ops.rs:5034-5041 \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":4486}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f72fb751c0d724d9caa3e0dc02274fe1afb618e157b49f8424c50f7f02409a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-core/src/pipeline/embedding.rs:251-258 | mistralrs-core/src/pipeline/multimodal.rs:668-675 | mistralrs-core/src/pipeline/normal.rs:681-688 \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 11 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"107d49713b515bbed176720e1b247992412480d746bb970d9b3783ccc8b51099"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/embedding_loaders.rs:692-698 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2664-2671 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:3484-3490 \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 13 separate duplicated blocks between them, totalling at least 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/embedding_loaders.rs"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aacf2d5a35916c9ea1e0000c796b979a544ebca69730722e61565f2b96bd12f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-core/src/sampler.rs:1220-1227 | mistralrs-core/src/sampler.rs:1752-1759 | mistralrs-core/src/sampler.rs:1923-1930 \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":1220}}}],"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 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":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 19 separate duplicated blocks between them, totalling at least 362 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/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/inputs_processor.rs:150-157 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:716-723 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:811-818 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"406dd84d54e253496a7558ab1116fa637d04930bbf99f7899363533d35f68949"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:667-674 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1275-1282 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1341-1348 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"03de81ae742a3fc2645f43afd7d8c809e98f3a7fb0f76ba7f28bc509c8df8c41"}},{"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 43 separate duplicated blocks between them, totalling at least 650 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/text.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"893222ae37a3d355b9b52d8c5e095f64f7aa32348643b0f93ea1a4967d6fbf73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-quant/src/cutile/fp8_w8a8.rs:580-587 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:902-909 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:300-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 8 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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_w8a8.rs"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fc17b12c2bfbc49a4d214bf7c659c86118c077031b20406285959898bb30219"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-quant/src/cutile/fp8_w8a8.rs:582-589 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:904-911 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1181-1188 \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 8 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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_w8a8.rs"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"370f4e638765c8e97899877bb8cccd7c852f33616602fb7303b3f2bb246f486c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-quant/src/gguf/fast_mmvq.rs:820-827 | mistralrs-quant/src/gguf/fast_mmvq.rs:875-882 | mistralrs-quant/src/gguf/fast_mmvq.rs:930-937 \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_mmvq.rs"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"af777cdd41361ba5c126dd777223d63b646ceee5d0e59fdd020712a51ccb43d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-quant/src/gguf/mod.rs:415-422 | mistralrs-quant/src/gptq/gptq_cpu.rs:21-28 | mistralrs-quant/src/gptq/gptq_cuda.rs:338-345 \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":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda5e68854990c8dc5cd7780e40244be4fb30d09a4c60be089df21304a846c52"}},{"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:394-401 | mistralrs-quant/src/afq/ops.rs:441-448 \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 2): mistralrs-cli/src/commands/run/mod.rs:144-151 | mistralrs-cli/src/commands/run/mod.rs:173-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/run/mod.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"27dce24df27059d8e8a84408088a5d5b7b0574bdb54865904c007a6c0c03378d"}},{"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."},"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/cuda/gdn.rs:2748-2755 | mistralrs-core/src/cuda/gdn.rs:2758-2765 \u2014 both copies are in the same file, so extract the block 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":2748}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e43c6889eae2b19b671acf265f838cdc5fa1fa87a656c1601c1db8e4b9a4fa"}},{"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."},"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:334-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."},"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:1470-1477 | mistralrs-core/src/gguf/normal_config.rs:2090-2097 \u2014 both copies are in the same file, so extract the block 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":1470}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2a9e427665d5194aba27985b344280fbec2437b8fac2f0cb45dc46a53198dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/kv_cache/hybrid_cache.rs:1161-1168 | mistralrs-core/src/kv_cache/hybrid_cache.rs:1994-2001 \u2014 both copies are in the same file, so extract the block 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":1161}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff453d44181f467ae5ae3efc944c13d4a68f46f3ec62449f174ec0ec754e459"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/kv_cache/hybrid_cache.rs:1228-1235 | mistralrs-core/src/kv_cache/hybrid_cache.rs:2058-2065 \u2014 both copies are in the same file, so extract the block 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":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"8804e1df975e2c3e95109f73bab8591041fbe9edc3ad448d932d0a5495fa0492"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/layers.rs:839-846 | mistralrs-core/src/layers.rs:2175-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/layers.rs"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf243a0938c102e32bd703959a13d4522eb4d0ec83da10c9bfa31ba7d858ae94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/layers.rs:1591-1598 | mistralrs-core/src/layers.rs:1902-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/layers.rs"},"region":{"startLine":1591}}}],"partialFingerprints":{"codehealthFindingId/v1":"258c0ec3e431fcae62d0334c775afe2af11950f2a9e792627ec293f0b2a6aca4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/lora/loralinear.rs:136-143 | mistralrs-core/src/lora/qloralinear.rs:181-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 7 separate duplicated blocks between them, totalling at least 142 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/lora/loralinear.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"71d98068c74d0e412a612b28ed5479d64618c0fd7a40d1ac67106e4980408a70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20138 lines \u00D7 3): mistralrs-core/src/models/quantized_llama.rs:86-93 | mistralrs-core/src/xlora_models/quantized_llama.rs:227-234 | mistralrs-core/src/xlora_models/quantized_phi3.rs:182-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 5 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-core/src/models/quantized_llama.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2af87fa3e8b94911c47e7e4b985aac04a74d821b8313cf4554ae30e2a5b5721"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/moe/experts/backends.rs:1399-1406 | mistralrs-core/src/moe/experts/backends.rs:1465-1472 \u2014 both copies are in the same file, so extract the block 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/moe/experts/backends.rs"},"region":{"startLine":1399}}}],"partialFingerprints":{"codehealthFindingId/v1":"0158e997af9dbb1c05efb97502d6ad282c91a886a7ded47767ae6f2712685da3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/ops.rs:588-595 | mistralrs-core/src/ops.rs:750-757 \u2014 both copies are in the same file, so extract the block 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":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"463ad8a40832d4702e2e05025e802667042a5fcff87facdc93d5e70524c96885"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/ops.rs:2041-2048 | mistralrs-core/src/ops.rs:2174-2181 \u2014 both copies are in the same file, so extract the block 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":2041}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b32e3b611fbed140203c968ec4fc7133aee841d0b5f3b4bdf455cee2d71af0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20138 lines \u00D7 5): mistralrs-core/src/ops.rs:2203-2206 | mistralrs-core/src/ops.rs:3939-3946 | mistralrs-core/src/ops.rs:4066-4073 | 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/ops.rs"},"region":{"startLine":2203}}}],"partialFingerprints":{"codehealthFindingId/v1":"10579d220008351f7818d825e5f2e86904dc0a540b014f8c1be8c8704d8abaf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/ops.rs:6601-6608 | mistralrs-core/src/ops.rs:6673-6680 \u2014 both copies are in the same file, so extract the block 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":6601}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f34b2c0d568a5d8496b05eb2ee10729b1e39f45e89b7676a93abb9ceffc6f42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/paged_attention/cache_engine.rs:389-396 | mistralrs-core/src/paged_attention/cache_engine.rs:427-434 \u2014 both copies are in the same file, so extract the block 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/cache_engine.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a44b708321839a36d1944c31b58b297d05c1c2664cff8ed64e0d485443d7430"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/pipeline/chat_template.rs:509-516 | mistralrs-core/src/pipeline/chat_template.rs:580-587 \u2014 both copies are in the same file, so extract the block 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/chat_template.rs"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b8f80b3283fc32af211d636cbd53205ed5cdd23720b4951f5dfb9e1c289d54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/pipeline/cuda_graph.rs:687-694 | mistralrs-core/src/pipeline/cuda_graph.rs:697-704 \u2014 both copies are in the same file, so extract the block 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/cuda_graph.rs"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c766d4b5f97c1a6296debf478f52cde23ccb111ce713b4a86d0661ebab86311"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): mistralrs-core/src/pipeline/gguf.rs:793-800 | mistralrs-core/src/pipeline/gguf.rs:925-931 \u2014 both copies are in the same file, so extract the block 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/gguf.rs"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"d05b9d3ffb52394fd063d1a1a5be3e30920ff3023c7f08e45a6623a364391701"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/auto_device_map.rs:244-251 | mistralrs-core/src/pipeline/loaders/auto_device_map.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/auto_device_map.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c85c7bf89b7304e072451696e1be6929d0b89092e745243b38be850fd6b513b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2472-2479 | mistralrs-core/src/pipeline/normal.rs:2147-2154 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":2472}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e6803f1aa6e4bf73bc74b5e12f405d3765f3f1afa22558afd7b280efbaa87d"}},{"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:147-154 | mistralrs-core/src/utils/memory_usage.rs:181-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/utils/memory_usage.rs"},"region":{"startLine":147}}}],"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 (7\u20138 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:503-509 | mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:523-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 9 separate duplicated blocks between them, totalling at least 138 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/inputs_processor.rs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"71c675b46b5b98af98927fc540690ff4ca73c7a0a6e6a78316e02ee400dc4e54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:249-256 | mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:514-521 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/gemma4/inputs_processor.rs"},"region":{"startLine":249}}}],"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":"d15953e081fda735d0a5a68d107c1463fd046df974bbc177e5cb97a94803cab3"}},{"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."},"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 263 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/qwen2_5_vl/text.rs:530-537 | mistralrs-core/src/vision_models/qwen2vl/text.rs:532-539 \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 43 separate duplicated blocks between them, totalling at least 650 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/text.rs"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a88dc65cc86313115f8e1c078ef3d48803de99d4f57ba51677c48a0a33be2e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:171-178 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:142-149 \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 18 separate duplicated blocks between them, totalling at least 176 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":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"5727ca00420e54e1ffc0cc995513476e07fa6d9d7a3b6eaf0db5f65e238b5a1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:425-432 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:389-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 18 separate duplicated blocks between them, totalling at least 176 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":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"c43278865afb7eb998794966203f2ac4589be35065c006d6967616c38f121624"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:235-242 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:354-361 \u2014 \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_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 52 separate duplicated blocks between them, totalling at least 1117 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/qwen2vl/inputs_processor.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f1ba86fccf400e85977fb3e2201dcb6a857d2931d18276e811b3dcb9b98380e"}},{"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:594-601 \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 4 separate duplicated blocks between them, totalling at least 44 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/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/qwen3_5/speculative.rs:687-694 | mistralrs-core/src/vision_models/qwen3_5/speculative.rs:822-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/qwen3_5/speculative.rs"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"8477106f806e4ab20c52d2b938258c05a231a79e50f2f731641715e74993ccd5"}},{"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."},"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 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/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/llama.rs:418-425 | mistralrs-core/src/xlora_models/phi2.rs:557-564 \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 183 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/llama.rs"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"4657bf9fade993783aaf360a66f808cc6e37efff76a01d14c1e4813bcc5b1e05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/metal/gdn.rs:93-100 | mistralrs-core/src/metal/ssm.rs:90-97 \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 7 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. If that is what happened, the fix is to keep one copy and have the other 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":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e7a02275bef56ca940a6a837af2023515ee8c41ee1c8bd953e0a9e5299ebc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/metal/gdn.rs:275-282 | mistralrs-core/src/metal/gdn.rs:551-558 \u2014 both copies are in the same file, so extract the block 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":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc1b0cf207ec46e425460000ccbb562530dd62744f5422d9da88a7bc9aadf41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/metal/gdn.rs:406-413 | mistralrs-core/src/metal/gdn.rs:445-452 \u2014 both copies are in the same file, so extract the block 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":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"8990e552a6612e1be66dad4267ef86e03bd63d8f7f877134bc3c40e90c9740f5"}},{"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."},"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/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."},"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."},"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-mcp/src/client.rs:441-448 | mistralrs-mcp/src/client.rs:595-601 \u2014 both copies are in the same file, so extract the block 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/client.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5b0393c695aa317e4b1576f678bce1a98a3d4a5852d336a1762c1cd0fd3888"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:27-34 | mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.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-paged-attn/src/cuda/backend/flash_attn_sinks.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"39216ffc56eaa575ee5abfe9858d285409d82b8b349f6970b2d7111a5061edd5"}},{"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."},"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:2083-2090 \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 5 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. If that is what happened, the fix is to keep one copy and have the other 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:219-226 | mistralrs-quant/src/blockwise_fp8/mma.rs:227-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/blockwise_fp8/mma.rs"},"region":{"startLine":219}}}],"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 6 separate duplicated blocks between them, totalling at least 49 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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:2182-2189 | mistralrs-quant/src/blockwise_fp8/ops.rs:2192-2199 \u2014 both copies are in the same file, so extract the block 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":2182}}}],"partialFingerprints":{"codehealthFindingId/v1":"1597d5bcad2de415e5fca677dfecf39f7f4e87f5f19e2b915b770827a49df675"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_matmul.rs:522-529 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:816-823 \u2014 both copies are in the same file, so extract the block 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":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8bbf4718aa1ba79bf2c31d0bdeef07b1c8ff6c25bb3e55807a889da6b6bc61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/cutile/routed_lora.rs:1623-1630 | mistralrs-quant/src/cutile/routed_lora.rs:1690-1697 \u2014 both copies are in the same file, so extract the block 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":1623}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8adaa587e3fce7ea264de4919c5b195294462eb289e5ca50fae5bfa15facac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmq.rs:904-911 | mistralrs-quant/src/gguf/fast_mmq.rs:1388-1395 \u2014 both copies are in the same file, so extract the block 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":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca79c4d51edecdbf1dc3e633eec9c883aa18689f04385f8f01a35d6c59f250c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/hqq/mod.rs:381-388 | mistralrs-quant/src/hqq/mod.rs:538-545 \u2014 both copies are in the same file, so extract the block 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/hqq/mod.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"c157b18836e84dd2720df1c4d00c5a55fe2c43c2a75cbec19726c433e62832ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/lib.rs:638-645 | mistralrs-quant/src/lib.rs:657-664 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/lib.rs"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"001035959c4f645bf4cdb43e3902db84f6fe45a242526ff30b87dd3a2fc05f23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/lib.rs:2291-2298 | mistralrs-quant/src/lib.rs:2402-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/lib.rs"},"region":{"startLine":2291}}}],"partialFingerprints":{"codehealthFindingId/v1":"60721493c94d4a693a172dc6d6f42d841aa8d802dbf0c7e1d16284afc1efa336"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/lora/dynamic/moe_cuda.rs:827-834 | mistralrs-quant/src/lora/dynamic/moe_cuda.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/lora/dynamic/moe_cuda.rs"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ae8674f7b823c27df631a230dbac5c72c45fd1e95d3c2fb5dbdde8b829e3d7"}},{"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."},"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/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."},"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."},"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":2230}}}],"partialFingerprints":{"codehealthFindingId/v1":"571950f28e95a81d1fc5bcdbbff60329c9b2c309fd13f642eb0867c4b80a2c6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/afq/ops.rs:149-156 | mistralrs-quant/src/afq/ops.rs:404-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/afq/ops.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"532f7e6e955872390406c4ec242cbf3d75034ce38d88a9dc3e92bfd1c966e805"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/afq/ops.rs:1650-1657 | mistralrs-quant/src/afq/ops.rs:1725-1732 \u2014 both copies are in the same file, so extract the block 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":1650}}}],"partialFingerprints":{"codehealthFindingId/v1":"d55af970039551c9cdb325137fb12ee0901cbb18ebc8921ba504d76b432bcda9"}},{"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:438-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/mxfp4/ops.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaca09edf78c34b1d6c17fe4c8c351beb6df38c9d039d4956f7b0e7d0d2336d4"}},{"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:525-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/mxfp4/ops.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba4a2069f826ae9b7d77e428ba0e465890b4ff6ae21c4ae0dd91b676235f42f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/mxfp4/ops.rs:441-448 | mistralrs-quant/src/mxfp4/ops.rs:528-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/mxfp4/ops.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"01677e037fd17c28511be89b425d5fd255e7db9d05745ced145aba97be9a956e"}},{"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:259-266 \u2014 both copies are in the same file, so extract the block 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":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb89780adedcfea46ebfd94d16ae857efe7e7df38f7e0f82fcc3f8a9a763bec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20138 lines \u00D7 6): mistralrs-quant/src/cutile/nvfp4_gemv.rs:119-126 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:223-230 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:140-143 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:293-296 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:555-558 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:849-852 \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 8 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/nvfp4_gemv.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f2838b50a17feb8ec0b5467d09ab3ce08b02d34726b569fb4c63bea6d8fbfeb"}},{"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."},"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:1306-1313 | mistralrs-server-core/src/chat_completion.rs:1317-1324 \u2014 both copies are in the same file, so extract the block 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":1306}}}],"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."},"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."},"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 36): 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/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:195-201 | 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:189-195 | mistralrs-core/src/vision_models/gemma4/text.rs:823-829 | 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/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.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/gemma.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"460701a323befdedbac8d2673c1b932c1f068691d47b92eb53d6b286d886bd93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 33): 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:1608-1616 | 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:268-276 | 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:299-307 | 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:398-406 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:267-275 | 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/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.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/gemma.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"6378906b27b660a7490358de0bb86ca4d479a99a9000ed83ce765159829a08ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 28): 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:1613-1619 | 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:273-279 | 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:297-303 | mistralrs-core/src/vision_models/gemma4/text.rs:781-787 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:126-132 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:304-310 | 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/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.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/gemma.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b16ca7d59d975d937ef1499e46b899b02786b40193edf39d2bee3a9a8caeae"}},{"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:208-213 | 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 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/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:821-827 | mistralrs-core/src/models/deepseek3.rs:884-890 | mistralrs-core/src/models/glm4_moe.rs:721-727 | mistralrs-core/src/models/glm4_moe_lite.rs:831-837 | mistralrs-core/src/models/mixtral.rs:418-424 | mistralrs-core/src/models/phi3.rs:421-427 | mistralrs-core/src/models/qwen2.rs:446-452 | mistralrs-core/src/vision_models/gemma3/text.rs:447-453 | mistralrs-core/src/vision_models/gemma3n/text.rs:1337-1343 | mistralrs-core/src/vision_models/gemma4/text.rs:1607-1615 | mistralrs-core/src/vision_models/muse_glimmer/text.rs:441-447 | mistralrs-core/src/vision_models/phi3/mod.rs:1216-1222 | mistralrs-core/src/vision_models/phi4/mod.rs:337-343 | 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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3aec1b3b458f810f83d6b1361d3ba7eca44a1c07f37201832f874abbdee5db4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 13): mistralrs-core/src/models/gemma.rs:312-318 | mistralrs-core/src/models/gpt_oss.rs:682-689 | mistralrs-core/src/models/hunyuan_v1_dense.rs:339-345 | mistralrs-core/src/models/hunyuan_v1_moe.rs:829-835 | mistralrs-core/src/models/mistral.rs:360-366 | mistralrs-core/src/models/mixtral.rs:369-375 | mistralrs-core/src/models/phi3.rs:373-379 | mistralrs-core/src/models/phi3_5_moe.rs:444-450 | mistralrs-core/src/models/qwen3.rs:345-351 | mistralrs-core/src/models/qwen3_moe.rs:522-528 | mistralrs-core/src/models/starcoder2.rs:369-375 | mistralrs-core/src/vision_models/phi3/mod.rs:464-470 | mistralrs-core/src/vision_models/phi4/mod.rs:294-300 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gpt_oss.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/gemma.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"e51dde1cfb09ccd9500788d5b1d094eaca3f521d0682ee02fc3e3b064b5f4e80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 12): mistralrs-core/src/embedding_models/qwen3_embedding.rs:476-482 | mistralrs-core/src/models/deepseek2.rs:988-995 | mistralrs-core/src/models/deepseek2.rs:1028-1035 | mistralrs-core/src/models/deepseek3.rs:1051-1058 | mistralrs-core/src/models/deepseek3.rs:1092-1099 | mistralrs-core/src/models/glm4_moe_lite.rs:1003-1010 | mistralrs-core/src/models/glm4_moe_lite.rs:1046-1053 | mistralrs-core/src/models/hunyuan_v1_dense.rs:581-587 | mistralrs-core/src/models/qwen3.rs:580-586 | mistralrs-core/src/models/qwen3_moe.rs:764-770 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:606-613 | 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":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43fa5b736ac4e12b4804db9ab0c958d4ce34433bbcfe9213974c48b06a02b2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 12): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1319-1325 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2300-2306 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2625-2631 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2967-2973 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3274-3280 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3953-3959 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4707-4713 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:733-739 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1157-1163 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1385-1391 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2013-2019 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5167-5173 \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 32 separate duplicated blocks between them, totalling at least 426 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1319}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb14c1d5a312454d10bd091d067191c959f826b5f5223ffb1f14970f3c2b6963"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 10): 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/gpt_oss.rs:725-731 | mistralrs-core/src/models/mixtral.rs:417-423 | 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:1336-1342 \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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e54fbff21779e5c08003155b5bcf1ca365e9b92a7e2bd987510f1f15552b3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 8): mistralrs-core/src/vision_models/qwen3_5/mod.rs:190-196 | mistralrs-core/src/vision_models/qwen3_5/mod.rs:253-259 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:175-181 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:238-244 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:700-706 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:777-783 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:145-151 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:222-228 \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 23 separate duplicated blocks between them, totalling at least 408 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":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e8eee5a4c2abf1ced29b2d6b1a53b2dbfe924ef17ee410ba25022a55784641a"}},{"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:523-529 | mistralrs-core/src/xlora_models/mistral.rs:489-495 | mistralrs-core/src/xlora_models/mixtral.rs:620-626 | mistralrs-core/src/xlora_models/phi2.rs:471-477 | mistralrs-core/src/xlora_models/starcoder2.rs:477-483 \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 491 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12b368e4c5d95d61296a724d84f6d71248fe39f91a8b00673a3ce728ffb0f16"}},{"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:3628-3634 | mistralrs-core/src/layers.rs:3690-3696 \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/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/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."},"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-core/src/metal/gdn.rs:151-157 | mistralrs-core/src/metal/gdn.rs:265-271 | mistralrs-core/src/metal/gdn.rs:361-367 | mistralrs-core/src/metal/gdn.rs:542-548 | mistralrs-core/src/metal/ssm.rs:173-179 \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 7 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. If that is what happened, the fix is to keep one copy and have the other 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":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f33ce7502428c8fc46572fe2989dbbc1a63170a89ae0377f5fc2f99752f42b6"}},{"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."},"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 (7 lines \u00D7 4): mistralrs-core/src/ops.rs:1116-1122 | mistralrs-core/src/ops.rs:1345-1351 | mistralrs-core/src/ops.rs:2039-2045 | mistralrs-core/src/ops.rs:2172-2178 \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":1116}}}],"partialFingerprints":{"codehealthFindingId/v1":"518142f08e2b47e0dc751a9ff1ccceced44216752f6db3360937ee9e21c9c6cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): mistralrs-core/src/ops.rs:4465-4471 | mistralrs-core/src/ops.rs:5006-5012 | mistralrs-core/src/ops.rs:5278-5284 | mistralrs-core/src/ops.rs:5701-5707 \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":4465}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d62eb483d08e6255719792142d5806f47bdad3060e198e71eeb780b3eedab13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): mistralrs-core/src/vision_models/qwen2_5_vl/text.rs:529-535 | mistralrs-core/src/vision_models/qwen2vl/text.rs:531-537 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:516-522 | 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 43 separate duplicated blocks between them, totalling at least 650 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/text.rs"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"767ce993591ae919c5cf1433120c377ff3425807c0d1ac648397ec39078d4848"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): mistralrs-core/src/vision_models/qwen3_5/mod.rs:393-399 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:380-386 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:965-971 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:410-416 \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 23 separate duplicated blocks between them, totalling at least 408 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":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ce0af8a3567ca26ec55d2c6b6b15e10fea2e10311a9aa0b5ea2cd44cc5a43d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): mistralrs-core/src/vision_models/qwen3_5/text.rs:2393-2399 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:801-807 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:569-575 | 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 416 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":2393}}}],"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:2641-2647 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:902-908 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:558-564 | 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 416 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":2641}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c3a0991424760cb552cc520d8c40dd617fb140382a01b4516451310c6aa68fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): mistralrs-quant/src/blockwise_fp8/mod.rs:1044-1050 | mistralrs-quant/src/pertensor_fp8/mod.rs:632-638 | mistralrs-quant/src/unquantized/mod.rs:578-584 | mistralrs-quant/src/vector_fp8/mod.rs:212-218 \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 9 separate duplicated blocks between them, totalling at least 217 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/mod.rs"},"region":{"startLine":1044}}}],"partialFingerprints":{"codehealthFindingId/v1":"90fd79390743bb24db3e160b6ca5a0946f204f0f80a33c42f6cf4da12d5984c2"}},{"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:406-412 \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 6 separate duplicated blocks between them, totalling at least 49 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d2080a60c872d2e2d828e560c20b3e81a6bb1b4031c4215836cf7cef5a2e13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): mistralrs-quant/src/cutile/fp8_gemm.rs:340-346 | mistralrs-quant/src/cutile/fp8_w8a8.rs:583-589 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:905-911 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:1182-1188 \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 10 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"49710f1704603b2df63ce9b29ad16233b4061e9587d66d48e1bc44b00cb54c2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): mistralrs-quant/src/cutile/nvfp4_glu.rs:57-63 | mistralrs-quant/src/cutile/nvfp4_glu.rs:214-220 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:462-468 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:756-762 \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 10 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. If that is what happened, the fix is to keep one copy and have the other 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":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c636d0ca29ac1ada15f9727cb3c15cf171a91532c09adba30eb3c090e1c9a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): mistralrs-quant/src/cutile/nvfp4_matmul.rs:362-368 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:460-466 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:656-662 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:754-760 \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/nvfp4_matmul.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d53cf67a976ac390ae823c1e6a468d4d28c6e0668446a4dae20df0815b4a5a"}},{"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:440-446 | mistralrs-quant/src/mxfp4/ops.rs:527-533 \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/mxfp4/ops.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c11c301758870fcc6749bbc7d6bae321dcefaf02f07a627751afe187f70209"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-core/src/models/gemma2.rs:588-594 | mistralrs-core/src/vision_models/gemma3/text.rs:760-766 | mistralrs-core/src/vision_models/gemma3n/text.rs:1923-1929 \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 30 separate duplicated blocks between them, totalling at least 362 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/gemma2.rs"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"170c850800a0f3dd0ba6c2828c04ff5a4e919782d594f2d4c69d23fb592c265a"}},{"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:387-393 | 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."},"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:165-170 | mistralrs-core/src/pipeline/gguf.rs:1274-1280 | mistralrs-core/src/pipeline/speech.rs:267-272 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/diffusion.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cee5390a36e36f4ad14e02993fd8f0a377c65f89b9843631170aed55c39fc08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-core/src/pipeline/embedding.rs:606-612 | mistralrs-core/src/pipeline/multimodal.rs:1339-1345 | mistralrs-core/src/pipeline/normal.rs:1361-1367 \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 11 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c2e9716d9cfce9071a6a5caef7120e3bf46371cbd0b273d0480b761fbb85ec5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-core/src/pipeline/inputs_processor.rs:1101-1107 | mistralrs-core/src/pipeline/inputs_processor.rs:1118-1124 | mistralrs-core/src/pipeline/inputs_processor.rs:1198-1204 \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/pipeline/inputs_processor.rs"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"20561591fb855087acd6eadabf617278ff91f1b1112da568e3ac92f979979723"}},{"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."},"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 (7 lines \u00D7 3): mistralrs-core/src/speech_models/dia/model.rs:335-341 | mistralrs-core/src/speech_models/dia/model.rs:594-600 | mistralrs-core/src/speech_models/dia/model.rs:607-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":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f8e2c46c198288967ccc2fb459bb5c0edc4cc957dce8efe5954fda6ffad729"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-core/src/vision_models/gemma3/inputs_processor.rs:408-414 | mistralrs-core/src/vision_models/idefics3/inputs_processor.rs:448-454 | mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:280-286 \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 9 separate duplicated blocks between them, totalling at least 138 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/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/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 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"363905fe0c976034c66839071953d4c65a63feebb3387a582d44b9319d8a45be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-core/src/vision_models/idefics2/mod.rs:698-704 | mistralrs-core/src/vision_models/idefics3/vision.rs:517-523 | mistralrs-core/src/vision_models/siglip.rs:540-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 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"2389e5012c6318ab4e72d73308f0b80b29b53affee17edaad239a589c021bfd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-core/src/vision_models/qwen3_5/text.rs:1473-1479 | mistralrs-core/src/vision_models/qwen3_5/text.rs:1502-1508 | mistralrs-core/src/vision_models/qwen3_5/text.rs:1691-1697 \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/qwen3_5/text.rs"},"region":{"startLine":1473}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb147f0e0575bba068a3804d364553db890c5a649965f08efbdcff9ed8663c4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-paged-attn/src/cuda/backend/flashinfer.rs:579-585 | mistralrs-paged-attn/src/cuda/backend/gather_kv.rs:109-115 | mistralrs-paged-attn/src/metal/backend/gather_kv.rs:66-72 \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 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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:37-43 | mistralrs-paged-attn/src/metal/backend/mod.rs:14-20 \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-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:424-430 | mistralrs-paged-attn/src/metal/kernels/mod.rs:567-573 | mistralrs-paged-attn/src/metal/kernels/mod.rs:646-652 \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-paged-attn/src/metal/kernels/mod.rs"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e20ade8be7686c2d4c7017a310afc7268cf322975903a06c579f93d0215957f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-pyo3/src/util.rs:242-248 | mistralrs-pyo3/src/util.rs:296-302 | mistralrs-pyo3/src/util.rs:356-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-pyo3/src/util.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"7beefd35801ef286a253fa74586c114e7c0faaf48b4d13e38ddc91d640de087f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-quant/src/blockwise_fp8/mod.rs:302-308 | mistralrs-quant/src/blockwise_fp8/mod.rs:348-354 | mistralrs-quant/src/blockwise_fp8/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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e0f7c46cde664b975492ce64378abb6efa031d6b2df481c379283ea10eee132"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-quant/src/cutile/gdn_prefill.rs:195-201 | mistralrs-quant/src/cutile/gdn_prefill.rs:351-357 | mistralrs-quant/src/cutile/gdn_prefill.rs:365-371 \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/cutile/gdn_prefill.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc14dc5fa8e12419487a7cddb99ee44ac0d3af17ea65936a7ee5f0fd36bfd38a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-quant/src/lora/dynamic/moe_cuda.rs:1028-1034 | mistralrs-quant/src/lora/dynamic/moe_cuda.rs:1047-1053 | mistralrs-quant/src/lora/dynamic/moe_cuda.rs:1066-1072 \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/lora/dynamic/moe_cuda.rs"},"region":{"startLine":1028}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd13b1cc94c405eed2d3732dafdec8bee3740e19afa78630695a1eec1b6ced7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-quant/src/lora/dynamic/moe_cuda.rs:1091-1097 | mistralrs-quant/src/lora/dynamic/moe_cuda.rs:1111-1117 | mistralrs-quant/src/lora/dynamic/moe_cuda.rs:1131-1137 \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/lora/dynamic/moe_cuda.rs"},"region":{"startLine":1091}}}],"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."},"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 3): mistralrs-quant/src/afq/ops.rs:1975-1980 | mistralrs-quant/src/afq/ops.rs:2093-2098 | mistralrs-quant/src/afq/ops.rs:2212-2218 \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":1975}}}],"partialFingerprints":{"codehealthFindingId/v1":"54a43862160d946a3ced166fe9b1ca7ef028e06ce3049068e7d0ea283c101963"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs/src/model_builder_trait.rs:729-735 | mistralrs/src/model_builder_trait.rs:1483-1489 \u2014 both copies are in the same file, so extract the block 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":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"d943b67828c97f38f66a4decadc34dd9e67c3f5b1345bfc507a395e576bf98e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): mistralrs-cli/src/commands/bench.rs:165-171 | mistralrs-cli/src/commands/run/mod.rs:135-140 \u2014 before extracting anything, compare \u0060mistralrs-cli/src/commands/bench.rs\u0060 and \u0060mistralrs-cli/src/commands/run/mod.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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"593b3c153dcdb5a09f3abffd2a625f81aff2f46fa3b667cb047999d2f2abb71e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-cli/src/commands/run/interactive.rs:447-453 | mistralrs-cli/src/commands/run/interactive.rs:1719-1725 \u2014 both copies are in the same file, so extract the block 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":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"4270deb7547852f2baecfded36a5e092f76a0a0d4b7b3706e5c2bce6a0bfb23c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20137 lines \u00D7 2): mistralrs-core/src/attention/backends/cpu/full.rs:522-526 | mistralrs-core/src/attention/backends/cpu/full.rs:629-635 \u2014 both copies are in the same file, so extract the block 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":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a470cddbcab11089e57105f45400e8d1c3646225af875618d703e7994c08931"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/attention/mod.rs:409-415 | mistralrs-core/src/attention/mod.rs:432-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/attention/mod.rs"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"194a91f4ebffa567b63ebc279ca1667c826d062f71546791e63396a8d9604ecf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:5636-5641 | mistralrs-core/src/cuda/gdn.rs:5650-5656 \u2014 both copies are in the same file, so extract the block 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":5636}}}],"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."},"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 (7 lines \u00D7 2): mistralrs-core/src/diffusion_models/clip/text.rs:240-246 | mistralrs-core/src/vision_models/clip.rs:271-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 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/diffusion_models/clip/text.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"062f6c2c99d0e5b105d2c4810668a7f215bbed09d54535cd034eb0c6984f7afc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/distributed.rs:175-181 | mistralrs-core/src/distributed.rs:221-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/distributed.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"72f86f25b86dcfac7fee70cc9575ab47b192016de3c8d75b53017937c74cd72d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/kv_cache/hybrid_cache.rs:110-116 | mistralrs-core/src/kv_cache/hybrid_cache.rs:299-305 \u2014 both copies are in the same file, so extract the block 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":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"f776ee326173e5ff90013302e6d7bba78466c0d20ac964a0d2e40deb7b64bf58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/kv_cache/mod.rs:209-215 | mistralrs-core/src/kv_cache/mod.rs:221-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/kv_cache/mod.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa6224c4aace43d3bba595a84dfcc06bdd757ec824076061ebdf8fd24cdaead5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/kv_cache/mod.rs:1468-1474 | mistralrs-core/src/kv_cache/mod.rs:1568-1574 \u2014 both copies are in the same file, so extract the block 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/mod.rs"},"region":{"startLine":1468}}}],"partialFingerprints":{"codehealthFindingId/v1":"4482c3582be3d856bb05b3a09897db30880a263c56def37cfdfd74e8dcf20963"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/layers.rs:793-799 | mistralrs-core/src/layers.rs:800-806 \u2014 both copies are in the same file, so extract the block 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":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c14a9018d0bc00392892c6b586fc2bfa98258d42605e8329b731947d223eb02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/lib.rs:2444-2450 | mistralrs-core/src/lib.rs:2471-2477 \u2014 both copies are in the same file, so extract the block 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/lib.rs"},"region":{"startLine":2444}}}],"partialFingerprints":{"codehealthFindingId/v1":"7602c202770da38c219b40737a1d4885ade95ffc0305c90c03bd39f6f15701bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/lora/loralinear.rs:241-247 | mistralrs-core/src/lora/qloralinear.rs:290-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 7 separate duplicated blocks between them, totalling at least 142 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/lora/loralinear.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb8eb6d4a5bae86e76838f3c43cca37300270fe732e000cdfe9a5471e406f1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/models/glm4.rs:87-93 | mistralrs-core/src/models/glm4_moe.rs:113-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 31 separate duplicated blocks between them, totalling at least 341 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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.rs"},"region":{"startLine":87}}}],"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 43 separate duplicated blocks between them, totalling at least 573 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"211980946b5011dbc4b198d7bac51bc40c5cfb71cf1f08f631c547b5daece6b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/models/qwen3_next.rs:632-638 | 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 27 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"465435054637cf4a7681af6a5661e7667c05438c00e47afb9b2af612c30bd56f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/moe/experts/backends.rs:857-863 | mistralrs-core/src/moe/experts/backends.rs:1013-1019 \u2014 both copies are in the same file, so extract the block 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/moe/experts/backends.rs"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"8395e2347ed556a54c329166988a7063f66e5f53a55a8d6eaef62fc60a6e8952"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/ops.rs:2013-2019 | mistralrs-core/src/ops.rs:2139-2145 \u2014 both copies are in the same file, so extract the block 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":2013}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f3653c6506d903dfa6703d13f129fc49494619a60746a22ef3ee622337fed2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/ops.rs:4629-4635 | mistralrs-core/src/ops.rs:6031-6037 \u2014 both copies are in the same file, so extract the block 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":4629}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a1eda6fc666ab61c49e82d8ed7e1852939f9792b788913d1faa3c93fd0f9f9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/ops.rs:5356-5362 | mistralrs-core/src/ops.rs:5792-5798 \u2014 both copies are in the same file, so extract the block 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":5356}}}],"partialFingerprints":{"codehealthFindingId/v1":"076861baafa44a434bfb1aa0913f6fbfe9ba57d3c66581ff791e8c8726807703"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/pipeline/cuda_graph.rs:2239-2245 | mistralrs-core/src/speculative/dflash.rs:1640-1646 \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/cuda_graph.rs"},"region":{"startLine":2239}}}],"partialFingerprints":{"codehealthFindingId/v1":"593eebe27b48c9f001ec18e6c22d0bb240cc61994f0e108f18434906eb44a30e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/pipeline/embedding.rs:262-268 | mistralrs-core/src/pipeline/gguf.rs:1281-1287 \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/pipeline/embedding.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0f5a785b00166588054135d84487c9f1a3994a7ac4c4cb722f9807eb94fed61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/pipeline/inputs_processor.rs:883-889 | mistralrs-quant/src/distributed/layers.rs:2807-2814 \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/inputs_processor.rs"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea2453976a0b310ee57a9b96456ca22815b46e307dea557f81ae4a44da481ef9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/speculative/cache.rs:310-316 | mistralrs-core/src/speculative/paged_rows.rs:257-263 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/speculative/cache.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a3a6642d2618de989cfbdd20852422beafb1c7549eb50862c060b2e8e67a8d5"}},{"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:866-872 \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/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:893-899 \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/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/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."},"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."},"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:1262-1268 | mistralrs-core/src/vision_models/gemma4/text.rs:1534-1540 \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 8 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/gemma3n/text.rs"},"region":{"startLine":1262}}}],"partialFingerprints":{"codehealthFindingId/v1":"f41eb00d38767cfea1510445188f235537e26aff3eefe48cd4bd32a83f057144"}},{"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."},"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 156 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/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."},"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 18 separate duplicated blocks between them, totalling at least 176 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":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d3bee23655cbcaa9fff7cafe5739f838888070a51c211f433c22f2f6e1a6fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/xlora_models/phi3.rs:248-254 | 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 5 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. If that is what happened, the fix is to keep one copy and have the other 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/phi3.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4eede3041f9fe295cb4ac926ce9289fce9ef84d6c90592af2313d2f0bde8e5c"}},{"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/attention/backends/cpu/avx.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"8656878ba81f1c50e944804ed8fe6798d5b809bfc5cd036e3af55f7467be0885"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/metal/gdn.rs:368-374 | mistralrs-core/src/metal/ssm.rs:185-191 \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 7 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. If that is what happened, the fix is to keep one copy and have the other 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":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"77c4a84616d6f77ca50245bc39828986ff7b2031cb032f23aaa31720e7a608bc"}},{"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 (7 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:57-63 | mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:195-201 \u2014 both copies are in the same file, so extract the block 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/flash_attn_sinks.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"814216e5734525ecd6280bb7b484786b078a94971720ca44b462967a67923dd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/afq/mod.rs:418-426 | mistralrs-quant/src/mxfp4/mod.rs:314-320 \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/afq/mod.rs"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a824bd950efa5888c6079db61e7f77d73b62e37035d0ddc8f4f3826bd9353f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/deepgemm.rs:506-512 | mistralrs-quant/src/blockwise_fp8/deepgemm.rs:599-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/blockwise_fp8/deepgemm.rs"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"1197973803e53ef4679da7658f702c9456597016fa2dc008e580ce79c76f8622"}},{"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:436-441 \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 6 separate duplicated blocks between them, totalling at least 49 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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:523-528 \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 6 separate duplicated blocks between them, totalling at least 49 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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:1977-1983 | 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/blockwise_fp8/ops.rs"},"region":{"startLine":1977}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e9274b9ce9a2bdeb4280b9fed6fa76a06b5fea965307a2d796442bc6e7d247"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:946-952 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:1140-1146 \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 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d6135e005bfbf343af50390ca3c95ba8235039947acd6a442d205686cfb8f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_glu.rs:96-102 | mistralrs-quant/src/cutile/nvfp4_glu.rs:253-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/nvfp4_glu.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aba3a1b777e6ffe13acc7760b1a00965aaa2ddcda825b0bc65f48f82c51b92b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_glu.rs:106-112 | mistralrs-quant/src/cutile/nvfp4_glu.rs:263-269 \u2014 both copies are in the same file, so extract the block 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_glu.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec4672cee88693555b6332aa6fa3fcedcb1a62e99f802c73c6297c1f43f9d20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:936-942 | mistralrs-quant/src/distributed/layers.rs:1415-1421 \u2014 both copies are in the same file, so extract the block 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":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"8721f82beab8f27c7a37ae519623820230bdbb943f3a922595a6d47afb94d4bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:1258-1264 | mistralrs-quant/src/distributed/layers.rs:1904-1910 \u2014 both copies are in the same file, so extract the block 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":1258}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0eb787c4bb846466783f32c0ed6577bb0b8dccd97159c3594611282ca05bc30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmq.rs:791-797 | mistralrs-quant/src/gguf/fast_mmq.rs:811-817 \u2014 both copies are in the same file, so extract the block 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":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b950d752b715359eb80fba00146c7524d18d6955eda955798ddf195d614d6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmq.rs:897-903 | mistralrs-quant/src/gguf/fast_mmq.rs:1105-1111 \u2014 both copies are in the same file, so extract the block 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":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"c76495f19c22221ee6175c8b89369824116f21cd5ca47b50e235cb680d125c3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/lib.rs:2521-2527 | mistralrs-quant/src/lib.rs:2533-2539 \u2014 both copies are in the same file, so extract the block 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/lib.rs"},"region":{"startLine":2521}}}],"partialFingerprints":{"codehealthFindingId/v1":"92354ebad9313e73e132888a9162ce0d42e682902e76edb550e93a18575210bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/lora/dynamic/moe_cuda.rs:981-987 | mistralrs-quant/src/lora/dynamic/moe_cuda.rs:1004-1010 \u2014 both copies are in the same file, so extract the block 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/moe_cuda.rs"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a1ae046a1b014bc48fb47f9f539f1c0800dbe5af8b93a84e3fb787a412093e"}},{"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."},"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/rotary/mod.rs:119-125 | mistralrs-quant/src/rotary/mod.rs:394-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/rotary/mod.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f62a08b13f5a1b65f203d3e8934ebbc419e249bccff28e93069d24c6b65d76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/unquantized/mod.rs:305-315 | mistralrs-quant/src/unquantized/mod.rs:332-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/unquantized/mod.rs"},"region":{"startLine":305}}}],"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."},"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."},"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."},"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 (7 lines \u00D7 2): mistralrs-quant/src/utils/ops.rs:1112-1118 | mistralrs-quant/src/utils/ops.rs:1184-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-quant/src/utils/ops.rs"},"region":{"startLine":1112}}}],"partialFingerprints":{"codehealthFindingId/v1":"502a6f2566a8dd3473e997e80c0744b1a6dfe886b07a01b2bba09abf40bbfefa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/utils/ops.rs:1929-1935 | mistralrs-quant/src/utils/ops.rs:1965-1971 \u2014 both copies are in the same file, so extract the block 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":1929}}}],"partialFingerprints":{"codehealthFindingId/v1":"417e8938155c4eab62b7b451939a821f362c1cfc060a3dbdd4733179e880f1bb"}},{"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."},"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 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f7ca9d38d422386597d72304eb45b9585252c86dc215e57419abc9d0054d99"}},{"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:429-435 \u2014 both copies are in the same file, so extract the block 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":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"973cc66004944eafffa921e69e7125cc19979399bc4caa942f2189142614b8bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_gemv.rs:78-84 | mistralrs-quant/src/cutile/nvfp4_gemv.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/nvfp4_gemv.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"de0099b9bf9c73300615505945c1fe77cfda5490b61b769bf874f638ee4f8d04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_gemv.rs:128-134 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:232-238 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/nvfp4_gemv.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"f945c00caa341e9f13e9aacffb69abd4c2f99ee9201f490518ef0f9de9717892"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-server-core/src/anthropic.rs:1871-1877 | mistralrs-server-core/src/chat_completion.rs:1170-1176 \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 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-server-core/src/anthropic.rs"},"region":{"startLine":1871}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c3395fdee3770651c29e5b5ffc7f9d7c60d8224a3970f24fcf3b4356967bc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 38): 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/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:198-203 | 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:192-197 | mistralrs-core/src/vision_models/gemma4/text.rs:826-831 | 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:200-205 | 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/gemma.rs\u0060 and \u0060mistralrs-core/src/models/gemma2.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/gemma.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"385d5aa20910856fe53c9315ff352fdb618c5ba5c38f4002f8f713139a9a06b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 36): mistralrs-core/src/embedding_models/qwen3_embedding.rs:475-480 | mistralrs-core/src/models/deepseek2.rs:987-992 | mistralrs-core/src/models/deepseek2.rs:1027-1032 | mistralrs-core/src/models/deepseek3.rs:1050-1055 | mistralrs-core/src/models/deepseek3.rs:1091-1096 | mistralrs-core/src/models/gemma.rs:500-505 | mistralrs-core/src/models/gemma2.rs:605-610 | mistralrs-core/src/models/glm4.rs:614-619 | mistralrs-core/src/models/glm4_moe.rs:865-870 | mistralrs-core/src/models/glm4_moe.rs:905-910 | mistralrs-core/src/models/glm4_moe_lite.rs:1002-1007 | mistralrs-core/src/models/glm4_moe_lite.rs:1045-1050 | mistralrs-core/src/models/gpt_oss.rs:952-957 | 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:628-633 | mistralrs-core/src/models/mixtral.rs:565-570 | mistralrs-core/src/models/phi3.rs:575-580 | mistralrs-core/src/models/phi3_5_moe.rs:647-652 | mistralrs-core/src/models/phi3_5_moe.rs:666-671 | mistralrs-core/src/models/qwen2.rs:630-635 | mistralrs-core/src/models/qwen3.rs:579-584 | mistralrs-core/src/models/qwen3_moe.rs:763-768 | mistralrs-core/src/models/qwen3_next.rs:1137-1142 | mistralrs-core/src/models/starcoder2.rs:566-571 | mistralrs-core/src/vision_models/llama4/vision.rs:351-356 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:581-586 | 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:567-572 | mistralrs-core/src/vision_models/qwen2vl/text.rs:569-574 | mistralrs-core/src/vision_models/qwen3_5/text.rs:2673-2678 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:930-935 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:605-610 | 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45a0a6d3aefb54ba13091ceec17fb143b2806bf4624092e512ccf293ce9c695"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 15): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1320-1325 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1612-1617 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:1897-1902 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2301-2306 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2626-2631 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:2968-2973 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3275-3280 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3954-3959 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:4708-4713 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:5117-5122 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:734-739 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1158-1163 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1386-1391 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:2014-2019 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5168-5173 \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 32 separate duplicated blocks between them, totalling at least 426 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc8a12be54886f053644e433a67679c05b69a4b9f696ab0733e38d5ba0d920d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 14): mistralrs-core/src/models/gemma.rs:586-591 | mistralrs-core/src/models/gemma2.rs:702-707 | mistralrs-core/src/models/glm4.rs:702-707 | mistralrs-core/src/models/granite.rs:2468-2473 | mistralrs-core/src/models/hunyuan_v1_dense.rs:674-679 | mistralrs-core/src/models/mistral.rs:714-719 | mistralrs-core/src/models/phi2.rs:661-666 | mistralrs-core/src/models/phi3.rs:657-662 | mistralrs-core/src/models/qwen2.rs:716-721 | mistralrs-core/src/models/qwen3.rs:673-678 | mistralrs-core/src/models/starcoder2.rs:652-657 | mistralrs-core/src/vision_models/gemma3/text.rs:928-933 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:674-679 | mistralrs-core/src/vision_models/phi3/mod.rs:1494-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 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/gemma.rs"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef914fe2ec277a5fac72afe68952cc55cda0c9428f68f8ebca69271123081530"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 10): mistralrs-core/src/vision_models/gemma4/mtp.rs:705-710 | 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 491 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":705}}}],"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 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/gemma.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"479ff83f67827f26c6005fec3cdf1e90a7babb62a6eddbd5b008f68b4c16dd39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): mistralrs-core/src/metal/gdn.rs:153-158 | mistralrs-core/src/metal/gdn.rs:267-272 | mistralrs-core/src/metal/gdn.rs:363-368 | mistralrs-core/src/metal/gdn.rs:409-414 | mistralrs-core/src/metal/gdn.rs:448-453 | mistralrs-core/src/metal/gdn.rs:544-549 | mistralrs-core/src/metal/ssm.rs:175-180 \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 7 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. If that is what happened, the fix is to keep one copy and have the other 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":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"53218d071e25a87da57fcce98396f963dc4ca4631562557ff14f8e575c2ef0ff"}},{"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/cuda/backend/fa3.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03163935823c8db7bfde39faaaedaec49a0b47bf6b36e0fcc13e98ea5e5b294"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): mistralrs-core/src/ops.rs:4461-4466 | mistralrs-core/src/ops.rs:4626-4631 | mistralrs-core/src/ops.rs:5001-5006 | mistralrs-core/src/ops.rs:5274-5279 | mistralrs-core/src/ops.rs:5696-5701 | mistralrs-core/src/ops.rs:6025-6030 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/ops.rs"},"region":{"startLine":4461}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f2dc83147cc4432de4b62b3406ec5a18262cb25c96bdafa84ee37c4f1c395ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): mistralrs-core/src/cuda/gdn.rs:1928-1933 | mistralrs-core/src/cuda/gdn.rs:1935-1940 | mistralrs-core/src/cuda/gdn.rs:2768-2773 | mistralrs-core/src/cuda/gdn.rs:5780-5785 | mistralrs-core/src/cuda/gdn.rs:5787-5792 \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/cuda/gdn.rs"},"region":{"startLine":1928}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f98f426ab475f6cb6b132608fa1f9cfbe931ba3f1f4486bf178e2eb1867959"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): mistralrs-core/src/ops.rs:4464-4469 | mistralrs-core/src/ops.rs:4750-4755 | mistralrs-core/src/ops.rs:5005-5010 | mistralrs-core/src/ops.rs:5277-5282 | mistralrs-core/src/ops.rs:5700-5705 \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":4464}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d20608bddc01db874ffc146da219c04c291aafbda79fffc7cf8bad2f8422d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): mistralrs-core/src/metal/gdn.rs:161-166 | mistralrs-core/src/metal/gdn.rs:275-280 | mistralrs-core/src/metal/gdn.rs:368-373 | mistralrs-core/src/metal/gdn.rs:551-556 | mistralrs-core/src/metal/ssm.rs:185-190 \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 7 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. If that is what happened, the fix is to keep one copy and have the other 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":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad93b8d4e0cd178131e3f5b9ddb1060ee733f0505dfebb03d5f84b9bdd070320"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): mistralrs-quant/src/cutile/fp8_gemm.rs:490-495 | mistralrs-quant/src/cutile/fp8_w8a16.rs:799-804 | mistralrs-quant/src/cutile/fp8_w8a8.rs:818-823 | mistralrs-quant/src/cutile/fused_moe.rs:843-848 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:759-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 6 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. If that is what happened, the fix is to keep one copy and have the other 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":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"54ebc3f917d7d2448b8575aa770a4efdd8a4762f3fa585f405d831846edc7b1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): mistralrs-quant/src/hqq/mod.rs:377-382 | mistralrs-quant/src/hqq/mod.rs:392-397 | mistralrs-quant/src/hqq/mod.rs:466-471 | mistralrs-quant/src/hqq/mod.rs:530-535 | mistralrs-quant/src/hqq/mod.rs:553-558 \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":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"96aa3f90f2e07da05ab4c0b5b51e1fd151c0797cdf174aa3071fdbd9b76b5f34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): mistralrs-code-exec/src/lib.rs:463-469 | mistralrs-code-exec/src/lib.rs:530-536 | mistralrs-code-exec/src/shell.rs:201-206 | mistralrs-code-exec/src/shell.rs:260-265 \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 6 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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-code-exec/src/lib.rs"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"3baa3309a4a99c97ecf546e6e19d945cd617fd322e32ac2ab114251d50beef33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): mistralrs-core/src/cuda/gdn.rs:1914-1919 | mistralrs-core/src/cuda/gdn.rs:1921-1926 | mistralrs-core/src/cuda/gdn.rs:5773-5778 | 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":1914}}}],"partialFingerprints":{"codehealthFindingId/v1":"90c111b9b9e44133ead8e5bb7ec963aa0e1067a638cc1e60ca0b3ba649c77a59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): mistralrs-core/src/models/gemma2.rs:572-577 | mistralrs-core/src/models/qwen2.rs:600-605 | mistralrs-core/src/vision_models/gemma3/text.rs:743-748 | mistralrs-core/src/xlora_models/gemma2.rs:645-650 \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 35 separate duplicated blocks between them, totalling at least 413 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/gemma2.rs"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"548a53f4f0418da7294d661273b8ee6c693f262e9d85aa46bc9c06aa602d5116"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): mistralrs-core/src/models/llama.rs:525-531 | mistralrs-core/src/models/smollm3.rs:544-550 | mistralrs-core/src/vision_models/llama4/text.rs:1019-1025 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:511-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 50 separate duplicated blocks between them, totalling at least 696 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":525}}}],"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."},"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/qwen2_5_vl/inputs_processor.rs:1008-1013 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1573-1578 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1702-1707 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1751-1756 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dea13ece4bb3a6f046d9129f94cdf1d0ab476c5da97717c314f340c161e18e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): mistralrs-core/src/vision_models/qwen3_5/mod.rs:179-184 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:164-169 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:688-693 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:133-138 \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 23 separate duplicated blocks between them, totalling at least 408 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":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"3469f989fe1a5d627490600d9aa837e7ede50664707627d0fa95ffc9db9df519"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:28-33 | mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:166-171 | mistralrs-quant/src/utils/ops.rs:2231-2236 | mistralrs-quant/src/utils/ops.rs:2455-2460 \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":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"720174a446f5914874b55ca89c38a3bf5c63134c4bae648aa2e2580e38b5acb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): mistralrs-quant/src/blockwise_fp8/mma.rs:172-177 | mistralrs-quant/src/blockwise_fp8/ops.rs:881-886 | mistralrs-quant/src/blockwise_fp8/ops.rs:1710-1715 | mistralrs-quant/src/cutile/nvfp4_glu.rs:584-589 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/blockwise_fp8/mma.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2ef9e4be974a80462785e5b4230842141e0781342f6bebe9f0b848e8ba4f5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-cli/src/commands/bench.rs:165-170 | mistralrs-cli/src/commands/config.rs:299-304 | mistralrs-cli/src/commands/run/mod.rs:135-140 \u2014 before extracting anything, compare \u0060mistralrs-cli/src/commands/bench.rs\u0060 and \u0060mistralrs-cli/src/commands/run/mod.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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac0f3bf1f36e2d498b8e2430f92473ce7699d1d0e35947ff6043d9240cfa8c3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-core/src/cuda/gdn.rs:1674-1679 | mistralrs-core/src/cuda/gdn.rs:5550-5555 | 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":1674}}}],"partialFingerprints":{"codehealthFindingId/v1":"59bc96537ee9bad1483c96fcabd5fa8d8993f0c8806ef6f29732259e5188aad4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-core/src/cuda/gdn.rs:1917-1922 | mistralrs-core/src/cuda/gdn.rs:2744-2749 | mistralrs-core/src/cuda/gdn.rs:5769-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":1917}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaee850f4c0a7f451d9b9b23b3ee44f077b1a2fe1c5c040c5e759f039bcc2f45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-core/src/cuda/gdn.rs:1924-1929 | mistralrs-core/src/cuda/gdn.rs:2754-2759 | mistralrs-core/src/cuda/gdn.rs:5776-5781 \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":1924}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f1e990eaad4363000d59a7b61a6cbced2ed5dd384134836a1cf837fd9801b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-core/src/embedding_models/qwen3_embedding.rs:454-459 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:523-528 | 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"8be37be130e6d76c0c5e8c657f9c6c2853ff82ccbf2029b152081b1397c12adb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-core/src/layers.rs:1602-1607 | mistralrs-core/src/layers.rs:1765-1773 | mistralrs-core/src/layers.rs:1913-1918 \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":1602}}}],"partialFingerprints":{"codehealthFindingId/v1":"1029dc504bde5c447183ccf02d7c04f51592c904405e25e1abd55fb45121278e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-core/src/models/granite.rs:1567-1572 | 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 134 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":1567}}}],"partialFingerprints":{"codehealthFindingId/v1":"6413253b964c22fc47e7de21f47eee68df5a85df8d760e33dd29031c636c8439"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-core/src/moe/experts/backends.rs:908-913 | mistralrs-core/src/moe/experts/backends.rs:988-993 | mistralrs-quant/src/moe/cutlass.rs:149-154 \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":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"8029754a52d823da3cca2a56ec504c6287ea1090714203785dff1a0b16a82e17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-core/src/pipeline/embedding.rs:261-266 | mistralrs-core/src/pipeline/gguf.rs:1280-1285 | mistralrs-core/src/pipeline/multimodal.rs:679-684 \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 11 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/embedding.rs"},"region":{"startLine":261}}}],"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 5 separate duplicated blocks between them, totalling at least 65 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-core/src/attention/backends/cpu/avx.rs:318-323 | mistralrs-core/src/attention/backends/cpu/neon.rs:386-391 | mistralrs-core/src/attention/backends/cpu/neon.rs:625-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/attention/backends/cpu/avx.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8676c7895e29c472ee6bfa01d1ebbae85777999f0f995cd16034397eadc803"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-quant/src/afq/ops.rs:2368-2373 | mistralrs-quant/src/afq/ops.rs:2488-2493 | mistralrs-quant/src/afq/ops.rs:3014-3019 \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":2368}}}],"partialFingerprints":{"codehealthFindingId/v1":"4422cbb9eff0718073a88f48f2bb46e853dbc9e1718b2ac7a68b4ad74502b0ad"}},{"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."},"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/run/interactive.rs:1503-1508 | mistralrs-server-core/src/chat_completion.rs:496-501 \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/run/interactive.rs"},"region":{"startLine":1503}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4b5f70e0bb9ee8067fe1eaf970b1ba73a07d0b6b542511dcc35b6ab7cdd213"}},{"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."},"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/shell.rs:480-485 | mistralrs-server-core/src/skills.rs:673-678 \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":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"639352cc382743490f26c651315cd2a4451d94ff7d5e3acdf47b749125220d0f"}},{"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 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/attention/backends/cpu/full.rs"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f346ef6e4854f7ce5e31519ef22d83ed4b57ff3df892b65013c6742ea5cb31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/attention/mod.rs:178-183 | mistralrs-core/src/layers_utils.rs:5-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/attention/mod.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb150103cf320620927db3227ab91099108f7c8f7b1c2cb32a6ceac3cdd76c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:1666-1671 | mistralrs-core/src/cuda/gdn.rs:5530-5535 \u2014 both copies are in the same file, so extract the block 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":1666}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a260dd1c668c8f5da19335d6299ce26b91ff8992ec2f8006a830f76f17a548f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:1691-1696 | mistralrs-core/src/cuda/gdn.rs:1735-1740 \u2014 both copies are in the same file, so extract the block 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":1691}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb1e6494cab761975b680739fa0b6154f2d46dd6c848800ab031a5b201a5483"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:1910-1915 | mistralrs-core/src/cuda/gdn.rs:2735-2740 \u2014 both copies are in the same file, so extract the block 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":1910}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e93d115482aea1493eb4088ea56ac3de114e010bbcd80443650065a4c71d99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:4193-4198 | mistralrs-core/src/cuda/gdn.rs:4200-4205 \u2014 both copies are in the same file, so extract the block 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":4193}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e07dba47e5af06542ca40bcbefab72033d53e4d7926b91ad9f3baf11e59498"}},{"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."},"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."},"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:520-525 | mistralrs-core/src/embedding_models/qwen3_embedding.rs:470-475 \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":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"b424709f130f8609219ad9612a87beaa05a24d4d0e1b6220253edbd5871807b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/gdn/backend.rs:1019-1024 | mistralrs-core/src/models/granite.rs:1186-1191 \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/backend.rs"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73116ae22329a7d229cc837c6937170aa2f2b90101ca9851f0b1f2bc35930d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/gguf/gguf_tokenizer.rs:508-513 | mistralrs-core/src/gguf/gguf_tokenizer.rs:616-621 \u2014 both copies are in the same file, so extract the block 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/gguf_tokenizer.rs"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fae7145e92c54f91d862d121e6fa40b1c1416ebc2c546947e4b43387b139bde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/gguf/normal_config.rs:1102-1107 | mistralrs-core/src/gguf/normal_config.rs:1223-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-core/src/gguf/normal_config.rs"},"region":{"startLine":1102}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4605bab07fd7c77bb39fe3023ea1207647f5be5bf97331489e47d25e2860eb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/kv_cache/hybrid_cache.rs:1233-1238 | mistralrs-core/src/kv_cache/hybrid_cache.rs:1834-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/kv_cache/hybrid_cache.rs"},"region":{"startLine":1233}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b8eb2e6ba000dd5effadd8f31869d3f3664e127cdd51cf3ccdf438d4115621"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/models/gemma.rs:465-470 | mistralrs-core/src/models/gemma2.rs:540-545 \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 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/gemma.rs"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a69d0e2312ef111829693533ed08244144419553e2c0661b29289a470483073"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/models/lfm2.rs:1243-1248 | 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 14 separate duplicated blocks between them, totalling at least 141 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f83fca1fa43e6995a28c5997804ada91b771841503e244964f77eece6382bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20136 lines \u00D7 4): mistralrs-core/src/models/granite.rs:1553-1556 | mistralrs-core/src/models/llama.rs:93-98 | mistralrs-core/src/models/smollm3.rs:108-111 | mistralrs-core/src/xlora_models/llama.rs:89-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 20 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/granite.rs"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"e30ebd4454f45c71a83b7dcacceb68db2d380f24fbb343ba5f0711a6da6249e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/moe/experts/backends.rs:1598-1603 | mistralrs-core/src/ops.rs:6455-6460 \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/moe/experts/backends.rs"},"region":{"startLine":1598}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c5670cecd402a8491fa16bb962a51e5f313368664673cd317b281325f717e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/ops.rs:3909-3914 | mistralrs-core/src/ops.rs:4036-4041 \u2014 both copies are in the same file, so extract the block 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":3909}}}],"partialFingerprints":{"codehealthFindingId/v1":"12aebb5c66eb144851655b5c24bcafdd0564f6d3b7b50071b51e7ac400010353"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/ops.rs:5193-5198 | mistralrs-core/src/ops.rs:5624-5629 \u2014 both copies are in the same file, so extract the block 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":5193}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9b8c95248a64072900848a3bbcb356e027fb3d28254c5fcb51dfdce4c4933c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:184-189 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:132-137 \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 32 separate duplicated blocks between them, totalling at least 426 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"d98db823fedde62ddce9e129c6ce3e1490499658d8498f8274f9c846c343f3ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/sequence.rs:2049-2054 | mistralrs-core/src/sequence.rs:2081-2086 \u2014 both copies are in the same file, so extract the block 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/sequence.rs"},"region":{"startLine":2049}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a61adc5bac2cf1a21aba1079a7999df5a8781593570821768e24f2039c45c59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/utils/varbuilder_utils.rs:99-104 | mistralrs-core/src/utils/varbuilder_utils.rs:135-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/utils/varbuilder_utils.rs"},"region":{"startLine":99}}}],"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."},"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:146-151 | mistralrs-core/src/vision_models/gemma3n/audio.rs:155-160 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/gemma3n/audio.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1bb3d42c62ffabab258d35dc0232c378a720da8587489ca2e8cf50784ce674"}},{"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 16 separate duplicated blocks between them, totalling at least 279 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":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"93052c5dddc4534c796d930e0b32a1caa5c27ca00d1f5cd2cbe778d0427f8ac3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/audio_processing.rs:68-73 | mistralrs-core/src/vision_models/gemma4/audio_processing.rs:190-196 \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 38 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":"1b333e0ab9f696c700a14121e97f9ab7769406dbff7f106fc53e4ec929633e0b"}},{"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."},"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 (6 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/audio.rs:263-268 | mistralrs-core/src/vision_models/gemma4/vision.rs:94-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/gemma4/audio.rs"},"region":{"startLine":263}}}],"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."},"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 (6 lines \u00D7 2): mistralrs-core/src/vision_models/idefics3/vision.rs:243-248 | mistralrs-core/src/vision_models/siglip.rs:247-252 \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 263 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":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."},"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 (6 lines \u00D7 2): mistralrs-core/src/vision_models/phi3/mod.rs:751-756 | mistralrs-core/src/vision_models/phi3/mod.rs:948-953 \u2014 both copies are in the same file, so extract the block 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/mod.rs"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e87e2d87e58948abe25cf3cbecd50bbeecb456a88001fe5457b375f367419f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/vision_models/phi4/audio_embedding.rs:306-311 | mistralrs-core/src/vision_models/phi4/image_embedding.rs:795-800 \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 (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 (6 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_5/text.rs:2410-2415 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:814-819 \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 416 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":2410}}}],"partialFingerprints":{"codehealthFindingId/v1":"45da68af408d248c07fcaa73bba5efba3b6c004191de552d6f04e7d795a88a95"}},{"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."},"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:130-135 \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-paged-attn/src/metal/kernels/mod.rs:142-148 | mistralrs-quant/src/metal_kernels/mod.rs:167-172 \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 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/metal/kernels/mod.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5fd352dc00c22923c47cfe8c39c785519805adade7c3a9941e1c6109ef6bfe"}},{"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."},"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-pyo3/src/lib.rs:1772-1777 | mistralrs-pyo3/src/lib.rs:2733-2738 \u2014 both copies are in the same file, so extract the block 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-pyo3/src/lib.rs"},"region":{"startLine":1772}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d6dbc7f01e6b551845a22c14b2b855d2e8e5c24603d3c8ef6674812c3c5f0c4"}},{"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:909-914 \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/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 (6 lines \u00D7 2): mistralrs-quant/src/cublaslt/matmul.rs:426-431 | mistralrs-quant/src/cublaslt/matmul.rs:545-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cublaslt/matmul.rs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"3045f7189749c5487cc31c5063965cc9b536169254b115c6de9416359890f9d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:792-797 | mistralrs-quant/src/cutile/fp8_w8a8.rs:811-816 \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 21 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":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"725c34ae1f0348d50855b94b519a07121c203944c3db910a392147b7f73d8f3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:841-846 | mistralrs-quant/src/cutile/fp8_w8a8.rs:863-868 \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 21 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":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01d60f6e38ab71faa3c723c788faabce0f407f51e00baed88b7f0350596c5d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_matmul.rs:119-124 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:272-277 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/nvfp4_matmul.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac5c513074e4c9079ac0389f2d7dbc53c024e5c5a39393a7e9c33ad3e7162755"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_matmul.rs:391-396 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:685-690 \u2014 both copies are in the same file, so extract the block 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":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8520cf981245a94ad57dbc81ea53156b6960fb1acf23ece740ced4a5ea1380d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/distributed/mod.rs:973-978 | mistralrs-quant/src/distributed/mod.rs:1095-1100 \u2014 both copies are in the same file, so extract the block 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":973}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9785f449fd4edb21e44174b9a5f09bb92ca3b4410de272a71d1ac4f9b42208c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/gguf/cuda.rs:670-675 | mistralrs-quant/src/gguf/cuda.rs:730-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/gguf/cuda.rs"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd8b2204704903e7040f99a87d744d99e8b6471870e6fd4497fbeeab73bb3489"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmvq.rs:351-356 | mistralrs-quant/src/gguf/fast_mmvq.rs:770-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/gguf/fast_mmvq.rs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"917d0ee95550eb7cbfc1b834727cda15e6e52a5928fb7b40b465b71ad256bf86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20136 lines \u00D7 3): mistralrs-quant/src/mxfp4/mod.rs:626-629 | mistralrs-quant/src/mxfp4/mod.rs:732-737 | mistralrs-quant/src/mxfp4/mod.rs:805-810 \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":626}}}],"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."},"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."},"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."},"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:28-33 | mistralrs-quant/src/safetensors.rs:58-63 \u2014 both copies are in the same file, so extract the block 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":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"471638d5e7f9fa7ecc79a534f62ef4ff5f4eb5ce567b919048eb86fd12b6a2f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/safetensors.rs:724-729 | mistralrs-quant/src/safetensors.rs:791-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/safetensors.rs"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2cea6e2dfaa50025737805e95746bbaa6f98a98d027c68bb40845a620844a9"}},{"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."},"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:1067-1072 | mistralrs-server-core/src/mistralrs_for_server_builder.rs:1236-1241 \u2014 both copies are in the same file, so extract the block 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":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"6954e114855144f1c371a3598f501f696e6624f2bd1e1dce4542f81dd0605940"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 13): mistralrs-core/src/models/deepseek2.rs:972-976 | mistralrs-core/src/models/deepseek3.rs:1035-1039 | mistralrs-core/src/models/gemma.rs:485-489 | mistralrs-core/src/models/glm4.rs:599-603 | mistralrs-core/src/models/glm4_moe.rs:850-854 | mistralrs-core/src/models/glm4_moe_lite.rs:987-991 | 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:613-617 | mistralrs-core/src/models/mixtral.rs:550-554 | mistralrs-core/src/models/phi2.rs:561-563 | mistralrs-core/src/models/qwen3.rs:564-568 | 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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5e1ffc17d451d970e54bc743979c7701244a45e853cdd9986b0acfdc4e469d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 9): mistralrs-core/src/layers.rs:842-846 | mistralrs-core/src/layers.rs:900-904 | mistralrs-core/src/layers.rs:917-921 | mistralrs-core/src/layers.rs:2004-2008 | mistralrs-core/src/layers.rs:2178-2182 | mistralrs-core/src/layers.rs:2223-2227 | mistralrs-core/src/layers.rs:2240-2244 | mistralrs-core/src/layers.rs:3035-3039 | mistralrs-core/src/layers.rs:3168-3172 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/layers.rs"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"90797d6ea512e2d9a486f7208aa01cc20afd6ff1aee0f0f154e7a20b7588ea41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): mistralrs-core/src/ops.rs:1116-1120 | mistralrs-core/src/ops.rs:1345-1349 | mistralrs-core/src/ops.rs:1590-1594 | mistralrs-core/src/ops.rs:1832-1836 | mistralrs-core/src/ops.rs:2039-2043 | mistralrs-core/src/ops.rs:2172-2176 | mistralrs-core/src/ops.rs:3912-3916 | mistralrs-core/src/ops.rs:4039-4043 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/ops.rs"},"region":{"startLine":1116}}}],"partialFingerprints":{"codehealthFindingId/v1":"760e33bfaebc64f1ae6036f88144c9c440d8c832a7b3a0cd72b04470e709f836"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): mistralrs-core/src/vision_models/qwen3_5/mod.rs:210-215 | mistralrs-core/src/vision_models/qwen3_5/mod.rs:272-276 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:195-200 | mistralrs-core/src/vision_models/qwen3_5_moe/mod.rs:257-261 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:724-729 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:800-804 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:169-174 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:245-249 \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 23 separate duplicated blocks between them, totalling at least 408 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":210}}}],"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:214-219 | 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/cuda/backend/fa3.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"396c12fbe1e1ffb22d8bdfe088fb04895a062fe3329725d70b19a657ec922768"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): mistralrs-core/src/embedding_models/qwen3_embedding.rs:454-458 | mistralrs-core/src/models/gemma2.rs:572-576 | mistralrs-core/src/models/qwen2.rs:600-604 | mistralrs-core/src/vision_models/gemma3/text.rs:743-747 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:523-527 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:645-649 | mistralrs-core/src/xlora_models/gemma2.rs:645-649 \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 12 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"34fa9f706fe566fbe5a6ddd29a695e9d80eb4402b78d7b005097c0ae051c221f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): mistralrs-core/src/layers.rs:1588-1592 | mistralrs-core/src/layers.rs:1728-1732 | mistralrs-core/src/layers.rs:1899-1903 | mistralrs-core/src/layers.rs:3032-3036 | mistralrs-core/src/layers.rs:3165-3169 | 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 31 separate duplicated blocks between them, totalling at least 341 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/layers.rs"},"region":{"startLine":1588}}}],"partialFingerprints":{"codehealthFindingId/v1":"384e7c72d7f8e788e54bbbb29097f7aa9c6972dca1073aa4d823f045add8c1fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): mistralrs-core/src/vision_models/diffusion_gemma/mod.rs:293-297 | mistralrs-core/src/vision_models/gemma3/mod.rs:183-187 | mistralrs-core/src/vision_models/gemma4/mod.rs:545-549 | mistralrs-core/src/vision_models/gemma4/mod.rs:668-672 | mistralrs-core/src/vision_models/gemma4/mod.rs:858-862 | mistralrs-core/src/vision_models/lfm2_vl/mod.rs:223-227 | mistralrs-core/src/vision_models/mistral3/mod.rs:327-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/diffusion_gemma/mod.rs"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f37398c03dc04a6bd9b10790d1e7025bb1086bd8ccd1dddd251a3a3d8202c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): mistralrs-quant/src/cutile/fp8_gemm.rs:69-73 | mistralrs-quant/src/cutile/fp8_w8a16.rs:59-63 | mistralrs-quant/src/cutile/fp8_w8a16.rs:112-116 | mistralrs-quant/src/cutile/fp8_w8a16.rs:164-168 | mistralrs-quant/src/cutile/fp8_w8a16.rs:217-221 | mistralrs-quant/src/cutile/fp8_w8a8.rs:64-68 | mistralrs-quant/src/cutile/fp8_w8a8.rs:122-126 \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 6 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. If that is what happened, the fix is to keep one copy and have the other 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":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"a05f0673489637ba2590551c82cbbdc80c36f9c7b56155c76270902260a3a2b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): mistralrs-cli/src/commands/run/interactive.rs:1502-1506 | mistralrs-pyo3/src/stream.rs:59-63 | mistralrs-pyo3/src/util.rs:158-162 | mistralrs-pyo3/src/util.rs:180-184 | mistralrs-server-core/src/chat_completion.rs:495-499 | mistralrs-server-core/src/chat_completion.rs:1356-1360 \u2014 there are 6 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/run/interactive.rs"},"region":{"startLine":1502}}}],"partialFingerprints":{"codehealthFindingId/v1":"126a42065079570ffc3c8623e3a378b3d64766d8fb5a07182b03314cd9d9a03e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): mistralrs-core/src/embedding_models/qwen3_embedding.rs:451-456 | mistralrs-core/src/xlora_models/mistral.rs:597-601 | mistralrs-core/src/xlora_models/mixtral.rs:727-731 | mistralrs-core/src/xlora_models/phi2.rs:563-567 | mistralrs-core/src/xlora_models/phi3.rs:548-553 | mistralrs-core/src/xlora_models/starcoder2.rs:581-586 \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 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/embedding_models/qwen3_embedding.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d6a4a5258dd01ae410122be43ce8a4485014e5ca9050ef2333405263335b3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): mistralrs-core/src/layers.rs:847-851 | mistralrs-core/src/layers.rs:2009-2013 | mistralrs-core/src/layers.rs:2183-2187 | mistralrs-core/src/layers.rs:3040-3045 | mistralrs-core/src/layers.rs:3173-3178 | mistralrs-core/src/vision_models/gemma4/text.rs:131-139 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/layers.rs"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"89712ab862cbbc30b56de2742f4503b5dbf62034702b8f2452a98c1d0dfbe48c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): 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:376-380 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:142-146 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/lfm2.rs\u0060 and \u0060mistralrs-core/src/models/phi3_5_moe.rs\u0060 as WHOLE FILES: this scan already matched 6 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"b762f377d6da6fc267c9825d268afad2c77620c13e31c48772e90a3705d0199c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1145-1149 | mistralrs-core/src/vision_models/qwen2_5_vl/inputs_processor.rs:1174-1178 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1710-1714 | mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:1739-1743 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1906-1910 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:1952-1956 \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 47 separate duplicated blocks between them, totalling at least 994 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/inputs_processor.rs"},"region":{"startLine":1145}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5fb3550f4aba2773cfa9f3e5e0e660b858aa2a763a6749ac848e074c03a840"}},{"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/cuda/backend/mla.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"2707f2e6d487514117e045c55e064026df03f198da9ef68063430af9c3d06dc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): mistralrs-quant/src/cutile/nvfp4_glu.rs:117-121 | mistralrs-quant/src/cutile/nvfp4_glu.rs:274-278 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:29-33 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:182-186 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:392-396 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:686-690 \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 10 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. If that is what happened, the fix is to keep one copy and have the other 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":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfdaba0733d2ed10a1693d4418afe27fdee4fa626e894f79185e96070a1390a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): mistralrs-quant/src/distributed/mod.rs:561-565 | mistralrs-quant/src/distributed/mod.rs:592-596 | mistralrs-quant/src/distributed/mod.rs:623-627 | mistralrs-quant/src/distributed/mod.rs:710-714 | mistralrs-quant/src/distributed/mod.rs:741-745 | mistralrs-quant/src/distributed/mod.rs:772-776 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/distributed/mod.rs"},"region":{"startLine":561}}}],"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."},"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 (5 lines \u00D7 5): mistralrs-core/src/layers.rs:839-843 | mistralrs-core/src/layers.rs:2175-2179 | mistralrs-core/src/layers.rs:2326-2330 | mistralrs-core/src/layers.rs:2424-2428 | mistralrs-core/src/layers.rs:2471-2475 \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/layers.rs"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"a91c0f8a081c61b107494148add7b359b0deb899833f1377f1f9868146fcde4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): mistralrs-paged-attn/src/metal/kernels/mod.rs:277-282 | mistralrs-paged-attn/src/metal/kernels/mod.rs:711-716 | mistralrs-paged-attn/src/metal/kernels/mod.rs:802-807 | mistralrs-quant/src/metal_kernels/mod.rs:1527-1531 | mistralrs-quant/src/metal_kernels/mod.rs:4878-4882 \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 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/metal/kernels/mod.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"c956ab460c8410c4588c2200485d69cc02050581d2cfc136dcc7869728fbd4f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): mistralrs-quant/src/cutile/fp8_gemm.rs:485-489 | mistralrs-quant/src/cutile/fp8_w8a16.rs:794-798 | mistralrs-quant/src/cutile/fp8_w8a8.rs:813-817 | mistralrs-quant/src/cutile/fused_moe.rs:837-842 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:753-758 \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 6 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. If that is what happened, the fix is to keep one copy and have the other 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":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6856c10ed5577d7f99a829b7430555f260491b32c147b8bf5c938ba37ceb1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): mistralrs-quant/src/gguf/fast_mmq.rs:599-603 | mistralrs-quant/src/gguf/fast_mmq.rs:707-711 | mistralrs-quant/src/gguf/fast_mmq.rs:884-889 | mistralrs-quant/src/gguf/fast_mmq.rs:1092-1097 | mistralrs-quant/src/gguf/fast_mmq.rs:1367-1372 \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/gguf/fast_mmq.rs"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"7667f37e8cd89eb1c665099d10d7aba28e7f24679825145a46bab9b08329a2a2"}},{"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:891-895 | mistralrs-core/src/gguf/qwen_multimodal_bindings.rs:295-299 | mistralrs-quant/src/gguf/archive.rs:1273-1275 \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 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-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:1143-1147 | mistralrs-core/src/layers.rs:1170-1172 | mistralrs-core/src/layers.rs:1233-1237 | mistralrs-core/src/layers.rs:1260-1262 | mistralrs-core/src/layers.rs:1332-1337 | mistralrs-core/src/layers.rs:1502-1506 | mistralrs-core/src/layers.rs:1529-1531 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/layers.rs"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"8738bfa5a632488ea5e29a19e56da02a82c2ebc4a6eabdae0a4ecf6676b9c1f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): mistralrs-core/src/models/deepseek2.rs:521-525 | mistralrs-core/src/models/deepseek3.rs:534-538 | mistralrs-core/src/models/glm4_moe.rs:454-458 | mistralrs-core/src/models/glm4_moe_lite.rs:552-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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ebd16b3394eb3e74895d2dc1d6b20e8aae81042d06bf28dd3cd221315c78728"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): mistralrs-core/src/models/deepseek2.rs:667-673 | mistralrs-core/src/models/deepseek3.rs:730-736 | mistralrs-core/src/models/glm4_moe.rs:570-574 | mistralrs-core/src/models/glm4_moe_lite.rs:676-682 \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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b6ef83359909b31846c5428540dca028a6a0a32df733607cd2f94993347142"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): mistralrs-core/src/models/lfm2.rs:284-288 | mistralrs-core/src/models/qwen3_moe.rs:365-369 | mistralrs-core/src/vision_models/qwen3_5_moe/text.rs:316-320 | mistralrs-core/src/vision_models/qwen3_vl_moe/text.rs:104-108 \u2014 before extracting anything, compare \u0060mistralrs-core/src/models/lfm2.rs\u0060 and \u0060mistralrs-core/src/models/qwen3_moe.rs\u0060 as WHOLE FILES: this scan already matched 13 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/lfm2.rs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"6389d276cb3d22f11fb3d98173516b1ca2dcb97ca7ce5f51927a7bf36804957a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): mistralrs-core/src/models/phi3.rs:560-564 | mistralrs-core/src/models/phi3_5_moe.rs:632-636 | mistralrs-core/src/vision_models/phi3/mod.rs:1363-1367 | mistralrs-core/src/vision_models/phi4/mod.rs:525-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 29 separate duplicated blocks between them, totalling at least 339 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/phi3.rs"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"d361d07ca142c852135a958ad0feb0bd82d0fe102740e3afcd5912f12f4bdce5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): mistralrs-core/src/pipeline/cuda_graph.rs:3441-3445 | mistralrs-core/src/pipeline/cuda_graph.rs:3459-3463 | mistralrs-core/src/pipeline/cuda_graph.rs:3478-3482 | mistralrs-core/src/pipeline/cuda_graph.rs:3497-3501 \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":3441}}}],"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 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"8495b9cfaa9d0ff9b135b437e1672d2cfe90113c577604a99122f10cee05c3e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:318-322 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:475-479 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:962-966 | mistralrs-core/src/vision_models/qwen3_vl_moe/mod.rs:407-411 \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 19 separate duplicated blocks between them, totalling at least 362 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":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4003a3503d65451e64d8a09ff5a81fe7e90630d92be933feaf4257f8f0d4dda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): mistralrs-paged-attn/src/cuda/backend/cache.rs:139-143 | mistralrs-paged-attn/src/cuda/backend/cache.rs:146-150 | mistralrs-paged-attn/src/cuda/backend/cache.rs:153-157 | mistralrs-paged-attn/src/cuda/backend/cache.rs:160-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/cuda/backend/cache.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fafe7301e8882aa700104dfa5d918ddf449664a61bb707b9d54885495c04e66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): mistralrs-pyo3/src/util.rs:159-163 | mistralrs-pyo3/src/util.rs:181-185 | mistralrs-server-core/src/chat_completion.rs:1357-1361 | mistralrs-server-core/src/completions.rs:455-459 \u2014 before extracting anything, compare \u0060mistralrs-server-core/src/chat_completion.rs\u0060 and \u0060mistralrs-server-core/src/completions.rs\u0060 as WHOLE FILES: this scan already matched 4 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-pyo3/src/util.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"a07132e7b7989b66c8c2bb7bde99196b1b2a9001211d07b5706140516b2d9ec2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-core/src/cuda/gdn.rs:2159-2164 | mistralrs-core/src/cuda/gdn.rs:2170-2174 | mistralrs-core/src/cuda/gdn.rs:2180-2184 \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":2159}}}],"partialFingerprints":{"codehealthFindingId/v1":"4db38d8745efb713183764691ee56d84588e0d3f8edaf1c54141234394422d1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-core/src/layers.rs:1165-1169 | mistralrs-core/src/layers.rs:1255-1259 | mistralrs-core/src/layers.rs:1524-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/layers.rs"},"region":{"startLine":1165}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7bed20c2ce96b056bf13db8050c528203eebb83bae21a664fce7138043dbf2d"}},{"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 37 separate duplicated blocks between them, totalling at least 426 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e06aca694677bae04820149afe4439baf634f2a6ce1753b12f6fedb3a5c0aa3"}},{"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 48 separate duplicated blocks between them, totalling at least 605 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 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."},"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 (5 lines \u00D7 3): mistralrs-core/src/vision_models/qwen2_5_vl/vision.rs:269-273 | mistralrs-core/src/vision_models/qwen2vl/vision.rs:241-245 | mistralrs-core/src/vision_models/qwen3_vl/vision.rs:265-269 \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 18 separate duplicated blocks between them, totalling at least 176 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":269}}}],"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:889-893 | mistralrs-core/src/vision_models/qwen3_vl/text.rs:543-547 | 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 19 separate duplicated blocks between them, totalling at least 218 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_moe/text.rs"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"df1b0366771b48ee6ffe70170191a6580d7190cf79f02c2d99ed6e6a66deb2a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:62-66 | mistralrs-quant/src/gguf/fast_mmq.rs:353-357 | mistralrs-quant/src/gguf/fast_mmvq.rs:95-99 \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 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-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"216f488bb48dab5d4d162cc1ea3b195906bfe41821dbf1d6ab020bd931a831aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-quant/src/cutile/fp8_w8a16.rs:549-554 | mistralrs-quant/src/cutile/fp8_w8a8.rs:575-580 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:295-299 \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 21 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":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"963f0300ea0646d548e9f44da4c2c4bcace2348e03105f4faf0a604cef82dc4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-quant/src/gguf/cuda.rs:107-111 | mistralrs-quant/src/gguf/fast_mmq.rs:354-358 | mistralrs-quant/src/gguf/fast_mmvq.rs:96-100 \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 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-quant/src/gguf/cuda.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"4610a91b7a5a21dc3b9f7443c6dfea06c7b8b81c9e85d13bbefedf9ffa4f4798"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-quant/src/gguf/fast_mmvq.rs:356-360 | mistralrs-quant/src/gguf/fast_mmvq.rs:560-564 | mistralrs-quant/src/gguf/fast_mmvq.rs:777-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/gguf/fast_mmvq.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"0865925f7810dbb87aa948a3a80da9e87b6620aa1e5f71cf98e610314d02c7b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-quant/src/gguf/fast_mmvq.rs:394-398 | mistralrs-quant/src/gguf/fast_mmvq.rs:599-603 | mistralrs-quant/src/gguf/fast_mmvq.rs:832-836 \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_mmvq.rs"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf2d696067c1d27121e20e2d5a47668609232ceb8d23a4c0502dcad6d588b0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-quant/src/hqq/mod.rs:474-478 | mistralrs-quant/src/hqq/mod.rs:536-541 | mistralrs-quant/src/hqq/mod.rs:559-564 \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/hqq/mod.rs"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"d550338b5deae4d1cd666c853502f2b96eafaa5188b00052c28a7c2a4def9b35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-quant/src/afq/ops.rs:1969-1973 | mistralrs-quant/src/afq/ops.rs:2087-2091 | mistralrs-quant/src/afq/ops.rs:2205-2209 \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":1969}}}],"partialFingerprints":{"codehealthFindingId/v1":"f00eb334548cac1fe686cca2cc78e7fdc7dffd747f989b9abd18b57a8bcfed03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-cli/src/commands/bench.rs:327-331 | mistralrs-cli/src/commands/bench.rs:344-348 \u2014 both copies are in the same file, so extract the block 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/bench.rs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"1774b6d700a5b2d1b83a1d4a71dab51cef2578839854d4966044d2a7d8b10176"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-cli/src/commands/quantize.rs:356-360 | mistralrs-cli/src/commands/quantize.rs:366-370 \u2014 both copies are in the same file, so extract the block 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":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b15071c3e108bb3d58ecc12605d4492e2c3fb98e10add683cc581b8ff28d68d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-cli/src/commands/serve.rs:612-616 | mistralrs-cli/src/commands/serve.rs:672-676 \u2014 both copies are in the same file, so extract the block 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/serve.rs"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2040782eff72d587be5fcd41ddc984e7d3f5fbe8b269fa00f5a46d76c9a0d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/attention/backends/cpu/full.rs:401-405 | mistralrs-core/src/attention/backends/cpu/full.rs:576-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":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"d978ce70d19d8850f7d157c1fac67f40faa16f5f43094b0ccf6a7366274a6ff4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/attention/backends/cpu/full.rs:516-520 | mistralrs-core/src/attention/backends/cpu/full.rs:623-627 \u2014 both copies are in the same file, so extract the block 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":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"badfa69c6b98ccdf952424bf1793404e83e8c44e8ff8d6ec752c5b046bfa584c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:1908-1912 | mistralrs-core/src/cuda/gdn.rs:3193-3199 \u2014 both copies are in the same file, so extract the block 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":1908}}}],"partialFingerprints":{"codehealthFindingId/v1":"6562f470cd39ac1eafebc22d9266351c87bccf035a1684a4b0299714a619e003"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:3690-3694 | mistralrs-core/src/cuda/gdn.rs:4185-4189 \u2014 both copies are in the same file, so extract the block 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":3690}}}],"partialFingerprints":{"codehealthFindingId/v1":"5931fe7e54ab6bf075cdf565051dc3b57da65458dad552f1a8abdde4654db05c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:5528-5532 | mistralrs-core/src/cuda/gdn.rs:5767-5771 \u2014 both copies are in the same file, so extract the block 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":5528}}}],"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/cuda/input_packing.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb435aa11d558312fcbeffb5af5fa167edc8bca58c7f42460169400029f2422e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/gdn/backend.rs:903-907 | mistralrs-core/src/gdn/backend.rs:1042-1046 \u2014 both copies are in the same file, so extract the block 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":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8761ee285299e34fbdcfd39bca6df098fa0071c272ead9d296ead10e73593b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/gguf/multimodal_binding_utils.rs:120-124 | mistralrs-core/src/gguf/qwen_multimodal_bindings.rs:303-307 \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 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-core/src/gguf/multimodal_binding_utils.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"f436970da985d4e4b32d1b5c653e0624d4285d16230119509b6d6301eec78f26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/kv_cache/hybrid_cache.rs:1640-1644 | mistralrs-core/src/kv_cache/hybrid_cache.rs:1698-1702 \u2014 both copies are in the same file, so extract the block 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":1640}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e1578fcd62d3ea6c1d5ae9a6f08d6aef62091ebfcb63188974a9a5a071ec9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-core/src/kv_cache/mod.rs:510-514 | mistralrs-core/src/kv_cache/mod.rs:541-545 | mistralrs-core/src/kv_cache/mod.rs:654-658 \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/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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/matformer.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"df0cfbf3bdfd8fc76f46e74699db6076abf9108ae9ef5585963c6283d22f17a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/models/gpt_oss.rs:949-953 | mistralrs-core/src/vision_models/mllama/text.rs:981-986 \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 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/gpt_oss.rs"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b0b5c5194d8df21da1abbc28e64923884acea3e88e0b3d4a49b66e8e1ec96f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/models/lfm2.rs:1312-1316 | mistralrs-core/src/models/lfm2.rs:1355-1360 \u2014 both copies are in the same file, so extract the block 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/lfm2.rs"},"region":{"startLine":1312}}}],"partialFingerprints":{"codehealthFindingId/v1":"8235064fd774ff9297f5ab761bcb380d075cd35db5530a1d21c2e9aa6853885c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/models/llama.rs:514-518 | mistralrs-core/src/models/smollm3.rs:533-537 \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 50 separate duplicated blocks between them, totalling at least 696 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac3e867d88fae5fcca736c289571c972e2b6c5b90d359c2322e44feb09c9523e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/ops.rs:597-601 | mistralrs-core/src/ops.rs:759-763 \u2014 both copies are in the same file, so extract the block 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":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e5aafd79fe76392f8a0beff1b5941bac90540c0c9628ec5b42624e00866bf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/ops.rs:613-617 | mistralrs-core/src/ops.rs:771-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/ops.rs"},"region":{"startLine":613}}}],"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:1108-1112 | mistralrs-core/src/ops.rs:1337-1341 | mistralrs-core/src/ops.rs:1585-1586 | mistralrs-core/src/ops.rs:1827-1828 | mistralrs-core/src/ops.rs:4143-4144 | mistralrs-core/src/ops.rs:4324-4325 | mistralrs-core/src/ops.rs:5270-5271 | mistralrs-core/src/ops.rs:5693-5694 | mistralrs-core/src/ops.rs:6022-6023 \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."},"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 (5 lines \u00D7 2): mistralrs-core/src/ops.rs:1182-1186 | mistralrs-core/src/ops.rs:1400-1404 \u2014 both copies are in the same file, so extract the block 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":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0024eb79536f4715f8d17594067e1f61143a2295a768cbfd49d6743b24610b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/ops.rs:4664-4668 | mistralrs-core/src/ops.rs:5078-5082 \u2014 both copies are in the same file, so extract the block 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":4664}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a09aeafff570593ef688b9249b375a10c3c0bd0be107fd2adc622506c33032"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/ops.rs:4671-4675 | mistralrs-core/src/ops.rs:5087-5091 \u2014 both copies are in the same file, so extract the block 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":4671}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d51e5b77ba34765480734b9fca5b5141dc5512fe721864fed86f1c97a96e61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/pipeline/inputs_processor.rs:1317-1321 | mistralrs-core/src/pipeline/inputs_processor.rs:1328-1332 \u2014 both copies are in the same file, so extract the block 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":1317}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc0c92edf0cd44d4577b48a432fda5976c86da1ed43b9afb346bd9c58acc7b27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/pipeline/mod.rs:1151-1155 | mistralrs-core/src/pipeline/mod.rs:1209-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/mod.rs"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c2e92655954878f7b4793a5c95393d5a69c847fada4a41517bc86f5cb8a6e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1504-1508 | mistralrs-core/src/pipeline/normal.rs:1454-1458 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1504}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f5a467c684ce80412e4a42ba1f0bd0c2ae787860f35821d3736cc633f503458"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1629-1633 | mistralrs-core/src/pipeline/normal.rs:1560-1564 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1629}}}],"partialFingerprints":{"codehealthFindingId/v1":"900c125a55471bf9bb50cc44493960b57212db6ecd5f705d8bec1e49547a54cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1636-1640 | mistralrs-core/src/pipeline/normal.rs:1567-1571 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1636}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a5d832fa0d8a109505d763594d68f7c8f64c6e315677f28fe59f4b94f348903"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 3): mistralrs-core/src/speculative/config.rs:116-118 | mistralrs-core/src/speculative/dflash.rs:2237-2241 | mistralrs-core/src/vision_models/gemma4/mtp.rs:126-130 \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/speculative/config.rs"},"region":{"startLine":116}}}],"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 16 separate duplicated blocks between them, totalling at least 279 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":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a369b18969b8a332e970ab5b6f39ff78603c4fc77ddc1b693bd7d31b8d499d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/inputs_processor.rs:614-618 | mistralrs-core/src/vision_models/mistral3/inputs_processor.rs:63-67 \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 8 separate duplicated blocks between them, totalling at least 121 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."},"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 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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 (5 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava_llm/mod.rs:42-46 | mistralrs-core/src/xlora_models/quantized_phi3.rs:249-253 \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":42}}}],"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:79-83 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:93-97 \u2014 both copies are in the same file, so extract the block 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":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc25a9a29f8d9816d6bde235b55f9a174d5dca784b6413f0012105df47446b1"}},{"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."},"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 (5 lines \u00D7 2): mistralrs-mcp/src/tools.rs:81-85 | mistralrs-mcp/src/tools.rs:108-112 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-mcp/src/tools.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f5f5a7603d16742cd7c5126dec1f19637075120124aa7df1d1d2e66a2c1ce91"}},{"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."},"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 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":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."},"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-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."},"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/cutile/fused_moe.rs:635-639 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:1042-1046 \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 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7be40f4aa8dedee3e882f68ed140ee60c4184ccf8c39765ea38dc98548c305a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_matmul.rs:145-149 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:560-564 \u2014 both copies are in the same file, so extract the block 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":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"b62e498a638a9cb5fda2bc72bc13e55f885a924c47e20af731244cdcb3f6454b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_matmul.rs:298-302 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:854-858 \u2014 both copies are in the same file, so extract the block 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":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a90fad3833a794859ab3bcfa2997bf08c84dedd9c275d46217a05ed1bc9ef36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_matmul.rs:344-348 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:638-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-quant/src/cutile/nvfp4_matmul.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"e11923e50e8eb9cdcf7f767bf160529a9cf8885b48c1fb68c74f348b0ef950e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/gguf/cuda.rs:1492-1496 | mistralrs-quant/src/gguf/cuda.rs:1561-1565 \u2014 both copies are in the same file, so extract the block 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/cuda.rs"},"region":{"startLine":1492}}}],"partialFingerprints":{"codehealthFindingId/v1":"892d1395db409418be1ee3e63e7f769d8f8d1d4e841ee6ab9c21018261b1ca5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/gguf/weight_source.rs:1167-1171 | mistralrs-quant/src/gguf/weight_source.rs:1188-1192 \u2014 both copies are in the same file, so extract the block 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":1167}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cbc4ea6ee554d4f2f214ca5a95b5586601d782f4ea0ee2e93f4a609674be289"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/mxfp4/mod.rs:647-651 | mistralrs-quant/src/mxfp4/mod.rs:755-759 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/mxfp4/mod.rs"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a5375d99cd6067a3e3001943e5a2e88ce531b07c041d007a8dd5e9870332d9"}},{"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."},"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:1104-1108 | mistralrs-quant/src/utils/ops.rs:1176-1180 \u2014 both copies are in the same file, so extract the block 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":1104}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a783eb277de3cec0f9cb0d1214a01c41dccb89c8a1241fcc9773e277cd2d7c"}},{"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 (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."},"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 (5 lines \u00D7 2): mistralrs-quant/src/afq/ops.rs:813-820 | mistralrs-quant/src/afq/ops.rs:936-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/afq/ops.rs"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"81af50278d1dfa900dc2f703703962208dcf889977cce245ad0b0b87da06a960"}},{"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:447-451 \u2014 both copies are in the same file, so extract the block 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":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:534-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."},"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/cutile/nvfp4_gemv.rs:58-62 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:162-166 \u2014 both copies are in the same file, so extract the block 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_gemv.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a23bc3842feca9ea1dc1af8243cf6b3a574ec9a887beb0542a4c5ecd282c528"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/cutile/nvfp4_gemv.rs:95-99 | mistralrs-quant/src/cutile/nvfp4_gemv.rs:199-203 \u2014 both copies are in the same file, so extract the block 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_gemv.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"e264e3d48651582ff4093197c999d77b5ee9f35a75db6dbb9930e5763b753640"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-server-core/src/chat_completion.rs:648-652 | mistralrs-server-core/src/chat_completion.rs:718-723 \u2014 both copies are in the same file, so extract the block 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":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"e239aa38232ba3fa9ab3bfd23cf283a1eaab40c28f95f199e0b962cb3bbc4056"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs/src/embedding_model.rs:90-95 | mistralrs/src/gguf.rs:363-368 \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/src/embedding_model.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"745847cf45326280ffe79e36557edf8ca6a620a0b89ddb8ecee90b4ec980c16b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-cli/src/commands/quantize.rs:214-220 | mistralrs-cli/src/commands/serve.rs:1125-1131 \u2014 before extracting anything, compare \u0060mistralrs-cli/src/commands/quantize.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 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/src/commands/quantize.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b1d77803406f73ff06520a2bf1078b5cd9787907329c5bc2eadd295515fc90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-code-exec/src/lib.rs:418-425 | mistralrs-code-exec/src/shell.rs:171-178 \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 6 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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-code-exec/src/lib.rs"},"region":{"startLine":418}}}],"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:70-80 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"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 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/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."},"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/vision_models/qwen3_5/text.rs:828-834 \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 (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:262-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 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-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:814-819 \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 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-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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 7): mistralrs-core/src/models/deepseek2.rs:691-696 | mistralrs-core/src/models/deepseek3.rs:754-759 | 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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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:562-568 | mistralrs-core/src/models/gemma2.rs:678-684 | mistralrs-core/src/models/glm4.rs:678-684 | mistralrs-core/src/models/hunyuan_v1_dense.rs:650-656 | mistralrs-core/src/models/mistral.rs:690-696 | mistralrs-core/src/models/phi2.rs:637-643 | mistralrs-core/src/models/phi3.rs:633-639 | mistralrs-core/src/models/qwen2.rs:692-698 | mistralrs-core/src/models/qwen3.rs:649-655 | mistralrs-core/src/models/starcoder2.rs:628-634 | mistralrs-core/src/vision_models/gemma3/text.rs:904-910 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:650-656 | 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 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/gemma.rs"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"87af0b3e57be2a85adb450b1ca4779124e720929d2867cbc406bf7f9aabd6566"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 13): mistralrs-core/src/models/gemma.rs:569-575 | mistralrs-core/src/models/gemma2.rs:685-691 | mistralrs-core/src/models/glm4.rs:685-691 | mistralrs-core/src/models/hunyuan_v1_dense.rs:657-663 | mistralrs-core/src/models/mistral.rs:697-703 | mistralrs-core/src/models/phi2.rs:644-650 | mistralrs-core/src/models/phi3.rs:640-646 | mistralrs-core/src/models/qwen2.rs:699-705 | mistralrs-core/src/models/qwen3.rs:656-662 | mistralrs-core/src/models/starcoder2.rs:635-641 | mistralrs-core/src/vision_models/gemma3/text.rs:911-917 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:657-663 | 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 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/gemma.rs"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"b361dd870ab63dd879b7e5b958e7587d820f0c18035dd0267b7b20901177478e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 11): mistralrs-core/src/models/glm4.rs:416-427 | mistralrs-core/src/models/granite.rs:1925-1936 | mistralrs-core/src/models/hunyuan_v1_dense.rs:373-384 | mistralrs-core/src/models/hunyuan_v1_moe.rs:863-874 | mistralrs-core/src/models/llama.rs:326-337 | mistralrs-core/src/models/mistral.rs:395-406 | mistralrs-core/src/models/qwen3.rs:380-391 | mistralrs-core/src/models/qwen3_moe.rs:557-568 | mistralrs-core/src/models/smollm3.rs:342-353 | mistralrs-core/src/vision_models/llama4/text.rs:774-785 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:412-423 \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 253 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"758d42f12ec046c42f14c2da8cdcd12d09560a19cf086e6f3fde6179f531b1b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-core/src/models/llama.rs:591-597 | mistralrs-core/src/models/smollm3.rs:610-616 | 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 50 separate duplicated blocks between them, totalling at least 696 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"82acdc911e08206469fc8a845e38848934763c1bed03f07b9a8a1272cf77d66a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): mistralrs-core/src/models/llama.rs:598-604 | mistralrs-core/src/models/smollm3.rs:617-623 | 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 50 separate duplicated blocks between them, totalling at least 696 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":598}}}],"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 48 separate duplicated blocks between them, totalling at least 605 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 23 separate duplicated blocks between them, totalling at least 295 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/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:516-521 | mistralrs-core/src/pipeline/gguf.rs:1491-1496 | mistralrs-core/src/pipeline/normal.rs:1616-1621 \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 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"c490582acc9dc58437e76b44c6e13562ee40d7d6a847b6ced7a9df410e0d25f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/pipeline/inputs_processor.rs:2573-2579 | mistralrs-core/src/vision_models/mod.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/pipeline/inputs_processor.rs"},"region":{"startLine":2573}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeb51a4a530958f3edb62d696ba971384ad4f5e19ffedfdbcf27e12c5fa1e36e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:792-802 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:3431-3441 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:1722-1732 \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 32 separate duplicated blocks between them, totalling at least 426 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"73611ae9739f061a8aa19e0a564fe9cb742918ea8a2349279f53fcae3e517122"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:6908-6915 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:7326-7333 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:5950-5957 \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 32 separate duplicated blocks between them, totalling at least 426 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":6908}}}],"partialFingerprints":{"codehealthFindingId/v1":"f277db8693b0cb48c446258bb3553d6178882ff2ee4dbf20eee82d2630e2790f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:1589-1597 | mistralrs-core/src/pipeline/normal.rs:1520-1528 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":1589}}}],"partialFingerprints":{"codehealthFindingId/v1":"43df15a218060797788a370f92fb21db4a2eb37831b7405b81a52df4de141f7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2481-2488 | mistralrs-core/src/pipeline/normal.rs:2156-2163 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":2481}}}],"partialFingerprints":{"codehealthFindingId/v1":"304485895cb34121deddf27d3bc9c10bd208362c9051c0fcd72584c36e58ce6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:2945-2960 | mistralrs-core/src/pipeline/normal.rs:2622-2637 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":2945}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e07e1392dc84bbb3813b7f7784b4e7e0c3028b8d8efee01dabc8f4dd5496c9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/pipeline/multimodal.rs:353-360 | mistralrs-core/src/pipeline/normal.rs:485-492 \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 71 separate duplicated blocks between them, totalling at least 1436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ad427e52067643aef31b5288c5071e5cde9970819f7a13eee32a0be97d54df"}},{"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:921-927 \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 8 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/gemma3n/text.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3b23787bc239052ec7e2fab814c01cdb79b2a1a3064fc83cfc9a8285d1938c"}},{"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 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 263 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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."},"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 (7 lines \u00D7 2): mistralrs-core/src/vision_models/phi3/mod.rs:488-494 | 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 8 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"268ea3dc12cb13c5c4ba21b161c3bc5c03b27a99f072ce586916ba0019fc788d"}},{"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 8 separate duplicated blocks between them, totalling at least 96 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/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 19 separate duplicated blocks between them, totalling at least 362 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:210-215 \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 18 separate duplicated blocks between them, totalling at least 176 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 18 separate duplicated blocks between them, totalling at least 176 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":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:356-360 \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 18 separate duplicated blocks between them, totalling at least 176 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 (7 lines \u00D7 2): mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs:576-582 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:745-751 \u2014 \u0060mistralrs-core/src/vision_models/qwen2vl/inputs_processor.rs\u0060 and \u0060mistralrs-core/src/vision_models/qwen3_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 52 separate duplicated blocks between them, totalling at least 1117 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/qwen2vl/inputs_processor.rs"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"9474ac4987b914f8f169819b7deb2d21dcbdd9a032b752fdc57b33db2e51100c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/gguf/gemma3_bindings.rs:199-203 | 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/gguf/gemma3_bindings.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"064532295088c17ec8eb382263e5d73e2fe58e6fcca9fd46aae3200157670270"}},{"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."},"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:118-124 | mistralrs-quant/src/metal_kernels/mod.rs:126-132 \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 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/metal/kernels/mod.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff103cb396edd40e48248dab2710d95a58115d0337b26d88168586ee01527a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-pyo3/src/lib.rs:224-233 | 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":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"20cbbd5a74e1832e1d90a31f02f0581746a3e9e39126b94484b49f9c26cc37d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): mistralrs-quant/src/afq/mod.rs:207-215 | mistralrs-quant/src/gguf/mod.rs:731-739 | mistralrs-quant/src/unquantized/mod.rs:627-635 \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":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02c3c8a1412dd48f1b689dd1039a6fedb81d2cca8edcba67f65433636ce655a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/blockwise_fp8/mod.rs:902-910 | mistralrs-quant/src/vector_fp8/mod.rs:81-89 \u2014 \u0060mistralrs-quant/src/blockwise_fp8/mod.rs\u0060 and \u0060mistralrs-quant/src/vector_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 10 separate duplicated blocks between them, totalling at least 226 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/mod.rs"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17a37d809aaf1f00285003b07cf809767e1a0968bd21cb0a12feeade585f8a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmq.rs:34-39 | mistralrs-quant/src/gguf/fast_mmvq.rs:28-33 \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 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-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b7b470d5fc19ea2021a33e06ecf583221f39d1d56377048a9492924afa2c2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmq.rs:53-67 | mistralrs-quant/src/gguf/fast_mmvq.rs:36-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 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-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"559fef0d0b87799024113ce581bf1eddeebd5f294bcc53e9271de8048f9bf050"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-server-core/src/chat_completion.rs:1252-1258 | mistralrs-server-core/src/completions.rs:395-401 \u2014 before extracting anything, compare \u0060mistralrs-server-core/src/chat_completion.rs\u0060 and \u0060mistralrs-server-core/src/completions.rs\u0060 as WHOLE FILES: this scan already matched 4 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-server-core/src/chat_completion.rs"},"region":{"startLine":1252}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cffd885069772080e89cc5110356be887b346d1776dcfc4c4ff7817c26c5c91"}},{"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: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-core/src/flashinfer/mod.rs"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"705de4c9b1241c48d72389288ed3db05cc0d3f73d59b3d9ebbd40ca33dd98d2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/pipeline/ggml.rs:504-509 | mistralrs-core/src/pipeline/gguf.rs:1479-1484 \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 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0dee0e448c23dbcd034eeeb1e9d0b6dc6b1beb782ec55df9c3718bb634aeab3"}},{"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:402-411 \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 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":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:413-417 \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 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"8434bec60903a7d02c22a270806eadd9e5dce3ad76cfbc52f27172817925233c"}},{"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:178-183 \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 18 separate duplicated blocks between them, totalling at least 176 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 18 separate duplicated blocks between them, totalling at least 176 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/hqq/mod.rs:1092-1100 | mistralrs-quant/src/vector_fp8/mod.rs:54-63 \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/hqq/mod.rs"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fc61679a76c034b7040d36ad90bb66d405a124d30e14c6d723264eed3157fc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 5): mistralrs-core/src/gguf/gemma3_bindings.rs:171-192 | 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/gguf/gemma3_bindings.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"781b93e2456502ef38631a688a6274cbdc3bc42c4029b29ee9cd4c3aec7c56ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 4): mistralrs-core/src/models/phi2.rs:708-727 | mistralrs-core/src/models/phi3.rs:704-723 | mistralrs-core/src/models/starcoder2.rs:699-718 | 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 20 separate duplicated blocks between them, totalling at least 207 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/phi2.rs"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf8e9b1ecf0bd3cbf99230b41ab39d82e24addbf0fbeb76e9f8e0641df7825e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): mistralrs-core/src/ops.rs:5670-5688 | mistralrs-core/src/ops.rs:5999-6017 \u2014 both copies are in the same file, so extract the block 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":5670}}}],"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."},"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 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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:621-637 | mistralrs-quant/src/cutile/fp8_w8a8.rs:673-689 \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 21 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":621}}}],"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."},"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:570-585 | mistralrs-core/src/ops.rs:732-747 \u2014 both copies are in the same file, so extract the block 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":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"613e7b9d991702adf62ec1c9032f8b86f2207b370d537e3a5d292c9ec0b3186f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:2638-2652 | mistralrs-quant/src/distributed/layers.rs:2794-2808 \u2014 both copies are in the same file, so extract the block 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":2638}}}],"partialFingerprints":{"codehealthFindingId/v1":"9605549a74f3812d24a02e0de024c99516b787198fd28519a93d0627586f6a56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9187-9201 | mistralrs-core/src/pipeline/loaders/normal_loaders.rs:6296-6309 \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 32 separate duplicated blocks between them, totalling at least 426 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":9187}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b86656e58c04ab6ea1e8ac0185d44df826a872324a86c16e39829db6328e77a"}},{"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 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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 3): mistralrs-core/src/models/granite.rs:2222-2235 | mistralrs-core/src/models/lfm2.rs:1213-1226 | 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 8 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":2222}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b3f643c3744b800dc0db5a9d933937508ad73ea451c78802477a59794fb78ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): mistralrs-quant/src/gguf/cuda.rs:1252-1265 | mistralrs-quant/src/gguf/cuda.rs:1312-1325 \u2014 both copies are in the same file, so extract the block 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/cuda.rs"},"region":{"startLine":1252}}}],"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:5256-5269 | mistralrs-core/src/ops.rs:5680-5692 | mistralrs-core/src/ops.rs:6009-6021 \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-quant/src/cutile/fp8_w8a16.rs:861-874 | mistralrs-quant/src/cutile/fp8_w8a8.rs:895-908 \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 21 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":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"870a40d1da5f9c683a2fa26d5f2ab5736210fc3b416693e3b690f265c01e7897"}},{"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:180-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."},"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:677-689 | mistralrs-quant/src/gguf/cuda.rs:737-749 \u2014 both copies are in the same file, so extract the block 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/cuda.rs"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c3364c7944087ffb3be26bc2afa9b018e2d1e71d5958ce0cfa478a16acafc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/models/granite.rs:2193-2205 | mistralrs-core/src/models/lfm2.rs:1183-1195 \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 8 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":2193}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c38f8bb3df48e4f53c4233e1818ee9379dd32f3bb08893ab373c2142b32cd7"}},{"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 5 separate duplicated blocks between them, totalling at least 76 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/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 5 separate duplicated blocks between them, totalling at least 76 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/inputs_processor.rs"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"9395562d18be392fb965cfcbfeecf5028951fa00f8d696ac4e317930f508bbc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/models/granite.rs:2281-2293 | mistralrs-core/src/models/lfm2.rs:1270-1281 \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 8 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":2281}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d3dddcc92f22aaa99959ccc5c1671c28da06422e0801a77abe56c98228adb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:561-573 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:1003-1012 \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 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a187ba21599a8bba08362e23d3983058293b9459da868519e09aff38eda03e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/models/qwen3_next.rs:558-570 | 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":558}}}],"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."},"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:1644-1656 | mistralrs-cli/src/commands/run/interactive.rs:1660-1671 \u2014 both copies are in the same file, so extract the block 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":1644}}}],"partialFingerprints":{"codehealthFindingId/v1":"e30ef08844d173184f53f5b35ba35c0d9a16f560fe6356b5fba17cd71c2fe1f3"}},{"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:348-359 \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 274 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/glm4.rs"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4ca5c66641b206177721b261b250355517d1eed50a1c2b5d1a30db825e8b0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mistralrs-core/src/engine/mod.rs:1439-1451 | mistralrs-core/src/engine/mod.rs:1509-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-core/src/engine/mod.rs"},"region":{"startLine":1439}}}],"partialFingerprints":{"codehealthFindingId/v1":"2317221f6d862baa1c7a015b2699c6bcba845e763a84e6c169de04f7831a5c85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:2826-2837 | mistralrs-quant/src/distributed/layers.rs:2842-2853 \u2014 both copies are in the same file, so extract the block 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":2826}}}],"partialFingerprints":{"codehealthFindingId/v1":"371a8be8dcbc0ed2fa19eb03f95ce5d5feb3297f3f9961100c93daf22ae38b0f"}},{"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."},"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/engine/mod.rs:1308-1317 | mistralrs-core/src/engine/mod.rs:2066-2077 \u2014 both copies are in the same file, so extract the block 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/mod.rs"},"region":{"startLine":1308}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2a5bd7a347a5fa80bfb352a1eae3170b3c0193a70d5faca47b68944e0e3336"}},{"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 (12 lines \u00D7 3): mistralrs-core/src/vision_models/llama4/text.rs:844-855 | mistralrs-core/src/vision_models/phi3/mod.rs:1240-1251 | mistralrs-core/src/vision_models/phi4/mod.rs:355-366 \u2014 before extracting anything, compare \u0060mistralrs-core/src/vision_models/llama4/text.rs\u0060 and \u0060mistralrs-core/src/vision_models/phi3/mod.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/llama4/text.rs"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"de5e8b9f352b9ed35900b76b5de9a001fea0836d423c18035977ed74bd5ab395"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/ops.rs:4437-4446 | mistralrs-core/src/ops.rs:4969-4980 \u2014 both copies are in the same file, so extract the block 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":4437}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ac186b7434964d2a931ff8d6e3384f414c1110336911fb86c13a357cf5cc59"}},{"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."},"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 5 separate duplicated blocks between them, totalling at least 76 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/inputs_processor.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"525c5d762fdfb5610b09866baf3e627ed3a0e343032520af0f2dfd749f1e4c3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-core/src/cuda/gdn.rs:4907-4917 | mistralrs-core/src/cuda/gdn.rs:5107-5118 | mistralrs-core/src/cuda/gdn.rs:5334-5344 \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":4907}}}],"partialFingerprints":{"codehealthFindingId/v1":"477acf708141db45b1406f3cf0e66dc6f3740eb3223e719f28ef2f783a271259"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/vision_models/qwen3_vl/mod.rs:209-220 | mistralrs-core/src/vision_models/qwen3_vl/mod.rs:232-243 \u2014 both copies are in the same file, so extract the block 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":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e5c92374f8fb333e2b3bc67e690ea5aa2047935bdd9ab877d198b50d820f63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-core/src/sampler.rs:1293-1304 | mistralrs-core/src/sampler.rs:1536-1546 | mistralrs-core/src/sampler.rs:1703-1713 \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":1293}}}],"partialFingerprints":{"codehealthFindingId/v1":"38eb7372cd8a295edcd9e66c7c5ef04d250ef6e86fa8a98a90aa9a0acd39a1e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): mistralrs-core/src/sampler.rs:1780-1791 | mistralrs-core/src/speculative/verifier.rs:1429-1440 \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/sampler.rs"},"region":{"startLine":1780}}}],"partialFingerprints":{"codehealthFindingId/v1":"87f288c48f0f0ffa5a18fea19d0ac1d4c4f0587b8dea1337fea54a9bdf6d4bfb"}},{"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."},"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 (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."},"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 (11 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/fa3.rs:269-279 | mistralrs-paged-attn/src/cuda/backend/fa3.rs:543-553 \u2014 both copies are in the same file, so extract the block 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/fa3.rs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"777801cc990d5083a91e84788e343c3c5883740ed8d7fcabac32194bb0a75046"}},{"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:286-295 | 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:317-326 | mistralrs-core/src/models/smollm3.rs:302-311 | mistralrs-core/src/vision_models/gemma4/text.rs:1004-1014 | mistralrs-core/src/vision_models/gemma4/text.rs:1075-1084 | mistralrs-core/src/vision_models/llava/llava_llm/llama.rs:356-365 | mistralrs-core/src/vision_models/llava/llava_llm/mistral.rs:342-351 | mistralrs-core/src/vision_models/mllama/text.rs:282-291 | mistralrs-core/src/vision_models/mllama/text.rs:642-651 | mistralrs-core/src/xlora_models/llama.rs:359-368 | 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/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":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"429b37879e08cf4fde521d4715587432c5c06d42140f1b0e213717275c243888"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:8152-8162 | mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs:9351-9361 \u2014 both copies are in the same file, so extract the block 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":8152}}}],"partialFingerprints":{"codehealthFindingId/v1":"140d3aec5c136f936e2095b3f4e9b2fca7c681442ae0cd56d7a48283995dc091"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:681-691 | mistralrs-quant/src/cutile/fp8_w8a16.rs:737-747 \u2014 both copies are in the same file, so extract the block 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/fp8_w8a16.rs"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"3986ff19b7e060b4e9f44157bfa81bd57b09024315beea85343eabec9896bcb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): mistralrs-core/src/ops.rs:4409-4419 | mistralrs-core/src/ops.rs:4594-4604 | mistralrs-core/src/ops.rs:4938-4948 \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":4409}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca567aaa823cff542f18ddfcded75f7188dcf2d8cb9d503ee2a7e4522070ad6a"}},{"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."},"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 (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."},"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/engine/add_request.rs:964-974 | mistralrs-core/src/engine/add_request.rs:1004-1010 \u2014 both copies are in the same file, so extract the block 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":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c0f4c6658d3efb85700fdd3ea9863f8cd07c4f7108c58e8b1edbb8f6b0ece8"}},{"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."},"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 (7 lines \u00D7 2): mistralrs-core/src/ops.rs:4501-4507 | mistralrs-core/src/ops.rs:5056-5066 \u2014 both copies are in the same file, so extract the block 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":4501}}}],"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."},"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 3): mistralrs-quant/src/distributed/layers.rs:2824-2834 | mistralrs-quant/src/distributed/layers.rs:2840-2850 | mistralrs-quant/src/distributed/layers.rs:2856-2866 \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/distributed/layers.rs"},"region":{"startLine":2824}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8d7751521a456d46f0f73b9f0d0cf2dce60e4fc4818c487fe36af74a83afaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-quant/src/gguf/cuda.rs:654-664 | mistralrs-quant/src/gguf/cuda.rs:714-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/gguf/cuda.rs"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"a907a62c686739d32fab0ba1f2c95020c2d8cd2c1bfe68dbfd41a00bd401dfb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:274-284 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:250-260 \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 20 separate duplicated blocks between them, totalling at least 316 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/llava/llava_next_inputs_processor.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"11760d3c55013ef937e5ac721e56d7aab1381ec9d594d8e8f8b611f19f2ac002"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/gguf/normal_config.rs:1457-1466 | mistralrs-core/src/gguf/normal_config.rs:1911-1920 \u2014 both copies are in the same file, so extract the block 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":1457}}}],"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."},"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:866-875 | mistralrs-core/src/sampler.rs:911-920 \u2014 both copies are in the same file, so extract the block 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":866}}}],"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."},"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:656-665 | 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/models/qwen3_next.rs"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49aec6c37ab6681c97d62d39f83aefe9659c81edf8c9ba19d3e13b5f7dbcdba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): mistralrs-core/src/ops.rs:4396-4405 | mistralrs-core/src/ops.rs:4581-4590 | mistralrs-core/src/ops.rs:4921-4930 \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":4396}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b2ef94fda06a64687980d27b7772c4f745760db898a60e5e4c84a7ae8a30046"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/text.rs:542-551 | mistralrs-core/src/vision_models/gemma4/text.rs:810-819 \u2014 both copies are in the same file, so extract the block 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":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d720c00506fe12c99b4ff3ca4595860fedfcb02408ffe11f2ac78726b19e33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a8.rs:712-721 | mistralrs-quant/src/cutile/fp8_w8a8.rs:740-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/fp8_w8a8.rs"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c5f938afb3d297396775f0660fc45d531a432296ed5c2d67cae1fc7032c1a1"}},{"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."},"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 (10 lines \u00D7 2): mistralrs-core/src/engine/add_request.rs:357-366 | mistralrs-core/src/engine/add_request.rs:381-390 \u2014 both copies are in the same file, so extract the block 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":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"79eb1238f795d7ece252888c6b1d69710ec6cf14961788c4226de291399e8571"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): 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 | mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs:784-793 \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 4 separate duplicated blocks between them, totalling at least 82 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/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/kv_cache/hybrid_cache.rs:1621-1630 | mistralrs-core/src/kv_cache/hybrid_cache.rs:1682-1691 | mistralrs-core/src/kv_cache/hybrid_cache.rs:1741-1750 \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/kv_cache/hybrid_cache.rs"},"region":{"startLine":1621}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c5ea417bffb4397483c8b03cd741af0c52c141c155db209856bd7b9a5188b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): mistralrs-quant/src/gguf/fast_mmq.rs:578-585 | mistralrs-quant/src/gguf/fast_mmq.rs:862-869 | mistralrs-quant/src/gguf/fast_mmq.rs:1345-1352 | mistralrs-quant/src/gguf/fast_mmvq.rs:523-532 | mistralrs-quant/src/gguf/fast_mmvq.rs:738-747 \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 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-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f067f2e0a8f0c849e0b82ba323628c0804693a2586a4f6048cc7c0eee5f8e2f"}},{"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 5 separate duplicated blocks between them, totalling at least 65 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":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"28e3a1bcd99edae6720efcc4d477cbc626ab53d92d4d1ea0e2dbf6dd2f4921c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/kv_cache/hybrid_cache.rs:180-189 | mistralrs-core/src/kv_cache/hybrid_cache.rs:344-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/kv_cache/hybrid_cache.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"c54567c334a5f059ce0574b34e826b8b930deb606811c7bd77acb37cbea3d892"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/gguf/normal_config.rs:1170-1177 | mistralrs-core/src/gguf/normal_config.rs:1277-1286 \u2014 both copies are in the same file, so extract the block 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":1170}}}],"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."},"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 (10 lines \u00D7 2): mistralrs-core/src/ops.rs:3878-3887 | mistralrs-core/src/ops.rs:4005-4014 \u2014 both copies are in the same file, so extract the block 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":3878}}}],"partialFingerprints":{"codehealthFindingId/v1":"19db7dd3bcb6824ab6889264d80d2042fd36b9b0a7ffefdc812765e5a71fd5b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs:509-518 | mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs:441-450 \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 20 separate duplicated blocks between them, totalling at least 316 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/llava/llava_next_inputs_processor.rs"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced5522b68093850ca1475a5db836527a4f3890d2f4361cdc0e754a5370e830f"}},{"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."},"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."},"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."},"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 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/hqq/hqq_op.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"94bf0d52425cd93f554807113e0693e096b67fd130a0a94199b08ade12d363e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:518-526 | mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:530-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/cuda/backend/paged_attention.rs"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"a252d639ee8799bedd52f2455ee7a482c042605f5b72179359504624afff7123"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/pipeline/cuda_graph.rs:2419-2425 | mistralrs-core/src/pipeline/cuda_graph.rs:2463-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/cuda_graph.rs"},"region":{"startLine":2419}}}],"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/gguf/llama4_bindings.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"821575f31a037221115c2b48b20e75d99fc80f5ac5d0d470f87056d66aa9de34"}},{"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:552-560 | 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 8 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"5239de3fff377a35c37c94b388c11bb8ca11ff6cf48ac3d19029ae024eae0cd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/sampler.rs:1548-1556 | mistralrs-core/src/sampler.rs:1714-1722 \u2014 both copies are in the same file, so extract the block 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":1548}}}],"partialFingerprints":{"codehealthFindingId/v1":"86de0e7a916fbe8020dbee171c9412eb7b059e0cc96c4ac63481b17358c5c898"}},{"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"6606fef1f6fab2d0c255546a8a72a9ac313e1e7b55b07a04070222152978cb0e"}},{"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":"5b9c88297c23c5dc47d35314545d71bb4998d3d1e0b9ee53ce15bb8acbb46951"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): mistralrs-quant/src/gguf/fast_mmq.rs:588-596 | mistralrs-quant/src/gguf/fast_mmq.rs:872-880 | mistralrs-quant/src/gguf/fast_mmq.rs:1355-1363 \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":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb6091e5f5c111677943fd9cbe1d41baeab7f032efd177664bee2bad2e4a9c79"}},{"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."},"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/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 2): mistralrs-core/src/ops.rs:4448-4456 | mistralrs-core/src/ops.rs:4988-4996 \u2014 both copies are in the same file, so extract the block 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":4448}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b3ae6c7aa0af158d18c128f7674fb116fe87ee05bc6b66ab69d2641b7b53ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:537-545 | mistralrs-quant/src/cutile/fp8_w8a8.rs:552-559 \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 21 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":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"399bf28b529d325ccb82354332197c8dc8a97ec679272f60d5317deb3882800a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/pipeline/cuda_graph.rs:2539-2547 | mistralrs-core/src/pipeline/cuda_graph.rs:2557-2565 \u2014 both copies are in the same file, so extract the block 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/cuda_graph.rs"},"region":{"startLine":2539}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3d70180380daae104d9777cd878bf5d9374718f9ae2e3d6eae895720e26cca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/vision_models/gemma4/mtp.rs:545-553 | mistralrs-core/src/vision_models/gemma4/mtp.rs:555-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/gemma4/mtp.rs"},"region":{"startLine":545}}}],"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."},"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 (7 lines \u00D7 4): mistralrs-paged-attn/src/metal/backend/gather_kv.rs:99-105 | mistralrs-paged-attn/src/metal/backend/gather_kv.rs:109-115 | mistralrs-paged-attn/src/metal/backend/paged_attention.rs:414-422 | mistralrs-paged-attn/src/metal/backend/paged_attention.rs:426-434 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/metal/backend/gather_kv.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62384e3c5ead306069fcfe3b09c8451994358104de414789043fdfd06964bf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/ops.rs:549-557 | mistralrs-core/src/ops.rs:711-719 \u2014 both copies are in the same file, so extract the block 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":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe4af817a8a5fa897bac86afb8178748b684e51769ba6429a9b7538e91d0cda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): mistralrs-core/src/models/granite.rs:2219-2227 | mistralrs-core/src/models/lfm2.rs:1210-1218 | 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 8 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":2219}}}],"partialFingerprints":{"codehealthFindingId/v1":"bffaf27522906f6afeb79498be64b7d702fe0247ac7fcce51d3244edf3331011"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/ops.rs:899-907 | mistralrs-core/src/ops.rs:984-992 \u2014 both copies are in the same file, so extract the block 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":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c912ffa76d2f0c2bf68f968fea71dd50aeedb6e88d8a5ab65de148cfe52f17c"}},{"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."},"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 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/utils/ops.rs"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"4220782515bf9df08a20418311cf54f6fe67416f6d15d73688369d6364e4cc94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/vision_models/gemma3n/vision.rs:1305-1310 | mistralrs-core/src/vision_models/gemma3n/vision.rs:1317-1325 \u2014 both copies are in the same file, so extract the block 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/vision.rs"},"region":{"startLine":1305}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f19346f09bab41c99e0222cdba9b4ad383b92c23e6348ed49d9ce12002bbe15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/ops.rs:4421-4427 | mistralrs-core/src/ops.rs:4951-4959 \u2014 both copies are in the same file, so extract the block 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":4421}}}],"partialFingerprints":{"codehealthFindingId/v1":"7079bbf14414a4dfdcebccbb7e87dda0f62fbbdea174ca0b609bdaab8cb6472c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:2845-2853 | mistralrs-core/src/cuda/gdn.rs:3049-3057 \u2014 both copies are in the same file, so extract the block 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":2845}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff79c37314bc5babbedbd149cbc08a3f029fbc3240d69c48b92fff11d144cfb"}},{"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."},"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:901-908 | mistralrs-core/src/cuda/gdn.rs:1025-1032 | mistralrs-core/src/cuda/gdn.rs:1129-1136 \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":901}}}],"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."},"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."},"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-quant/src/scalar_fp8/ops.rs:70-77 | mistralrs-quant/src/vector_fp8/ops.rs:115-122 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/scalar_fp8/ops.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"8774509338908777763b6b971d9b844f5dea970f8b1e7e71222f965b081f535c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:4601-4608 | mistralrs-core/src/cuda/gdn.rs:4850-4857 \u2014 both copies are in the same file, so extract the block 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":4601}}}],"partialFingerprints":{"codehealthFindingId/v1":"c324dec07f549bde61b58aed0ff1502d4354a14c780a21ec82ef38d2e5a890b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-core/src/pipeline/cuda_graph.rs:3186-3193 | mistralrs-core/src/pipeline/cuda_graph.rs:3231-3238 | mistralrs-core/src/pipeline/cuda_graph.rs:3276-3283 \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/pipeline/cuda_graph.rs"},"region":{"startLine":3186}}}],"partialFingerprints":{"codehealthFindingId/v1":"026ae50620ad0b21cac445e439559e10197bb34fa9a7ae5b4dd75d4461ca80e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): mistralrs-core/src/ops.rs:2178-2184 | mistralrs-core/src/ops.rs:2186-2192 | mistralrs-core/src/ops.rs:3918-3925 | mistralrs-core/src/ops.rs:4045-4052 \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":2178}}}],"partialFingerprints":{"codehealthFindingId/v1":"365fcfdb35e0b9fb8cf79d3a511d49caf26a29f8cda6c5a6bb44adb8c45cf676"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-core/src/ops.rs:82-89 | mistralrs-core/src/ops.rs:587-594 | mistralrs-core/src/ops.rs:749-756 \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":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e7cf51f78f8c773f6749a8eeeef7f2a9f3fd5c8b97b67512a3ddd363afc8c4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): mistralrs-core/src/ops.rs:2181-2187 | mistralrs-core/src/ops.rs:2189-2195 | mistralrs-core/src/ops.rs:3930-3937 | mistralrs-core/src/ops.rs:4057-4064 \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":2181}}}],"partialFingerprints":{"codehealthFindingId/v1":"a00af835ae4ccc1b614fa96f0cc92f28513ebdd5ec142fa6e20eb5a88868ca54"}},{"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."},"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:5205-5212 | mistralrs-core/src/ops.rs:5640-5647 \u2014 both copies are in the same file, so extract the block 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":5205}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a9d488e66f324ab75448eb45b9fc1d89df480db568707c9f426088cc612984"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/pipeline/cuda_graph.rs:896-903 | mistralrs-core/src/pipeline/cuda_graph.rs:907-914 \u2014 both copies are in the same file, so extract the block 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/cuda_graph.rs"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"fabaa44c8f69bd41d6b1311e587b226459389ffe13175e2446de6a3d6e8dc4bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-core/src/cuda/speculative_rejection.rs:1329-1336 | mistralrs-core/src/cuda/speculative_rejection.rs:1337-1342 | mistralrs-core/src/cuda/speculative_rejection.rs:1343-1348 \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/speculative_rejection.rs"},"region":{"startLine":1329}}}],"partialFingerprints":{"codehealthFindingId/v1":"0820ac9f87e25a6859b7a8623d3f960ba23a5c828bc70a285548105e2bf22767"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmvq.rs:508-515 | mistralrs-quant/src/gguf/fast_mmvq.rs:723-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/gguf/fast_mmvq.rs"},"region":{"startLine":508}}}],"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:1316-1323 \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-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/metal/gdn.rs:75-82 | mistralrs-core/src/metal/ssm.rs:73-80 \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 7 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. If that is what happened, the fix is to keep one copy and have the other 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":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf23216e428a118b367e2886b1b3c49431aeb47166d24d1b8f5241582cc13aaf"}},{"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."},"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:1040-1047 | mistralrs-core/src/ops.rs:1282-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/ops.rs"},"region":{"startLine":1040}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5818895a08abbd9e67456bc145ed91482525128fe1189e7a0dee33789bf6d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-core/src/ops.rs:3863-3870 | mistralrs-core/src/ops.rs:3990-3997 \u2014 both copies are in the same file, so extract the block 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":3863}}}],"partialFingerprints":{"codehealthFindingId/v1":"68fa898d39b3698788b3367c523f20581a28776873234b8a159343de7c1ee8ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:5596-5600 | mistralrs-core/src/cuda/gdn.rs:5827-5834 \u2014 both copies are in the same file, so extract the block 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":5596}}}],"partialFingerprints":{"codehealthFindingId/v1":"2262a456e0f9c365711114bd504c29b06b49e2175347f763cac8c11d0ea78b91"}},{"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."},"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 2): mistralrs-quant/src/blockwise_fp8/deepgemm.rs:443-450 | mistralrs-quant/src/cutile/fp8_w8a16.rs:524-529 \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/deepgemm.rs"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"6648d485ad6adc89b870d43ccbc4989a975648775c4c5b14dbeee4dfcac0c47c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): mistralrs-core/src/vision_models/muse_glimmer/mod.rs:134-141 | mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs:117-124 | mistralrs-core/src/vision_models/qwen2vl/mod.rs:140-147 \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 5 separate duplicated blocks between them, totalling at least 65 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":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"008fcb7a81c5309db0013191124aa81accbec875fbf18bf2fe1b3dacc398ed40"}},{"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:1641-1648 \u2014 both copies are in the same file, so extract the block 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":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."},"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:5633-5640 | mistralrs-core/src/cuda/gdn.rs:5658-5665 \u2014 both copies are in the same file, so extract the block 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":5633}}}],"partialFingerprints":{"codehealthFindingId/v1":"67bf1c0a984388719ef8883907e39495548454af792e776d81a64c314d9f57b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): mistralrs-paged-attn/src/metal/backend/gather_kv.rs:96-102 | mistralrs-paged-attn/src/metal/backend/gather_kv.rs:106-112 | mistralrs-paged-attn/src/metal/backend/gather_kv.rs:116-122 | mistralrs-paged-attn/src/metal/backend/paged_attention.rs:417-424 | mistralrs-paged-attn/src/metal/backend/paged_attention.rs:429-436 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/metal/backend/gather_kv.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf8768f9618add5a552029d848e53665027a632df768ed9fd318b0921fff6e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): mistralrs-core/src/ops.rs:80-87 | mistralrs-core/src/ops.rs:429-436 | mistralrs-core/src/ops.rs:585-592 | mistralrs-core/src/ops.rs:747-754 | mistralrs-core/src/ops.rs:4644-4651 \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":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"45ce7dbcd91509e66cc3512717e328504a8d5c27730d0974aedac8573b4596f2"}},{"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."},"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/ops.rs:1140-1146 | mistralrs-core/src/ops.rs:1360-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/ops.rs"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"e57208fb6d833d3815d2cf03bb1db935c3d06d035d231b0c7564a89d3bfcb262"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): 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 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/hqq_op.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4fd119058dcf56f2b4338a5166b99557f0ad9c71734599cbf6360324c21d0d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:147-153 | mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:539-545 \u2014 both copies are in the same file, so extract the block 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":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f802344123a2e305661202b37e545cc963dcd9ca68108fdfe52c3df0cc7d72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): mistralrs-core/src/ops.rs:1596-1602 | mistralrs-core/src/ops.rs:1838-1844 | mistralrs-core/src/ops.rs:4473-4479 | mistralrs-core/src/ops.rs:4637-4643 | mistralrs-core/src/ops.rs:5014-5020 \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":1596}}}],"partialFingerprints":{"codehealthFindingId/v1":"f32aac1fc189dbd5d9179f15f1b72a5ae19ad1848814956f1ec0bfc5ac981f30"}},{"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 47 separate duplicated blocks between them, totalling at least 548 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:940-946 | mistralrs-quant/src/gguf/weight_source.rs:964-970 \u2014 both copies are in the same file, so extract the block 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":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a9aee4a0123800a1b49470de5d0e405a91389d7a25b3c4d8f7946b2ad7efca"}},{"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/bitsandbytes/op.rs"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"b627814f7fef36e6f755b0751015b9fdeae7b68e38830de6770e17f4a43f0d09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmvq.rs:533-539 | mistralrs-quant/src/gguf/fast_mmvq.rs:748-754 \u2014 both copies are in the same file, so extract the block 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":533}}}],"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:234-240 | mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:241-247 \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-paged-attn/src/cuda/backend/flash_attn_sinks.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"95894b9bfe8668ace18141b78b15cdcd4c9e0ffb2853557a2d2c6b4ea9291106"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/ops.rs:456-462 | mistralrs-core/src/ops.rs:473-477 \u2014 both copies are in the same file, so extract the block 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":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a21b286095f7a8a4b530c91a7b89af5493c0c69dc897b4e990023f59759be7"}},{"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 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"65961d37c849173007fb06521f86f78da0f84251e8fefc8d8ba3cabf34e9a4e8"}},{"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."},"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:397-403 | mistralrs-quant/src/afq/ops.rs:838-844 | mistralrs-quant/src/afq/ops.rs:846-852 \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/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/ops.rs:463-469 | mistralrs-core/src/ops.rs:478-484 \u2014 both copies are in the same file, so extract the block 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":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a6f05132f4365bf936a8dc46329acfee55b3db2189e67e5fdb8f0c138d8534"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/pipeline/loaders/mod.rs:101-107 | mistralrs-core/src/pipeline/loaders/mod.rs:111-117 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/pipeline/loaders/mod.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b78179a61c4fb7a1e798f9910973bef522fcd223b0f97709f53f1dc79062f5"}},{"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 7 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."},"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 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"32edfc8f39540a44c68022b3df35ebfb54541a0c53aa2d81dd08ed7e9262dcbe"}},{"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:5531-5535 | mistralrs-core/src/cuda/gdn.rs:5539-5544 \u2014 both copies are in the same file, so extract the block 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":5531}}}],"partialFingerprints":{"codehealthFindingId/v1":"0258be99b894e8c3421edd196cc559b0271029bd3e7849eab544b8343e69feac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/gptq/gptq_cuda.rs:115-120 | mistralrs-quant/src/gptq/gptq_cuda.rs:138-143 \u2014 both copies are in the same file, so extract the block 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/gptq/gptq_cuda.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"087d8e519e3e4b89a2b01f54e78a594ae843e1d7f8b0f65e783df540927a0252"}},{"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."},"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:2047-2052 | mistralrs-core/src/ops.rs:2196-2201 \u2014 both copies are in the same file, so extract the block 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":2047}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2651996392f5669f215afb5ec888bcedc03b3912ee6e835fdfd53b77f384cf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-quant/src/scalar_fp8/ops.rs:140-145 | mistralrs-quant/src/scalar_fp8/ops.rs:299-304 | mistralrs-quant/src/vector_fp8/ops.rs:195-200 \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/scalar_fp8/ops.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"22dbf9272b56147c44e2f1c452893eaae4c268a4fdbfca995f8ff5f3fa653852"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): mistralrs-cli/src/ui/handlers/api.rs:202-207 | mistralrs-cli/src/ui/handlers/api.rs:254-259 | mistralrs-cli/src/ui/handlers/api.rs:306-311 \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-cli/src/ui/handlers/api.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"b37fd1f72f36cb940f853ba98f1855b855fa43eb53a94980af87ab8dc2a9b25d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): mistralrs-core/src/ops.rs:1179-1184 | mistralrs-core/src/ops.rs:1397-1402 | mistralrs-core/src/ops.rs:1416-1420 | mistralrs-core/src/ops.rs:2981-2985 \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":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"becdd7cefdbfa33fe308218ae9701d05fa3a8ed4eb4fe78e3d8682d0383cb9bb"}},{"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."},"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:482-487 | 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":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef0b3752e176b13dcde302120e448bc6f2828aa3b35addad980bc4027f15c90"}},{"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."},"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:1672-1677 | mistralrs-core/src/cuda/gdn.rs:3202-3206 \u2014 both copies are in the same file, so extract the block 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":1672}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe1c206f8952ee4144c97a8acf24f43987bbc921bf00307ef3af7698bc6de34"}},{"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":"8e9833836dafd01ff04802a00b2e632f5e8f62b85b0f6d756febecf1d8bfb7bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): mistralrs-cli/src/ui/handlers/api.rs:207-212 | mistralrs-cli/src/ui/handlers/api.rs:259-264 | mistralrs-cli/src/ui/handlers/api.rs:311-316 | mistralrs-cli/src/ui/handlers/api.rs:367-372 \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-cli/src/ui/handlers/api.rs"},"region":{"startLine":207}}}],"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:198-203 | mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:238-243 \u2014 both copies are in the same file, so extract the block 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":198}}}],"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."},"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:883-888 | mistralrs-core/src/ops.rs:967-972 \u2014 both copies are in the same file, so extract the block 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":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1ebd076544479f54bdd440f71576d50ffb958ea3fe6cbc260d8874b8561b843"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/engine/agentic_loop.rs:502-507 | mistralrs-core/src/engine/agentic_loop.rs:523-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/engine/agentic_loop.rs"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"043c49e0c64cc345e4e1904370aec4e41f5e3988f58c8102c1582799df4c929c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): mistralrs-core/src/ops.rs:1171-1176 | mistralrs-core/src/ops.rs:1191-1196 | mistralrs-core/src/ops.rs:1201-1206 | mistralrs-core/src/ops.rs:1389-1394 | mistralrs-core/src/ops.rs:1409-1413 \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":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e2bc88f66c195beba1ffd37017e325fc5076128eb056d73fa1cf10cc98e64a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-paged-attn/src/metal/backend/paged_attention.rs:110-115 | mistralrs-paged-attn/src/metal/backend/paged_attention.rs:197-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-paged-attn/src/metal/backend/paged_attention.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"554c0eb16f156f755835b5d0c7b18ca307eef3ab3558f1b9a9d9f1f80d0eb0c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): mistralrs-quant/src/blockwise_fp8/mod.rs:303-308 | mistralrs-quant/src/blockwise_fp8/mod.rs:349-354 | mistralrs-quant/src/blockwise_fp8/mod.rs:655-660 | mistralrs-quant/src/lib.rs:1627-1632 \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/mod.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"05448c2ed11f4c1a04582a0409d6d284d8c24ce562ce51cbe46c1352d4486385"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-quant/src/gptq/gptq_cuda.rs:105-109 | mistralrs-quant/src/gptq/gptq_cuda.rs:128-133 | mistralrs-quant/src/gptq/gptq_cuda.rs:150-155 \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/gptq/gptq_cuda.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"11cb2099da30041ce0799f42df9424b9372df968bb36493d6be200ce218e6034"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-server-core/src/chat_completion.rs:919-924 | mistralrs-server-core/src/chat_completion.rs:925-930 \u2014 both copies are in the same file, so extract the block 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":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"199b63297b30af01bb6d510d3cbcd0bc0e421e690ccef3071fb036f8e9b1c15a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:2187-2191 | mistralrs-core/src/cuda/gdn.rs:2195-2200 \u2014 both copies are in the same file, so extract the block 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":2187}}}],"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 213 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"35deb18c130c52b21c33bd36c58de8c3fdd8bba904d6ed38f65d86e7acc82ef3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/pipeline/cuda_graph.rs:2233-2238 | mistralrs-core/src/speculative/dflash.rs:1634-1639 \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/cuda_graph.rs"},"region":{"startLine":2233}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7eb412e03f5a40fa4e1cce89f6fcf0de0728a2a62529630c5555e0ac57af2ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): mistralrs-core/src/ops.rs:1169-1174 | mistralrs-core/src/ops.rs:1189-1194 | mistralrs-core/src/ops.rs:1199-1204 | mistralrs-core/src/ops.rs:1209-1213 | mistralrs-core/src/ops.rs:1387-1392 | mistralrs-core/src/ops.rs:1407-1411 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/ops.rs"},"region":{"startLine":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"989e2c744dc0f0d01b0f8cc687e34f5cdadb713fcb3f29b8104fe308c61386ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:1939-1943 | 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/cuda/gdn.rs"},"region":{"startLine":1939}}}],"partialFingerprints":{"codehealthFindingId/v1":"3951bab6ac14be302521afa49ee057cf8831643216fe4dc18989aaade6b9699d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-core/src/ops.rs:407-412 | mistralrs-core/src/ops.rs:414-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/ops.rs"},"region":{"startLine":407}}}],"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."},"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 3): mistralrs-quant/src/gguf/fast_mmvq.rs:332-337 | mistralrs-quant/src/gguf/fast_mmvq.rs:532-537 | mistralrs-quant/src/gguf/fast_mmvq.rs:747-752 \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_mmvq.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6acc4d65968d0a139d36c810b8d56417f06f77bcb614e28b356860a0e167f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmvq.rs:499-503 | mistralrs-quant/src/gguf/fast_mmvq.rs:713-717 \u2014 both copies are in the same file, so extract the block 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":499}}}],"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."},"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/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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/attention/backends/metal_flash_attn.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ec6482f522beb27a4855830f09fd8867832bda8cbbf08d9e93463ba6a17d57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/cuda/gdn.rs:3204-3208 | mistralrs-core/src/cuda/gdn.rs:3209-3213 \u2014 both copies are in the same file, so extract the block 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":3204}}}],"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:213-217 | mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:222-226 | 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":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d3704263808bdeaed5eb71836186c7cc56a31d0314b9e0c9dbe220195b1f81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/models/qwen3_next.rs:640-644 | 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":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef15a172c78d612d4a05b04662b7baf16f4c4c243e2b9cbbc472a212818d6174"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmq.rs:561-565 | mistralrs-quant/src/gguf/fast_mmq.rs:668-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/gguf/fast_mmq.rs"},"region":{"startLine":561}}}],"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:375-379 | mistralrs-core/src/vision_models/mllama/text.rs:354-358 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/paged_attention/layers/paged_attention.rs"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"32068a66617391b33c782efe9643abe75bcd3792bff61fd8857a579936c87524"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/gguf/fast_mmq.rs:698-702 | mistralrs-quant/src/gguf/fast_mmq.rs:1079-1083 \u2014 both copies are in the same file, so extract the block 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":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"51bfd9ca2b3ae7bdf1110ea1074dfd5fae10c57d73efc7816ac06af5f4c22c2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-core/src/cuda/gdn.rs:2984-2988 | mistralrs-core/src/cuda/gdn.rs:4672-4676 | mistralrs-core/src/cuda/gdn.rs:4708-4712 \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":2984}}}],"partialFingerprints":{"codehealthFindingId/v1":"d764d786f009a8091214335421805be5fdc080bbf17c7e302181f49aa513bfb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/distributed/layers.rs:2468-2472 | mistralrs-quant/src/gguf/weight_source.rs:1170-1174 \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/distributed/layers.rs"},"region":{"startLine":2468}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c64e6e7b40cbc92a0cd843c46839130d2d3d0ceabdf83a36bdda877023f2a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-paged-attn/src/cuda/backend/scale_update.rs:63-67 | mistralrs-paged-attn/src/cuda/backend/scale_update.rs:70-74 \u2014 both copies are in the same file, so extract the block 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":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb794285c85212d7dffb2c3431f357a18b15c7af6f501609e69e613e1bd2f69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/sampler.rs:1481-1485 | mistralrs-core/src/sampler.rs:1651-1655 \u2014 both copies are in the same file, so extract the block 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":1481}}}],"partialFingerprints":{"codehealthFindingId/v1":"308dc2c374cdccd49f15012890cb60912245d4afb3e72b2a10b00ef1eb170ae6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:75-79 | mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs:231-235 | mistralrs-quant/src/gptq/marlin_backend.rs:76-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-paged-attn/src/cuda/backend/flash_attn_sinks.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"d04482f4533f0d4afccf217d23ca4658df87c3f8812eec7baf702dd8d9d4feae"}},{"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 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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:2985-2989 | mistralrs-core/src/cuda/gdn.rs:3649-3653 \u2014 both copies are in the same file, so extract the block 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":2985}}}],"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:899-903 | mistralrs-core/src/gguf/qwen_multimodal_bindings.rs:303-307 \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 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-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 3): mistralrs-quant/src/blockwise_fp8/deepgemm.rs:446-450 | mistralrs-quant/src/cutile/fp8_w8a16.rs:525-529 | mistralrs-quant/src/cutile/fp8_w8a8.rs:540-544 \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 21 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/blockwise_fp8/deepgemm.rs"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"829105964adbf2be16e09cf43cae21537eba028889a25d6cb1805c04f60d63f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): mistralrs-quant/src/cutile/fused_moe.rs:476-480 | 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/fused_moe.rs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbd427791d61c6edf34d56c66b814ccdc377852bbff03f7143583fbe9fe73358"}},{"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:293-297 | mistralrs-paged-attn/src/cuda/backend/paged_attention.rs:425-429 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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 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."},"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:163-168 | mistralrs-core/src/engine/agentic_loop.rs:174-179 \u2014 both copies are in the same file, so extract the block 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/agentic_loop.rs"},"region":{"startLine":163}}}],"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 (6 lines \u00D7 2): mistralrs-core/src/gdn/backend.rs:603-608 | mistralrs-core/src/gdn/backend.rs:664-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-core/src/gdn/backend.rs"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd5b3ae1e92f1aad224dc47acbf1bed52fd5b67130bee5829f00d0ca1b283504"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): mistralrs-core/src/gguf/normal_config.rs:1317-1323 | mistralrs-core/src/gguf/normal_config.rs:1406-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-core/src/gguf/normal_config.rs"},"region":{"startLine":1317}}}],"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:1063-1068 \u2014 both copies are in the same file, so extract the block 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/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:426-431 | mistralrs-core/src/layers.rs:439-444 \u2014 both copies are in the same file, so extract the block 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":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"002d47d571fa3d243996b2e74ac9eda7193b6f591412e8a2233427abcea9d01d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/models/deepseek2.rs:321-325 | mistralrs-core/src/models/deepseek3.rs:322-326 \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 61 separate duplicated blocks between them, totalling at least 1040 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 (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 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/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:161-169 | 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 5 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-core/src/models/quantized_llama.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4b5935d92bde4570d9032cfba67e276f102c6515e446558872d7b2aaf7d4d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/ops.rs:2056-2060 | mistralrs-core/src/ops.rs:2207-2211 \u2014 both copies are in the same file, so extract the block 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":2056}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc6ebd366829f271bfde01c521af190654083ea53f4da09a598631287107f6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/ops.rs:5786-5790 | mistralrs-core/src/ops.rs:6144-6148 \u2014 both copies are in the same file, so extract the block 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":5786}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d809deef80329bb52bb45284bb7e26073d2ba5ddc907b683ed837c73f58d5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-core/src/pipeline/sampling.rs:1347-1351 | mistralrs-core/src/pipeline/sampling.rs:1368-1372 \u2014 both copies are in the same file, so extract the block 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/sampling.rs"},"region":{"startLine":1347}}}],"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 9 separate duplicated blocks between them, totalling at least 120 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/inputs_processor.rs"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"de68e03e2c1df1f0746fd3c3f4a408096f63e8fc2c0de5a74e7309bd73d14e57"}},{"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 16 separate duplicated blocks between them, totalling at least 279 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."},"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."},"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."},"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 (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 18 separate duplicated blocks between them, totalling at least 176 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":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 18 separate duplicated blocks between them, totalling at least 176 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 (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:109-113 \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 18 separate duplicated blocks between them, totalling at least 176 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":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c882369dbb64bc1d38b780bbed7e3c0875d76ddc88c8bfe6f16d9cc27f09816"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-flash-attn/src/flash.rs:40-45 | mistralrs-flash-attn/src/flash.rs:526-531 \u2014 both copies are in the same file, so extract the block 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":"d00c7f520f2b50ac461c4e9ae93e76e52e0c3aa268a39b80ececda04e20feec6"}},{"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."},"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:396-400 | mistralrs-paged-attn/src/metal/kernels/mod.rs:537-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-paged-attn/src/metal/kernels/mod.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"0faefb3ceeb79f7386e9caf049540b343e5f3a2d86c67f6b95fb5caccb5bee2d"}},{"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:1656-1661 \u2014 both copies are in the same file, so extract the block 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 (5 lines \u00D7 2): mistralrs-quant/src/cutile/fp8_w8a16.rs:78-82 | mistralrs-quant/src/cutile/fp8_w8a16.rs:183-187 \u2014 both copies are in the same file, so extract the block 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/fp8_w8a16.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c7d04c00a9a2f3b83bfc41f75b96665b52076c6e6297104836ce66707ccea1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:792-800 | 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 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5afd8d4e2219a1772f15166f89a59ea1ea729c61e61a4e7ef0b62e9380d09d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:141-149 | mistralrs-quant/src/cutile/fused_moe_fp8.rs:150-158 \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 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f0586e56e839aee556cbe251ea2615205ef4cae51052e9cf25203ac7764572"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:199-206 | 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 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6c778e5a2afee547a9cf62408fa55850c6e01dc4f8a5ee4d94ffc7d7067f72a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:227-236 | 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 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd67b8087fd0358b37b04c3c3110585381f96af1171bfbd9c2add42d1acc2f43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:218-223 | 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 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"603f0f8f591c3d2ac4531229607ef1508d4e251e56dd9dfb4f5a2e7565f4e489"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/cutile/fused_moe.rs:244-248 | 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 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"f239d909f2125409cd172c7620c09402d539e838f8c946b84e86f7959f87ad3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/cutile/gdn_prefill.rs:57-61 | mistralrs-quant/src/cutile/gdn_prefill.rs:468-472 \u2014 both copies are in the same file, so extract the block 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":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"893f35578c4423580bee0d2bc77f195680f7743b4b9827c71732ff52961d4bcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/cutile/gdn_prefill.rs:139-143 | mistralrs-quant/src/cutile/gdn_prefill.rs:146-150 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/gdn_prefill.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"803e68bf1e49a693f8fa47abb5a67039bef960fecdbb3a4742be297e31be207e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mistralrs-quant/src/cutile/gdn_prefill.rs:247-251 | mistralrs-quant/src/cutile/gdn_prefill.rs:462-466 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/cutile/gdn_prefill.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8769b832d1b77006717a1bad4b365234e8103615364ea6fc554b6bf195d347e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 6): mistralrs-quant/src/cutile/nvfp4_glu.rs:123-142 | mistralrs-quant/src/cutile/nvfp4_glu.rs:280-299 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:35-54 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:188-207 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:399-418 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:693-712 \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 10 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. If that is what happened, the fix is to keep one copy and have the other 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":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"d765f7045d01fb232d16614a25774d438cd44a6971ba37f3ce2936a656cdb86a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): mistralrs-quant/src/cutile/nvfp4_matmul.rs:130-137 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:283-290 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:545-552 | mistralrs-quant/src/cutile/nvfp4_matmul.rs:839-846 \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/nvfp4_matmul.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"287eb2ff5831fdda0a0fc2c9ad8e86c32d953432c87025bef895f25e293f5acf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): mistralrs-quant/src/gemv/mod.rs:397-401 | mistralrs-quant/src/gemv/mod.rs:465-469 | mistralrs-quant/src/gemv/mod.rs:533-537 \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":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"39a56cc83bc3c3b37dd8c10089f0aff3a2aa716a405c4232ae7aef4fc7efb9df"}},{"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."},"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/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."},"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 (43\u201344 lines \u00D7 2): scripts/production_soak.py:13683-13725 | scripts/production_soak.py:13841-13884 \u2014 both copies are in the same file, so extract the block 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:13727\u0060 calls \u0060ValueError\u0060 and \u0060scripts/production_soak.py:13885\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":13683}}}],"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:12995-13017 | scripts/production_soak.py:13166-13188 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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:12995\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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":12995}}}],"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 (18\u201321 lines \u00D7 3): scripts/production_soak.py:4710-4727 | scripts/production_soak.py:4729-4746 | scripts/production_soak.py:4837-4857 \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 \u0060scripts/production_soak.py:4837\u0060 it does not close everything it opens, so those exact 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":"scripts/production_soak.py"},"region":{"startLine":4710}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef63af459e53ea2d63d566f5d16eeb4181adab53ef321bd9d0c86a01fd1a0964"}},{"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 (17 lines \u00D7 2): scripts/production_soak.py:10483-10499 | scripts/production_soak.py:11921-11938 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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:11860-11875 | scripts/production_soak.py:11883-11898 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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:11860\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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":11860}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc3753bdd61e9bb05e2a387bb7d09c65673c82c8add5b130dae03463858b669"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): scripts/production_soak.py:13274-13288 | scripts/production_soak.py:13713-13727 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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:13274\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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":13274}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a94e5ca1daefc7a0325562d1beff788a565785d62fb6fa1414660c714d5667"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): scripts/production_soak.py:13450-13464 | scripts/production_soak.py:14024-14040 \u2014 both copies are in the same file, so extract the block 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":"scripts/production_soak.py"},"region":{"startLine":13450}}}],"partialFingerprints":{"codehealthFindingId/v1":"01bbf811e48919b2698c0bb22cc4d080c36b6e754aaecc7f8caf5b607a845346"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): scripts/production_soak.py:2740-2753 | scripts/production_soak.py:11330-11343 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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:2740\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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":2740}}}],"partialFingerprints":{"codehealthFindingId/v1":"09ab04481bb600cfc35f0ddf5cb21e96db6e029de28f71f95db9563c0d0a1e6a"}},{"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 (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 (5 lines \u00D7 2): releases/v0.9.3/scripts/bench_decode_serving.py:202-207 | scripts/production_soak.py:12499-12503 \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 \u0060releases/v0.9.3/scripts/bench_decode_serving.py:202\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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.3/scripts/bench_decode_serving.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c01f4852fea2b7dfbda2fb63f6a44d1757b2915a3a2ee06c626134989bbbc6e"}},{"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":"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 (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 (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 2 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 18): RequestBuilder\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/src/messages.rs"},"region":{"startLine":568}}}],"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":122}}}],"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: 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":1448}}}],"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":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"c40dfc62c5199d2d3340de62dcfc627ebef38da7f21e3586b015c0051f099454"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PagedAttentionConfig (LCOM4 4): PagedAttentionConfig\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/paged_attention/mod.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec4e1233dd12d4548ad4b2234b72377f48a14ef3d0830a44e7bed27e7469835b"}},{"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/pipeline/multimodal.rs: mistralrs-core/src/pipeline/multimodal.rs changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 87 in MultimodalLoader::load_model_from_path at line 531. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"4453f5ce55963dfb8dc1a3b93d9a0dbd83a4356f885ee78e8bac10c9f71d7a1d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/engine/mod.rs: mistralrs-core/src/engine/mod.rs changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 119 in Engine::run at line 1107. 3 of those changes were fix/bug commits, 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"03cd583155f92e30b72c03057994738de1476976ec5b1c11dcbd7ccd6909f984"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/pipeline/mod.rs: mistralrs-core/src/pipeline/mod.rs changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 100 in Pipeline::submit_step at line 2002. 3 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":2002}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c27e4eb7b1142dda4794247d38f27209c3cbb6574dd1490d7a62124c6a46524"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/pipeline/normal.rs: mistralrs-core/src/pipeline/normal.rs changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 63 in NormalLoader::load_model_from_path at line 634. 2 of those changes were fix/bug commits, and the other 18 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":634}}}],"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 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 103 in Engine::add_request at line 136. 1 of those changes was a fix/bug commit, and the other 9 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a7c016ed8e847ebfb6811baaa9809b5ddd2d375bd7acc069e688c6e2251d3f0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/pipeline/sampling.rs: mistralrs-core/src/pipeline/sampling.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 68 in mistralrs_core::pipeline::sampling::finish_or_add_toks_to_seq at line 189. 2 of those changes were fix/bug commits, 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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/vision_models/qwen3_5/text.rs: mistralrs-core/src/vision_models/qwen3_5/text.rs changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in Qwen3_5TextModel::forward_embeds at line 2268. 2 of those changes were fix/bug commits, 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":2268}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c5fe7b3f3dd681ccc05832f362ab2ffc00ad9f8749d14fdecec3b7b261ca7e"}},{"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 885. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"67676c606b1a7ec843a1ced4781458c19873dc2bf6e23c644c8bc8c977865738"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/lib.rs: mistralrs-core/src/lib.rs changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in MistralRs::init_external_tool_callbacks at line 1336. 4 of those changes were fix/bug commits, and the other 20 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/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-core/src/lib.rs"},"region":{"startLine":1336}}}],"partialFingerprints":{"codehealthFindingId/v1":"405789ead75ab342c29f43eb2060bc2e59ebc0fe596140a2e5ff245b349a9546"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/cuda/gdn.rs: mistralrs-core/src/cuda/gdn.rs changed 9 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 3388. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":3388}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9876bd22d08c3ddf76e9a937523eddde5dc3070aeecbed1e0a5d145e6f2f10"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-server-core/src/chat_completion.rs: mistralrs-server-core/src/chat_completion.rs changed 10 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 566. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1e341b6fbc8cd10e4ec50f45050b4a8071574d9631ab67afe1b0ace05c7013"}},{"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 52 in mistralrs_core::pipeline::inputs_processor::text_models_inputs_processor::make_prompt_chunk at line 828. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"66deb4e6beb4f60a99a8ac73a4a2bc41bf5b4dac45bfd50d361babdc401ed5bc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/gemma4/inputs_processor.rs: mistralrs-core/src/vision_models/gemma4/inputs_processor.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 81 in Gemma4ImageProcessor::process_inputs at line 1025. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/gemma4/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/gemma4/inputs_processor.rs"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2457a6712d92c72ff1421df5264e6228d7e53239aeff9376ea33d4a3a79b93f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-pyo3/src/lib.rs: mistralrs-pyo3/src/lib.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in Runner::new at line 972. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"08368b4b76f89bc006036a3930646800d43c8afd99a8d7a3581bf9a398815da6"}},{"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 5158. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":5158}}}],"partialFingerprints":{"codehealthFindingId/v1":"71588acac90462e8e373de9aab08938734c6939428f44a6913c4b15f18214ae2"}},{"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 1166. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ac08fb609917147418e38816e147ae71c92a7a5328593d366fb9424c18e47d3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs: mistralrs-core/src/pipeline/loaders/multimodal_loaders.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in AutoMultimodalLoader::get_loader at line 430. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/pipeline/loaders/multimodal_loaders.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/multimodal_loaders.rs"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"338d2b8ecab54a05ff4946d3c80d445b1ebd8bd362683f813d69f8bbd114cd3f"}},{"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 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in Qwen3_5Model::forward at line 113. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"734b37560c09ce161d21c4e80c6af94a89508e672a1c64fe5e3300fd1a915283"}},{"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 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in Qwen3_5Model::dflash_propose at line 431. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a004f366e502e5b44012b4674ca5a8055d0eacfaf7f12d921284ce28bc9bc6f"}},{"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 223. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"2396aa608550ab28a1043169207e65fa0b06492f4c190b8f1a1d324365fcb07f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/prefix_cacher.rs: mistralrs-core/src/prefix_cacher.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in PrefixCacheManagerV2::search_for_matching_cache at line 711. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/prefix_cacher.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/prefix_cacher.rs"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc168f1b73acd78c3f7ed1fcf2d42c110c4f2f0946a2e1f3d40693fdb471aca9"}},{"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 6 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 56. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee13853b0c63fe28cdf7fd057cb0a223978303001976b69d27dcd7a801343e3f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-quant/src/distributed/layers.rs: mistralrs-quant/src/distributed/layers.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in mistralrs_quant::distributed::layers::load_packed_weights at line 434. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"094d231f4c51f8c3ac002b3dd2961b09358932470aaaa8c84130c7de08f35c0d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-quant/src/lib.rs: mistralrs-quant/src/lib.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in mistralrs_quant::try_fused_quantized_ffn at line 2142. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-quant/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-quant/src/lib.rs"},"region":{"startLine":2142}}}],"partialFingerprints":{"codehealthFindingId/v1":"5490a6010a04b2ac43c260f31b0164ae4954f07d8528b62f6fa0d53c01d04092"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/gemma4/text.rs: mistralrs-core/src/vision_models/gemma4/text.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in TextModel::forward_embeds_scaled at line 2096. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":2096}}}],"partialFingerprints":{"codehealthFindingId/v1":"5104aebaa1268e0117b76cf38d007e34380a4046b6d0709d92f707257e7714a5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs: mistralrs-core/src/vision_models/qwen3_vl/inputs_processor.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in Qwen3VLImageProcessor::process_inputs at line 1019. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/qwen3_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/qwen3_vl/inputs_processor.rs"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd187bf8f45e723a4a8501f00185e2bd35c8fea108578afe93af8d2cad3b3306"}},{"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 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in PagedAttention::try_prefix_gather_prefill at line 1005. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd66568c34354028b31ce312af50490594a25cfcd5fd8426ac342956767c3401"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/pipeline/isq.rs: mistralrs-core/src/pipeline/isq.rs changed 5 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in mistralrs_core::paged_attention::calculate_cache_config at line 380. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe38a95948307a855654e3b4ff8fca2ec238bf22c445cf7a84f40936dce469e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/phi3/mod.rs: mistralrs-core/src/vision_models/phi3/mod.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in ImageEmbedding::forward at line 698. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/phi3/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/phi3/mod.rs"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f4ccaecaa996ea725a49b06ef7863f1a7fb2c1ea9c88c0d56865539574022c"}},{"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 5 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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 5 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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/gguf.rs: mistralrs-core/src/pipeline/gguf.rs changed 10 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 1192. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ae8018e40855076e8b9575a9946bac020a04d753188fd25e6ab4e7cc5cc4d1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/pipeline/chat_template.rs: mistralrs-core/src/pipeline/chat_template.rs changed 9 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 712. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc9ad06214c7e06e5c1473ad519617d56725ef409c323985499f1b1bf1a188cd"}},{"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 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in MistralRsForServerBuilder::build_multi_model at line 967. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"f98046f31c915486b57fd2ba4ddc0b189fe63e0fb4e7094864ad019d3969c46c"}},{"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 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in Qwen3_5MoeModel::forward at line 98. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f8e0e7a46b48bcbd71c2cdcd614a40bba0560ea5945628289b5581458d3b908"}},{"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 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in mistralrs_core::pipeline::loaders::auto_device_map::get_device_layers at line 200. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"c319b9c15d3c641929a3623a722e9b9ab336430b1904a6e020a76c79f08f5751"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-cli/src/commands/run/interactive.rs: mistralrs-cli/src/commands/run/interactive.rs changed 6 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 1521. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":1521}}}],"partialFingerprints":{"codehealthFindingId/v1":"947181bc8beac24f0caea66eef96d192f11dad5bc885bdf9d375c80266356835"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/pipeline/cuda_graph.rs: mistralrs-core/src/pipeline/cuda_graph.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in CudaGraphDecodeStep::one_token_continuation at line 595. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a9e5cc4ca31d1c981b2d5aa3969a171a54de02073cb271d3e202c65527ac0f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/speculative/driver.rs: mistralrs-core/src/speculative/driver.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in mistralrs_core::speculative::driver::verify_staged_batch at line 316. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"8940d7583f685aa5752dc1a013c59c55408a1ae7cb7d01c9faaef9a302a6cb5a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/speculative/verifier.rs: mistralrs-core/src/speculative/verifier.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in mistralrs_core::speculative::verifier::finish_verified_step at line 805. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"6efbf8488002b77d2974818ac917f54ad8e5b5a35398bcb0d1ecd38488c2ed83"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/pipeline/loaders/normal_loaders.rs: mistralrs-core/src/pipeline/loaders/normal_loaders.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in NormalLoaderType::from_causal_lm_name at line 297. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/pipeline/loaders/normal_loaders.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/normal_loaders.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6624b337999252da110a8ca42a40ba50fa3b8662d6f57df1d398a741afd6ae6"}},{"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 1764. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":1764}}}],"partialFingerprints":{"codehealthFindingId/v1":"d717c13e89b1eb1820fd52c737c858556c403362c727069137322f6a767f420a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-quant/src/utils/ops.rs: mistralrs-quant/src/utils/ops.rs changed 10 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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/qwen3_next.rs: mistralrs-core/src/models/qwen3_next.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in Model::forward at line 966. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9472225e17cad3bc7ee4088d29f52425c795bb6d34fd4308875824fa615e473"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/engine/agentic_loop.rs: mistralrs-core/src/engine/agentic_loop.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 58 in mistralrs_core::engine::agentic_loop::agentic_loop at line 1123. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"a258ce1682c33ad14499e635585a40ca60f4ab1f9e040ca985c4bd56db6ae2d4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-quant/src/blockwise_fp8/mod.rs: mistralrs-quant/src/blockwise_fp8/mod.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in BlockwiseFP8Linear::forward_raw at line 296. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e3bf3c349e9224c068d3e52818eb2a7a9a8172d1007063584750bfbea5e267"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/sampler.rs: mistralrs-core/src/sampler.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in Sampler::sample_topk_on_device at line 1465. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/sampler.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/sampler.rs"},"region":{"startLine":1465}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2c44a7a34e64ac7be717c2f3b4d8282d6756e0bc050993f4eff72f07d7882fd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/qwen2vl/mod.rs: mistralrs-core/src/vision_models/qwen2vl/mod.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in Qwen2VLModel::forward at line 326. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/qwen2vl/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/qwen2vl/mod.rs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b40d20630d2e63f63e6e93f730e3c2e18fd77ed5dd1f4e676a9e0b36077fe1"}},{"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 96. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"30659f62187d8e4f00b896a8ac261d4f1c77b1d47c9b8f232f190d557dfca31f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/model_loader.rs: mistralrs-core/src/model_loader.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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-cli/src/commands/bench.rs: mistralrs-cli/src/commands/bench.rs changed 4 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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/speculative/dflash.rs: mistralrs-core/src/speculative/dflash.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in DFlashDraftModel::precapture_cuda_graphs at line 2457. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":2457}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec63c34e8ec31629f134ea9d66fceb0d0471d4cab38a983ea97e21e51d72853"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-server-core/src/metrics.rs: mistralrs-server-core/src/metrics.rs changed 6 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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-core/src/kv_cache/mod.rs: mistralrs-core/src/kv_cache/mod.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in NormalCacheManager::clone_in_cache at line 486. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/kv_cache/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/kv_cache/mod.rs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6902366f019149ceacefc1b8355a4d88f1465a0b76cbc5174d7d99df799af92"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-server-core/src/anthropic.rs: mistralrs-server-core/src/anthropic.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in AnthropicStreamer::poll_next at line 1524. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":1524}}}],"partialFingerprints":{"codehealthFindingId/v1":"5490a4d162ecef5abe0295ae9852524d9323e3ded14ea4915910120a2da5886f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/llava/llava_next.rs: mistralrs-core/src/vision_models/llava/llava_next.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in Model::prepare_inputs_labels_for_multimodal at line 224. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/llava/llava_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/vision_models/llava/llava_next.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"15aedaecd9bdbae14197bcaacfc82073aaa8ecaee824f818b56e4e925732faef"}},{"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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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-core/src/vision_models/qwen3_5/config.rs: mistralrs-core/src/vision_models/qwen3_5/config.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in TextConfig::validate at line 263. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"65c9e9048bb534e21a35b6d284fe516956fb0e13276dd811aeeebce2b5acee7e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/mllama/inputs_processor.rs: mistralrs-core/src/vision_models/mllama/inputs_processor.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in MLlamaImageProcessor::process_inputs at line 320. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/mllama/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/mllama/inputs_processor.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"6126db46ff7058bcaf6ce2a0e6e07a891ee56b5abe21be607012b7b9b52ace1b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-pyo3/src/which.rs: mistralrs-pyo3/src/which.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in MultimodalLoaderType::from at line 139. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-pyo3/src/which.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/which.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"40db5f8c07636888218f0deb7242b0192fae6e92f08de553620a4c61f2b7d88f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/model_metadata.rs: mistralrs-core/src/model_metadata.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in MultimodalLoaderType::arch_metadata at line 200. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/model_metadata.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_metadata.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"c51626618312a3c530f6b04c58451f1a6b72168363d2dac3225c36a437bc0b01"}},{"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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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/pipeline/amoe.rs: mistralrs-core/src/pipeline/amoe.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in AnyMoePipeline::amoe_pre_train at line 440. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56bab56f05029f9e6b45d768eed9e818c9790c8da4bb6ae8a627bb1607cd871"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs: mistralrs-core/src/vision_models/qwen2_5_vl/mod.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in Qwen2_5VLModel::forward at line 169. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/qwen2_5_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/qwen2_5_vl/mod.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"3109a6657a3ee2e5966a5a049f89535f5cb39fc7794d7e4dcc2f94b777f3fc4b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/models/lfm2.rs: mistralrs-core/src/models/lfm2.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in Model::forward_embeds at line 1171. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/models/lfm2.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/lfm2.rs"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"3806432cf309a315558302be0622749759c28cdcbd03abc8d17d6e9007284483"}},{"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 2178. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":2178}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee143c4c707377c41ca8c0aa3fa8fe45743a1612b0328e9d330416e5eb78363"}},{"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 46 in ChatStore.generateAssistant at line 177. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"66378b17a91079fd3f4a2abb2386174bdd91315d25e21903da12864e1ea51a86"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/attention/backends/cpu/full.rs: mistralrs-core/src/attention/backends/cpu/full.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in mistralrs_core::attention::backends::cpu::full::compute_tiled_qblock 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/attention/backends/cpu/full.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/attention/backends/cpu/full.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"abaee693f212886000912916345778642861f6a654e14c41ef37d85406420859"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/gemma3/inputs_processor.rs: mistralrs-core/src/vision_models/gemma3/inputs_processor.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in Gemma3ImageProcessor::process_inputs at line 382. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/gemma3/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/gemma3/inputs_processor.rs"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f1ac26a67e39255ce07c689e5552583f8262f96cbe220b90798c912d2fd8da0"}},{"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 597. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3169bfbf7e2f75bd79a12219ea2d9ea500649496a33be2d6b5882bf687174b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/toml_selector.rs: mistralrs-core/src/toml_selector.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in mistralrs_core::toml_selector::infer_legacy_model_kind at line 563. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"322546c77d740c86dfe5247bd126939a7ee4cb0018130ab4a3a38bc9a56950d2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/minicpmo/inputs_processor.rs: mistralrs-core/src/vision_models/minicpmo/inputs_processor.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in MiniCpmOImageProcessor::process_inputs at line 297. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/minicpmo/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/minicpmo/inputs_processor.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b5b079eac0c13a2819a8e4a01e3753e95a81d5195e37cafab7b828e530eb68"}},{"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 133. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf28fe4b5d106e6fcdf11fb8c9d45cbb93cf343aeffe24937bdca4d3eceb17f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-cli/src/commands/serve.rs: mistralrs-cli/src/commands/serve.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in mistralrs_cli::commands::serve::convert_to_model_selected at line 303. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a7d0214e0e518bd6e2a164caacab96a1b1680c7d63c8af3e753f1ee623b153"}},{"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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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-core/src/mla/forward.rs: mistralrs-core/src/mla/forward.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in mistralrs_core::mla::forward::mla_cache_forward at line 356. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/mla/forward.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/mla/forward.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f0eb6c5490ae1c98bbfa9e9645cbcc0ec4b05106263f810e4edabe7f2b2ea87"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs: mistralrs-core/src/vision_models/llava/llava_inputs_processor.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in LLaVAInputProcessor::process_inputs at line 273. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/llava/llava_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/llava/llava_inputs_processor.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b4e2e013e8f5eeb736b1476ae7449f33dc76361383cb575bbe94c240d94f05"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs: mistralrs-core/src/vision_models/llava/llava_next_inputs_processor.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in LLaVANextInputProcessor::process_inputs at line 309. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/llava/llava_next_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/llava/llava_next_inputs_processor.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"08e4de94a454bd235f2cecd94ca0871409d313890d8ea41842f489dcd1bc26ac"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/pipeline/isq_flow/online.rs: mistralrs-core/src/pipeline/isq_flow/online.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in mistralrs_core::pipeline::isq_flow::online::requantize_from_source at line 263. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/pipeline/isq_flow/online.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_flow/online.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d51da2cb51eaad60bdc42aec5e0126b33513380093c44784c91eda3699c447f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/attention/mod.rs: mistralrs-core/src/attention/mod.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in Sdpa::run_attention at line 254. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/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/attention/mod.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac4b5989977a708587aad586d2edd080f89e66131105e2f2e229c64ea25ddce8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/pipeline/isq_flow/plan.rs: mistralrs-core/src/pipeline/isq_flow/plan.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in mistralrs_core::pipeline::isq_flow::plan::resolve_and_install_isq_plan at line 141. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/pipeline/isq_flow/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/pipeline/isq_flow/plan.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"baeb1de70bd3c3e69dddac0e452cc4cc457637905ec289c5134364da9d411544"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/idefics3/inputs_processor.rs: mistralrs-core/src/vision_models/idefics3/inputs_processor.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in Idefics3ImageProcessor::process_inputs at line 422. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/idefics3/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/idefics3/inputs_processor.rs"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb777dddeaf54dfcd4021d29130f4282ce8ac6e473a74e91567ca91eb6417bf6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs: mistralrs-core/src/vision_models/idefics2/idefics2_input_processor.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in Idefics2ImageProcessor::process_inputs at line 409. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/idefics2/idefics2_input_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/idefics2/idefics2_input_processor.rs"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f2a51f07cb1259c59c5b181d25eabfdb94e32ddb9c43e9b27be4036aa79273b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs: mistralrs-core/src/vision_models/phi3/phi3_inputs_processor.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in Phi3InputsProcessor::process_inputs at line 282. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/phi3/phi3_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/phi3/phi3_inputs_processor.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"9917ff920c2ca1f758a9f349cde1861df0fbfcfb2d675e04f642b749bcb35570"}},{"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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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-core/src/vision_models/gemma3n/text.rs: mistralrs-core/src/vision_models/gemma3n/text.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in TextModel::new at line 1307. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/gemma3n/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/gemma3n/text.rs"},"region":{"startLine":1307}}}],"partialFingerprints":{"codehealthFindingId/v1":"99fc342d0cb936112c48e8be16a3fd732a55cf67536da1d9035c03c0ead11bde"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs: mistralrs-core/src/vision_models/gemma3n/inputs_processor.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in Gemma3nImageProcessor::prepare_prompt_plans at line 462. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/gemma3n/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/gemma3n/inputs_processor.rs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc02436532c64a6babf24742495e0e0b3f97760d3024adc2b18ea8d3b170273"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/llama4/inputs_processor.rs: mistralrs-core/src/vision_models/llama4/inputs_processor.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in Llama4ImageProcessor::process_inputs at line 392. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/llama4/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/llama4/inputs_processor.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff55641af0c6102b6b85ad7d05e3da41df87c666dc7fb61f9ba61739aab0610b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/distributed.rs: mistralrs-core/src/distributed.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in mistralrs_core::distributed::prepare_distributed_mapper at line 569. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/distributed.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/distributed.rs"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf3e985c4cc9ee7436aeec24fb2532e0840ecdd3f4c1fee9ddddd35b09dbc568"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/mistral3/inputs_processor.rs: mistralrs-core/src/vision_models/mistral3/inputs_processor.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in Mistral3ImageProcessor::process_inputs at line 254. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/mistral3/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/mistral3/inputs_processor.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"3320273cbebd446aa2d8cdf9510ecb7b447bf5430b580afb464cf07e5ae09206"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-quant/src/gguf/fast_mmq.rs: mistralrs-quant/src/gguf/fast_mmq.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in mistralrs_quant::gguf::fast_mmq::grouped_pair_packed at line 1290. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-quant/src/gguf/fast_mmq.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/gguf/fast_mmq.rs"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b9800e0b1181c6919d7d88ac37104f26c500ae9784e9c45d00113a13ead990"}},{"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 28 in mistralrs_quant::afq::ops::afq_mm_op at line 342. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"db18185e0c524d6f2b3d342189b6ba3505722f273ff90dd4b145973823acc9d4"}},{"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 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in mistralrs_paged_attn::cuda::backend::paged_attention::update_cache at line 485. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"354f6b945fdb1a9163e53280856556d69a15d9b2bd64d7e23e8c641abc043067"}},{"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 2 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 8. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04: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":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"169fde9e7d39c0d8f8fcd3ecbe0f79d9e711fb01fd31bc3fb79905d0cc4f34be"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/phi4/image_embedding.rs: mistralrs-core/src/vision_models/phi4/image_embedding.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in ImageEmbedding::forward at line 465. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/phi4/image_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/vision_models/phi4/image_embedding.rs"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"44cd7aec17f36528f1fa052ca00b80b3e51dbad393dd226ad0dcc70dd98415d9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/vision_models/voxtral/inputs_processor.rs: mistralrs-core/src/vision_models/voxtral/inputs_processor.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in VoxtralInputsProcessor::process_inputs 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/vision_models/voxtral/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/voxtral/inputs_processor.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24a378924278cce6b6550200d65f5e6393ba4e09cea6d815d9dd1b6d7c34533"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: mistralrs-core/src/attention/backends/cpu/single_q.rs: mistralrs-core/src/attention/backends/cpu/single_q.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in mistralrs_core::attention::backends::cpu::single_q::run_barrier at line 57. 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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-core/src/attention/backends/cpu/single_q.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/attention/backends/cpu/single_q.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"e12c313b73be204c620619ba15022e7bfd1093a6ef2743c46a46b5fa508bf590"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: mistralrs-server-core/src/media_source.rs: mistralrs-server-core/src/media_source.rs changed 3 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 10 (its worst body is mistralrs_server_core::media_source::ui_upload_filename at line 142), 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(search): share the remote fetch guard with the web search and extraction tools (#2449)\u201D; \u201Cfix(server): judge IPv6 transition addresses by their embedded IPv4 in the media guard (#2446)\u201D; \u201Cfix(core): address recent correctness regressions (#2345)\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-06-27..2026-09-25, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-27 09:50:28 -04:00\u0027 --until=\u00272026-09-25 09:50:28 -04:00\u0027 --full-history --no-merges -- mistralrs-server-core/src/media_source.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/media_source.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"34c91355a9be62ebdd2a4a96bedfa0440964be39e90a8ba537f7d88c52e32d3d"}},{"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":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c5bd4eebeed20bd08db4f131830fead7636b2e0bb50e9b8d679953f44c1a75"}},{"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":204}}}],"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":206}}}],"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/models/quantized_llama.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c0e5685063a2dbfc520574a3a6f1b8afa53fa29c76dfe88bcc4a9e0d527b4b"}},{"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":598}}}],"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-quant/src/gptq/gptq_cuda.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"544a08e34c7b6e1974a85993e70f995499b923036c84692f4e67c5ab73e620e3"}},{"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":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"827e49244b5a649276d490aa125157a5cbe016ba2f04c8b96163f9b4aacf42aa"}},{"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: 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: // - 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":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"a66ec544f3aa752683c0d18bdcb74f9d8377e083910529a5cfc44f72f571638e"}},{"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":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aaf4ba707bff2e2614c10aae9f8fbaad9fb3260491b7050f0bf3601c9c269ba"}},{"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":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"94505a7ffa5fc39dd5aee2ca0b4a9faba0e0c79749346f004952b072544d2b77"}},{"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":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ba2d74ba9a8651c11b54668cf5973dc6a09f74522b39eb0d5c64b20eebe8a7"}},{"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":692}}}],"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/diffusion.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7933f706de34f71955016b7fa314ee2d9bb7704b1d935ee1bc942f8f5b9b9b"}},{"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":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"3349556f4551eee7b868b34c130562c93b8209c6206cae393cd64a12fb869c4c"}},{"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":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"06842d0202a80ad9c3f2b77b98e4865d8165f1998e9a204ffc079892d70c01af"}},{"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":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6c8e9ccceab6dff2476dc874f450c0f980fd2cc79b8539798dd715b147950cc"}},{"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":638}}}],"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":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c06bc0e52b92a9cbec45f775ca2e88de8fd9f527ab6996bfedf55fa63a7b486"}},{"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":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a797181b19abd22223240135066af450b8e8f42eccf56b6cc5a185d42a04387"}},{"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(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":178}}}],"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":209}}}],"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":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"a79653c1a8ec658d4abf99742d95429bfa9a16e87138d41636e32daf0c87187c"}},{"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: \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":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"454ad921274ac0657cccb972ede8905bfa922b5123ffac7a145715629d6278d1"}},{"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":"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":36}}}],"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":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"0576067f0d0c34d72a39e18d25aa7e722c7dc71583dec088ef63cce809c12d3c"}},{"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":885}}}],"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":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e37f2f4650fc7e23ef8cf11a53ec9e665ff6336d74178488dd222f7abc8975d"}},{"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 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":931}}}],"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":965}}}],"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":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd73ef78a2526441e3dea608421a6e14211c5ebbe1b50796908c60fc5a8497b4"}},{"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":420}}}],"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":453}}}],"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":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ddfb81e18892e34457a4a1cb59a35e06d4ff272820ade76941221c79d1c453"}},{"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: 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":1385}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ac16dd73b1c8f36765b29d4c45971c7a59320cf3720d459bb4fe5490127793"}},{"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":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D22","level":"warning","message":{"text":"Inconsistent tool registration API across Agent and AgentBuilder. Agent uses a single with_tool method with a generic callback type, while AgentBuilder splits this into with_sync_tool, with_async_tool, and register_tool with different signatures and naming conventions.: Unify to a single register_tool or with_tool method on both Agent and AgentBuilder that accepts a unified callback type or trait object, removing the sync/async distinction from the API surface. (signatures: Agent.with_tool(tool: Tool, callback: ToolCallbackType): Self | AgentBuilder.with_sync_tool(tool: Tool, callback: ToolCallback): Self | AgentBuilder.with_async_tool(tool: Tool, callback: AsyncToolCallback): Self | AgentBuilder.register_tool(_: (Tool, ToolCallbackType)): Self)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e603c9e93aa87c7a549f97fde771e7cf808de44c84fb8e46c2d0a563e9e4d0d8"}},{"ruleId":"D22","level":"warning","message":{"text":"Redundant high-level chat methods. Both Model and BlockingModel expose chat() and send_chat_request() which appear to do similar things. The distinction between \u0027chat\u0027 and \u0027send_chat_request\u0027 is unclear, and having both on both types creates confusion about which to use.: Remove send_chat_request from the public API if chat() provides equivalent functionality, or clearly distinguish them (e.g., chat for simple text, send_chat_request for complex request objects). Consider removing one of the two types or consolidating their interfaces. (signatures: Model.chat(message: impl ToString): Result | BlockingModel.chat(message: impl ToString): Result | Model.send_chat_request(request: R): Result | BlockingModel.send_chat_request(request: R): Result)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"08849b12397f372a0350f24855268e7e555d381ff608fdd47791e7896eb2592c"}},{"ruleId":"D22","level":"warning","message":{"text":"Inconsistent naming for embedding generation. The singular \u0027generate_embedding\u0027 and plural \u0027generate_embeddings\u0027 methods exist alongside their _with_model variants, but the distinction between singular and plural is unclear (single prompt vs batch?). This creates confusion about when to use which method.: Standardize on either singular/plural naming based on input type (e.g., generate_embedding for single, generate_embeddings for batch) and remove redundant _with_model variants by using a model_id parameter in the main method. (signatures: Model.generate_embedding(prompt: impl ToString): Result | Model.generate_embeddings(request: EmbeddingRequestBuilder): Result | Model.generate_embedding_with_model(prompt: impl ToString, model_id: str): Result | Model.generate_embeddings_with_model(request: EmbeddingRequestBuilder, model_id: str): Result)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ad3e41d3bb428f0c33e34b694c234e7d658b908b2fc08ee79a436744b6c80eca"}},{"ruleId":"D22","level":"warning","message":{"text":"Redundant tool callback registration methods. with_tool_callback and with_tool_callback_and_tool differ only by whether a Tool object is passed, but the distinction is unclear. If the callback implies the tool, the second method is redundant; if not, the naming is confusing.: Remove with_tool_callback_and_tool and require the Tool to be passed separately or inferred from the callback, or rename to clarify the difference (e.g., with_tool_callback_only vs with_tool_and_callback). (signatures: GgufModelBuilder.with_tool_callback(name: impl Into\u003CString\u003E, callback: ToolCallback): Self | GgufModelBuilder.with_tool_callback_and_tool(name: impl Into\u003CString\u003E, callback: ToolCallback, tool: Tool): Self)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"eb5b4f811ea27c901b7f49033b01fba4ddd61dbd779bebc408736aa40e234e32"}},{"ruleId":"D22","level":"warning","message":{"text":"Excessive method proliferation for LoRA adapter loading. Four variants exist with different combinations of model_id and policy parameters, creating a combinatorial explosion that is hard to remember and use correctly.: Consolidate into a single load_lora_adapter method that accepts optional parameters via a builder pattern or a config struct, reducing the four methods to one. (signatures: Model.load_lora_adapter(alias: impl Into\u003CString\u003E, adapter_dir: impl Into\u003CPathBuf\u003E): Result | Model.load_lora_adapter_with_policy(alias: impl Into\u003CString\u003E, adapter_dir: impl Into\u003CPathBuf\u003E, policy: LoraAdapterLoadPolicy): Result | Model.load_lora_adapter_with_model(alias: impl Into\u003CString\u003E, adapter_dir: impl Into\u003CPathBuf\u003E, model_id: str): Result | Model.load_lora_adapter_with_model_and_policy(alias: impl Into\u003CString\u003E, adapter_dir: impl Into\u003CPathBuf\u003E, model_id: str, policy: LoraAdapterLoadPolicy): Result)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a7eb89c6e4ebbb310209c4d71b8e46d6b683763e79592a5ec18ac92db0cfe002"}},{"ruleId":"D26","level":"note","message":{"text":"Split mistralrs-core: A huge catch-all at 299k LoC across 66 namespaces is a sprawling grab-bag. Suggested: "},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0b6b2f7494a7c880f5ff5996ae92f0ac6a6e65b0fc2461654410ba31e05a5b94"}},{"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":"bc0fcc62f3d40c14f16a68ad3b8c8deceb4aa1c73cbd2ad27332cd02b8d3e12d"},"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":"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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":"0e65cbcb3ba563fe38a0ed1172c31506ba9a10fb1f1fbead7218dabf13b1fcdd"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"058ad1e1d1526c68d1517078eac59d64d82aa87716a3d5d7dcb25491260dda43"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"54747df42a5e8fa983b5ef7983a5934ff5bef87638f8c01d25d161fc189f57f2"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"5b1de1d1642017b0b064c14bd32052c7f164eb8acd2e6affcdbdc05d2973383d"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"393008cf24272eaf38a25185bdbc1aa351cd1237b5bf5549216855e68dde458f"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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":"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":"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":"568461a6b94639b9a1aa36653e27227b87a331f4bf6433de765559528d9520fd"},"properties":{"dependency":{"package":"aws-lc-sys","version":"0.37.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0042","RUSTSEC-2026-0043","RUSTSEC-2026-0044","RUSTSEC-2026-0045","RUSTSEC-2026-0046","RUSTSEC-2026-0047","RUSTSEC-2026-0048"],"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":"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":"705e8761c5e609601c0419d94a8bad1aeb6aee434f48ec4660c92e8bf534c9de"},"properties":{"dependency":{"package":"number_prefix","version":"0.4.0","advisory":"RUSTSEC-2025-0119","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":"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":"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":"bf9b3890cba73cd3c5d5270d1976bd1bae94596a1c510482b94fe9367ef871f2"},"properties":{"dependency":{"package":"memmap2","version":"0.9.9","advisory":"RUSTSEC-2026-0186","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":"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":"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":"80b5c22beae306eb623d7a60ec13361ab89285e1cc30fcf5b8daa2e87ffb5c69"},"properties":{"dependency":{"package":"h2","version":"0.4.13","advisory":"RUSTSEC-2026-0258","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":"3035e85b1a9c0c33df37dc333f490439b3fa52aefda24a401e2e75a177cdf778"},"properties":{"dependency":{"package":"rustls","version":"0.23.36","advisory":"RUSTSEC-2026-0285","aliases":["[GHSA redacted]"],"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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: 4 of 611 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 and example/demo trees and test files identified by path convention, largest first; 611 of the 719 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-core/src/models/hunyuan_rope.rs, mistralrs-core/src/tools/parsers/hunyuan.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":"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 86% of the time (12 of the 14 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 12 shared commits counted here, the most recent 3 are \u0060d1ffbe7e\u0060 fix(qwen3.5): better support for hybrid models and auto device map (#\u2026; \u0060cf55746a\u0060 feat(multi-model): support planning for loading multi-model (#2299); \u00604a72ef32\u0060 feat(distributed): more sophisticated TP fallback and resolution syst\u2026 \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: embedding.rs \u2194 normal.rs: \u0060mistralrs-core/src/pipeline/embedding.rs\u0060 and \u0060mistralrs-core/src/pipeline/normal.rs\u0060 change together 79% of the time (11 of the 14 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 \u0060d1ffbe7e\u0060 fix(qwen3.5): better support for hybrid models and auto device map (#\u2026; \u0060cf55746a\u0060 feat(multi-model): support planning for loading multi-model (#2299); \u00604a72ef32\u0060 feat(distributed): more sophisticated TP fallback and resolution syst\u2026 \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":"D35","level":"warning","message":{"text":"Change coupling: mod.rs \u2194 gptq_cuda.rs: \u0060mistralrs-quant/src/blockwise_fp8/mod.rs\u0060 and \u0060mistralrs-quant/src/gptq/gptq_cuda.rs\u0060 change together 50% of the time (7 of the 14 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 \u0060aed0b295\u0060 feat(quant): add isq executor and planning (#2283); \u0060a5470517\u0060 fix(quant): fail missing dummy layers outside uqff (#2138); \u0060741b4788\u0060 Support Ministral 3 (#1816) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-quant/src/blockwise_fp8/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5588effcb22fe5b2f2711148dc35d15a3bcca49c5a0a9ba200f86033345ad7"}},{"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"}},{"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"}},{"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":"0752d0df7434000fcabf1048e2de30a7a1a8b982b3db9a19898c4dec199856b4"}},{"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":"cfa852b10b1daca743783c7e9171073f8e8df646fce30a8d2c962f4ce5e84903"}},{"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":"d068c977b62d9a977df1bb6f53e8b00b586c3abee955f91d715f92b8e019d624"}},{"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"}},{"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":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"5864a0b3dec883d08418cd1ec5a5f98b8fb097b9bebcbcade0a7fc4261061dc8"}},{"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/ChatInput.svelte"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"38cfa1f4168c46d1f05f09ded444b45d6abc8fbe1e7dcc01d26e9d1f697cc718"}},{"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":84}}}],"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":99}}}],"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":151}}}],"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":178}}}],"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":195}}}],"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":212}}}],"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":227}}}],"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":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b4c3e04768c965824689cfad2f917b1a9edc8dfdd9c29acffdffe3844965e7"}},{"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/Sidebar.svelte"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9aba9afece43a56d7b80bf0864322bf667a80a0f57c04eb1e21110d8b32bf72"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\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/UserMessage.svelte"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a63308d801b827ccc741bb8aa92516ca39d3f733674a5a4b11802411f4807a"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. This document\u0027s body is only the mount point \u003Cdiv id=\u0022app\u0022\u003E, so there is no content here to wrap \u2014 render the \u003Cmain\u003E from the component mounted into it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/static/index.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f90c78127dd90bb659786cbfebb541e9e789519f36512ebc0aa4c4627723627"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. This document\u0027s body is only the mount point \u003Cdiv id=\u0022app\u0022\u003E, so there is no content here to wrap \u2014 render the \u003Cmain\u003E from the component mounted into it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/index.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"979ceae11f29374091350a0dc076e71c198ec24f204f425b0a8ee7792eae0046"}},{"ruleId":"AC7","level":"warning","message":{"text":"Accessibility enforcement below the top rung: No accessibility enforcement found \u2014 no a11y linter (eslint-plugin-svelte (a11y rules are built in)) and no axe/pa11y/Lighthouse in tests or CI. Start with the linter to catch issues at author time. What was searched, so you can tell an absence from a miss: the 21 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository\u0027s test and CI files \u2014 matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d46019b86eff5ddad9db289e6802ac158899e980df54c34f67722442787ead62"}},{"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":"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. 3 of the 10 files that make outbound calls are unbounded; the first 3 are listed."},"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":587}}}],"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":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): mistralrs-cli/webui/src/lib/stores/chat.svelte.ts:536 \u00B7 mistralrs-cli/webui/src/lib/stores/chat.svelte.ts: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mistralrs-cli/webui/src/lib/stores/chat.svelte.ts"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d6b8e074e7a49844eab7417f27d50acb197a259bd28151734d82cac3e21909"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): mistralrs-cli/webui/src/lib/components/AssistantMessage.svelte:22 \u00B7 mistralrs-cli/webui/src/lib/components/UserMessage.svelte:56 \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":22}}}],"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:21 \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":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a607e55ca8a7c3c82a43afa9d87a27df9eb738dc0981a9bdc29233fe4e0a9ed"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): mistralrs-cli/webui/src/lib/stores/chat.svelte.ts:265 \u00B7 mistralrs-cli/webui/src/lib/stores/chat.svelte.ts:275 \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/stores/chat.svelte.ts"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab81cd0803ba891ee7005d590313bb05b7c67f518980f129f19885f5ac71a8ac"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): mistralrs-cli/webui/src/lib/services/api.ts:22 \u00B7 mistralrs-cli/webui/src/lib/services/api.ts:32 \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":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ed8035d964c925738a53d7e60173ed5dee600b02c4013cfc7e21bd0287bd22"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function streamChatCompletion (cyclomatic 42, cognitive 86): streamChatCompletion has cyclomatic complexity 42 and cognitive complexity 86; 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 generateAssistant (cyclomatic 20, cognitive 32): generateAssistant has cyclomatic complexity 20 and cognitive complexity 32; 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":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"5936ddb208d3820bdf514d44572997a877e36a808d8a81e6529fd0585518ccc5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function editMessage (cyclomatic 18, cognitive 30): editMessage has cyclomatic complexity 18 and cognitive complexity 30; 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":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"e734bf582419b308f10f50290e8240d213f4d9439df55aaba7d18b813b464c59"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleSend (cyclomatic 16, cognitive 22): handleSend has cyclomatic complexity 16 and cognitive complexity 22; 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/components/ChatInput.svelte"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"b30868267b3ed436d13fed3ac78aadd20073a5a702f3a7818360b3bff5c30c16"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function onToolCallProgress (cyclomatic 15, cognitive 31): onToolCallProgress has cyclomatic complexity 15 and cognitive complexity 31; 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":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a464e18e2d5a9109f196d189eda68b51893edf2986edefc0ffc1baa2ad856b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function finalizeStreaming (cyclomatic 13, cognitive 15): finalizeStreaming has cyclomatic complexity 13 and cognitive complexity 15; 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":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"811be031c75f3bbd9312ca0e111ec86946b7639fc4296aaab4e1096ed4b01ef2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function regenerateAssistant (cyclomatic 12, cognitive 13): regenerateAssistant has cyclomatic complexity 12 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":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c22957119c28c16ffb63683f31f7681d773e7dae201e45c96b6d12dbe126c88"}},{"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":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"92dc8b99a2b8660a994e26d6f4898e30e343486a8da9ecbf829c888cc6411a1f"}},{"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":183}}}],"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":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d495752e2ec30e7cdbe93b2f52750b1aaa981409cb1488704d8b27b3bec477c"}}],"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":"CWE-1104","shortDescription":{"text":"CWE-1104"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.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":"CWE-248","shortDescription":{"text":"CWE-248"},"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":"CWE-353","shortDescription":{"text":"CWE-353"},"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":"CWE-506","shortDescription":{"text":"CWE-506"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"CWE-522","shortDescription":{"text":"CWE-522"},"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":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"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":"CWE-829","shortDescription":{"text":"CWE-829"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"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":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"},{"id":"CWE-95","guid":"400bba4e-483c-5c50-a695-114fa9168003","name":"CWE-95","shortDescription":{"text":"CWE-95"},"helpUri":"https://cwe.mitre.org/data/definitions/95.html"}]}],"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":176,"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."]}]}